Sound Alerts Not Coming

#1
Hello Experts....

I have this AFL, the buy sell coding part I have pasted below.

Now the issue is it is not giving real time SOUND alert nor it is displaying calls on the Alert Output panel next to the chart screen. In the analysis window when i select 1 recent bar, nothing displays, but if i change it to 1 recent days, it displays many calls generated today.

Can someone please help me on this? I need alert as it is generated with sound and displayed in the Alert Output panel.


////////////////////////////////
Cond1 = Ref(Close,1)>Ref(Open,1) AND
Ref(Close,2)< Ref(Open,2) AND
Ref(Open,1)<Ref(Close,2) AND
Ref(Close,1)>Ref(Open,2);

Cond3 = Ref(Close,1)<Ref(Open,1) AND
Ref(Close,2)> Ref(Open,2) AND
Ref(Open,1)>Ref(Close,2) AND
Ref(Close,1)<Ref(Open,2);

Buy=Cond1 ;
Sell=Cond3;
Buy=ExRem(Buy,Sell);
Sell=ExRem(Sell,Buy);


AlertIf(Buy,"SOUND C:\\Windows\\Media\\Buy.wav","[email protected]" + WriteVal( C,1.2),1);
AlertIf(Sell,"SOUND C:\\Windows\\Media\\Sell.wav","[email protected]" + WriteVal( C,1.2) ,2);
////////////////////////////////

View attachment 23895 View attachment 23896
 

Attachments

Similar threads

Zerodha – Open Paperless Account

Open online account with Zerodha. Free delivery trading and Max Rs 20 for Intraday, F&O, Currency and Commodity Trading. Intraday High leverage with MIS, CO and BO.

Name:Phone:
Email:City:
State:
Are you a day trader?