Help with AFL coding please.

#1
Hi guys .
I started technical day trading way back in 2007 for a year or so got good returns but had to switch to regular work (business) as I completed my engineering .
Now for last one year I am again spending time as I am much settled in terms of business and feel day trading improved much from there on . Then I started learning AFL as I have basics of programming.
But I am really not able to come over a point where my code’s getting halted.


I want to trade in
5 min timeframe
buy when
MA(7) is above MA(20) in 5m timeframe.
RSI(14) is above 50 in 5 min timeframe.
Given that the below conditions are also met.
MA(18) is above MA(50) in daily timeframe.
MA(50) is above MA(100) in daily time frame.
SELL the BUY signal
when the supertrend(11,1.5) crosses above close in 5m timeframe.
I have the codes for supertrend. Similarly for the short when
MA(7)is below MA(20) in 5m timeframe.
RSI(14) is below 50 in 5 min timeframe.
Given that the below conditions are also met.
MA(18) is below MA(50) in daily timeframe.
MA(50) is below MA(100) in daily time frame.
when the supertrend(11,1.5) crosses below close in 5m timeframe.
Kindly please help if you are accustomed to AFL programming. It’s not that I can’t afford to get it written from someone but I want to learn AFL doing it on my own.
 
#3
Waiting for someone to help me out
Hi guys .
I started technical day trading way back in 2007 for a year or so got good returns but had to switch to regular work (business) as I completed my engineering .
Now for last one year I am again spending time as I am much settled in terms of business and feel day trading improved much from there on . Then I started learning AFL as I have basics of programming.
But I am really not able to come over a point where my code’s getting halted.


I want to trade in
5 min timeframe
buy when
MA(7) is above MA(20) in 5m timeframe.
RSI(14) is above 50 in 5 min timeframe.
Given that the below conditions are also met.
MA(18) is above MA(50) in daily timeframe.
MA(50) is above MA(100) in daily time frame.
SELL the BUY signal
when the supertrend(11,1.5) crosses above close in 5m timeframe.
I have the codes for supertrend. Similarly for the short when
MA(7)is below MA(20) in 5m timeframe.
RSI(14) is below 50 in 5 min timeframe.
Given that the below conditions are also met.
MA(18) is below MA(50) in daily timeframe.
MA(50) is below MA(100) in daily time frame.
when the supertrend(11,1.5) crosses below close in 5m timeframe.
Kindly please help if you are accustomed to AFL programming. It’s not that I can’t afford to get it written from someone but I want to learn AFL doing it on my own.
WHICH VERSION OF AMIBROKER ARE YOU USING ?
 

Similar threads