+1 888 340 6572

Cancel Alert: Difference between revisions

From MultiCharts
No edit summary
mNo edit summary
 
Line 1: Line 1:
The expression deactivates alerts. This is necessary if a script contains multiple alert statements and they need to be turned off under certain conditions.  
The expression deactivates alerts. This is necessary if a script contains multiple alert statements and they need to be turned off under certain conditions.  


==== Usage ====
== Usage ==
<syntaxhighlight>
<syntaxhighlight>
Cancel Alert  
Cancel Alert  
</syntaxhighlight>
</syntaxhighlight>


==== Notes ====
== Notes ==
Alerts are only generated for the last bar  
* Alerts are only generated for the last bar.
 
==== Example ====


== Example ==
The example shows how all alerts can be turned off depending on time. The alerts will not be displayed after 10:00 pm.  
The example shows how all alerts can be turned off depending on time. The alerts will not be displayed after 10:00 pm.  


Line 25: Line 23:
If Time >= 2200 Then Cancel Alert;
If Time >= 2200 Then Cancel Alert;
</syntaxhighlight>
</syntaxhighlight>


[[Category:Alerts]]
[[Category:Alerts]]