Alerts not working

Questions about MultiCharts and user contributed studies.
ravtrader
Posts: 2
Joined: 18 Oct 2013

Alerts not working

Postby ravtrader » 04 Nov 2013

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!

User avatar
Andrew MultiCharts
Posts: 1587
Joined: 11 Oct 2011
Has thanked: 931 times
Been thanked: 559 times

Re: Alerts not working

Postby Andrew MultiCharts » 04 Nov 2013

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.


Return to “MultiCharts”