PureBytes Links
Trading Reference Links
|
Brett,
You might try something like the ones below. Also refer to the
Bollinger Bands and use the standard error instead of the standard
deviation.
Preston
Standard Error Bands for MetaStock for Windows
For interpretation refer to the article "Standard Error Bands", in
the September 96 issue of TASC, written by Jon Anderson.
21 period Upper Band (smoothed):
Mov((21 * Sum(Cum(1) * C,21) - Sum(Cum(1),21) * Sum(C,21)) / (21 *
Sum(Pwr(Cum(1),2),21) - Pwr(Sum(Cum(1),21),2)) * Cum(1) + (Mov
(C,21,S) - Mov(Cum(1),21,S) * (21 * Sum(Cum(1) * C,21) - Sum(Cum
(1),21) * Sum(C,21))/ (21 * Sum(Pwr(Cum(1),2),21) - Pwr(Sum(Cum
(1),21),2))) +2*(Sqrt(((Sum(Power(C,2),21)-(Power(Sum(C,21),2)/21)) -
((Sum(Cum(1)*C,21))-((Sum(Cum(1),21)*Sum(C,21)/21)))/ ((Sum(Power(Cum
(1),2),21))-(Power(Sum(Cum(1),21),2)/21)) *((Sum(Cum(1)*C,21))-((Sum
(Cum(1),21)*Sum(C,21)/21)))) /19)),3,S)
21 period Lower Band (smoothed):
Mov((21 * Sum(Cum(1) * C,21) - Sum(Cum(1),21) * Sum(C,21)) / (21 *
Sum(Pwr(Cum(1),2),21) - Pwr(Sum(Cum(1),21),2)) * Cum(1) +(Mov
(C,21,S) - Mov(Cum(1),21,S) * (21 * Sum(Cum(1) * C,21) - Sum(Cum
(1),21) * Sum(C,21))/ (21 * Sum(Pwr(Cum(1),2),21) - Pwr(Sum(Cum
(1),21),2))) - 2*(Sqrt(((Sum(Power(C,2),21)-(Power(Sum
(C,21),2)/21)) -((Sum(Cum(1)*C,21))- ((Sum(Cum(1),21) * Sum
(C,21)/21))) / ((Sum(Power(Cum (1),2),21))-(Power(Sum(Cum
(1),21),2)/21))*((Sum(Cum(1)*C,21))- ((Sum(Cum(1),21)*Sum
(C,21)/21)))) /19)),3,S)
21 period R2 (smoothed):
Mov((Pwr(Corr(Cum(1),C,21,0),2)),3,S)
21 period Regression Slope:
(((Sum(Cum(1)*C,21))-(Sum(Cum(1),21)*Sum(C,21)/21)) / ((Sum(Power(Cum
(1),2),21))-(Power(Sum(Cum(1),21),2)/21)))
21 period %A:
((C-Fml("21 period lower band (smoothed)")) / (Fml("21 period upper
band(smoothed)") -Fml("21 period lower band (smoothed)")))
21 period Regression (smoothed):
Mov((21*Sum(Cum(1)*C,21)-Sum(Cum(1),21)*Sum(C,21))/ (21*Sum(Pwr(Cum
(1),2),21)-Pwr(Sum(Cum(1),21),2))*Cum(1) +(Mov(C,21,S) - Mov(Cum
(1),21,S) * (21*Sum(Cum(1) * C,21) - Sum(Cum(1),21)*Sum(C,21))/
(21*Sum(Pwr(Cum(1),2),21) -Pwr(Sum(Cum(1),21),2))),3,S)
--- In equismetastock@xxxxxxxxxxxxxxx, Brett Sinclair
<brett_j_sinclair@xxx> wrote:
>
> Is anyone familiar enough with Kirschenbaum bands to code them in
Metastock?
>
> For the curious, their description is as follows:
> Kirshenbaum Bands are constructed as follows:
>
> Calculate a P-Period Exponential Moving Average of the data based
on the close.
>
> Then, for each bar, calculate the L-Period linear regression line,
using today's close as the endpoint of the line. (Note: The
term "linear regression" is the same as a "least squares" or "best
fit" line in some textbooks.)
>
> Calculate d1, d2, d3, .. dL as the distance from the line to the
close on each bar which was used to derive the line. That is, di =
Distance from Regression Line to each bar's close.
>
> Calculate the average of the squared errors:
>
> AE = (d12 + d22 + d32 + .. + dN2) / L
>
> Standard Error (Se) is the square root of this value:
>
> Se = square root of AE
>
> Then, if N = Number of Standard Errors, band width is:
>
> BW = N * SE
>
> Add and subtract the band width from the Exponential Moving
Average to arrive at today's value for the upper and lower bands.
>
>
> They are similar to, but behave quite differently from Bollinger
Bands.
>
> Thanks, Brett
>
>
> [Non-text portions of this message have been removed]
>
------------------------ Yahoo! Groups Sponsor --------------------~-->
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/hOt0.A/lOaOAA/yQLSAA/BefplB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/equismetastock/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/equismetastock/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:equismetastock-digest@xxxxxxxxxxxxxxx
mailto:equismetastock-fullfeatured@xxxxxxxxxxxxxxx
<*> To unsubscribe from this group, send an email to:
equismetastock-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|