Help @ Alert function in AFL

#1
Hi Everyone,

I have written an alert function in AFL which reads

AlertIf( Buy, "SOUND C:\\Windows\\Media\\tada.wav", "Audio alert", 1, 1+2+4+8 );

It creates alerts only when I explore it in auto exploration.

I want that whenever buy signal is generated it should give alert via beep/output in alert window without having to run auto explorer.

Seniors and AFL masters pl. help

Thanks in advance