Download software Tutorial videos
Subscription & data-feed pricing Class schedule


New account application Trading resources
Margin rates Stock & option commissions

Attention: Discussion forums are read-only for extended maintenance until further notice.
Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

Standard Deviation of several macd's Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
smb1970
Posted : Thursday, February 21, 2008 5:49:28 AM
Registered User
Joined: 1/19/2008
Posts: 8
Hi guys,I'm trying to work out how to set up a custom indicator that would show me the standard deviation of a set of macd plots.The four macd plots are( XAVGC5 - XAVGC13 - XAVG(XAVGC5,5) + XAVG(XAVGC13,5) ) ( XAVGC13 - XAVGC21 - XAVG(XAVGC13,5) + XAVG(XAVGC21,5) ) ( XAVGC21 - XAVGC34 - XAVG(XAVGC21,5) + XAVG(XAVGC34,5) ) ( XAVGC34 - XAVGC55 - XAVG(XAVGC34,5) + XAVG(XAVGC55,5) ) I've found the formula on here to calculate a standard deviation as SQR( ( ( C*C + C1*C1 + ...+ Cn*Cn )- ( p * AvgCp * AvgCp ) ) / n )where p = SMAPds and n = Pds-1However, I don't understand what all the variables in this formula signify or how to create it as a pcf/ custom indicator. Any help with this would be greatly appreciated.Regards Steve
Bruce_L
Posted : Thursday, February 21, 2008 9:52:26 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
What's the Period of the Standard Deviation you wish to apply?

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
smb1970
Posted : Monday, March 3, 2008 6:35:32 AM
Registered User
Joined: 1/19/2008
Posts: 8
Hi Bruce,I want the standard deviation to be daily. I'm trying to measure the deviation between the four macd indicators for each day.Regards Steve
Bruce_L
Posted : Monday, March 3, 2008 3:23:18 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
You are normally going to calculate Standand Deviation on a data series over a period of time. This is the Period that was requested. If you are looking for something based not on a time series for each of the MACD Histograms, but using the values of the four MACD Histograms as the four values used in a 4-Period Standard Deviation instead, you might wish to try the following:

Select Chart Template | Add Indicator | Indicator
-Visible: Checked
-Center Zero Line: Unchecked
-Plot Using Price Scale: Unchecked
-Smoothing Average: 1
-Smoothing Type: Doesn't matter (because the Smoothing Average is 1)
-Indicator Formula: SQR(ABS((XAVGC5 - XAVGC13 - XAVG(XAVGC5,5) + XAVG(XAVGC13,5)) ^ 2 + (XAVGC13 - XAVGC21 - XAVG(XAVGC13,5) + XAVG(XAVGC21,5)) ^ 2 + (XAVGC21 - XAVGC34 - XAVG(XAVGC21,5) + XAVG(XAVGC34,5)) ^ 2 + (XAVGC34 - XAVGC55 - XAVG(XAVGC34,5) + XAVG(XAVGC55,5)) ^ 2 - 4 * ((XAVGC5 - XAVG(XAVGC5,5) - XAVGC55 + XAVG(XAVGC55,5)) / 4) ^ 2) / 3)

You may wish to review the following:

Plotting Custom Indicators with Examples

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Users browsing this topic
Guest-1

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.