Hi to everybody!
I am trying to include the alerts in my strategy but they don't work.
I want the alert to show up when a buy or sell order is generated by my strategy.
For example if I write:
if dayofweek(date)=1 then begin
buy("test buy") next bar at h+.01 stop;
alert("test buy");
end;
and I plot the signal on a 1 minute chart, then the alert shows up at the open of every bar.
In the properties window I checked "every tick" under "alert condition check".
Can anybody help me???
Thanks in advance!
Alerts not working
- Andrew MultiCharts
- Posts: 1587
- Joined: 11 Oct 2011
- Has thanked: 931 times
- Been thanked: 559 times
Re: Alerts not working
Hello Ravtrader,
If you use IOG for your signal, then the script is calculated on every tick in real-time; if not, then it is calculated at closes of each 1 minute bar.
Condition for alerting is met on every 1 minute bar within the same date. So you should better apply this script to 1 day data series.
If you use IOG for your signal, then the script is calculated on every tick in real-time; if not, then it is calculated at closes of each 1 minute bar.
Condition for alerting is met on every 1 minute bar within the same date. So you should better apply this script to 1 day data series.