RecalcLastBarAfter: Difference between revisions
From MultiCharts
m
no edit summary
No edit summary |
mNo edit summary |
||
Line 7: | Line 7: | ||
When the tick has been received before timeout expiration, time counter is reset and countdown for RecalcLastBarAfter(Timeout) starts anew. | When the tick has been received before timeout expiration, time counter is reset and countdown for RecalcLastBarAfter(Timeout) starts anew. | ||
== Usage == | |||
<syntaxhighlight>RecalcLastBarAfter(Timeout)</syntaxhighlight> | <syntaxhighlight>RecalcLastBarAfter(Timeout)</syntaxhighlight> | ||
Where: | Where: | ||
:'''Timeout''' - the number of seconds. | |||
== Example == | == Example == | ||
Line 37: | Line 39: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Also note that in this example the RecalcLastBarAfter statement is only active if the condition returns true, meaning that if the current bar isn't the | Also note that in this example the RecalcLastBarAfter statement is only active if the condition returns true, meaning that if the current bar isn't the LastBarOnChart, the RecalcLastBarAfter statement is not executed. | ||
[[Category:Execution Control]] | [[Category:Execution Control]] |