小树分时副图
{通达信的 小树分时副图指标 }
DRAWGBK(C>0, RGB(40,120,20),RGB(00,00,00),0,0,1),LINETHICK2;
VAR5:=LLV(LOW,75);
VAR6:=HHV(HIGH,75);
VAR7:=(VAR6-VAR5)/100;
VAR8:=SMA((CLOSE-VAR5)/VAR7,20,1);
VARA:=3*VAR8-2*SMA(VAR8,15,1);
主力线:100-(100-VARA),COLORWHITE,LINETHICK2;
DRAWICON((CROSS(主力线,REF(主力线,1)) AND 主力线<=100),主力线,1);
DRAWICON((CROSS(主力线,REF(主力线,1)) AND 主力线>100),100*0.995,1);
持强:HHV(IF(TIME<=100000,COUNT(CROSS(主力线,REF(主力线,1))+CROSS(REF(主力线,1),主力线),0),0),0),COLORFFCC66,LINETHICK2;
连红:主力线>REF(主力线,1) AND 主力线>100;
(主力线,主力线<0),COLORRED,LINETHICK2;
(主力线,主力线>100),COLORGREEN,LINETHICK2;
(主力线,0,主力线<0,RGB(255,0,0));
(主力线,100,主力线>100,RGB(0,250,0));
100,POINTDOT,COLORGREEN,LINETHICK2;
50,POINTDOT,COLORGRAY,LINETHICK2;
趋势:SMA((CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100,5,1),COLORYELLOW,LINETHICK2;
反趋势:=EMA((CLOSE-HHV(HIGH,25))/(LLV(LOW,25)-HHV(HIGH,25))*100,5);
顶线:100-(HHV(HIGH,25)-LLV(LOW,25))/EMA(HHV(HIGH,25)-CLOSE,5),COLORBLUE,LINETHICK2;
底线:(HHV(HIGH,25)-LLV(LOW,25))/EMA(CLOSE-LLV(LOW,25),5),COLORRED,LINETHICK2;
DRAWTEXT(底线>=趋势,趋势,'★'),COLORFF00FF;
DRAWTEXT(趋势<7,趋势,'★'),COLORYELLOW;
DRAWTEXT(趋势>=90 AND 趋势<=93,趋势,'★'),COLORGREEN;
DRAWTEXT(趋势>93,趋势,'★'),COLORBLUE;
DRAWTEXT(CROSS(趋势,底线),趋势,'涨'),COLORRED;
DRAWICON(CROSS(趋势,反趋势),趋势,1);
DRAWBAND(趋势>=REF(趋势,1),RGB(255,0,0),趋势