com.jfx.ErrTradeNotAllowed when orderSend

18 views
Skip to first unread message

asio

unread,
Mar 25, 2019, 11:58:16 AM3/25/19
to NJ4X Forum
Hello, I'm new with nj4x and trying to be able to send order using orderSend and I got this:

com.jfx.ErrTradeNotAllowed: orderSend(symbol=EURUSD, cmd=1, volume=1000.0, price=1.13219, slippage=0, stoploss=0.0, takeprofit=0.0, comment=140166, magic=0, expiration=1970.01.01 00:00) ->
        at com.jfx.MT4.orderSend(MT4.java:6662)

NJ4X API Support

unread,
Mar 25, 2019, 12:56:30 PM3/25/19
to NJ4X Forum
There may be several reasons for the 'Trade is not allowed' error 
- you are using investor's password for the account (instead of trader's password)
- a broker does not allow trading for that particular symbol (EURUSD)
- a broker does not allow trading for Expert Advisors (so you're able to send manual orders only)

пн, 25 бер. 2019 о 17:58 asio <asiye...@gmail.com> пише:
Hello, I'm new with nj4x and trying to be able to send order using orderSend and I got this:

com.jfx.ErrTradeNotAllowed: orderSend(symbol=EURUSD, cmd=1, volume=1000.0, price=1.13219, slippage=0, stoploss=0.0, takeprofit=0.0, comment=140166, magic=0, expiration=1970.01.01 00:00) ->
        at com.jfx.MT4.orderSend(MT4.java:6662)

--
You received this message because you are subscribed to the Google Groups "NJ4X Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nj4x+uns...@googlegroups.com.
To post to this group, send email to nj...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages