Giter Site home page Giter Site logo

Parameters selection about optopsy HOT 5 CLOSED

michaelchu avatar michaelchu commented on May 23, 2024
Parameters selection

from optopsy.

Comments (5)

michaelchu avatar michaelchu commented on May 23, 2024

Hi Valdimir,

Thanks for your interest in the project, you are right in that it is possible to run a backtest without "leg1_delta" parameter. However, my intention here is that even though you can theoretically use any parameter, when creating spreads there should be at least one parameter that specifies approximately where the legs should be. These parameters can relate to delta, price percentage, spread price, etc.

I happen to chose delta as i thought it would be the most likely used param to specify such information. I am open to expanding it, perhaps it would better to whitelist certain params that makes sense for the spread?

from optopsy.

erv4gen avatar erv4gen commented on May 23, 2024

The problem with a delta is that it usually finally known only after the market is closed. So it's not the most reliable parameter to specify the spread.
I'd rather use price-related parameters (price percentage, spread price, leg price, etc) for minimal required parametes.

from optopsy.

michaelchu avatar michaelchu commented on May 23, 2024

Do you happen to have intraday options data to test with? I have EOD options data, so delta would have been calculated and usable for me.

from optopsy.

erv4gen avatar erv4gen commented on May 23, 2024

I use EOD data as well. The problem is that all greeks in the EOD dataset are recalculated after market close. That means that we can figure out the where or not the spread should be open only when the market is close already.
Using price percentage/spread price and other price-related parameters will be more realistic, imho

from optopsy.

michaelchu avatar michaelchu commented on May 23, 2024

Good point,

i will turn this into an issue and address this in a future release.

from optopsy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.