I am also searching for one ,exactly as you described .
Did you find any???
fractal trailing stop with Ichimoku ea.png
Files:
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; }
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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.