Alerts only sent if automation is on?  [SOLVED]

Questions about MultiCharts and user contributed studies.
DaveAronow
Posts: 72
Joined: Apr 20 2014
Has thanked: 9 times
Been thanked: 8 times

Jan 31 2016

Sorry I'm not clear from the documentation, but are strategy alerts only sent if automated execution is enabled?

User avatar
JoshM
Posts: 2196
Joined: May 20 2011
Location: The Netherlands
Has thanked: 1544 times
Been thanked: 1565 times
Contact:

Jan 31 2016

Sorry I'm not clear from the documentation, but are strategy alerts only sent if automated execution is enabled?
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.

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.