Download MetaTrader 5

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

To add comments, please log in or register
Have you installed MetaTrader 5? Find out more about it!
MetaQuotes Software Corp.
Moderator
181026
MetaQuotes Software Corp. 2011.10.03 15:01 

"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 2011.10.07 13:25  

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 2011.10.07 23:10  
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 2011.10.16 12:27  
cm69:
26994:
kimitrio:

very nice and clean

i have an idea

change...

Thanks!

Never thought I could get a fresh idea here!




:)

wolf1210
265
wolf1210 2011.12.28 18:58  
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 2016.02.02 07:39  
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