[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 151

 
Hello. Can you tell me where I can read more about compilation errors?
 

Looks like I'm "page duty" today...

//------------------------------------------------------

There don't seem to be any such descriptions separately. You have to sort it out on a case-by-case basis.

Take a look here for a start:

'When compiling, I get an error : '\end_of_program' - unbalanced left parenthesis C:\'

 
rid >> :

Looks like I'm "page duty" today...

young people everywhere! young people everywhere!

 
rid >> :

It looks like I'm on "page duty" today...

//------------------------------------------------------


Please help me apply the ClosePositions KIMA function No way

The code in

http: //forum.mql4.com/ru/11287/page87#186366

 
gince >> :

Please help me use the ClosePositions function.

The code in

http: //forum.mql4.com/ru/11287/page87#186366



Sorry, I couldn't resist... It's not working... I don't know how you can't... We are, after all, traders - literate people, not bums...

 
Alex5757000 >> :

Sorry, I couldn't resist... It's not working... I don't know how you can't... We're traders. Literate people, not bums.

If it is possible, do not be picky with words, especially to the non-Russian.

 
gince >> :

>> If you can, don't be picky about the words, much less the non-Russian one.

If so, that's forgivable. Now someone will help. (I'd love to do it myself, but not enough experience yet.)

 
gince >> :

Please help me use the ClosePositions function.

The code in

http: //forum.mql4.com/ru/11287/page87#186366

What's the problem? Decipher the -->\ What exactly is your problem?

 
Alex5757000 >> :

If so, it's forgivable. Someone will help you now. (I'd love to do it myself, but not enough experience yet...)

Thank you

 
gince >> :

Please help me use the ClosePositions function.

The code in

http: //forum.mql4.com/ru/11287/page87#186366



This function requires some of I.Kim's other functions to work in code.

But if the code compiles well, these other functions must be present in your code.

Consequently, the function works fine.

We can only assume that you have incorrectly set conditions for this function to work.

I.e. these functions

(CheckForClose_Buy()) and CheckForClose_Sell()

do not give a command to close positions!

Their values always equal zero.

Check if they work.

bool CheckForClose_Buy()
  {
  Indicat_Var();
  if ( ExistPositions( sy, OP_BUY, MagicNumber))
  {
  if( VininI_fast_trend == -1)return(true);   // Тут любое условие на закрытие
  //if(BB_MACD_2 > 0)return(true);           // Тут любое условие на закрытие
  else
  return(false);
  }  
  }
//------------------------
bool CheckForClose_Sell()
  {
  Indicat_Var();
  if ( NumberOfPositions( sy, OP_SELL, MagicNumber) >0)
  {
  if( VininI_fast_trend == 1)return(true);         // Тут любое условие на закрытие
  //if(BB_MACD_1 > 0)                             // Тут любое условие на закрытие
  //return(true);
  else
  return(false);  
  }
  }