==== Notes ==== * This function can only be used in signals. * Use [[MaxPositionProfit]] to get the largest gain reached for the whole position.* Use [[MaxPositionLoss]] to get the largest loss reached for the whole position.
==== Example ====
Assign a value, indicating the largest gain reached per contract or share, to Value1 variable: