Amibroker formula coading help required

ksesha

Active Member
#11
Thanks Veeramuthu,
Will explore after market hours. Meanwhile a question after a quick glance on the sample AFL, Do I need to combine all the 4 and make one big AFL ?

i understand your requirement.
what you need is 4 different buy sell arrows in different colors in the same chart window. thats all.
This afl will help you. Use it in chart window.

If you don't know how to code, then write down your buy sell conditions here. I will modify the afl.
 
#12
Thanks Veeramuthu,
Will explore after market hours. Meanwhile a question after a quick glance on the sample AFL, Do I need to combine all the 4 and make one big AFL ?

Yes you need to combine all 4 strategy in single given afl.

Instead of

Short_SIDEWAYS =
(


TRIGGER_HIGH < SETUP_HIGH// 9 // INITIATE CONDITION
//AND
//PREVIOUS_HIGH1 < SETUP_HIGH// 7 // INITIATE CONDITION
AND
PREVIOUS_LOW1 < SETUP_LOW
//AND
//TRIGGER_LOW < SETUP_LOW



) ;

Buy_SIDEWAYS =

(

TRIGGER_LOW > SETUP_LOW// 9 // INITIATE CONDITION
//AND
//PREVIOUS_LOW1 > SETUP_LOW// 7 // INITIATE CONDITION
AND
PREVIOUS_HIGH1 > SETUP_HIGH
//AND
//TRIGGER_HIGH > SETUP_HIGH


) ;

you need to modify this with

Short_ema_cross_condition =
(
short ema conditions here
);

long_ema_cross_condition =
(
long ema conditions here
);

PlotShapes( IIF( Short_ema_cross_condition , shapeDownTriangle , shapeNone ), colorYellow,0,High_ARRAY , -40 , -1 );
PlotShapes( IIF( long_ema_cross_condition , shapeUpTriangle, shapeNone ), colorYellow,0,Low_ARRAY , -40 , -1 );


repeat the bold part again for other 3 indicators also.
 

ksesha

Active Member
#13
Yes you need to combine all 4 strategy in single given afl.

Instead of

Short_SIDEWAYS =
(


TRIGGER_HIGH < SETUP_HIGH// 9 // INITIATE CONDITION
//AND
//PREVIOUS_HIGH1 < SETUP_HIGH// 7 // INITIATE CONDITION
AND
PREVIOUS_LOW1 < SETUP_LOW
//AND
//TRIGGER_LOW < SETUP_LOW



) ;

Buy_SIDEWAYS =

(

TRIGGER_LOW > SETUP_LOW// 9 // INITIATE CONDITION
//AND
//PREVIOUS_LOW1 > SETUP_LOW// 7 // INITIATE CONDITION
AND
PREVIOUS_HIGH1 > SETUP_HIGH
//AND
//TRIGGER_HIGH > SETUP_HIGH


) ;

you need to modify this with

Short_ema_cross_condition =
(
short ema conditions here
);


long_ema_cross_condition =
(
long ema conditions here
);


PlotShapes( IIF( Short_ema_cross_condition , shapeDownTriangle , shapeNone ), colorYellow,0,High_ARRAY , -40 , -1 );
PlotShapes( IIF( long_ema_cross_condition , shapeUpTriangle, shapeNone ), colorYellow,0,Low_ARRAY , -40 , -1 );


repeat the bold part again for other 3 indicators also.
Thanks for the quick response. Is there any other way?