NeedForTrade Documentation

PositionProfit Class

Lets get position profit of required position.


PositionProfit members:


    // Properties
    int this[int positionAgo] // returns position profit since entry of positionAgo entry

    // positionAgo is counted as follows: 
    // PositionProfit[0] - position profit of current position, 
    // PositionProfit[1] - position profit of previous position and so on.

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

Example: position_profit = PositionProfit[0];