Experts: 10 pips

 

10 pips:

Trading without indicators!!!

Author: Юрий

 

hello;

i always try to use EA. But i couldnt run it. and i didnt understand why i cant run it. not only for this article i tried many EA sample but non of them works. I open the codes of your article. there is a section and it didnt completed maybe. I wrote codes below. and please tell me what should i write for initialization fucntion? and deinitialization function. Maybe this is the reason of why i cant run EA.

 

 

//+------------------------------------------------------------------+
//| expert initialization function                                   |
//+------------------------------------------------------------------+
int init()
  {
//----
  
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| expert deinitialization function                                 |
//+------------------------------------------------------------------+
int deinit()
  {
//----
  
//----
   return(0);

 

i´m missing something here.

you have a TP=10 pips and a trailing of 50 ????

When it moves 10 it takes profit.. so what is the trailing of 50 for?

 
Can someone add ability to trade multiple pair with HedgeCLoseOut feature so once account balance profit of X amount in % is reached all trades close out for the day?
 
Great code, but how to get the optimized result? Thanks.
 

Hi

I do not see a start() function. This is where all the action is. Generally you use the init() and the deinit functions for one off functionality you want to perform when the EA initialises or deinitialises respectively eg to create and clear buffers etc