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

 

"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

 

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.

 
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!

 
cm69:
26994:
kimitrio:

very nice and clean

i have an idea

change...

Thanks!

Never thought I could get a fresh idea here!




:)

 
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!




:)


 
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.

Reason: