It is not the volume, it is lack of margin.
William Roeder:
It is not the volume, it is lack of margin.
It is not the volume, it is lack of margin.
Sory, i'm a beginner, so I've probably not understanding something...
isn't lack of margin and volume linked ?
I thought that to solve a margin problem there were two solutions: Increase the account balance by adding money or reduce the volume of trades to require less margin. it's not that ?
Hi,
I've write a EA which correctly find signals but, when it try to open a trade, broker respond not enought money. The most probable cause is that the numbre of lots my EA try to buy/sell is too big. So i search to find the maximum number of lots i can buy/sell if my robot calculate a too big number of lots.
i've see CTrade::CheckVolume that seemed to answer my problem, but I still get the same error message after using this function...
here, my code :
Is someone can help me to obtain programmatically the higher number of lots accepted by my broker ?
thank you !