以下是多空指标主图全新多空线

{全新多空线}
MID:=(3*CLOSE+LOW+OPEN+HIGH)/3;
多空买卖线:(10*MID+9.5*REF(MID,0.5)+9*REF(MID,1)+8.5*REF(MID,1.5)+
 8*REF(MID,2)+7.5*REF(MID,2.5)+7*REF(MID,3)+
 6.5*REF(MID,3.5)+6*REF(MID,4)+5.5*REF(MID,4.5)+
 5*REF(MID,5)+4.5*REF(MID,5.5)+4*REF(MID,6)+
 3.5*REF(MID,6.5)+3*REF(MID,7)+2.5*REF(MID,7.5)+
 2*REF(MID,8)+1.5*REF(MID,8.5)+1*REF(MID,9)+0.5*REF(MID,10))/210,COLORCYAN,LINETHICK2;
 DD:=MA(多空买卖线,3),COLORCYAN,LINETHICK2;
 DRAWNUMBER(ISLASTBAR,多空买卖线,多空买卖线),COLORCYAN;

MIDS:=(3*CLOSE+LOW+OPEN+HIGH)/6;
多空线:(20*MIDS+19*REF(MIDS,1)+18*REF(MIDS,2)+17*REF(MIDS,3)+
 16*REF(MIDS,4)+15*REF(MIDS,5)+14*REF(MIDS,6)+
 13*REF(MIDS,7)+12*REF(MIDS,8)+11*REF(MIDS,9)+
 10*REF(MIDS,10)+9*REF(MIDS,11)+8*REF(MIDS,12)+
 7*REF(MIDS,13)+6*REF(MIDS,14)+5*REF(MIDS,15)+
 4*REF(MIDS,16)+3*REF(MIDS,17)+2*REF(MIDS,18)+REF(MIDS,20))/210,COLORMAGENTA;

{********************************************************};

高1:=REF(HHV(H,120),3);
低1:=REF(LLV(L,120),3);
 H1:=高1-(高1-低1)*0.191;
 H2:=高1-(高1-低1)*0.382;
 H3:=高1-(高1-低1)*0.5;
 H4:=高1-(高1-低1)*0.618;
 H5:=高1-(高1-低1)*0.809;
突破:=多空线;
A1X:=(EMA(C,5)-突破)/突破*100;
基准:=IF(A1X>=0,REF(EMA(C,10),BARSLAST(CROSS(A1X,0))+1),REF(EMA(C,10),BARSLAST(CROSS(0,A1X))+1));
 STICKLINE(A1X>=0,基准,突破,5,0),COLOR000099;
 STICKLINE(A1X<0,基准,突破,5,0),COLOR00CC66;
 AA:=CROSS(A1X,0),LINETHICK0;
 STICKLINE(A1X>=0,C,O,2.7,0),COLOR0011FF;
 STICKLINE(A1X>=0,C,O,1.8,0),COLOR0044FF;
 STICKLINE(A1X>=0,C,O,0.9,0),COLOR0077FF;
 STICKLINE(A1X>=0,C,O,0.1,0),COLOR0099FF;
 STICKLINE(A1X>=0,H,L,0,0),COLOR0099FF;
 STICKLINE(AA,C,O,2.7,0),COLOR330033;
 STICKLINE(AA,C,O,1.8,0),COLOR770077;
 STICKLINE(AA,C,O,0.9,0),COLORBB00BB;
 STICKLINE(AA,C,O,0.1,0),COLORFF00FF;
 STICKLINE(AA,H,L,0,0),COLORFF00FF;
 DRAWICON(AA,C*0.9992,5);
 DRAWTEXT(AA,C*0.998,’上楼’),COLORRED;
 BB:=CROSS(0,A1X),LINETHICK0;
 STICKLINE(A1X<0,C,O,2.7,0),COLORAAAAAA;
 STICKLINE(A1X<0,C,O,1.8,0),COLORCCCCCC;
 STICKLINE(A1X<0,C,O,0.9,0),COLORDDDDDD;
 STICKLINE(A1X<0,C,O,0.1,0),COLORFFFFFF;
 STICKLINE(A1X<0,H,L,0,0),COLORFFFFFF;
 STICKLINE(BB,C,O,2.7,0),COLOR333300;
 STICKLINE(BB,C,O,1.8,0),COLOR555500;
 STICKLINE(BB,C,O,0.9,0),COLOR777700;
 STICKLINE(BB,C,O,0.1,0),COLOR999900;
 STICKLINE(BB,H,L,0,0),COLOR999900;
 DRAWICON(BB,C*1.0005,6);
 DRAWTEXT(BB,C*1.001,’下楼’),COLOR00FF00;

{********************************************************};
下降压力线:DRAWLINE(HIGH>=HHV(HIGH,10),HIGH,LOW<=LLV(LOW,3),HHV(HIGH,3),1),COLORBLUE,LINETHICK2;
上升支撑线:DRAWLINE(LOW<=LLV(LOW,10),LOW,HIGH>=HHV(HIGH,3),LLV(LOW,3),1),COLOR0099FF   ,LINETHICK2;
 DRAWNUMBER(ISLASTBAR,下降压力线,下降压力线),COLORBLUE;
 DRAWNUMBER(ISLASTBAR,上升支撑线,上升支撑线),COLOR0099FF;
上:WMA(SMA(HHV(HIGH,18),9/2,1),3), COLORFAABEC,DOTLINE;
下:WMA(SMA(LLV(LOW,18),9/2,1),3),COLORWHITE,DOTLINE;

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。