Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bollinger Band] is mean deviation same as standard deviation? #45

Closed
ghost opened this issue Jul 8, 2015 · 2 comments
Closed

[Bollinger Band] is mean deviation same as standard deviation? #45

ghost opened this issue Jul 8, 2015 · 2 comments

Comments

@ghost
Copy link

ghost commented Jul 8, 2015

I am trying to make a bollinger band indicator in jstock editor. Currently I am trying to create the upper line using this formula

Upper line = SMA(20)+2*20-day-Standard deviation

the problem is i cant find a standard deviation from the editor option instead i got Mean deviation.
Are both same or different?
my indicator http://i.imgur.com/IR4oiNa.png

@RandallSell
Copy link
Contributor

Hi PotHead,

No Standard Deviation is NOT the same as Mean Deviation, although with the correct numbers they would come out the same. The STD would never be a negative number, whereas the MD could be a negative value.

This might help a bit:
http://www.investopedia.com/ask/answers/021215/what-difference-between-standard-deviation-and-average-deviation.asp

And yes, i can't find an STD function either - weird that it doesn't have it. So alas you are probably stuck doing it the hard way by doing the calc yourself. Having said that, I don't recall seeing a square-root function either so if that is missing you would be SOL.

-randall

@ghost
Copy link
Author

ghost commented Jul 10, 2015

Hi RandallSell ,
Thank you for the comment. It seems I cant calculate standard deviation in jstock. Jstock editor lacks many math function like square root, log, exponential etc. Now i have to find another way :(

Once more thanks man for the quick info 💯

@ghost ghost closed this as completed Jul 10, 2015
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant