BT:=(L<=中下軌 AND 跌=0 AND LLV(L,3)>LLV(L,22) AND O-C<兩格) OR (L<=下 AND 跌 AND LLV(L,3)>LLV(L,22) AND O-C<兩格);ST:=(H>=中上軌 AND 漲=0 AND HHV(H,3)<HHV(H,22) AND C-O<兩格) OR (H>=上 AND 漲 AND HHV(H,3)<HHV(H,22) AND C-O<兩格);DRAWICON(BT,L,1);DRAWICON(ST,H,2);RETURN;}
G1:=(FG0 AND REF(H,BARSLAST(FG0))>=REF(H,BARSLAST(G1X)) AND BARSLAST(D1X)>BARSLAST(G1X))OR (FG1 AND COUNT(GQ,BARSLAST(FD1))>0 AND REF(H,BARSLAST(FG1))>REF(H,BARSLAST(G1X)));}D1:=(FD0 AND REF(L,BARSLAST(FD0))<=REF(L,BARSLAST(D1X)) AND BARSLAST(G1X)>BARSLAST(D1X))OR (FD1 AND COUNT(DQ,BARSLAST(FG1))>0 AND REF(L,BARSLAST(FD1))<REF(H,BARSLAST(D1X)));
VAR6:=IF(VAR1>REF(VAR1,1),5,0) AND IF(VAR4>REF(VAR4,1),5,0);FILLRGN( VAR1,EMA(VAR1,60), VAR1>EMA(VAR1,60),RGB(150,30,30),EMA(VAR1,60)>VAR1,RGB(0,110,30));
VAR17:=(REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR18:=(REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR19:=((REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1)) AND VAR1);VAR1A:=((REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,1)) AND VARD)
STICKLINE(A1X >=0,多方,突破,1,1),COLOR0000FF;IF(MA(C,60) >=REF(MA(C,60),1),MA(C,60),DRAWNULL),COLOR0000FF,LINETHICK2;STICKLINE(做空,L,H,0.5,0),COLOR00FF00;STICKLINE(做空 AND C >=O,C,O,3,1),COLOR00FF00;STICKLINE(做空 AND C <O,C,O,3,0),COLOR00FF00;STICKLINE(強(qiáng)洗,L,H,0.5,0),COLOR0099FF;STICKLINE(強(qiáng)洗 AND C >=O,C,O,3,1),COLOR0099FF;
VAR4:=100*(CLOSE-VAR3)/VAR3;VAR12:=ZIG(3,6)<REF(ZIG(3,6),1) ANDREF(ZIG(3,6),1)>=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);VAR16:=ZIG(3,51)<REF(ZIG(3,51),1) ANDREF(ZIG(3,51),1)>=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)>=REF(ZIG(3,51),3);VAR18:=ZIG(3,72)<REF(ZIG(3,72),1) ANDREF(ZIG(3,72),1)>=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3);VAR51:=HHVBARS(ZIG
VAR4:=SUM(IF(VAR2>0 AND VAR2>VAR3,VAR2,0),25);VAR5:=SUM(IF(VAR3>0 AND VAR3>VAR2,VAR3,0),25);VAR6:=VAR4*100/VAR1;VAR7:=VAR5*100/VAR1;VAR8:=MA(ABS(VAR7-VAR6)/(VAR7+VAR6)*100,15);VAR9:=(VAR8+REF(VAR8,15))/2;A:=(VAR7>VAR6 AND VAR7>25 AND VAR6<25);VAR12:=SMA(VAR11,3,1);VAR13:=SMA(VAR12,3,1);VAR14:=VAR13 AND VAR13<20;
VAR1:=(AA20-AA30)>REF((AA20-AA30),1) AND AA20>REF(AA20,1) AND AA30>REF(AA30,1);{理想實(shí)現(xiàn)}VARS2:=IF(MONTH<12,1,1);VARS3:=(2.28*CLOSE+HIGH+LOW)/4;VARS4:=LLV(LOW,34);VARS5:=HHV(HIGH,34);理想:=EMA((VARS3-VARS4)/(VARS5-VARS4)*100,13)*VARS2,LINETHICK4,COLORRED;論壇:=EMA(0.667*REF(理想,1)+0.333*理想,2),LINETHICK2,COLORFF9933;理想實(shí)現(xiàn):(CROSS(理想,論壇) AND 理想<22),LINETHICK2,COLOR0099FF;