Download MetaTrader 5

not enough money

To add comments, please log in or register
zifu wang
636
zifu wang  

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
15342
Biantoro Kunarto  

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
4361
Enrico Lambino  
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  
bicause CTrade does not minimum TP in your order. check up your TP.
To add comments, please log in or register