NeedForTrade Documentation

MaxPositionProfit Class

Lets get maximum position profit.


MaxPositionProfit members:


    // Properties
    int this[int positionAgo] // returns maximum position profit including positionAgo entry

    // positionAgo is counted as follows: 
    // MaxPositionProfit[0] - maximum position profit including current position, 
    // MaxPositionProfit[1] - maximum position profit that was on previous position and so on.

MaxPositionProfit[positionAgo] returns 0 there is no entry with specified positionAgo index.

Example: max_position_profit = MaxPositionProfit[0];