VAR1:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
VAR2:=REF(VAR1,1);
VAR3:=REF(VAR1,2);
VAR4:=REF(VAR1,3);
VAR5:=REF(VAR1,4);
VAR6:=REF(VAR1,5);
VAR7:=3*80-(POW(2/3,1)*VAR2+POW(2/3,2)*VAR3+POW(2/3,3)*VAR4+POW(2/3,4)*VAR5+3*POW(2/3,5)*VAR6);
VAR8:=SMA((VAR7*(HHV(H,9)-LLV(L,9))/100)+LLV(L,9),3,1);
VAR9:=3*SMA(SMA(VAR1,3,1),3,1)-(POW(2/3,1)*VAR2+POW(2/3,2)*VAR3+POW(2/3,3)*VAR4+POW(2/3,4)*VAR5+3*POW(2/3,5)*VAR6);
VAR10:=3*SMA(VAR1,3,1)-(POW(2/3,1)*VAR2+POW(2/3,2)*VAR3+POW(2/3,3)*VAR4+POW(2/3,4)*VAR5+3*POW(2/3,5)*VAR6);
VAR18:=SMA((VAR10*(HHV(H,9)-LLV(L,9))/100)+LLV(L,9),3,1);
VAR19:=SMA((VAR9*(HHV(H,9)-LLV(L,9))/100)+LLV(L,9),3,1);
DRAWTEXT_FIX(ISLASTBAR,0.1058,0,1,DYBLOCK),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.1258,0,0,HYBLOCK),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.1858,0,0,GNBLOCK),COLORYELLOW;
市值:(CAPITAL/100*C)/10000,NODRAW,COLORYELLOW;
MA5:MA(C,5);
MA10:MA(C,10);
MA20:MA(C,20);
MA30:MA(C,30);
跑道:HHV(MA((HIGH),6),10),LINETHICK2,COLORGREEN;
DRAWTEXT(crOSS((MA(CLOSE,5)),(MA(C,10))),(MA(CLOSE,5)),'★');
DRAWTEXT(CROSS((MA(CLOSE,5)),(MA(C,13))),(MA(CLOSE,5)),'★');
DRAWTEXT(CROSS((MA(CLOSE,5)),(MA(C,18))),(MA(CLOSE,5)),'★');
DRAWTEXT(CROSS((MA(CLOSE,5)),(MA(C,20))),(MA(CLOSE,5)),'★');
DRAWTEXT(CROSS((MA(CLOSE,5)),(MA(C,25))),(MA(CLOSE,5)),'★');
DRAWTEXT(CROSS((MA(CLOSE,5)),(MA(C,30))),(MA(CLOSE,5)),'★');
DRAWTEXT(CROSS((MA(CLOSE,10)),(MA(C,13))),(MA(CLOSE,10)),'★'),COLORMAGENTA;
DRAWTEXT(CROSS((MA(CLOSE,10)),(MA(C,18))),(MA(CLOSE,10)),'★'),COLORMAGENTA;
DRAWTEXT(CROSS((MA(CLOSE,10)),(MA(C,20))),(MA(CLOSE,10)),'★'),COLORMAGENTA;
DRAWTEXT(CROSS((MA(CLOSE,10)),(MA(C,25))),(MA(CLOSE,10)),'★'),COLORMAGENTA;
DRAWTEXT(CROSS((MA(CLOSE,10)),(MA(C,30))),(MA(CLOSE,10)),'★'),COLORMAGENTA;
DRAWTEXT(CROSS((MA(CLOSE,20)),(MA(C,25))),(MA(CLOSE,20)),'★'),COLORGREEN,LINETHICK1;
DRAWTEXT(CROSS((MA(CLOSE,20)),(MA(C,30))),(MA(CLOSE,20)),'★'),COLORGREEN,LINETHICK1;
S:DRAWTEXT(VAR18>=VAR8 AND VAR18>=VAR19,VAR19,'◆'),COLORWHITE;