Download MetaTrader 5
To add comments, please log in or register
All MQL5.community events are grouped together. Have a look at the Wall!
zifu wang
636
zifu wang 2014.10.09 08:38 

Dear All,

ACCOUNT BALANCE:10000. 00 USD

Tried to place an oder through EA. 

CTrade::OrderSend: instant buy 10.00 EURUSD at 1.27443 tp: 1.28443 [not enough money] 

Got an error:not enough money

why? please advise. 

Biantoro Kunarto
14612
Biantoro Kunarto 2014.10.09 09:41  

if you buy 10 lot EURUSD at 1.27443 with leverage 1:100 then your account isn't enough:

margin required = 10 x 100.000 x 1.27443 /100 = 12744.3 > 10000

Enrico Lambino
4280
Enrico Lambino 2014.10.10 21:08  
CTrade does not check the margin before sending the order. You will need an instance of CAccountInfo to get the amount of margin required and then compare it with the amount of useable margin.
candra_a
36
candra_a 2014.10.10 21:23  
bicause CTrade does not minimum TP in your order. check up your TP.
/
To add comments, please log in or register