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
3 registered members (VoroneTZ, monk12, Quad), 829 guests, and 4 spiders.
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
Option Search using Delta #484254
09/26/21 10:50
09/26/21 10:50
Joined: Sep 2021
Posts: 12
A
avy Offline OP
Newbie
avy  Offline OP
Newbie
A

Joined: Sep 2021
Posts: 12
Hi,
Does anyone know the best way to search option chain using delta value ?? I am struggling a bit on this one , please your help be much appreciated . Thanks

Re: Option Search using Delta [Re: avy] #484257
09/26/21 15:45
09/26/21 15:45
Joined: Apr 2008
Posts: 585
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 585
Austria
Run a loop over all options, calculate Delta for any option and break out of the loop when it is close enough to your target delta.

Re: Option Search using Delta [Re: Petra] #484296
10/03/21 05:16
10/03/21 05:16
Joined: Sep 2021
Posts: 12
A
avy Offline OP
Newbie
avy  Offline OP
Newbie
A

Joined: Sep 2021
Posts: 12
Thanks Petra,

But that would be a theoretical value.
Delta is supplied by the broker using Get_Greek command. I want to be able to use if that would be possible, I think the problem is that I would need to run contractPrice () for every selected contract and it may take a lot longer. I am thinking if there is a way to download greeks using ContractUpdate or running contractPrice() once for option chain?? Thanks again

Last edited by avy; 10/03/21 05:17.
Re: Option Search using Delta [Re: avy] #484297
10/03/21 10:25
10/03/21 10:25
Joined: Apr 2008
Posts: 585
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 585
Austria
I know that at least with IB you had to call optionprice for any option to get the delta and it takes a looong time. For speeding up, get delta only for a few options and then interpolate.

Re: Option Search using Delta [Re: avy] #484636
11/23/21 07:00
11/23/21 07:00
Joined: Sep 2021
Posts: 9
Waikato
T
TimExcellent Offline
Newbie
TimExcellent  Offline
Newbie
T

Joined: Sep 2021
Posts: 9
Waikato
I'm having a similar conundrum... I had the Tradestation connection built for Zorro and shock horror... TradeStation does not deliver Greeks over the API. Ugh...

So for one strategy Im trying to specify I'm thinking of how I get around that issue where I have to calculate the Delta in high frequency perhaps. Basic intraday (preferentially on expiry day) strategy is buy a 50 Delta Put and Call (Straddle) within certain time windows. And because the trade is made on expiry day the pricing models are very unstable and some trades only last minutes sometimes less (I trade this manually at present).

So I am thinking I would need to create a high frequency options calculator of some kind (I'm not even sure if I should use some exotic calculator script, like a GARCH or something), store the results series and if a match up occurs in the live premium price delivered every second or minute then take a trade if the premiums arent to disparate for entry... exit is hard as well as sometimes on expiry day it can be done right in the last seconds of trading... so I'm not sure how or if it is possible to deal with this instability in pricing? Any thoughts or tips?

I'm just pretty sure I will need to calculate and store prices in the script or figure out a cheap and nasty way to quickly verify deltas or the premium to pay for puts and calls that match the 50 delta and then calculate the exit prices as well, this would need a fast clock in the script to measure the fractional expiry time.

Last edited by TimExcellent; 11/23/21 07:07.
Re: Option Search using Delta [Re: avy] #484640
11/23/21 10:09
11/23/21 10:09
Joined: Jul 2000
Posts: 27,977
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,977
Frankfurt
Delta calculation is fast, so it should be no problem to calculate it for the whole chain based on historical volatility, and store it in the fVal field. But you need the options prices, and that's a slow process with most brokers. I don't know how fast it is with Tradestation though.

Re: Option Search using Delta [Re: jcl] #484643
11/23/21 18:05
11/23/21 18:05
Joined: Sep 2021
Posts: 9
Waikato
T
TimExcellent Offline
Newbie
TimExcellent  Offline
Newbie
T

Joined: Sep 2021
Posts: 9
Waikato
Thanks!


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1