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
2 registered members (ozgur, TipmyPip), 722 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Using Option Chains at 1 Minute Intervals [Re: Robert_] #483252
05/12/21 18:01
05/12/21 18:01
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
No, there will be processing in between. Dataset A gets processed into A_proc. Then you append A_proc to B. Obviously, A_proc will be much smaller than A.

In processing it, your objective is to summarize what happened to each contract during the day.

Re: Using Option Chains at 1 Minute Intervals [Re: Robert_] #483254
05/12/21 19:44
05/12/21 19:44
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
Rereading your question, it looks like you are asking about daily history files being the final file, not "daily contract data" (i.e. one data point per day).

Sure, why not. But you'll need to run one backtest per t8 history file, so you'll need to set up batching.

Re: Using Option Chains at 1 Minute Intervals [Re: pieran] #483255
05/12/21 20:03
05/12/21 20:03
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
Originally Posted by pieran
History = strf("*_%s.t8", strdate("%Y-%m-%d",ldate(ET,0)));
By the way, this is illegal because History needs to point to a permanent and unchanging string, not a temporary string.

Re: Using Option Chains at 1 Minute Intervals [Re: Robert_] #483256
05/12/21 20:13
05/12/21 20:13
Joined: Jan 2021
Posts: 9
P
pieran Offline
Newbie
pieran  Offline
Newbie
P

Joined: Jan 2021
Posts: 9
basically what I am trying to do is to backtest an SPX option strategy on 1 min intervalls.
But I realized I cannot import the data as the dataset becomes too large...
And apparently zorro only allows for yearly history files.

Hmm, meanwhile I tried to load the contract data manually:
dataLoad(1, strf("SPX_%s.t8", strdate("%Y-%m-%d",ldate(ET,0))),9);

but ldate is in this case the actual date, not the historical date. I guess Zorro loads the "oldest" data it finds for the asset and runs from there. Trying to set StartDate did not help.

Re: Using Option Chains at 1 Minute Intervals [Re: Robert_] #483257
05/12/21 21:01
05/12/21 21:01
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
Actually, you're on the right track! You can dynamically load contract data as the test progresses.

I don't understand what problem you're having with dataload, though.

Re: Using Option Chains at 1 Minute Intervals [Re: Robert_] #483258
05/12/21 22:12
05/12/21 22:12
Joined: Jan 2021
Posts: 9
P
pieran Offline
Newbie
pieran  Offline
Newbie
P

Joined: Jan 2021
Posts: 9
I have found the problem. I only had the SPX .t8 files in History folder. But I need SPX .t6 files in the folder as well....

Re: Using Option Chains at 1 Minute Intervals [Re: Robert_] #483259
05/12/21 23:38
05/12/21 23:38
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
If you’re manually loading t8 files, you can locate them in any folder that you please.

Re: Using Option Chains at 1 Minute Intervals [Re: Robert_] #483265
05/13/21 14:28
05/13/21 14:28
Joined: Jan 2021
Posts: 9
P
pieran Offline
Newbie
pieran  Offline
Newbie
P

Joined: Jan 2021
Posts: 9
The Option chain is loaded into memory now but contractFind seems to have a problem. I can export the contract chain with contractPrint() and it looks ok.
Does contractFind pick the right contract depending on the timestamp of the chain?

Really having difficulties with intraday option data :-(

Re: Using Option Chains at 1 Minute Intervals [Re: Robert_] #483266
05/13/21 14:35
05/13/21 14:35
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
By default, it uses the current run() timestamp. Or you can override it by setting the Now variable to a particular time where you want to load contracts.
https://zorro-project.com/manual/en/contract.htm
https://zorro-project.com/manual/en/date.htm (Now)

Page 2 of 2 1 2

Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1