Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
@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.
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.
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:
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.
@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.
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?
@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.....