Trading Articles
Article Categories
Article Tools

Moving Standard Deviation
Updated August 22nd 2015 by
jwhtrades
Top Posters

looks_one
jwhtrades
with 6 posts (0 thanks)
looks_two
bobwest
with 4 posts (3 thanks)
looks_3
Fat Tails
with 2 posts (4 thanks)
looks_4
choke35
with 2 posts (1 thanks)
Best Posters

looks_one
Fat Tails
with 2.0 thanks per post
looks_two
Big Mike
with 1.0 thanks per post
looks_3
bobwest
with 0.8 thanks per post
looks_4
choke35
with 0.5 thanks per post
trending_up
5,768 views
thumb_up
9 thanks given
group
4 followers
forum
15 replies
attach_file
4 attachments

Welcome to futures io: the largest futures trading community on the planet, with well over 100,000 members

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 and simple.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)

Moving Standard Deviation

(login for full post details)

#11 (permalink )
Site Moderator

Sarasota FL

Experience: Advanced

Platform: Sierra Chart

Trading: ES, YM

Posts: 5,831 since Jan 2013

Thanks: 45,233 given,
19,616
received

choke35
Before re-inventing the wheel: The indicator that you are looking for is called Bollinger's %B.

Standard configuration - as shown - is +/- 2 SD around a 20 period

SMA .

Bollinger himself uses a 0/100

scaling instead of 80/20 (because in relation to 2 SDs 80%/20% don't really make much sense).

He just wants to know how much of +/- 2 SDs are maxed out.

I was wondering about whether the indicator in the chart was showing a percentage. I guess I should have pushed on a bit, but the formula given was just for standard deviation by itself....
Thanks for the complete answer.
Bob.

The following user says Thank You to bobwest for this post:

Can you help answer these questions from other members on futures io?

Best Threads (Most Thanked) in the last 7 days on futures io

(login for full post details)

#12 (permalink )
woodstock, ga

Experience: Intermediate

Platform: NinjaTrader

Broker: NinjaTrader Brokerage

Trading: Futures, TF, CL

Posts: 163 since Feb 2011

Thanks: 670 given,
88
received

Thanks
choke35
You can download it here:

(Default style is bar here, but you can switch it to line - which would be standard.)

Thread Starter

(login for full post details)

#13 (permalink )
Market Wizard

Berlin, Europe

Experience: Advanced

Platform: NinjaTrader, MultiCharts

Broker: Interactive Brokers

Trading: Keyboard

Posts: 9,841 since Mar 2010

Thanks: 4,238 given,
26,589
received

jwhtrades
The 20-period

standard deviation for the data above is 6.787. Note that this is the "full population" version of the Standard Deviation. There is a different kind of Standard Deviation calculation that is used when you are taking a statistical sample of a population, but that version is not used in technical analysis since all of the data

points are known.

You are correct in your assumption that all data points are known. However, the data points are not the 20 bar closes that you mention, but all transactions that occured during the period represented by the 20 bar. This clearly shows that you only use a meagre sample of all trades to approximate the standard deviation.
To calculate the correct standard deviation, you should use unfiltered tick data and then calculate the standard deviation from the full population.
But even if you do not have full resolution tick data available, but only have the OHLC and volume data from the last 20 bars, you can do much better than calculating the standard deviation from the closes:
-> first of all you can take into account the volume of each of the 20 bars
-> also the bar close should be replaced with a better price such (open + high + low + close)/4
The chart below shows how a modified calculation of the standard deviation which uses 80 sample points and takes into account volume (blue plot) gives us a better approximation of the population standard deviation than the simple formula based on 20 closes (orange plot).

The following 3 users say Thank You to Fat Tails for this post:

(login for full post details)

#14 (permalink )
woodstock, ga

Experience: Intermediate

Platform: NinjaTrader

Broker: NinjaTrader Brokerage

Trading: Futures, TF, CL

Posts: 163 since Feb 2011

Thanks: 670 given,
88
received

Thanks Harry,
I've done an advanced search to try and find your anaStdDevBands and have not been successful. Can you provide the link please.
All the best,
John
Fat Tails
You are correct in your assumption that all data

points are known. However, the data points are not the 20 bar closes that you mention, but all transactions that occured during the period represented by the 20 bar. This clearly shows that you only use a meagre sample of all trades to approximate the

standard deviation .

To calculate the correct standard deviation, you should use unfiltered tick data and then calculate the standard deviation from the full population.

But even if you do not have full resolution tick data available, but only have the OHLC and volume data from the last 20 bars, you can do much better than calculating the standard deviation from the closes:

-> first of all you can take into account the volume of each of the 20 bars

-> also the bar close should be replaced with a better price such (open + high + low + close)/4

The chart below shows how a modified calculation of the standard deviation which uses 80 sample points and takes into account volume (blue plot) gives us a better approximation of the population standard deviation than the simple formula based on 20 closes (orange plot).

Thread Starter

(login for full post details)

#15 (permalink )
Market Wizard

Berlin, Europe

Experience: Advanced

Platform: NinjaTrader, MultiCharts

Broker: Interactive Brokers

Trading: Keyboard

Posts: 9,841 since Mar 2010

Thanks: 4,238 given,
26,589
received

jwhtrades
Thanks Harry,
I've done an advanced search to try and find your anaStdDevBands and have not been successful. Can you provide the link please.
All the best,
John

I have not had the time to put it into Big Mike's downloads. I will send you a link to the indicator via private message.

The following user says Thank You to Fat Tails for this post:

(login for full post details)

#16 (permalink )
woodstock, ga

Experience: Intermediate

Platform: NinjaTrader

Broker: NinjaTrader Brokerage

Trading: Futures, TF, CL

Posts: 163 since Feb 2011

Thanks: 670 given,
88
received

Thanks for your quick reply. Look forward to receiving your link and trying this indicator.
Cheers,
John
Fat Tails
I have not had the time to put it into Big Mike's downloads. I will send you a link to the indicator via private message.

Thread Starter

August 22, 2015

Register to Attend
Elite only