PositionOpenPL

Description

PositionOpenPL is a study that plots the Open Profit/Loss value for the currently selected account, based on the positions open on the currently selected symbol. This value is the difference between a position’s net liquidation value and either execution price or cost basis times the position size. Cost basis values are provided by Gainskeeper and include the effects of commissions and tax elections. By default, the value is returned based on the execution price, however you can change it in the study input parameters.

The Open Profit/Loss value is plotted as a histogram on a lower subgraph. The histogram changes its color based on whether the value is positive or negative.

Input Parameters

Parameter Description
calculation mode Defines which value to use in the calculation: execution price or cost basis.

Plots

Plot Description
PositionOpenPL The Open Profit/Loss value histogram.
ZeroLine The zero level. Hidden by default.

Example*

*For illustrative purposes only. Not a recommendation of a specific security or investment strategy.

  Past performance is no guarantee of future performance.

You may also like
PositionNetLiq
PositionNetLiq is a study that plots the position net liquidation value, i.e., the hypothetical ...
AccountNetLiq
AccountNetLiq is a study that plots the account net liquidation value, i.e., the value of the ...