Alert Strategies, or Alert Rules, are strategies that include the function Alert() in their code.
When executed in Backtest, they show where the alarm signals would occur based on the asset's movement. In real time, they will trigger an alarm, with a notification and/or sound (according to the settings), related to the defined strategy.
How to Create
To create a new Alert Strategy, go to Strategy Editor inside of the Strategies menu:
In the example below, an alert will trigger and display a Red (ClRed) popup if the current Close price is higher than the previous Close price.
The rule can also be created through the BlockBuilder.
After the strategy is created, you can activate the Alert in the Tools menu.
Click on Strategy and set the alert as you wish.
These strategies, when applied to alarms, are processed in real time or at the close of each candle, depending on the configuration set during the creation of the alarm.
Check the NTSL documentation in this link.
Was this content helpful?
Please rate us down below.