Alerts only sent if automation is on? [SOLVED]
-
- Posts: 72
- Joined: Apr 20 2014
- Has thanked: 9 times
- Been thanked: 8 times
Sorry I'm not clear from the documentation, but are strategy alerts only sent if automated execution is enabled?
- JoshM
- Posts: 2196
- Joined: May 20 2011
- Location: The Netherlands
- Has thanked: 1544 times
- Been thanked: 1565 times
- Contact:
Strategy alerts are generated always when their condition satisfies, which can be on real-time data, playback data, or when the strategy's auto trading is enabled or not.Sorry I'm not clear from the documentation, but are strategy alerts only sent if automated execution is enabled?
If you want your alerts to only generate when automated trading is enabled, use `GetAppInfo(aiStrategyAuto)` as a filter since that will return 1 if automated trading is enabled for the script and 0 in all other cases.
For more info, see GetAppInfo.