Download MetaTrader 5

Experts: "Build With Own Sketch" - LegoEA (or PanelOfSwitches)

To add comments, please log in or register
MetaQuotes Software Corp.
Moderator
192606
MetaQuotes Software Corp.  

"Build With Own Sketch" - LegoEA (or PanelOfSwitches):

Perfect solution for newcomers at coding. Allows to implement strategies with difficult stop-management. Yes, this thing need some "baking", i.e. editing, but you will like the result; especially if the strategy is already tested with hands.

Author: 26994

Farshad Saremifar
189
Farshad Saremifar  

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.

26994
154
26994  
kimitrio:


-(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!

26994
154
26994  
cm69:
26994:
kimitrio:

very nice and clean

i have an idea

change...

Thanks!

Never thought I could get a fresh idea here!




:)

wolf1210
295
wolf1210  
26994:hi do you have some manual for the EA? Wolfgschiller@web.de
cm69:
26994:
kimitrio:

very nice and clean

i have an idea

change...

Thanks!

Never thought I could get a fresh idea here!




:)


DenisMutuma
9
DenisMutuma  
Farshad Saremifar:

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.

To add comments, please log in or register