Template using MT4

 

Hi,

I am looking for a way to easily changing the EA system to test around the conditions.

So is there any template or anyone has a template that can let us change a few lines so the conditions(1,2,3, etc) are met depends on different senerio. Also it is easier to change the condition to different one to test around. I saw such template in other forex platform, that's where the idea is from.

Thanks,

Regards.

 

MY

Something like this OTTOMH...?

extern int OpenTradeMode=1;
extern int CloseTradeMode=1;

start()
{


if(OpenTradeMode=1)
  {
   // Open with one critera - just an MA?

  }


if(OpenTradeMode=2)
  {
   // Open with two critera - two MA cross?

  }

if(OpenTradeMode=3)
  {
   // Open with three critera - two MA cross plus RSI?

  }

if(CloseTradeMode=1)
  {
   // Close with one criteria - two MA cross?

  }

if(CloseTradeMode=2)
  {
   // Close with two criteria - two MA cross plus CCI reversal?

  }


return(0);
}

Then run the Optimizer on the different values for the extern parameters

Good luck

-BB-

 

BarowBoy,

Thanks for the layout. Im a noob at MT4's language.

So in this template, I just put the conditions into each section. How about more advance feature, such as stop lose, trailing stop lose, time of day to start and end, take profit, and so on.

I was reading the template in article area, it seems MT4 can let me use other file without rewriting again just like other languages.

And last, how do you run the Optimizer, is it in the EA's terminal in MT4?

Thanks,

Regards.

Reason: