附图 智勇出击 cci买入

F:=100*(C-REF(C,1))/REF(C,1);

S1:=IF(C<REF(O,1) AND F<0,1,0);

S2:=IF(C<REF(O,2) AND F<0,1,0);

A1:=S1=0 AND REF(S1,1)=1 AND S2=0 AND REF(S2,1)=1 AND CROSS(ZIGZAG(C,3,1) ,REF(ZIGZAG(C ,3,1),1));

A2:=S1=0 AND REF(S1,1)=1 AND S2=0 AND REF(S2,1)=1 AND CROSS(ZIGZAG(C,5,1) ,REF(ZIGZAG(C ,5,1),1));

A3:=S1=0 AND REF(S1,1)=1 AND S2=0 AND REF(S2,1)=1 AND CROSS(ZIGZAG(C,10,1) ,REF(ZIGZAG(C ,10,1),1));

STICKLINE1(A1 AND A2 ,0,3,3,0),COLORGREEN;

STICKLINE1(A1 AND A2 ,0,1,3,0),COLORBLUE;

STICKLINE1(A1 AND A2 AND A3,0,5,3,0),COLORRED;

STICKLINE1(A1 AND A2 AND A3,0,3,3,0),COLORFF00FF;

STICKLINE1(A1 AND A2 AND A3,0,1,3,0),COLORBLUE;

DRAWTEXT(A3=1,4.8,'长攻'),COLORRED;

智勇出击: ZIGZAG(C,6,1)>REF(ZIGZAG(C,6,1),1) AND REF(ZIGZAG(C,6,1),1)<REF(ZIGZAG(C,6,1),2),COLORRED,LINETHICK2;

DRAWTEXT(智勇出击=1,0.8,'突袭'),COLORRED;

小获且退: ZIGZAG(C,10,1)<REF(ZIGZAG(C,10,1),1) AND REF(ZIGZAG(C,10,1),1)>REF(ZIGZAG(C,10,1),2),COLORBLUE,LINETHICK2;

DRAWTEXT(小获且退=1,1.3,'退'),COLORBLUE;

VAR3:=PEAKBARS(H,15,1,1)<10;

VAR5:=IF(VAR3=1,2,0);

顶:= IF(VAR5=2,2,0);

大胜且归:IF(顶>REF(顶,1),2,0),COLORRED,LINETHICK2;

DRAWTEXT(大胜且归=2,2,'撤'),COLORRED;

TYP := (HIGH + LOW + CLOSE)/3;

快线:(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)),COLORBLUE,NODRAW;

中线:(TYP-MA(TYP,26))/(0.015*AVEDEV(TYP,26)),COLORGREEN,NODRAW;

慢线:(TYP-MA(TYP,52))/(0.015*AVEDEV(TYP,52)),COLORRED,NODRAW;

慢线2:(TYP-EMA(TYP,52))/(0.015*AVEDEV(TYP,52)),COLOR0088EE,NODRAW;

CCI买入:CROSS(中线,-100);

CCI买入2:CROSS(快线,-102);

CCI买入3:CROSS(慢线,-99);

STICKLINE1(CCI买入,0,3,3,0),COLORRED;

DRAWTEXT(CCI买入,2.4,'CCI买入'),COLORRED;

(0)

相关推荐