Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 600 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, 11honza11, ccorrea, sakolin, rajesh7827
19046 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,978
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

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