but don't know what I'm doing. The thinkScript editor accepts the following code; however when I import the code as a custom column in the TOS options chain, I receive an error message stating "invalid symbol name"!
input symbol_1 = “(Gamma())*1/2" ;
input symbol_2 = “Sqr(getUnderlyingSymbol())*1/100” ;
Plot product = close(symbol_1) * (close(symbol_2));
What I am attempting to code is the formula: 0.5 x Gamma x (Underlying Price x 1%)²
Would someone please help me code this formula?
Thanks in advance...
Coding the formula is trivial but first things first.
My assumption is that you are creating a custom column DIRECTLY within the options chain, i.e. Trade > Options Chain > Customize...
Here then is the code for the formula you supplied above.
plot mydata = 0.5*gamma() * sqr(close*.01);
I'm taking it that you are conversant with the procedure of creating that directly within the option chain.
If you are unsure, please contact TOS live support so they can walk you through the specifics
I have just loaded that as a custom column within my option chain called "MyGamma"
The base layout I used was Impl Vol, Probability OTM, Delta
Hence after the customization, my layout now becomes Impl Vol, Probability OTM, Delta, MyGamma
Looking at JPM expiration 3 JAN 20 (27) some of the values cannot currently be computed as the options market is closed
So you'll need to test this during RTH.