Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/25/24 10:20
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (AndrewAMD, Quad, EternallyCurious, 1 invisible), 726 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
How to disable broker stops when running Z12 on Oanda #463917
01/06/17 11:17
01/06/17 11:17
Joined: Nov 2016
Posts: 9
K
kap Offline OP
Newbie
kap  Offline OP
Newbie
K

Joined: Nov 2016
Posts: 9
I am testing Z12 against an Oanda demo account.
Unfortunately, due to apparent bugs in Oanda plugin, broker stops are sometimes set incorrectly, causing order placement to fail.

In my own strategies I work around this by setting StopFactor to zero programmatically.
However I cannot do this with Z12 as I do not have the source code.

Is there a way to disable broker stops in the INI file?
Alternatively, can broker stops be fixed in the Oanda plugin?
I would be happy to help in that effort, though I would need source code to the Oanda plugin.

-K

Code:
[Thu 05.01.17 00:07] 4764 +0 -31 \\  1.0467/1.05411.0465/1.0532

Thursday 05.01.17  Loss -28.39 ----
[USD/CHF:VO:L8846] -5$ s1.0169 c1.0185 e1.0297
[USD/CAD:HP:L9488] -9$ s1.3127 c1.3285 e1.3427
[USD/JPY:VO:L0089] -6$ s113.68 c116.71 e118.06
[USD/CAD:CY:L5097] -8$ s1.3144 c1.3285 e1.3428
[USD/CAD:BB:L2088] -3$ s1.2987 c1.3285 e1.3319

AUD/USD 0.72980 0.00015  0.022 -0.351  0.00010 0.00010 0.0219  1.0 0.0
EUR/USD 1.05241 0.00015  -0.178 -0.047  0.00010 0.00010 0.0210  1.0 0.0
GBP/USD 1.23257 0.00025  -0.161 -0.083  0.00010 0.00010 0.0616  1.0 0.0
USD/CAD 1.32790 0.00020  -0.097 -0.137  0.00010 0.00008 0.0200  1.0 0.0
USD/CHF 1.01861 0.00022  0.068 -0.581  0.00010 0.00010 0.0300  1.0 0.0
USD/JPY 116.48000 0.01700  0.068 -0.178  0.01000 0.00009 0.0400  1.0 0.0
[Thu 05.01.17 04:07] 4762 +0 -33 \\  1.0531/1.05411.0511/1.0524
Stop 1.0169 hit by 1.0168/1.01681.0168/1.0168
BrokerSell USD/CHF: 1631 ms
[USD/CHF:VO:L8846] Stop 480@1.01685: -6.14 at 05:20:52
Entr 1.0297 Exit 1.0168 Spr 0.0002 Slp -0.27$ Rol 0.00$ Com 0.03$

[Thu 05.01.17 08:07] 4761 -6 -29 \\  1.0524/1.05761.0519/1.0552
BrokerSell USD/JPY: 1645 ms
[USD/JPY:VO:L0089] Sell 503@115.9340: -9.15 at 08:07:01
Entr 118.0590 Exit 115.9340 Spr 0.0160 Slp -0.17$ Rol 0.00$ Com 0.03$
Buy 1S AUD/USD Stop 0.0338 at 08:07:01
(AUD/USD:BB:S) Short 1273@0.73072 Entry limit
!Order: {
        "code" : 33,
        "message" : "Invalid stopLoss error: requested stopLoss is below price 0.7306",
        "moreInfo" : "http://developer.oanda.com/docs/v1/troubleshooting/#errors"
}
BrokerBuy AUD/USD: 574 ms
(AUD/USD:BB:S) 08:07 Can't open 1273@0.00000

[Thu 05.01.17 12:07] 4766 -15 -16 \  1.0552/1.05661.0483/1.0497
[Thu 05.01.17 16:07] 4749 -15 -34 \  1.0497/1.06101.0495/1.0605
[Thu 05.01.17 20:07] 4754 -15 -28 \  1.0607/1.06161.0587/1.0593
Buy 1L USD/CAD Stop 0.0320 at 20:07:01
(USD/CAD:CY:L) Long 765@1.32382 Entry limit
Buy 1S AUD/USD Stop 0.0350 at 20:07:01
(AUD/USD:BB:S) Short 1268@0.73385 Entry limit
BrokerBuy USD/CAD: 618 ms
[USD/CAD:CY:L8107] Long 765@1.32398 Risk 19$ ts at 20:07:28
Stop: 1.2920 Trail: 1.3560 TakeProfit: 0.0000
Units: 577.8688 Margin: 0.00 MCost: 0.0200 PCost: 0.00008
!Order: {
        "code" : 33,
        "message" : "Invalid stopLoss error: requested stopLoss is below price 0.7337",
        "moreInfo" : "http://developer.oanda.com/docs/v1/troubleshooting/#errors"
}
BrokerBuy AUD/USD: 598 ms
(AUD/USD:BB:S) 20:07 Can't open 1268@0.00000

[Fri 06.01.17 00:07] 4753 -15 -30 \\  1.0593/1.06141.0589/1.0601

Friday 06.01.17  Loss -13.59 ----
[USD/CAD:HP:L9488] -12$ s1.3127 c1.3236 e1.3427
[USD/CAD:CY:L5097] -11$ s1.3144 c1.3236 e1.3428
[USD/CAD:BB:L2088] -6$ s1.2987 c1.3236 e1.3319
[USD/CAD:CY:L8107] -0$ s1.2920 c1.3236 e1.3240

Buy 1S EUR/USD Stop 0.0367 at 00:07:01
(EUR/USD:CT:S) Short 892@1.06024 Entry limit
!Order: {
        "code" : 33,
        "message" : "Invalid stopLoss error: requested stopLoss is below price 1.0597",
        "moreInfo" : "http://developer.oanda.com/docs/v1/troubleshooting/#errors"
}
BrokerBuy EUR/USD: 609 ms
(EUR/USD:CT:S) 00:07 Can't open 892@0.00000
AUD/USD 0.73379 0.00015  0.023 -0.353  0.00010 0.00010 0.0220  1.0 0.0
EUR/USD 1.05918 0.00018  -0.178 -0.048  0.00010 0.00010 0.0212  1.0 0.0
GBP/USD 1.23932 0.00026  -0.161 -0.084  0.00010 0.00010 0.0620  1.0 0.0
USD/CAD 1.32544 0.00028  -0.097 -0.137  0.00010 0.00008 0.0200  1.0 0.0
USD/CHF 1.01101 0.00022  0.068 -0.584  0.00010 0.00010 0.0300  1.0 0.0
USD/JPY 115.69800 0.01500  0.068 -0.178  0.01000 0.00009 0.0400  1.0 0.0

[Fri 06.01.17 04:07] 4757 -15 -25 /\  1.0599/1.06011.0577/1.0592
[Fri 06.01.17 08:07] 4760 -15 -23 /\  1.0592/1.05921.0575/1.0589
Buy 1L USD/CAD Stop 0.0312 at 08:07:01
(USD/CAD:HP:L) Long 840@1.32626 Entry limit
BrokerBuy USD/CAD: 590 ms
[USD/CAD:HP:L7623] Long 840@1.32631 Risk 20$ ts at 08:07:28
Stop: 1.2951 Trail: 1.3575 TakeProfit: 0.0000
Units: 633.3743 Margin: 0.00 MCost: 0.0200 PCost: 0.00008


Re: How to disable broker stops when running Z12 on Oanda [Re: kap] #463920
01/06/17 16:55
01/06/17 16:55
Joined: Feb 2014
Posts: 73
Montreal, Qc Canada
F
Finstratech Offline
Junior Member
Finstratech  Offline
Junior Member
F

Joined: Feb 2014
Posts: 73
Montreal, Qc Canada
"Since about October 15, from time to time trades are rejected by Oanda due to a too high precision of the stop loss (fixed in V 1.51.9).
Setting a new stop loss of an open trade with exitLong/exitShort required that the trade already had a stop loss; it did not work for trades with no stop (fixed in V1.52.4). Workaround: enter the trade with a distant stop when you want to modify the stop loss afterwards with exitLong/exitShort."

http://zorro-trader.com/manual/en/new.htm

Last edited by Finstratech; 01/06/17 16:58.

Moderated by  Petra 

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

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

Powered by UBB.threads™ PHP Forum Software 7.7.1