input:n(1,1,5);
if n=1 then begin
k:"kdj.k";d:"kdj.d";j:"kdj.j";
end;
if n=2 then begin
rsi6:"rsi.rsi1";rsi12:"rsi.rsi2";rsi24:"rsi.rsi3";
end;
if n=3 then begin
macd:"macd.macd",COLORSTICK;diff:"macd.dif"colorwhite;dea:"macd.dea";
end;
if n=4 then begin
DMI:"dmi.pdi";mdi:"dmi.mdi";adx:"dmi.adx";adxr:"dmi.adxr";
end;
if n=5 then begin
TYP := (HIGH + LOW + CLOSE)/3;
CCI:(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
end;
|