can any body make this strategy afl code

Abhi1284

Active Member
#1
Dear Seniors,

Please make below strategy afl

When the 14 period ADA rises from below 15 to above 15 with a change in the ADX of 0.5 or more, a big trend might be underway.
A simple Parabolic Stop is used.

Let's look at the code as I use it in Genesis Trade Navigator:

For a Long Entry:
IF DMI plus (14 , 0) > DMI minus (14 , 0) And ADX (14 , 0) <= 15 And ADX (14 , 0) > ADX (14 , 0).1 And Next Bar DayOfWeek <> 3 And Next Bar WeekOfMonth <> 4

For Long Exit:
IF Crosses Below (Low , Parabolic (0 , 0.02 , 0.2))
Then Sell Market

For Short Entry:
IF DMI minus (14 , 0) > DMI plus (14 , 0) And ADX (14 , 0) <= 15 And ADX (14 , 0) > (ADX (14 , 0)).1 And Next Bar DayOfWeek <> 2

For Short Exit:
IF Crosses Above (High , Parabolic (0 , 0.02 , 0.2))
Then Sell Market



The Long Entry looks at a DMI Plus > DMI Minus and the ADX must be rising ADX > ADX.1 (= one bar ago)


Thanx
Abhishek
 

DSM

Well-Known Member
#4
Available in Sharekhan TT set of tools, in any time frames of your choice. BTW, I don't use AFL, as TT is live.

Dear Seniors,

Please make below strategy afl

When the 14 period ADA rises from below 15 to above 15 with a change in the ADX of 0.5 or more, a big trend might be underway.
A simple Parabolic Stop is used.

Let's look at the code as I use it in Genesis Trade Navigator:

For a Long Entry:
IF DMI plus (14 , 0) > DMI minus (14 , 0) And ADX (14 , 0) <= 15 And ADX (14 , 0) > ADX (14 , 0).1 And Next Bar DayOfWeek <> 3 And Next Bar WeekOfMonth <> 4

For Long Exit:
IF Crosses Below (Low , Parabolic (0 , 0.02 , 0.2))
Then Sell Market

For Short Entry:
IF DMI minus (14 , 0) > DMI plus (14 , 0) And ADX (14 , 0) <= 15 And ADX (14 , 0) > (ADX (14 , 0)).1 And Next Bar DayOfWeek <> 2

For Short Exit:
IF Crosses Above (High , Parabolic (0 , 0.02 , 0.2))
Then Sell Market



The Long Entry looks at a DMI Plus > DMI Minus and the ADX must be rising ADX > ADX.1 (= one bar ago)


Thanx
Abhishek
 

Similar threads