Forex MT4 error notifications.

No comment 44 views

Ordersend Error 134 – Err_not_enough_money

If you’re getting the MT4 error: Order send Error 134, it means you should not have sufficient money in your account to position an order with the given lot measurement. What must you do?

Order ship error 134 tends to occur so much when individuals code Expert Advisors with a money Management model that will increase lot sizes reminiscent of Martingale. Finally, the lot measurement will get too massive and also you should not have sufficient margin to position the trade. This could additionally occur over time in case your account balance will get too low or if you choose too massive of so much measurement.

The error happens if you attempt to place the trade, thus it’s an “order send error”. To forestall this error you may test your account free margin earlier than trying to position a trade. To do that you’ll use the perform, AccountFreeMarginCheck():

double AccountFreeMarginCheck(string image, int cmd, double quantity)

Returns out there margin that is still after the desired place has been opened on the present price on the present account. If the free margin is inadequate, an error 134 (ERR_NOT_ENOUGH_MONEY) can be generated.

Parameters:

  • image – Image for trading operation.
  • cmd – Operation sort. It may be both OP_BUY or OP_SELL.
  • quantity – Variety of {lots}.

an instance could be:

One other perform you should utilize to seek out the remaining margin is:

Double AccountFreeMargin( )

This returns the free margin worth of the present account.

The next instance prints out the free margin on your account:

Print(“Free margin is = “,AccountFreeMargin());

 

Forex Signal 30 is the best forex system since 2009 and has been used by thousands of traders from around the world to generate profit in forex trading. This system is created by our team of Brilliant Forex Signal Team, this system is made as simple as possible for beginner and professional traders.