通达信双龙出海指标
源码
MA1:MA(C,5),COLORRED,LINETHICK1; MA2:MA(C,10),COLORYELLOW,LINETHICK1; MA3:MA(C,30),COLOR9933CC,LINETHICK1; MA4:MA(C,60),COLORGREEN,LINETHICK1; K1:=BACKSET(MA1<REF(MA1,1),2); IF(K1,MA1,DRAWNULL),COLOR00CC33,LINETHICK1; K2:=BACKSET(MA2<REF(MA2,1),2); IF(K2,MA2,DRAWNULL),COLORFFCC66,LINETHICK1; K3:=BACKSET(MA3<REF(MA3,1),2); IF(K3,MA3,DRAWNULL),COLORBLUE,LINETHICK1; 阻力价:HHV(HIGH,19),LINETHICK1,NODRAW; Y:=(MA(C,5)-MA(C,30))/MA(C,5)*100; YY1:=C>MA(C,5) AND OPEN<MA(C,5);{www.qill.cn双龙出海} YY3:=C>MA(C,10) AND OPEN<MA(C,10); YY5:=C>MA(C,30) AND OPEN<MA(C,30); DRAWTEXT(YY1 AND YY5 AND YY3,LOW*0.97,'双龙出海'),COLORRED; VAR1:=HHV(HIGH,25); VAR2:=LLV(LOW,25); VAR3:=EMA((CLOSE-VAR2)/(VAR1-VAR2)*100,20); VAR4:=EMA((CLOSE-VAR2)/(VAR1-VAR2)*100,5); VAR5:=CROSS(VAR4,VAR3); DRAWTEXT(CROSS(VAR3,VAR4) AND BARSLAST(VAR5)>3 ,HIGH*1.01,'短卖'),COLORGREEN; DRAWTEXT(CROSS(VAR3,VAR4) AND BARSLAST(VAR5)<=2 ,HIGH*1.02,'止损'),COLORBLUE; DRAWTEXT(CROSS(VAR4,VAR3) ,LOW*0.98,'短进'),COLORYELLOW; DRAWICON(CROSS(VAR4,VAR3) ,LOW*0.97,11); X3:DRAWICON(CROSS(MA1,MA2),MA2,1); X4:DRAWICON(CROSS(MA1,MA3),MA3,1); X5:DRAWICON(CROSS(MA2,MA3),MA3,1);
有未来函数
移动端首页 | PC端
© by Gszb.com Mobile Web
通达信双龙出海指标
源码
MA1:MA(C,5),COLORRED,LINETHICK1;
MA2:MA(C,10),COLORYELLOW,LINETHICK1;
MA3:MA(C,30),COLOR9933CC,LINETHICK1;
MA4:MA(C,60),COLORGREEN,LINETHICK1;
K1:=BACKSET(MA1<REF(MA1,1),2);
IF(K1,MA1,DRAWNULL),COLOR00CC33,LINETHICK1;
K2:=BACKSET(MA2<REF(MA2,1),2);
IF(K2,MA2,DRAWNULL),COLORFFCC66,LINETHICK1;
K3:=BACKSET(MA3<REF(MA3,1),2);
IF(K3,MA3,DRAWNULL),COLORBLUE,LINETHICK1;
阻力价:HHV(HIGH,19),LINETHICK1,NODRAW;
Y:=(MA(C,5)-MA(C,30))/MA(C,5)*100;
YY1:=C>MA(C,5) AND OPEN<MA(C,5);{www.qill.cn双龙出海}
YY3:=C>MA(C,10) AND OPEN<MA(C,10);
YY5:=C>MA(C,30) AND OPEN<MA(C,30);
DRAWTEXT(YY1 AND YY5 AND YY3,LOW*0.97,'双龙出海'),COLORRED;
VAR1:=HHV(HIGH,25);
VAR2:=LLV(LOW,25);
VAR3:=EMA((CLOSE-VAR2)/(VAR1-VAR2)*100,20);
VAR4:=EMA((CLOSE-VAR2)/(VAR1-VAR2)*100,5);
VAR5:=CROSS(VAR4,VAR3);
DRAWTEXT(CROSS(VAR3,VAR4) AND BARSLAST(VAR5)>3 ,HIGH*1.01,'短卖'),COLORGREEN;
DRAWTEXT(CROSS(VAR3,VAR4) AND BARSLAST(VAR5)<=2 ,HIGH*1.02,'止损'),COLORBLUE;
DRAWTEXT(CROSS(VAR4,VAR3) ,LOW*0.98,'短进'),COLORYELLOW;
DRAWICON(CROSS(VAR4,VAR3) ,LOW*0.97,11);
X3:DRAWICON(CROSS(MA1,MA2),MA2,1);
X4:DRAWICON(CROSS(MA1,MA3),MA3,1);
X5:DRAWICON(CROSS(MA2,MA3),MA3,1);
有未来函数