NeedForTrade Documentation

MaxPositionLoss Class

Lets get maximum position loss.


MaxPositionLoss members:


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

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

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

Example: max_position_loss = MaxPositionLoss[0];