NeedForTrade Documentation

EntryPrice Class

Lets get entry price of required position.

 

EntryPrice members:

 

    // Properties
 
    double this[int positionAgo] // returns entry price of positionAgo entry

    // positionAgo is counted as follows: 
    // EntryPrice[0] - entry price current entry, 
    // EntryPrice[1] - entry price of previous entry and so on.

EntryPrice[positionAgo] returns 0 if no position is opened (positionAgo=0) or if there is no entry with specified positionAgo index.

Example: entry_price = EntryPrice[0];