主力均价线:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4,COLORRED,LINETHICK2;
IF(主力均价线<MA(C,20) OR C<主力均价线,主力均价线,DRAWNULL),COLORGREEN,LINETHICK2;
拉升线:(主力均价线>MA(C,20),MA(C,20),DRAWNULL),COLORMAGENTA,LINETHICK3;
下跌线:IF(主力均价线<=MA(C,20),MA(C,20),DRAWNULL),COLORGREEN,LINETHICK1,DOTLINE;
VAR1:=BARSLASTCOUNT(主力均价线>MA(C,20))=1;
VAR2:=BARSLASTCOUNT(主力均价线<MA(C,20))=1;
VAR3:=MA((CLOSE*2+HIGH)/3,5);
VAR8:=MA((OPEN*2+HIGH)/3,5);
VAR9:=OPEN+(CLOSE-OPEN)/2;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
STICKLINE(DMI.PDI>DMI.MDI,CLOSE,OPEN,2.9,0),COLOR000099;
STICKLINE(DMI.PDI>DMI.MDI,CLOSE,OPEN,1.5,0),COLOR0000CC;
STICKLINE(DMI.PDI>DMI.MDI,CLOSE,OPEN,0.1,0),COLOR9966FF;
STICKLINE(VAR3>=VAR8,CLOSE,OPEN,2.9,0),COLOR000099;
STICKLINE(VAR3>=VAR8,CLOSE,OPEN,1.5,0),COLOR0000CC;
STICKLINE(VAR3>=VAR8,CLOSE,OPEN,0.1,0),COLOR9966FF;
DRAWTEXT_FIX(C>O,0,0.07,0,'股票指标网http://'),COLOR333333;
STICKLINE(VAR3<VAR8 AND DMI.PDI<DMI.MDI,CLOSE,OPEN,2.9,0),COLOR999900;
STICKLINE(VAR3<VAR8 AND DMI.PDI<DMI.MDI,CLOSE,OPEN,1.5,0),COLORCCCC00;
STICKLINE(VAR3<VAR8 AND DMI.PDI<DMI.MDI,CLOSE,OPEN,0.1,0),COLORFFFF66;
STICKLINE(VAR3>=VAR8 AND C<VAR8,VAR9,MAX(O,C),2.8,0),COLORMAGENTA;
STICKLINE(VAR1,CLOSE,OPEN,2.8,0),COLORYELLOW;
DRAWICON(VAR1,L,9);
DRAWICON(VAR2,H*1.01,6);
DRAWTEXT(VAR1,L*0.98,' ★牛'),COLORRED;
DRAWTEXT(VAR2,H,' ★熊'),COLORGREEN;