Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, The_Judge, Grant), 898 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Significant difference in equity curve when Hedging 2 => 4 or 5 #447688
12/28/14 19:28
12/28/14 19:28
Joined: Sep 2013
Posts: 504
California
G
GPEngine Offline OP
User
GPEngine  Offline OP
User
G

Joined: Sep 2013
Posts: 504
California
During development and training of a strategy that uses several Algos and Assets, I set Hedging = 2. I am now trying to tune the money management part of the strategy. I am US based and will need to set the NFA flag. I am surprised (and sad) to see that changing Hedging to 4 or 5 nullifies the strategy. A somewhat steady profit (R2=.6) is turned into a loss.

I understand that system performance could be affected by the Hedging setting. But based on http://zorro-trader.com/manual/en/hedge.htm I expected the 2 equity curves to be "relatively similar".

What could be going on here?

Re: Significant difference in equity curve when Hedging 2 => 4 or 5 [Re: GPEngine] #448531
02/09/15 17:57
02/09/15 17:57
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
Probably easier to open an account in a country that allows hedging. Australia?

Re: Significant difference in equity curve when Hedging 2 => 4 or 5 [Re: Finstratech] #448534
02/09/15 19:54
02/09/15 19:54
Joined: Sep 2013
Posts: 504
California
G
GPEngine Offline OP
User
GPEngine  Offline OP
User
G

Joined: Sep 2013
Posts: 504
California
I am a patriot. laugh

Re: Significant difference in equity curve when Hedging 2 => 4 or 5 [Re: GPEngine] #448535
02/09/15 21:24
02/09/15 21:24
Joined: Apr 2014
Posts: 482
Sydney, Australia
B
boatman Offline
Senior Member
boatman  Offline
Senior Member
B

Joined: Apr 2014
Posts: 482
Sydney, Australia
Hard to say what might be going on with your strategy. Can you post it, or at least give us the general idea of how it works? Any intra-bar trades that could be affected by the TICKS flag?

Re: Significant difference in equity curve when Hedging 2 => 4 or 5 [Re: boatman] #448585
02/11/15 17:04
02/11/15 17:04
Joined: Jul 2000
Posts: 27,935
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,935
Frankfurt
I also think it's the intrabar trades - if they have a large effect on the result, the hedging simulation can be very inaccurate. You can find details under "Remarks" in the hedge description.

In such a case switch off virtual hedging for the test.

Re: Significant difference in equity curve when Hedging 2 => 4 or 5 [Re: jcl] #448597
02/12/15 04:33
02/12/15 04:33
Joined: Sep 2013
Posts: 504
California
G
GPEngine Offline OP
User
GPEngine  Offline OP
User
G

Joined: Sep 2013
Posts: 504
California
"In such a case switch off virtual hedging for the test."

I understand from the manual that there is a known risk of performance difference when using Hedge>=4 over Hedge 2. http://zorro-trader.com/manual/en/hedge.htm

If I use Hedge 2 in the backtest, then change to hedge 4/5 for Trade mode, at what point will I measure this risk? I guess I will just blindly realize the risk in live trading. That is not a way to get good sleep at night.

Alternatively, can Zorro's backtest for Hedge 4/5 be made accurate?

Last edited by GPEngine; 02/12/15 04:41. Reason: no need to quote the manual
Re: Significant difference in equity curve when Hedging 2 => 4 or 5 [Re: GPEngine] #448606
02/12/15 14:49
02/12/15 14:49
Joined: Jul 2000
Posts: 27,935
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,935
Frankfurt
Yes, it can, but it is not worth the effort. So I guess you must live and sleep with the risk.

Reason for the inaccuracy is testing speed. Every portfolio component is simulated separately, which leads to different intrabar opening and closing of pool trades as in real trading. This could of course be changed, but then testing would be much slower - and we didn't want to implement two different simulation modes just for this minimal issue. The advantage of accurate simulating virtual hedging in the backtest is normally negligible, compared to other simulation inaccuracy issues. In training mode virtual hedging is not used anyway.


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