PureBytes Links
Trading Reference Links
|
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
hi Forrest Ho,
I'm not completely sure but try adding the following:
n := 10{Time periods};
Length:=Input("Length",1,200,n); etc.
Now you should be able to replace the default value to opt1.
Good luck and let me know if it worked.
Frans
|