主图趋势线 ---EMA10操盘

主趋势线:EMA(EMA(C,10),10),COLORRED,LINETHICK3;

B:=主趋势线>REF(主趋势线,1);

DRAWCOLORLINE(B,主趋势线,COLORRED,COLORBLUE),LINETHICK3;

AA:=EMA(C,5) > EMA(C,20);

BB:=EMA(C,5) < EMA(C,20);

CC:= EMA(C,5) > EMA(C,10);

CC1:=EMA(C,5) < EMA(C,10);

DD:=CLOSE<OPEN;

STICKLINE1(AA,H,L,0,0),COLORRED;

STICKLINE1(AA,O,C,3,1),COLORRED;

STICKLINE1(AA AND DD,O,C,3,0),COLORRED;

STICKLINE1(BB,H,L,0,0),COLORGREEN;

STICKLINE1(BB,O,C,3,1),COLORGREEN;

STICKLINE1(BB AND DD,O,C,3,0),COLORGREEN;

STICKLINE1(BB AND CC,H,L,0,1),COLORWHITE;

STICKLINE1(BB AND CC,O,C,3,1),COLORWHITE;

STICKLINE1(BB AND CC AND DD,O,C,3,0),COLORWHITE;

STICKLINE1(AA AND CC1,H,L,0,0),COLORWHITE;

STICKLINE1(AA AND CC1,O,C,3,1),COLORWHITE;

STICKLINE1(AA AND CC1 AND DD,O,C,3,0),COLORWHITE;

AAA:=REFX1(HHV(C,90),100000);

DRAWTEXT(REFX(ISLASTBAR,79) ,AAA, '红色K线做多,绿色K线做空,白色K线观望。  '),COLORYELLOW;

主趋势线:EMA(EMA(C,6),6),COLORRED,LINETHICK2;

B:=主趋势线>REF(主趋势线,1);

IF(B-1,主趋势线,NULL),COLORGREEN,LINETHICK2;

AA:=EMA(C,5) > EMA(C,20);

BB:=EMA(C,5) < EMA(C,20);

CC:= EMA(C,5) > EMA(C,10);

CC1:=EMA(C,5) < EMA(C,10);

DD:=CLOSE<OPEN;

STICKLINE1(AA,H,L,0,0),COLORRED;

STICKLINE1(AA,O,C,3,1),COLORRED;

STICKLINE1(AA AND DD,O,C,3,0),COLORRED;

STICKLINE1(BB,H,L,0,0),COLORGREEN;

STICKLINE1(BB,O,C,3,1),COLORGREEN;

STICKLINE1(BB AND DD,O,C,3,0),COLORGREEN;

STICKLINE1(BB AND CC,H,L,0,1),COLORWHITE;

STICKLINE1(BB AND CC,O,C,3,1),COLORWHITE;

STICKLINE1(BB AND CC AND DD,O,C,3,0),COLORWHITE;

STICKLINE1(AA AND CC1,H,L,0,0),COLORWHITE;

STICKLINE1(AA AND CC1,O,C,3,1),COLORWHITE;

STICKLINE1(AA AND CC1 AND DD,O,C,3,0),COLORWHITE;

AAA:=REFX1(HHV(C,90),10000);

DRAWTEXT(REFX(ISLASTBAR,5) ,AAA, '红色开多'),COLORRED,VALIGN2;

DRAWTEXT(REFX(ISLASTBAR,5) ,AAA, '绿色开空'),COLORGREEN,VALIGN0;

MA1:MA(C,36),NODRAW;

DRAWCOLORLINE(C>=MA1,MA1,COLORYELLOW,COLORBLUE),LINETHICK2;//价格大于等于30周期均线时,30周期均线为红色,否则为绿色

MA2:MA(C,60),NODRAW;

DRAWCOLORLINE(C>=MA2,MA2,RGB(33,160,222),COLORLIGHTGREEN),LINETHICK2;

(0)

相关推荐