Hello, I need some help from Senior Members to create an AFL for ALL scrips (and not only the one's that are open on the TABS) which will trigger a BUY / SELL alert sound as and when it occurs FOR CONDITION 1) BUY if Close (one complete candle)close above 21EMA 2) SELL if Close (one complete candle)close above 21EMA for CUSTOMISABLE TIMEFRAME (WHICH I WILL SET FROM "AA/General/Periodicity) and do a periodic scan on 5/15/60min.
In short,if Reliance (setting of 15min in AA/General/Periodicity) crosses EMA21 - NOT OPENED ON THE TAB - I should get a SoundAlert and a message in AlertOutput window. Also (not sure if it is possible),but the AlertOutput should list only the scrip ONCE which satisfies the criteria. (When I tried creating the AFL for output in AlertWindow, I got one scrip listed multiple times when checked sometime in the afternoon (mkt started in the morning) - AS THERE IS NO OPTION FOR RANGE - LAST "N" BARS. Can someone please help in coding this AFL?Would be grateful for the help. Warm Regards...Bobby
