ea fractal??

 
how to make ea based on fractal ???
 
it's very easy when fractal appears enter trade sl = fractal price exit on fractal in opposite direction
 
breakout or reverse
 
Bernando Delano:
how to make ea based on fractal ???

I have same problem ...!!!

Hai Anyone know How to made EA with Fractals 

double Up_Fractal=iFractals(NULL,0,MODE_UPPER,0); 

double Down_Fractal=iFractals(NULL,0,MODE_LOWER,0);  

NEED HELP Please 

 
 
lol
 

ROFTL

guys fractals are based on 3 candles

just shift 3 candles back check if value is >0 and there you go

 
Cai Liang:

I have same problem ...!!!

Hai Anyone know How to made EA with Fractals 

double Up_Fractal=iFractals(NULL,0,MODE_UPPER,0); 

double Down_Fractal=iFractals(NULL,0,MODE_LOWER,0);  

NEED HELP Please 

As fractals require 2 closed bars before drawing the fractal, bar 0 or 1 will never show a value

eg:

   double val;
   int x;
   for(x=1;x<100;x++)
     {
     val=iFractals(Symbol(),0,MODE_UPPER,x);
     if(val>0)
       break;
     }
   Print("Shift=",x," value=",DoubleToStr(val,Digits));
 
I think i saw in Code Base Fractal EAs https://www.mql5.com/en/code/8053
FX-CHAOS_SCALP
FX-CHAOS_SCALP
  • votes: 5
  • 2008.05.18
  • Pavel
  • www.mql5.com
Draft daily trend-following EA that trades using ZIGZAG-FRACTALS on high/low of the preceding bar on a one-hour chart. TakeProfit is 13 points.
 
Bernando Delano:
how to make ea based on fractal ???

An example from inside an EA :

   MqlParam params[];
   int handle = IndicatorCreate(_Symbol, Period(), IND_FRACTALS, 0, params);


Then the following article will help you (as it helped me a lot for coding a fractals based EA) :

https://www.mql5.com/en/articles/1201

Plotting trend lines based on fractals using MQL4 and MQL5
Plotting trend lines based on fractals using MQL4 and MQL5
  • 2015.05.06
  • Almat Kaldybay
  • www.mql5.com
The article describes the automation of trend lines plotting based on the Fractals indicator using MQL4 and MQL5. The article structure provides a comparative view of the solution for two languages. Trend lines are plotted using two last known fractals.