Looking for Fractals Trailing SL EA

 

Does anyone has a Trailing SL EA using fractals?

Was looking for the code to return the latest UP/DN Fractal to use as a trailing SL.

If you have the code fort the fractal or an EA already doing this, may you please share it.

Any help is appreciated, thank you.

Files:
 

I am also searching for one ,exactly as you described .


Did you find any???

fractal trailing stop with Ichimoku ea.png
 
I_Need_Money:

Does anyone has a Trailing SL EA using fractals?

Was looking for the code to return the latest UP/DN Fractal to use as a trailing SL.

If you have the code fort the fractal or an EA already doing this, may you please share it.

Any help is appreciated, thank you.

Hi,

The following codes return the last fractal candle number, use this script in your code:

//=======================================
 int Return_Last_Fractal_Up()
 {
 int intShift=0;
 double dblLastFractalUp=0;
 do
  { intShift++;
   dblLastFractalUp=iFractals(_Symbol,Period(),MODE_UPPER,intShift);}
 while(dblLastFractalUp==0);
 return intShift;
 }
//=======================================
 int Return_Last_Fractal_Down()
 {
 int intShift=0;
 double dblLastFractalDown=0;
 do
  { intShift++;
   dblLastFractalDown=iFractals(_Symbol,Period(),MODE_LOWER,intShift);}
 while(dblLastFractalDown==0);
 return intShift;
 }