Gamestudio Links
Zorro Links
Newest Posts
Get BMAP's filename...?
by Firoball
20 minutes 59 seconds ago
bone ang/pos
by 3run
Today at 15:41
Takeprofit and Stoploss
by sdelatorre
Today at 10:54
Save as .wmb
by Emre
Today at 05:57
Connors RSI implementation
by MatPed
Today at 00:37
multiple results graph in multi-asset scripts?
by SBGuy
Yesterday at 21:19
Verbose messages
by Sphin
Yesterday at 20:24
AUM Magazine
Latest Screens
Evonet Beta v1.0 : Online Project Development Template
Lake scene
Forgotten Tales - Demo version
RPG PARTY
Who's Online
13 registered (3run, JRA, alibaba, ChrstphFr, mig, AndrewAMD, MatPed, jyd, krial057, 1 invisible), 477 Guests and 6 Spiders online.
Key: Admin, Global Mod, Mod
Newest Members
bbn1982, selma, mbullied, Raisinbran, Grodt
17984 Registered Users
Topic Options
Rate This Topic
#473010 - 06/08/18 17:45 Oanda Margin error
tnktnns Offline
Guest

Registered: 12/22/16
Posts: 4
Hi everybody, I've been having trouble getting Zorro to activate even just 1 single trade with Oanda.
For some reason, as seen in this error message from running the TradeTest script, whenever Zorro tries to make a trade Oanda sends back an error saying my account has "Insufficient Margin"?
This is weird considering even trying to buy just 1 Unit of an instrument produces this response.
Quote:

Buy Long EUR/JPY
!Order: {"orderCreateTransaction":{"type":"MARKET_ORDER","instrument":"EUR_JPY","units":"1","timeInForce":"FOK","positionFill":"DEFAULT","reason":"CLIENT_ORDER","id":"259","userID":1450674,"accountID":"001-001-1450674-002","batchID":"259","requestID":"96482867575027876","time":"2018-06-08T15:28:34.475380373Z"},"orderCancelTransaction":{"type":"ORDER_CANCEL","orderID":"259","reason":"INSUFFICIENT_MARGIN","id":"260","userID":1450674,"accountID":"001-001-1450674-002","batchID":"259","requestID":"96482867575027876","time":"2018-06-08T15:28:34.475380373Z"},"relatedTransactionIDs":["259","260"],"lastTransactionID":"260"}
Error 075 ((EUR/JPY::L)): Can't open 1@128.76 at 15:28:35


What's going on? Have I set up something wrong? is there something I forgot to do?

I appreciate any help!


Edited by tnktnns (06/08/18 17:46)

Top
#473054 - 06/11/18 16:34 Re: Oanda Margin error [Re: tnktnns]
Spirit Offline
Moderator

Registered: 09/02/03
Posts: 762
"insufficient margin" means you must have enough capital on your account before you can trade.

Top
#473114 - 06/14/18 10:25 Re: Oanda Margin error [Re: Spirit]
tnktnns Offline
Guest

Registered: 12/22/16
Posts: 4
i put $2500 in my Oanda account to play around with, is that not enough?

thanks for the reply

Top
#473125 - 06/15/18 15:41 Re: Oanda Margin error [Re: tnktnns]
jcl Offline

Chief Engineer

Registered: 07/22/00
Posts: 26372
Loc: Frankfurt
Check if it's the right account; maybe it was a subaccount. If in doubt, contact Oanda support - they should be able to help.

Top
#473182 - 06/19/18 10:48 Re: Oanda Margin error [Re: jcl]
tnktnns Offline
Guest

Registered: 12/22/16
Posts: 4
Ah ha! That seems to be what's wrong: Zorro is trying to connect to my empty MT4 subaccount. Thanks a lot for the tip!

My question now, however, is how to direct Zorro to my primary account? Is there a separate/unique access token I need?

thanks again

Top
#473183 - 06/19/18 11:15 Re: Oanda Margin error [Re: tnktnns]
MatPed Online
Senior Member

Registered: 02/28/15
Posts: 442
Loc: Milano, Italy
If you use the api, just set the proper account number e the api key. Check the manual at the Oanda Plugin section.
Ciao

Top
#473203 - 06/21/18 11:29 Re: Oanda Margin error [Re: MatPed]
tnktnns Offline
Guest

Registered: 12/22/16
Posts: 4
Oh yeah That worked! i always thought the User field on Zorro was meant only for the general broker Username.

Thanks everybody for the help!

Top



Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de