SI
SI
discoversearch

We've detected that you're using an ad content blocking browser plug-in or feature. Ads provide a critical source of revenue to the continued operation of Silicon Investor.  We ask that you disable ad blocking while on Silicon Investor in the best interests of our community.  If you are not using an ad blocker but are still receiving this message, make sure your browser's tracking protection is set to the 'standard' level.
Strategies & Market Trends : Metastock 6.0 for Window

 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext  
To: Sean W. Smith who wrote (1562)2/6/1998 11:41:00 AM
From: John Sacz  Read Replies (1) of 4056
 
Sean;

Thanks for your suggestions. I also could see no way to use the canned, stdev(data array,prds), function. I achieved what I needed with the following formula. This gives me the standard deviation of 5 different MA's at the same point in time.

1stprd:=Input("Enter 1st prd",3,15,5);
2ndprd:=Input("Enter 2nd prd",6,30,13);
3rdprd:=Input("Enter 3rd prd",13,60,22);
4thprd:=Input("Enter 4th prd",22,120,50);
5thprd:=Input("Enter 5th prd",50,240,100);
MAavg:=((Mov(C,1stprd,E)+Mov(C,2ndprd,E)+Mov(C,3rdprd,E)
+Mov(C,4thprd,E)+Mov(C,5thprd,E))/5);

Sqrt((Power(Mov(C,1stprd,E)-MAavg,2)+Power(Mov(C,2ndprd,E)-MAavg,2)
+Power(Mov(C,3rdprd,E)-MAavg,2)+Power(Mov(C,4thprd,E)-MAavg,2)
+Power(Mov(C,5thprd,E)-MAavg,2))/5)

Thanks again,

John
(Red print not significant. Don't know how to remove.)
Report TOU ViolationShare This Post
 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext