Alerts only sent if automation is on? [SOLVED]
-
- Posts: 72
- Joined: 20 Apr 2014
- Has thanked: 9 times
- Been thanked: 8 times
Alerts only sent if automation is on?
Sorry I'm not clear from the documentation, but are strategy alerts only sent if automated execution is enabled?
- JoshM
- Posts: 2195
- Joined: 20 May 2011
- Location: The Netherlands
- Has thanked: 1544 times
- Been thanked: 1565 times
- Contact:
Re: Alerts only sent if automation is on? [SOLVED]
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.