[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: VIDYA



PureBytes Links

Trading Reference Links

Hi Forrest Ho,

Excuse me but my primary reaction to your problem was, well, too primary. 
It looked like a problem I once solved that way but taking a closer look at
your-one convinced me that I was wrong.

Sorry,

Frans
At 21:35 18-08-98 +0000, you wrote:
>Dear friends of Metastock :
>
>I try to test the close cross the VIDYA (variable 
>index dymanic moving average ) with different 
>time period .
>
>The formula is as follow :
>
>Length:=Input("Length",1,200,10);
>Smooth:=Input("Smoothing",1,200,5);
>AbsCMO:=(Abs(CMO(C,Length)))/100;
>SC:=2/(Smooth+1);
>VIDYA:=If(Cum(1)<=(Length+1),C,(SC*AbsCMO*CLOSE)+(1-(SC*AbsCMO))*PREV);
>VIDYA
>
>when I replace the default value to opt1 , the 
>program cannot work and said variable is not 
>allow in this kind of formula ...(something like 
>that , I don't the actual word )
>
>how to solve this problem ????
>
>I would like to test the VIDYA from two days to 
>10 days . How ???( the smooth value of five is OK 
>to me , I will use it to substitute in the 
>formula )
>
>Thanks !!
>
>Forrest Ho
>
>
>