Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, dr_panther), 821 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
WFO parameter change #486303
07/24/22 21:02
07/24/22 21:02
Joined: Jul 2022
Posts: 3
M
mun Offline OP
Guest
mun  Offline OP
Guest
M

Joined: Jul 2022
Posts: 3
Hello. I'm working through the tutorials and currently learning about the WFO feature. I tested it using a tranditional MA crossover strategy, optimising for the fast and slow MA periods. It has some perculiar behaviour - see attached image.

When a new WFO test period arrives the strategy parameters suddenly changes and crossOver() is triggered, even though the "crossover" happened artificially due to the WFO parameter change. I would have thought it is better if any open trades continue to use their old parameters until they exit, and any new trades are started only if there is a crossover of the new MA values, not if the old -> new MA lines cross.

I tried reading the Walk Forward help page in the manual but couldn't figure out a straightforward way to do this. I can probably ignore the first WFO bar (if (WFOBar == 0) return;) to avoid creating the new trades. But not sure how to exit the old trades using the old parameters? Maybe I have to store some metadata when opening trades like what params are needed to exit it, and only use the params the WFO cycle has given for opening new trades?

It's easy to see with an MA crossover strategy but in general I'm concerned it will cause subtle strangeness when the strategies are more complicated.

Attached Files Capture.png
Re: WFO parameter change [Re: mun] #486304
07/25/22 07:20
07/25/22 07:20
Joined: Apr 2008
Posts: 586
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 586
Austria
DataHorizon

https://zorro-project.com/manual/en/dataslope.htm

Won't help with exiting though, the fix for that would be closing all open trades. But I think no one would do that.

Re: WFO parameter change [Re: Petra] #486305
07/25/22 08:40
07/25/22 08:40
Joined: Jul 2022
Posts: 3
M
mun Offline OP
Guest
mun  Offline OP
Guest
M

Joined: Jul 2022
Posts: 3
I see, thank you Petra laugh


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1