Download MetaTrader 5
To add comments, please log in or register
Track all payments in your profile. It is easy!
Ernie Gunning
1147
Ernie Gunning 2014.05.30 15:34 

Hi Guys,

I need to know what my max available lot size would be for my current position (having already one or more trades open)?  In MT5 I believe you could just call a method.

 So for example if I have 2 trades open, I then need the max value for lot size just before I will get error code 134 - Not enough money.

 

Please help or guide me in MT4

 

Thanks!! 

whroeder1
13627
whroeder1 2014.05.30 16:34  
ToolMaker: max available lot size would be for my current position (having already one or more trades open)?
You verify that there is available margin at the most adverse excursion (i.e. SL) for ALL open orders (and the new one.) See my code
/
To add comments, please log in or register