Need AFL from code

#1
Hello,

I'm using below code in nest trader and it is showing good result for trading. I want to have an AFL so that I can use it in Amibroker.

BUY = EMA(CLOSE, 5) > SMA (CLOSE, 20) AND RSI (CLOSE, 21) < 40

SELL = EMA(CLOSE, 5) < SMA (CLOSE, 20) AND RSI (CLOSE, 21) > 60

BUY EXIT = RSI (CLOSE, 21) > 80
SELL EXIT = RSI (CLOSE, 21) < 30

===============
With 5 minute internal it is showing me below signal in Nest trader for nifty now.

10/24/2013 11:10 SHORT 6253.15
10/28/2013 13:55 EXIT SHORT 6114.25

I would greatly appreciate if someone can help me and create AFL which should show same result as mentioned above.

Thanks,
 

Similar threads