Hi,
What is the code to detect if an upper or lower fractal has just emerged in the previous bar?
What is the code to detect if an upper or lower fractal has just emerged in the previous bar?
Alert on Fractals (MT) 2 replies
How to use this indi with the 4TF fractals strategy? 1 reply
how to use fractals? 6 replies
EA wanted for sound alert depending on fractals condition 2 replies
Fractals Edge Fx 3 replies
int i = 3, j = 3 , timeframe = *your choice*; while(iFractals(Symbol(),timeframe,MODE_UPPER,i) == 0) i++; while(iFractals(Symbol(),timeframe,MODE_LOWER,j) == 0) j++; double upFractal = iFractals(Symbol(),timeframe,MODE_UPPER,i), downFractal = iFractals(Symbol(),timeframe,MODE_LOWER,j);
double FractalsUpper = iFractals(NULL, 0, MODE_UPPER, Current + 2); double FractalsLower = iFractals(NULL, 0, MODE_LOWER, Current + 2);
if (buyFlag == false && iFractals(NULL, 0, MODE_UPPER, Current + 2) != 0) { Order = SIGNAL_CLOSEBUY; }
if (sellFlag == false && iFractals(NULL, 0, MODE_LOWER, Current + 2) != 0) { Order = SIGNAL_CLOSESELL; }