+1 888 340 6572

RecalcLastBarAfter: Difference between revisions

From MultiCharts
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 ====
== Usage ==


<syntaxhighlight>RecalcLastBarAfter(Timeout)</syntaxhighlight>  
<syntaxhighlight>RecalcLastBarAfter(Timeout)</syntaxhighlight>  


Where: [[Timeout - the number of seconds.]]
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 [[LastBarOnChart]], the RecalcLastBarAfter statement is not executed.
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]]