MaxPositionProfit (Reserved Word)
Returns the largest gain of the specified position.
MaxPositionProfit(Num)
Where Num is a numeric expression representing the number of positions ago (up to a maximum of ten).
If Num is 0 (zero) then the value returned by this reserved word is for the current open position. If Num is 0 (zero) and no position is open then a value of 0 is returned.
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
MaxPositionProfit(1) returns a value of 29200.00 if the second most recent position had a maximum profit of 29200.00.