2 registered members (Akow, tomaslolo),
1,536
guests, and 12
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Oanda LotAmount in Trade Mode
[Re: JayWilly]
#484827
12/14/21 12:56
12/14/21 12:56
|
Joined: Sep 2020
Posts: 15 Toronto, Canada
JayWilly
OP
Newbie
|
OP
Newbie
Joined: Sep 2020
Posts: 15
Toronto, Canada
|
Now also getting another error message from Oanda:
"market_order_reject","rejectreason":"units_precision_exceeded","instrument":"eur_nok","timeinforce":"fok","positionfill":"reduce_only","reason":"trade_close","tradeclose":{"units":"5045.900000","tradeid":"464"}},"relatedtransactionids":["623"],"lasttransactionid":"623","errormessage":"the units specified contain more precision than is allowed for the order's instrument","errorcode":"units_precision_exceeded"} Error 075 [EUR/NOK:Trend:S00464] - close attempt 2, 50459@10.27 at 10:00:02
Decimal places not permitted for currency orders. Decimals only permitted for Index CFD because of the change earlier this year to lower minimums.
|
|
|
Re: Oanda LotAmount in Trade Mode
[Re: JayWilly]
#484871
12/21/21 18:49
12/21/21 18:49
|
Joined: Aug 2021
Posts: 101
MegaTanker
Member
|
Member
Joined: Aug 2021
Posts: 101
|
I thought the issue was resolved but maybe it isn't? With the new Oanda.dll, I reset the z12 instance I have running after getting the same error JayWilly reports above "the units specified contain more precision than is allowed for the order's instrument". I closed all trades and restarted everything, assuming this was happening with trades that were opened with the old plugin. But now it's happening with trades that were opened with the new plugin, too... !close: {"orderrejecttransaction":{"id":"x","accountid":"x","userid":x,"batchid":"x","requestid":"x","time":"2021-12-21t16:11:24.943373510z","type":"market_order_reject","rejectreason":"units_precision_exceeded","instrument":"gbp_usd","timeinforce":"fok","positionfill":"reduce_only","reason":"trade_close","tradeclose":{"units":"91.100000","tradeid":"478"}},"relatedtransactionids":["498"],"lasttransactionid":"498","errormessage":"the units specified contain more precision than is allowed for the order's instrument","errorcode":"units_precision_exceeded"}
[GBP/USD:NET:S00478] - can't close at attempt 0, 911@1.32409 at 16:11:22 Zorro tries to close 91.1 units. The open position is 911 units. The log also correctly prints that 911 Lots are supposed to be closed. But the order comes out wrong. This is with the new Oanda.dll posted in this thread, I made sure. And since this is a Z system, I can't fix this in the code. Version 2.40 Edit: Just want to add that the same instance managed to correctly close a USD/CAD position before that. Whatever that means.
Last edited by MegaTanker; 12/21/21 21:22.
|
|
|
|