Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/28/24 09:55
basik85278
by basik85278. 04/28/24 08:56
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (Quad, AndrewAMD), 722 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Zorro Futures Options (FOP) Asset loop help please #488030
01/01/24 05:15
01/01/24 05:15
Joined: Sep 2021
Posts: 12
A
avy Offline OP
Newbie
avy  Offline OP
Newbie
A

Joined: Sep 2021
Posts: 12
Hi all,
Please any one used Zorro to trade futures options ? e.g. /ES or /MES or /NQ ? I am trying to construct asset loop "while(asset(loop("ES","MES","NQ"))) " but the problem is futures expiry is every 3 months ( Quarterly) and I want to trade weekly FOP for the same underlying For e.g. I want to trade 20240105 weekly expiry ES FOP for March 20240315 expiry FUT. I am confused as to how to address this in code within asset loop and able to accurately call correct weekly option chain , select correct strike price ( based on 30 delta) based on Quarterly FUT current price and accordingly manage assetVar for each assets within loop which i believe is automatically rotated by Zorro based on asset selected at the time subject to loop and asset is correctly set?

It is easy to write this for other assets like Index or stock options but futures options is a different challenge !? specially for newbies and no sample codes in Zorro's help file !

Please your help is very much appreciated. Thanks

Between -Happy 2024 everyone !

Cheers

Re: Zorro Futures Options (FOP) Asset loop help please [Re: avy] #488036
01/02/24 11:55
01/02/24 11:55
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
You can either use a specific symbol for a FOP that includes expiration and strike - see https://zorro-project.com/manual/en/symbol.htm. Or you download the options chain that includes all expiration and strike combinations, and select your FOP from the chain. For the options chain you only need the underlying symbol.

Re: Zorro Futures Options (FOP) Asset loop help please [Re: jcl] #488046
01/02/24 23:26
01/02/24 23:26
Joined: Sep 2021
Posts: 12
A
avy Offline OP
Newbie
avy  Offline OP
Newbie
A

Joined: Sep 2021
Posts: 12
Thank you so much for your help JCL , The preference is second option as i understand first option may need asset list for all possible options exipry & strike updated ? For the second option - which is to download options chain with all expiration : The underlying is futures symbol which is very specific and need expiry date so I will have to update Asset csv file with 4 quarterly futures expiry and call them from asset loop , the problem is due to future symbol having expiry date it only download specific expiry month options and not weekly e.g. quarterly futures expiry as an asset symbol would only download march expiry chain and not weekly expiry . Also is there a way to span across different futures ( e.g. two different futures assets - march expiry and June expiry ) to load options chain as for calender or diagonal spread strategies ? please your input and help is much appreciated . Thanks again

Cheers


Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1