699
edits
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
Returns a numerical value, indicating the status of the most recent tick in the current bar of the specified data series. | Returns a numerical value, indicating the status of the most recent tick in the current bar of the specified data series. | ||
A value of 0 indicates that the tick is the opening tick of the bar, 1 indicates that the tick is within the bar, and 2 indicates that the tick is the closing tick of the bar. | A value of 0 indicates that the tick is the opening tick of the bar, 1 indicates that the tick is within the bar, and 2 indicates that the tick is the closing tick of the bar. | ||
'''[[AllowSendOrdersAlways|AllowSendOrdersAlways]]''' set to True allows order generation even when barstatus is not defined (-1 will be returned). | |||
== Usage == | == Usage == | ||
<syntaxhighlight>BarStatus(DataNum)</syntaxhighlight> | <syntaxhighlight>BarStatus(DataNum)</syntaxhighlight> | ||
Line 21: | Line 23: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Will print the specified message on the last tick of the current bar. | Will print the specified message on the last tick of the current bar. | ||
[[Category:Data Information/General]] | [[Category:Data Information/General]] |