JGHO1:=3;
JGHO2:=(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((JGHO2 < 8),30,0),COLOR1000FF,NODRAW;
主力抢筹:IF((JGHO2 <= 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;
JGHO6:=34;
JGHO7:=1;
JGHO8:=REF(LLV(L,JGHO6),JGHO7);
JGHO9:=REFDATE(JGHO8,DATE);
起涨在即:IF(CROSS(JGHO2,JGHO1),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;
NOTEXTJGH10:IF(JGHO9=L AND ((C-L)>(0-C) OR (O-L)>(C-O)),45,0),LINETHICK2,COLORYELLOW;
DRAWTEXT(JGHO9=L AND ((C-L)>(0-C) OR (O-L)>(C-O)),41,'←买')COLORYELLOW;