Definition
Returns the number of bars that have elapsed since the last specified entry.
Method Return Value
An int value that represents a number of bars.
Syntax
BarsSinceEntry()
BarsSinceEntry(string signalName)
The following method signature should be used when working with multi-time frame and instrument strategies:
BarsSinceEntry(int barsInProgressIndex, string signalName, int entriesAgo)
|
Parameters |
|
|
signalName |
The signal name of an entry order specified in an order entry method. Pass in empty string "" for default signal. |
|
barsInProgressIndex |
The index of the Bars object the entry order was submitted against. See the BarsInProgress property. |
|
entriesAgo |
Number of entries ago. Pass in 0 for the number of bars since the last entry. |
Examples
|
protected override void OnBarUpdate()
|