Help in change of signal in AFL where daily buy or sell signal generated

I have an AFL where i get buy or sell signal daily ( ex: close is above 5 ema or below).

Now i want afl code to know today for which scrips the signal is changed from buy to sell or sell to buy.

Please help me.
Buy if close is greater than ema.
Sell if close is less than ema.

This gives either a buy or a sell signal on each bar.

I want afl to indicate when there is change of signal. That is from buy to sell or sell to buy.


Well-Known Member
Where is your afl?

Similar threads