Switching strategy 180 degrees

Discussion in 'Options' started by earth_imperator, May 19, 2023.

  1. Sorry, it's proprietary code of a small company where I'm one of the code developers.

    As said it uses the YF API. You can find the prices and subscription link in the above given link, then use the language of your choice for calling the API (for example via the curl tool or the wget tool etc.) and further processing the received data...
     
    Last edited: May 26, 2023
    #21     May 26, 2023
  2. traider

    traider

    It looks like a mission worthy of CHAT GPT!
     
    #22     May 26, 2023
  3. :) Nope, there is zero AI in this tool :) It's just using simple filtering, here ATM_IV <= 35. That's it. :)
    Of course it has first to find the ATM strike, but that's trivial...
     
    #23     May 26, 2023
  4. vanzandt

    vanzandt

    Of course he has, he knows everything.
    Except how to make money trading.

    OT Edit:
    I think the Frogs patented that transmission (on their tanks) long before you had this idea.
     
    #24     May 27, 2023
    BlueWaterSailor likes this.
  5. traider

    traider

    YF API doesn't give you IV. Did you use some library to calculate it? How do you adjust for half a day and holidays ?
     
    #25     May 27, 2023
  6. This is not true. Here's an example showing the IV: "impliedVolatility" (you have to multiply it by 100):
    Code:
                  {
                    "contractSymbol": "AMD230616P00120000",
                    "strike": 120,
                    "currency": "USD",
                    "lastPrice": 6.15,
                    "change": -6.8399997,
                    "percentChange": -52.655888,
                    "volume": 2623,
                    "openInterest": 339,
                    "bid": 6.05,
                    "ask": 6.1,
                    "contractSize": "REGULAR",
                    "expiration": 1686873600,
                    "lastTradeDate": 1685033181,
                    "impliedVolatility": 0.5039112109375,
                    "inTheMoney": true
                  },
    
    Sorry, I don't understand. Why holidays?
    FYI: the IV is for the latest top-of-the-book Bid/Ask.
    Therefore there is IMO nothing special to do with them, see above.
    And: this is just "current" snapshot data (at the time of the downloading), not a historical bar data like EOD covering the whole day.

    Although IV is already present in the YF API data, I still do also my own calculations b/c some Bid/Ask in the orderbook contain invalid values, for example Ask of a Put that is greater than the strike (which is impossible for a Put option).
    IV is computed from the Bid/Ask, then when fixing Bid/Ask then one of course needs to re-calculate the IV. See also this thread regarding these issues.
     
    Last edited: May 27, 2023
    #26     May 27, 2023
  7. :D

    I first heard that one about the Russian tanks the Arabs used in the Six-Day War. Hadn't been thinking about it here - at least not consciously - but it probably sneaked up from my hippocampus...
     
    #27     May 28, 2023
    vanzandt likes this.
  8. Or possibly leave the car in place and spin the Earth such that the destination comes toward me? Hmmm. Seems like a reasonable strategy... at least compared to the original one. :sneaky:
     
    #28     May 28, 2023
    spy likes this.