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

VIDYA



PureBytes Links

Trading Reference Links

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