VAR1S:=(C+H+O+L)/4;
TR1:=MAX(MAX((HIGH-LOW),Abs(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));
ATR:=MA(TR1,13);
VAR71:=REF(CLOSE,1)-REF(ATR,1);
LSX:=HHV(VAR1S,13),LINETHICK1,COLORLIBLUE;
智能交易:HHV(VAR1S,13)*0.95,DOTLINE,LINETHICK2,COLORFFFF00;
HHJSJDA:=(3*CLOSE+OPEN+LOW+HIGH)/6;HHJSJDB:(20*HHJSJDA+19*REF(HHJSJDA,1)+18*REF(HHJSJDA,2)+17*REF(HHJSJDA,3)+16*REF(HHJSJDA,4)+15*REF(HHJSJDA,5)+14*REF(HHJSJDA,6)+13*REF(HHJSJDA,7)+12*REF(HHJSJDA,8)+11*REF(HHJSJDA,9)+10*REF(HHJSJDA,10)+9*REF(HHJSJDA,11)+8*REF(HHJSJDA,12)+7*REF(HHJSJDA,13)+6*REF(HHJSJDA,14)+5*REF(HHJSJDA,15)+4*REF(HHJSJDA,16)+3*REF(HHJSJDA,17)+2*REF(HHJSJDA,18)+REF(HHJSJDA,20))/210,COLORYELLOW;HHJSJDC:MA(HHJSJDB,6),COLORRED;日线:=MA(CLOSE,60),COLORBLUE;
STICKLINE((C-REF(C,1))/REF(C,1)>0.095 AND C=H,C,O,3,0),COLORMAGENTA;
STICKLINE((C-REF(C,1))/REF(C,1)>0.07 AND (C-REF(C,1))/REF(C,1)<0.095,C,O,3,0),COLORYELLOW;
STICKLINE((REF(C,1)-C)/ REF(C,1) >0.097 AND C=L,C,O,3,0),COLORGREEN;
STT:=COUNT(ABS((C-REF(C,1)))/REF(C,1)>0.054,120)=0;
STICKLINE(RANGE((C-REF(C,1))/REF(C,1),0.046,0.053) AND STT AND C=H,C,O,3,0), COLORMAGENTA;
STICKLINE(RANGE((REF(C,1)-C)/ REF(C,1),0.047,0.052) AND STT AND C=L,C,O,3,0),COLORGREEN;
水平面:MA(CLOSE,60),POINTDOT,COLORYELLOW;
MS:IF(HHJSJDB>=REF(HHJSJDB,1),HHJSJDB,DRAWNULL),COLORYELLOW,LINETHICK2;
MM:IF(HHJSJDC>=REF(HHJSJDC,1),HHJSJDC,DRAWNULL),COLORRED,LINETHICK2;
买:=crOSS(HHJSJDB,HHJSJDC);
卖:=CROSS(HHJSJDC,HHJSJDB);
DRAWICON(买,L*0.97,1);
DRAWTEXT(买,L*0.95,'B'),COLORYELLOW;
DRAWICON(卖,H*1.03,2);
DRAWTEXT(卖,H*1.05,'S'),COLORWHITE;