VAR1:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
VAR2:=MA(VAR1,5);
VAR3:=MA(VAR2,5);
VAR4:=3*VAR2-2*VAR3;
VAR5:=LLV(LOW,8);
VAR6:=HHV(HIGH,8);
VAR7:=MA((CLOSE-VAR5)/(VAR6-VAR5)*100,4)*2;
VAR8:=MA(0.667*REF(VAR7,1)+0.333*VAR7,2);
VAR9:=3*VAR7-2*VAR8;
VARA:=POW(MA(CLOSE,9),2)+MA(CLOSE,9);
VARB:=POW(MA(LOW,9),2)+MA(LOW,9);
VARC:=POW(MA(HIGH,9),2)+MA(HIGH,9);
VARD:=(VARA-LLV(VARB,75))/(HHV(VARC,75)-LLV(VARB,75))*160;
VARE:=MA(VARD,3)*1.5-100;
VARF:=MA(VARE,3);
VAR10:=3*VARE-2*VARF;
VAR11:=(HIGH+LOW+CLOSE*2)/4;
VAR12:=MA(VAR11,13);
VAR13:=STD(VAR11,13);
VAR14:=(VAR11-VAR12)*100/VAR13;
VAR15:=MA(VAR14,5);
VAR16:=MA(VAR15,13);
VAR17:=MA(VAR15,13)+200-100;
VAR18:=MA(VAR17,10);
VAR19:=3*VAR17-2*VAR18;
VAR1A:=VAR2+VAR7+VARE+VAR17;
VAR1B:=VAR3+VAR8+VARF+VAR18;
VAR1C:=VAR4+VAR9+VAR10+VAR19;
VAR1D:=(HIGH+LOW+CLOSE)/3;
VAR1E:=AMOUNT/vol/100;
VAR1F:=SUM(AMOUNT,5)/SUM(VOL,5)/100;
VAR20:=(VAR1D-MA(VAR1D,34))/(0.015*AVEDEV(VAR1D,34));
VAR21:=MA(AMOUNT/VOL/100,1);
VAR22:=(HIGH+LOW+CLOSE+VAR1D)/4;
VAR23:=MA(VAR22,24);
VAR24:=STD(VAR22,24);
VAR25:=(VAR22-VAR23)/VAR24*100;
VAR26:=(VAR1D-MA(VAR1D,24))/(0.015*AVEDEV(VAR1D,24));
VAR27:=MA(VAR25,5);
VAR28:=(VAR1E-MA(VAR1E,21))/(0.015*AVEDEV(VAR1E,21));
VAR29:=(VAR1F-MA(VAR1F,90))/(0.015*AVEDEV(VAR1F,90));
VAR2A:=((VAR29+VAR28+VAR27+VAR26+VAR20)/5+165)/4;
VAR2B:=(VAR1A+VAR1B+VAR1C*30)/32/5-15;
VAR2C:=(VAR2A+VAR2B)/2/1.1;
操作线: VAR2C, COLORRED,LINETHICK1;
分界线: MA(操作线,26), COLORYELLOW,LINETHICK1;
相对高点线: 分界线+2*STD(操作线,26),LINETHICK1;
相对低点线: 分界线-2*STD(操作线,26), COLORFFFFFF,LINETHICK1;
IF(操作线>分界线,分界线,操作线), , COLORGREEN,LINETHICK1;
买点: DRAWICON(crOSS(操作线,分界线),分界线*0.97,1);
DRAWICON(CROSS(操作线,相对低点线),相对低点线*0.97,5);
卖点: DRAWICON(CROSS(相对高点线,操作线),相对高点线*0.97,2);
分界线, COLORYELLOW;
IF(操作线<分界线,分界线,DRAWNULL),COLORGREEN;