Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, 7th_zorro), 923 guests, and 3 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
M1 Oversampling #488206
04/20/24 20:57
04/20/24 20:57
Joined: Apr 2024
Posts: 4
11honza11 Offline OP
Guest
11honza11  Offline OP
Guest

Joined: Apr 2024
Posts: 4
Hi,

Is there any possibility to oversample 1 minute chart with M1 data? Per-bar is not possible, obviously. Can I use per-cycle? Doc says almost nothing about that, how does it work and for what is it useful. Are there other methods?

Re: M1 Oversampling [Re: 11honza11] #488212
04/24/24 10:34
04/24/24 10:34
Joined: Apr 2008
Posts: 586
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 586
Austria
Sure, for instance use NumSampleCycles = 4; and SampleOffset = 60; for 4 cycles with 1 hour start time difference each.

Re: M1 Oversampling [Re: Petra] #488219
04/26/24 08:32
04/26/24 08:32
Joined: Apr 2024
Posts: 4
11honza11 Offline OP
Guest
11honza11  Offline OP
Guest

Joined: Apr 2024
Posts: 4
Hi Petra,

Thank you for answer. Can you please elaborate how time offset makes different price curves needed for oversampling? I made a quick test and it seems it does not. It only runs _n_ cycles with time offset as you mentioned, and according to docs SampleOffset is used for a histogram of the performance dependent on start time, rather than generating slightly different price curves.

I'm sorry if I wasn't clear in the original question, but I try to achieve this:
Oversampling the bars is a method to run multiple test cycles on slightly different price curves that are derived from the original curve and contain the same inefficiencies. This produces more trades, generates more realistic backtests, and allows to evaluate the effect of price curve randomness on the system performance.

Last edited by 11honza11; 04/26/24 08:36.
Re: M1 Oversampling [Re: 11honza11] #488223
04/26/24 11:12
04/26/24 11:12
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
It depends on your strategy if per cycle oversamping makes sense. For instance, when your strategy trades at fixed times, all cycles will obviously have the same trades and you need no oversampling.

Re: M1 Oversampling [Re: 11honza11] #488233
04/30/24 08:16
04/30/24 08:16
Joined: Apr 2024
Posts: 4
11honza11 Offline OP
Guest
11honza11  Offline OP
Guest

Joined: Apr 2024
Posts: 4
You're right, it makes more sense now. Thanks.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1