+1 888 340 6572

Alert: Difference between revisions

From MultiCharts
No edit summary
No edit summary
Line 1: Line 1:
Alert
Triggers an alert window where the necessary text can be created. The text can be dynamic, static or absent.   
Triggers an alert window where the necessary text can be created. The text can be dynamic, static or absent.   


 
==== Usage ====
 
<syntaxhighlight>
Usage
Alert
Alert
</syntaxhighlight>
   
   
==== Notes ====


Notes
If the text isn't set in the alert then Source, Symbol, Resolution, Price is displayed
If the text isn't set in the alert then Source, Symbol, Resolution, Price is displayed


Line 17: Line 14:
Detailed information of alerts' settings is available in Formatting Studies > Alerts  
Detailed information of alerts' settings is available in Formatting Studies > Alerts  
   
   
 
==== Example ====
 
 
Example
This statement will call an alert without text message:
This statement will call an alert without text message:
 
<syntaxhighlight>
Alert;
Alert;
</syntaxhighlight>


This statement creates a dynamic alert text and displays the number of the weekday:
This statement creates a dynamic alert text and displays the number of the weekday:
 
<syntaxhighlight>
Alert(Text("Day of week is ", DayOfWeek(Date)));
Alert(Text("Day of week is ", DayOfWeek(Date)));
</syntaxhighlight>


This statement will show static text:
This statement will show static text:
 
<syntaxhighlight>
If Close > Close[1] Then
If Close > Close[1] Then
Alert(Text("Price turning up"))
Alert(Text("Price turning up"))
</syntaxhighlight>


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