IsFirstTickOfBar
<< Click to Display Table of Contents >> IsFirstTickOfBar |
Indicates if the incoming tick is the first tick of a new bar. This property is only of value in scripts that run tick by tick which is when the Calculate property is set to Calculate.OnEachTick or Calculate.OnPriceChange.
Warning: This property should NOT be accessed outside of the OnBarUpdate() method. |
Note: If a bar type is set up to remove the last bar on a chart, IsFirstTickOfBar will automatically be set to True. |
This property returns true if the incoming tick is the first tick of a new bar; otherwise, false.
IsFirstTickOfBar
// On a tick by tick strategy the only way you know when a bar is closed is when |