Options App

Marcas

Active member
Some time ago, on TG1, I showed a program that I've used to learn about options. Lately I reopened this code. It was meant to be an exercise in coding and a way to take my mind off other project that I was working for a long time, but it turned out into a decent project in itself.

I put current state of the project on-line for others to look at and to play with it.
Project is called "Options Playground" and sits on Heroku, which offers free web-hosting.

Because it is free, there are some limitations. One of them is that, when unused, website goes dormant and it may take up to a minute for the app to wake the up. After that it works ok.
I guess there is small learning curve but nothing complicated. There are still some loose ends in the app but core functionality is there. I hope some may find it helpful.

I'd appreciate any comments.

 
Last edited:

Marcas

Active member
Upps, and here we go...
Spelling error in the title. I leave it as is for now but it is called "Options Playground" not "Optios" :)
 

tom

Administrator
Staff member
Hi Marcas. Let me know if you want some help with hosting it. I have a few servers I can put it on.
 

Marcas

Active member
Hi Tom, thanks for the offer.
I surely can use help because I don't have experience in web applications. The one I posted is very basic and Heroku did much for me re setting web environment.

If there is interest we can place this app on your server for better user experience. If there is no interest... I'm still interested in help but... :)
Be aware that this is python based app.
 

Marcas

Active member
Well...
There are three approaches I can take to answer your question. I can talk code, mechanics and application.

This is not a place to talk about code, imo.
Application... this is large topic. All depends on person's knowledge and needs. I can imagine that for some it may be pretty useless app, I also can imagine that it may cause a trader to change his whole trading philosophy. I'd rather leave this for now.

So, mechanics it is.
Before that briefly about ideas behind OPG (Options Playground).
I make it because my trading approach changed and trying to use TOS became more and more tedious, meaning a lot of action was required to get desired info. Yes, you can get the same (within a reason) output OPG offers from TOS but you need to know what you are looking for and have a lot of patience. I wanted something to get me data quick. reducing number of clicks was one of my goals when designing.

Basic idea is this.
First volatility skew is created. From this prices and graphs are calculated. You control the skew and observe changes to the structure and t-lines.
Default skew is a la SPX but you can change it to match futures' skew or any particular instrument.


OK. now mechanics.
You basically work on two screens: Settings and Graph.

Settings.
You decide what underlying you want to deal with re atm price, stike span between near options, etc.
You also set some graph parameters like default width of a graph, meaning how many points from atm you want to be calculated. This is for practical reason - it was easier setting this than coding graph to keep zoom factor between refreshes.
In Settings you also design trades you want to examine.

After you are done you close Setting window. You always can return here to do changes.

Graphs.
Graph itself is interactive but you have to figure out how to operate it.
On the right hand column:
1) controls to manipulate the skew. Separate set for each skew. Red tick above graph - you can turn the red skew off.
On the structure graph: green is related to green skew. Trade 'entry' is based on this. Red t-line shows how t-line will change if skew shape transform from green to red.
I skipped plotting red expiration graph. I don't think it is necessary.

2) Those are simple displays for each skew. price greeks etc.

3) options structure controls. What you entered in Settings win re trade is initial, here you can dynamically change dte of the trade (green) or dte for the red skew graph, if you want to see how it will look after shape and dte change. You can also move your structure up and down x axis (up or down from atm).

Ufff :)

If you have specific questions go ahead.
 

Attachments

  • OPG_main.png
    OPG_main.png
    136.3 KB · Views: 9

tom

Administrator
Staff member
Hi Tom, thanks for the offer.
I surely can use help because I don't have experience in web applications. The one I posted is very basic and Heroku did much for me re setting web environment.

If there is interest we can place this app on your server for better user experience. If there is no interest... I'm still interested in help but... :)
Be aware that this is python based app.

It looks like it's running on the server. ... or is it a stand alone app the user downloads and runs locally?
 

Marcas

Active member
Tb2018,
I suppose i didn't answer your question. Sorry for that. I was in the middle of other tasks when answered and wanted this out of my way. I didn't focus on the question but on the answer, if you know what I mean...

Back to your question, how _I_ use this app.
Nowadays I focus more on the code than app itself :)
I used it to imprint behavior of various structures in different environments. What I learned at the beginning of trading options was mostly half-truths and I wanted something substantial to work with. As said, TOS, my prime platform, wasn't good enough. ONE wasn't much better and was expensive.
In short, I started from playing with simple structures - this was first ver of the app, then with more complicated and then (still doing so) I use it to study complex strategies, mosttly to simplify them :).
I know that what I said may seem a bit vogue but it is hard to explain without going much into details. OPG is just one step, theoretical, in development practice I use.
 

Tb2018

Member
Marcas ,thank you for the answer ,I will have to "play" a bit with it before asking more questions......
Thanks for sharing!

Tom
 

status1

Active member
Perhaps you could explain how to use the program so anyone can play with it
It doesn't seem to be very intuitive
How do you set up that butterfly for example ?
I tried to do one but it seems to be something else in there like there is another long put somewhere so the left side of the graph is tilted up
 
Top