MID: =(3*CLOSE+LOW+OPEN+HIGH) /6;
B1: (20*MID+19*REF(MID, 1) +18*REF(MID, 2)
+17*REF(MID, 3) +16*REF(MID, 4) +15*REF(MID, 5)
+14*REF(MID, 6) +13*REF(MID, 7) +12*REF(MID, 8)
+11*REF(MID, 9) +10*REF(MID, 10) +9*REF(MID, 11)
+8*REF(MID, 12) +7*REF(MID, 13) +6*REF(MID, 14)
+5*REF(MID, 15) +4*REF(MID, 16) +3*REF(MID, 17)
+2*REF(MID, 18) +REF(MID, 20) ) /210, COLORRED, LINETHICK2;
B2: =EMA(FORCAST(EMA(MID, 8) , 8) , 9) ;
B3: =EMA(FORCAST(EMA(MID, 7) , 7) , 8) ;
B4: =EMA(FORCAST(EMA(MID, 6) , 6) , 7) ;
B5: =EMA(FORCAST(EMA(MID, 5) , 5) , 6) ;
B6: =EMA(FORCAST(EMA(MID, 4) , 4) , 5) ;
B7: =EMA(FORCAST(EMA(MID, 3) , 3) , 4) ;
B8: =EMA(FORCAST(EMA(MID, 2) , 2) , 3) ;
MA5: EMA(FORCAST(MA(MID, 4) , 4) , 2) COLORYELLOW, LINETHICK2;
IF(C, REF(B2, 8) , DRAWNULL) , COLORF0F000;
IF(C, REF(B3, 7) , DRAWNULL) , COLORF0F000;
IF(C, REF(B4, 6) , DRAWNULL) , COLORF0F000;
IF(C, REF(B5, 5) , DRAWNULL) , COLORF0F000;
IF(C, REF(B6, 4) , DRAWNULL) , COLORF0F000;
IF(C, REF(B7, 3) , DRAWNULL) , COLORF0F000;
IF(C, REF(B8, 2) , DRAWNULL) , COLORF0F000;
: =IF((C-REF(C, 1) ) *100/REF(C, 1) =(10-0. 01*100/REF(C, 1) ) AND C=H, 1, 0) ;
STICKLINE( 涨停, O, C, 2. 5, 0) , COLORFF00FF;
STICKLINE( 涨停, H, L, 0, 1) , COLORFF00FF;
跌停: =IF((REF(C, 1) -C) *100/REF(C, 1) =(10-0. 01*100/REF(C, 1) ) AND C=L, 1, 0) ;
STICKLINE( 跌停, O, C, 2. 5, 0) , COLOR00FF00;
STICKLINE( 跌停, H, L, 0, 1) , COLOR00FF00;
个股: (CLOSE-REF(CLOSE,5))/REF(CLOSE,5)*100,COLORBLUE,LINETHICK3;
DRAWBAND(个股,255,0,RGB(O,153,56));
大盘: (INDEXC-REF(INDEXC,21))/REF(INDEXC,21)*100,COLORWHITE,LINETHICK2;
角度 1:=ATAN((大盘/REF(大盘,1)-1)*100)*180/3.1416,NODRAW;
角度 2:=ATAN((个股/REF(个股,1)-1)*100)*180/3.1416,NODRAW;
乖离:EMA(个股-大盘,2),COLORYELLOW,NODRAW;
平衡轴:0,COLORGREEN;
XG:CROSS(个股,大盘),NODRAW;
DRAWICON(CROSS(个股,大盘),大盘,1);