Creating an option property

Considering the market volatility, we need to be a bit more realistic, because any longer-term prediction is quite unreliable. The reason is that it would fall outside the constraint of the discrete Markov model. So, suppose we want to predict the price for next two days—that is, N= 2. That means the price of the option two days in the future is the value of the reward profit or loss. So, let us encapsulate the following four parameters:

  • timeToExp: Time left until expiration as a percentage of the overall duration of the option
  • Volatility normalized Relative volatility of the underlying security for a given trading session
  • vltyByVol: Volatility of the underlying security for a given trading session relative to ...

Get Scala Machine Learning Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.