Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (vicknick, howardR, sleakz), 674 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 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: 27,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
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