趋势主图
2016-1-22 20:53:09点击:
{主趋势线:EMA(EMA(C,10),10),colorblue,LINETHICK3;
B:=主趋势线<REF(主趋势线,1);
IF(B-1,主趋势线,DRAWNULL)colorred,LINETHICK3;}
主趋势线60:EMA(EMA(C,60),60),COLOR00FFFF,LINETHICK2;
主趋势线:EMA(EMA(C,10),10),colorred,LINETHICK2;
B:=主趋势线>REF(主趋势线,1);
{操盘线:EMA(EMA(C,5),5),colorred,LINETHICK2;
Y:=操盘线>REF(操盘线,1);
IF(Y-1,操盘线,DRAWNULL)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;
STICKLINE(AA,H,L,0,0),colorred;
STICKLINE(AA,O,C,3,1),colorred;
STICKLINE(AA AND DD,O,C,3,0),colorred;
STICKLINE(BB,H,L,0,0),colorgreen;
STICKLINE(BB,O,C,3,1),colorgreen;
STICKLINE(BB AND DD,O,C,3,0),colorgreen;
STICKLINE(BB AND CC,H,L,0,1),colorwhite;
STICKLINE(BB AND CC,O,C,3,1),colorwhite;
STICKLINE(BB AND CC AND DD,O,C,3,0),colorwhite;
STICKLINE(AA AND CC1,H,L,0,0),colorwhite;
STICKLINE(AA AND CC1,O,C,3,1),colorwhite;
STICKLINE(AA AND CC1 AND DD,O,C,3,0),colorwhite;
AAA:=(HHV(C,90));
////DRAWTEXT(C AND CURRBARSCOUNT=80 ,AAA, '红色K线做多,绿色K线做空,白色K线观望。 '),coloryellow;
HH:=(20*H+19*REF(H,1)+18*REF(H,2)+17*REF(H,3)+16*REF(H,4)+15*REF(H,5)+14*REF(H,6)
+13*REF(H,7)+12*REF(H,8)+11*REF(H,9)+10*REF(H,10)+9*REF(H,11)+8*REF(H,12)
+7*REF(H,13)+6*REF(H,14)+5*REF(H,15)+4*REF(H,16)+3*REF(H,17)+2*REF(H,18)+
REF(H,20))/210,colorblue,LINETHICK0;
LL:=(20*L+19*REF(L,1)+18*REF(L,2)+17*REF(L,3)+16*REF(L,4)+15*REF(L,5)+14*REF(L,6)
+13*REF(L,7)+12*REF(L,8)+11*REF(L,9)+10*REF(L,10)+9*REF(L,11)+8*REF(L,12)
+7*REF(L,13)+6*REF(L,14)+5*REF(L,15)+4*REF(L,16)+3*REF(L,17)+2*REF(L,18)+
REF(L,20))/210,colorblue,LINETHICK0;
黄牛线:EMA(HH,90),coloryellow,LINETHICK0;
离合3:黄牛线-((C-黄牛线)*C-黄牛线)/黄牛线,LINETHICK2,COLORFFFFFF;
TP1:=CROSS(黄牛线,离合3);
DRAWICON(TP1,LOW,34);
道2:6*HHV(黄牛线,3)-5*黄牛线,LINETHICK0,COLOR400080;
ITVKHSH:IF( 离合3>主趋势线,主趋势线,离合3),COLORFFFFFF;
DRAWICON(CROSS(主趋势线,离合3) OR CROSS(主趋势线,离合3),主趋势线60,1);