Ordersend Error 134

Hi:
I am the newbie of the MT4.
the platform always shows that “not enough money”,but it show that there is 5000 when I use AccountFreeMargin() check the account(the account is demo account).

is there anyone can help me?

thank you very much!




What is the leverage on the account?

the accountleverage is 200, and the volume is 1

Hmm I don’t see anything wrong. I’d look at other parts of your code?

my code is very simple,

Hi ClarkFX:
that problem has been solved, the reason is that the type of the account is AUD but not the USD.
it didn’t show not enough money after applying for a new account.

thank you for your help!