小通道上:FORCAST(MA(HIGH,3)*1.03,30),LINETHICK2;
小通道下:FORCAST(MA(LOW,3)*0.97,30),LINETHICK2;
A2:=小通道上-REF(小通道上,1);
A3:=小通道下-REF(小通道下,1);
IF(A2 0,小通道上,DRAWNULL),LINETHICK2, COLORRED;
IF(A2=0,小通道上,DRAWNULL),LINETHICK2, COLORWHITE;
IF(A2 0,小通道上,DRAWNULL),LINETHICK2, COLORGREEN;
IF(A3 0,小通道下,DRAWNULL),LINETHICK2, COLORRED;
IF(A3=0,小通道下,DRAWNULL),LINETHICK2, COLORWHITE;
IF(A3 0,小通道下,DRAWNULL),LINETHICK2, COLORGREEN;
VAR1:=EMA(C,3);
VAR2:=EMA(C,5);
VAR3:=EMA(C,10);
VAR4:=EMA(C,20);
VAR5:=EMA(C,30);
VAR6:=(VAR2+VAR3+VAR4+VAR5)/4;
VAR7:=(VAR6-REF(VAR6,15))/REF(VAR6,15)*100;
VAR8:=(VAR6-REF(VAR6,15))/REF(VAR6, 15)*100;
VAR9:=EMA(VAR7,8);
STICKLINE(VAR7 1*REF(VAR7,1),O,C,3,1),COLORBLUE;
STICKLINE(VAR7 1*REF(VAR7,1),O,C,3,1),COLORRED;
STICKLINE(VAR7 1*REF(VAR7,1) AND VAR9 1*REF(VAR9,1),O,C,3,1),COLORGREEN;
买进价:=((C-REF(MA(C,6),1))/6+MA(C,6))*1.004;
买进条件:=CROSS(C,买进价) AND 买进价 REF(买进价,1);
STICKLINE(买进条件,O,C,3,0),COLORWHITE,LINETHICK2;
加码价:=((C-REF(MA(C,18),1))/18+MA(C,18))*1.004;
加码条件:=CROSS(C,加码价) AND 加码价 REF(加码价,1);
STICKLINE(加码条件,O,C,3,0),COLORYELLOW,LINETHICK2;
WR:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));
DRAWICON(FILTER(CROSS(WR,(0 - 81)),10),L,1);
DRAWICON(FILTER(CROSS((0 -19),WR),10),H*1.02,2);
A:=MA(CLOSE,5);
AA:=MA(CLOSE,10);
AAA:=MA(CLOSE,20);
AAAA:=MA(CLOSE,30);
BBBBB:=((CROSS(A,AA) AND CROSS(A,AAA) AND CROSS(AA,AAA) OR CROSS(A,AA) AND CROSS(A,AAAA) AND CROSS(AA,AAAA)) OR CROSS(AA,AAA) AND CROSS(AA,AAAA) AND CROSS(AAA,AAAA)),COLORFF00FF;
DRAWTEXT(BBBBB,L*0.87,'三线金叉') COLORWHITE;