HESHUO1:=3;
HESHUO2:=(3)*(SMA(((CLOSE - LLV(LOW,34))/(HHV(HIGH,34) - LLV(LOW,34)))*(100),5,1)) - (2)*(SMA(SMA(((CLOSE - LLV(LOW,34))/(HHV(HIGH,34) - LLV(LOW,34)))*(100),5,1),3,1));
主力诱空:IF((HESHUO2 < 8),30,0),COLOR1000FF,NODRAW;
主力抢筹:IF((HESHUO2 <= 5),60,0),COLORDD00DD,COLOR0099FF,NODRAW;
STICKLINE(主力抢筹,0,60,3.0,0)COLOR880088,COLOR0099FF;
STICKLINE(主力抢筹,0,60,2.4,0)COLOR990099,COLOR0099FF;
STICKLINE(主力抢筹,0,60,1.8,0)COLORAA00AA,COLOR0099FF;
STICKLINE(主力抢筹,0,60,1.2,0)COLORBB00BB,COLOR0099FF;
STICKLINE(主力抢筹,0,60,0.6,0)COLORCC00CC,COLOR0099FF;
STICKLINE(主力抢筹,0,60,0.1,0)COLORDD00DD,COLOR0099FF;
STICKLINE(主力诱空,0,30,3.0,0)COLOR100044;
STICKLINE(主力诱空,0,30,2.4,0)COLOR100066;
STICKLINE(主力诱空,0,30,1.8,0)COLOR100088;
STICKLINE(主力诱空,0,30,1.2,0)COLOR1000AA;
STICKLINE(主力诱空,0,30,0.6,0)COLOR1000CC;
STICKLINE(主力诱空,0,30,0.1,0)COLOR1000FF;
HESHUO6:=34;
HESHUO7:=1;
HESHUO8:=REF(LLV(L,HESHUO6),HESHUO7);
HESHUO9:=REFDATE(HESHUO8,DATE);
起涨在即:IF(CROSS(HESHUO2,HESHUO1),100,0),COLORDD00DD,NODRAW;
STICKLINE(起涨在即,0,80,3.0,0)COLOR0044AA,COLORDD00DD;
STICKLINE(起涨在即,0,80,2.4,0)COLOR0055BB,COLORDD00DD;
STICKLINE(起涨在即,0,80,1.8,0)COLOR0066CC,COLORDD00DD;
STICKLINE(起涨在即,0,80,1.2,0)COLOR0077DD,COLORDD00DD;
STICKLINE(起涨在即,0,80,0.6,0)COLOR0088EE,COLORDD00DD;
STICKLINE(起涨在即,0,80,0.1,0)COLOR0099FF,COLORDD00DD;
买进:IF(HESHUO9=L AND ((C-L)>(0-C) OR (O-L)>(C-O)),45,0),LINETHICK2,COLORYELLOW;
DRAWTEXT(HESHUO9=L AND ((C-L)>(0-C) OR (O-L)>(C-O)),41,'←买进')COLORYELLOW;