NexusFi: Find Your Edge


Home Menu

 





Standard Deviation Lines based on options expiration


Discussion in ThinkOrSwim

Updated
      Top Posters
    1. looks_one greg9 with 11 posts (4 thanks)
    2. looks_two rmejia with 7 posts (12 thanks)
    3. looks_3 mcfalwell with 6 posts (0 thanks)
    4. looks_4 anidealworld with 2 posts (0 thanks)
    1. trending_up 21,774 views
    2. thumb_up 16 thanks given
    3. group 12 followers
    1. forum 34 posts
    2. attach_file 18 attachments




 
Search this Thread

Standard Deviation Lines based on options expiration

  #11 (permalink)
 hector24 
austin, texas
 
Experience: Intermediate
Platform: ninja trader
Trading: currency futures
Posts: 506 since Jan 2011
Thanks Given: 14
Thanks Received: 234


rmejia View Post
This could be it:


Rmejia, great indicator. Is this available for Ninja. What can make of it, it looks like the platform is Think or Swim.

Thanks
Hector

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NexusFi Journal Challenge - April 2024
Feedback and Announcements
Build trailing stop for micro index(s)
Psychology and Money Management
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
New Micros: Ultra 10-Year & Ultra T-Bond -- Live Now
Treasury Notes and Bonds
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
59 thanks
Funded Trader platforms
37 thanks
NexusFi site changelog and issues/problem reporting
24 thanks
GFIs1 1 DAX trade per day journal
22 thanks
The Program
19 thanks
  #12 (permalink)
 
greg9's Avatar
 greg9 
SLC, UT
 
Experience: Intermediate
Platform: Sierra
Trading: ES CL
Posts: 108 since Mar 2013
Thanks Given: 102
Thanks Received: 67


leestockz View Post
The levels don't look the same on my screen...
Any idea how to disconnect the levels/lines before and after options expiry?

@leestockz in TOS open the indicator options and change it from being a line to dashes or dots. I use dots and then it doesn't connect them together as seen in your screenshot.

Started this thread Reply With Quote
  #13 (permalink)
leestockz
Norman, OK
 
Posts: 3 since Sep 2013
Thanks Given: 0
Thanks Received: 1



gsl8r View Post
@leestockz in TOS open the indicator options and change it from being a line to dashes or dots. I use dots and then it doesn't connect them together as seen in your screenshot.

That worked! Weird workaround, though.
Thanks.

Reply With Quote
  #14 (permalink)
 
rmejia's Avatar
 rmejia 
Puerto Rico
 
Experience: Intermediate
Platform: thinkorswim
Broker: TD Ameritrade
Trading: Options
Posts: 379 since Oct 2010
Thanks Given: 3,614
Thanks Received: 441


gsl8r View Post
I took off the midline for simplicity and just show 1 up and 1 down.

This is fantastic! Look at those reaction areas!


The only issue is that it only calculates 1 period and uses that value to add and subtract from the close so all of the previous periods will have the same range instead of the value of their previous period. I don't know of an easy way to change that without having to repeat the formula with different values for each month. Perhaps someone else knows.

Reply With Quote
  #15 (permalink)
 
rmejia's Avatar
 rmejia 
Puerto Rico
 
Experience: Intermediate
Platform: thinkorswim
Broker: TD Ameritrade
Trading: Options
Posts: 379 since Oct 2010
Thanks Given: 3,614
Thanks Received: 441

The lines default as a curve so it connects them:


That has to be changed to this type so they are not continuous:


Those line type settings along with others like color, line weight, etc, can be added to the code so it defaults to specific options. Also one can change them and then click "Save as Default" to save those options and next time the indicator is loaded it will use those saved settings:

Reply With Quote
Thanked by:
  #16 (permalink)
 
greg9's Avatar
 greg9 
SLC, UT
 
Experience: Intermediate
Platform: Sierra
Trading: ES CL
Posts: 108 since Mar 2013
Thanks Given: 102
Thanks Received: 67


rmejia View Post
The only issue is that it only calculates 1 period and uses that value to add and subtract from the close so all of the previous periods will have the same range instead of the value of their previous period. I don't know of an easy way to change that without having to repeat the formula with different values for each month. Perhaps someone else knows.

So I should only really use it for the current period and not look back on it. I calculated it by hand for some of the previous sessions and noticed it was off but kinda close, that must be why.

Well if someone else knows how to change that code you supplied and get it to look back and calculate it for each period that would be awesome. If not we still have a fantastic code! Thanks for your work.

Started this thread Reply With Quote
  #17 (permalink)
 
rmejia's Avatar
 rmejia 
Puerto Rico
 
Experience: Intermediate
Platform: thinkorswim
Broker: TD Ameritrade
Trading: Options
Posts: 379 since Oct 2010
Thanks Given: 3,614
Thanks Received: 441

@gsl8r What formula do you use to calculate the Standard Deviation? What value does it give for December and Jan? Working on having it calculate the previous months, just need verify the formula.

Reply With Quote
  #18 (permalink)
 
greg9's Avatar
 greg9 
SLC, UT
 
Experience: Intermediate
Platform: Sierra
Trading: ES CL
Posts: 108 since Mar 2013
Thanks Given: 102
Thanks Received: 67


rmejia View Post
@gsl8r What formula do you use to calculate the Standard Deviation? What value does it give for December and Jan? Working on having it calculate the previous months, just need verify the formula.

That would be great. I pulled the SPX data from Yahoo historical prices.

I did the calculation for the last 2 expirations both manually and with the excel automatic formula. You can see how I arrive at each.

Does this help?

Attached Files
Elite Membership required to download: spx.xlsx
Started this thread Reply With Quote
  #19 (permalink)
mcfalwell
dallas, tx
 
Posts: 6 since Mar 2014
Thanks Given: 0
Thanks Received: 0

Hi - love your indicator - I've been working on something like this manually in excel and trying to find someone to put it in TOS - thank you! one question for youMy lines are showing a bit off and I'm looking to use the next month value for standard deviation on the current monthly expiration so on Feb 21st, let's say for PCLN, the stddev for the March monthly contracts would be 72.416 - is there a way to use that value for the lines and have it calculate all the past values and the current month?

Really appreciate your help.

Craig

Reply With Quote
  #20 (permalink)
 
greg9's Avatar
 greg9 
SLC, UT
 
Experience: Intermediate
Platform: Sierra
Trading: ES CL
Posts: 108 since Mar 2013
Thanks Given: 102
Thanks Received: 67



mcfalwell View Post
Hi - love your indicator - I've been working on something like this manually in excel and trying to find someone to put it in TOS - thank you! one question for youMy lines are showing a bit off and I'm looking to use the next month value for standard deviation on the current monthly expiration so on Feb 21st, let's say for PCLN, the stddev for the March monthly contracts would be 72.416 - is there a way to use that value for the lines and have it calculate all the past values and the current month?

Really appreciate your help.

Craig

@mcfalwell, rmejia is working on having it calculate past months. I wish I knew more about coding and how to do it. For now only use the indicator on the current month and not on back months. From what I can see the indicator calculates the previous period standard deviation 1/21 to 2/21 and plots that for 2/24 to 3/21.

On PCLN the last Options x standard deviation 1/21 to 2/21 is 61.65.

1 Standard Deviation up should be 1377.30, the indicator is plotting it as 1361.20
1 Standard Deviation down should be 1253.99, the indicator is plotting it as 1270.57

@rmejia any idea why the indicator isn't quite plotting the current period right? Its off by just a bit for some reason.....

Attached Thumbnails
Click image for larger version

Name:	pcln.jpg
Views:	288
Size:	233.9 KB
ID:	139291  
Started this thread Reply With Quote




Last Updated on February 29, 2016


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts