Gamestudio Links
Zorro Links
Newest Posts
How to select between IB accounts by script?
by Jack_Zodiac. 06/12/26 23:17
Zorro tutorial ideas?
by pr0logic. 06/12/26 13:36
Max Number of Strategies in /Strategy folder
by Martin_HH. 06/12/26 08:50
Stooq now requires an API key
by AndrewAMD. 06/11/26 17:55
Z9 getting Error 058
by k_ivan. 06/10/26 14:38
ZorroGPT
by TipmyPip. 06/10/26 13:07
Z12 live performance
by alx. 06/09/26 20:42
Lapsa's very own thread
by Lapsa. 06/08/26 22:41
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
3 registered members (Quad, TipmyPip, pr0logic), 2,041 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Student_64151, Koti, curry, DeepxKalsi, Samed
19219 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: 9
11honza11 Offline OP
Newbie
11honza11  Offline OP
Newbie

Joined: Apr 2024
Posts: 9
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: 600
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 600
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: 9
11honza11 Offline OP
Newbie
11honza11  Offline OP
Newbie

Joined: Apr 2024
Posts: 9
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: 28,101
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,101
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: 9
11honza11 Offline OP
Newbie
11honza11  Offline OP
Newbie

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


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1