|
Somewhere, Delaware, USA
Systematic Algo Trader
Experience: Intermediate
Platform: MultiCharts
Broker: Barchart.com
Trading: Everything, it all tastes like chicken
Posts: 1,270 since Feb 2017
Thanks Given: 2,960
Thanks Received: 2,856
|
You probably want to use: PositionProfit
From the EasyLanguage dictionary:
PositionProfit (Reserved Word)
Returns the current gain or loss of the specified position..
PositionProfit(Num);
Num is a numeric expression representing the number of positions ago (up to a maximum of ten).
Remarks
This function can only be used in the evaluation of strategies. It does not require an input, however, by using the input Num, you can obtain the specified value from a previous position, up to ten positions ago.
Example
PositionProfit(3) returns a value of -1.00 if the third most recent position on a chart had a loss of 1.00.
~vmodus
Enjoy everything! |
|