MT5-The value in the variable is not suitable (how to convert it to an integer)

 

Please write the code for this problem I have


The variable is in red

double MyLot = (Mybalance * 0.02)  /  0.0015 ; 

The next line is not executed because the value in the variable is not appropriate

Example My Balance Now 985$ :
 (985 * 0.02) / 0.0015 = 13133 which is suitable for the size of a lot (give me a code to solve this problem only and I thank you

  trade.Buy( MyLot  ,NULL,Ask,Ask - (100 * _Point),Ask + (300 * _Point),"test");


Thank you

 

Don't double post! You already had another thread open.

          General rules and best pratices of the Forum. - General - MQL5 programming forum (2017)