Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (Edgar_Herrera), 1,111 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 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,718
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,718
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,718
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,718
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,718
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,718
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,718
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,718
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,718
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,718
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,718
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,718
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