Difference between revisions of "Alert"
Jump to navigation
Jump to search
Line 16: | Line 16: | ||
==== Example ==== | ==== Example ==== | ||
This statement will call an alert without text message: | This statement will call an alert without text message: | ||
+ | |||
<syntaxhighlight> | <syntaxhighlight> | ||
Alert; | Alert; | ||
Line 29: | Line 30: | ||
Text_new(D,T,C,Text("Bar Date/Time is ",Date:0:0,"/",Time:0:0)); | Text_new(D,T,C,Text("Bar Date/Time is ",Date:0:0,"/",Time:0:0)); | ||
− | |||
</syntaxhighlight> | </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> | <syntaxhighlight> | ||
Alert(Text("Day of week is ", DayOfWeek(Date))); | Alert(Text("Day of week is ", DayOfWeek(Date))); | ||
Line 39: | Line 40: | ||
This statement will show static text: | This statement will show static text: | ||
+ | |||
<syntaxhighlight> | <syntaxhighlight> | ||
If Close > Close[1] Then | If Close > Close[1] Then |
Revision as of 19:07, 16 January 2012
Triggers an alert window where the necessary text can be created. The text can be dynamic, static or absent.
Usage
Alert
Notes
If the text isn't set in the alert then Source, Symbol, Resolution, Price is displayed
Alerts are shown on the last bar only
Detailed information of alerts' settings is available in Formatting Studies > Alerts
Example
This statement will call an alert without text message:
Alert;
TEST
absolute
nil
abs
ansistring
'ansistring'
(ansistring + ansistring, ansistring;)
"ansistring"
Text_new(D,T,C,Text("Bar Date/Time is ",Date:0:0,"/",Time:0:0));
This statement creates a dynamic alert text and displays the number of the weekday:
Alert(Text("Day of week is ", DayOfWeek(Date)));
This statement will show static text:
If Close > Close[1] Then
Alert(Text("Price turning up"))