NeedForTrade Documentation

BarsSinceEntry Class

Lets get bars since entry of required position.

 

BarsSinceEntry members:

 

    // Properties
 
    int this[int positionAgo] // returns bars since entry of positionAgo entry

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

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

Example: bars_since_entry = BarsSinceEntry[0];