Difference between revisions of "Alert"
Jump to navigation
Jump to search
(→Notes) |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
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> | <syntaxhighlight> | ||
Alert | Alert | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | + | == Notes == | |
+ | * If the text isn't set in the alert then Source, Symbol, Resolution, Price is displayed. | ||
+ | * The Alert keyword works in real-time only. | ||
+ | * Detailed information of alerts' settings is available in Formatting Studies > Alerts. | ||
− | + | == Example == | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
This statement will call an alert without text message: | This statement will call an alert without text message: | ||
<syntaxhighlight> | <syntaxhighlight> | ||
Alert; | Alert; | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 43: | Line 28: | ||
<syntaxhighlight> | <syntaxhighlight> | ||
If Close > Close[1] Then | If Close > Close[1] Then | ||
− | Alert(Text("Price turning up")) | + | Alert(Text("Price turning up")) |
</syntaxhighlight> | </syntaxhighlight> | ||
[[Category:Alerts]] | [[Category:Alerts]] |
Latest revision as of 12:09, 18 March 2021
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.
- The Alert keyword works in real-time only.
- Detailed information of alerts' settings is available in Formatting Studies > Alerts.
Example
This statement will call an alert without text message:
Alert;
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"))