Lean icon indicating copy to clipboard operation
Lean copied to clipboard

Select Option Contracts Based on Greeks

Open jaredbroad opened this issue 7 years ago • 12 comments

Option universe selection selects on price, strikes etc now but Valery requests Option Contracts selected on Greeks / Implied Volatility. Currently these are calculated in inline -- so we don't have them available at universe selection time.

jaredbroad avatar Jan 31 '18 15:01 jaredbroad

Select option contracts by Open Interest, Volume.

isobretatel avatar Jan 31 '18 15:01 isobretatel

I'd also like to see support for this. Any update?

nkabram avatar Jan 02 '21 21:01 nkabram

+1 to this. Any progress?

ikamanu avatar Jan 15 '21 09:01 ikamanu

+1 on this

kbsaravana avatar Feb 16 '21 15:02 kbsaravana

+1 on this too

kfeldspar avatar Jul 10 '21 21:07 kfeldspar

+1 on this also. How's the progress?

YukaLangbuana avatar Sep 21 '21 18:09 YukaLangbuana

+1!

mattmcwaters avatar Mar 23 '22 01:03 mattmcwaters

Any update on this? Running option strategies on many securities is quite slow as I want to trade a specific delta, or a specific premium, which OptionChainProvider doesn't easily allow for.

For instance, the strikes can expand greatly in high vol/high vix eras, for instance today the $0.50 SPX put expiring in two days was the 3,500 strike with SPX trading around 4155. The market was selling these deep puts for that much premium and there would be no way I'd guess I'd have to go that deep for a $0.50 put were I to use OptionChainProvider to optimize and speed things up.

rjmig88 avatar May 03 '22 06:05 rjmig88

Looking forward to seeing this :)

rafael-trevisan avatar Jun 11 '22 19:06 rafael-trevisan

Plan is:

  • Standardize options and futures to use universe data files like the rest of LEAN(https://github.com/QuantConnect/Lean/issues/6861)
  • Create the options universe files with the greeks precalculated and passed in as part of their filtering options.
  • Calculation of daily options universe as a LEAN Data stack job.

It's a heavy project and will require gutting thousands of lines of code but will dramatically standardize the internals of LEAN universes which is very exciting.

jaredbroad avatar Feb 17 '23 23:02 jaredbroad

Side effects of the plan:

  • Filtering will be every day instead of every minute, but it's too much churn and noise for most people so we don't think people will care really. Anyone impacted can just set a wider strike range.
  • Much faster options backtesting.

jaredbroad avatar Feb 17 '23 23:02 jaredbroad