very nice and clean
i have an idea
change
extern bool ATR_SL = false;
to:
extern int ATR_SL = 0;
and then change all the if statements like this:
if(ATR_SL==true && iATR(NULL,0,ATR_Period,1)>=ATR_Reach)
to :
if(ATR_SL==1) { if( iATR(NULL,0,ATR_Period,1)>=ATR_Reach)) { ...... } }
this will help you to make lego by optimizing all parameters and test different combination,
i have tested that separating if statements will increase the speed of backtesting and optimizing.
-(wiped)--
...this will help you to make lego by optimizing all parameters and test different combination,
i have tested that separating if statements will increase the speed of backtesting and optimizing.
Thanks!
Never thought I could get a fresh idea here!
very nice and clean
i have an idea
change...
Thanks!
Never thought I could get a fresh idea here!
:)
very nice and clean
i have an idea
change...
Thanks!
Never thought I could get a fresh idea here!
:)
very nice and clean
i have an idea
change
to:
and then change all the if statements like this:
to :
this will help you to make lego by optimizing all parameters and test different combination,
i have tested that separating if statements will increase the speed of backtesting and optimizing.
I'm getting error messages after making the changes. Kindly help, I'm a beginner.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
"Build With Own Sketch" - LegoEA (or PanelOfSwitches):
Author: 26994