Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 02/21/26 19:15
Camera always moves upwards?
by clonman. 02/21/26 09:29
Zorro version 3.0 prerelease!
by TipmyPip. 02/20/26 13:22
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/19/26 13:22
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (USER0328, 1 invisible), 6,537 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
alx, ApprenticeInMuc, PatrickH90, USER0328, Sfrdragon
19199 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Can I test only the first 5 minutes of ticks for each day? #483730
07/18/21 13:57
07/18/21 13:57
Joined: Jul 2021
Posts: 8
T
TalonTrades Offline OP
Newbie
TalonTrades  Offline OP
Newbie
T

Joined: Jul 2021
Posts: 8
I'm working on a market opening strategy that uses tick data and 1 second bar logic, but only for the first five minutes of regular trading hours.

Testing takes a long time, I suspect because the ticks for the entire day are being processed.

Is there a way for the test to process only the first 5 minutes of data?

I set StartMarket = 930; and EndMarket = 935; but this does not seem to help.

Here is the relevant parameter setup I'm using now:

Code
function run()
{
	set(TICKS);
	History=".t1";
	StartDate = 20210515;
	EndDate = 20210716;
	BarPeriod = 1./60;
	MaxLong = MaxShort = 1;

        ...
}

Last edited by TalonTrades; 07/18/21 14:02.
Re: Can I test only the first 5 minutes of ticks for each day? [Re: TalonTrades] #483733
07/19/21 12:27
07/19/21 12:27
Joined: Jul 2000
Posts: 28,074
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,074
Frankfurt
There is no direct command to suppress bars. I can think of two solutions:

-After the 5 minutes have passed, skip all bars until the next hour: Bar += 60/BarPeriod. This is a hack and I don't know if it works, but you can try it.
- Produce a special history that only contains the first 5 minutes of any day, and afterwards only one bar per hour. That's normally the best solution since it saves memory.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1