最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • DMI背离 同花顺副图指标,源码分享

    正文概述    2024-04-14 18:27:36  
    90,colorgreen,LINETHICK2;
    20,colorgreen;
    底:10,COLOR996699,LINETHICK2;
    90,COLOR9966FF,LINETHICK2;
    50,colorred;
    A:=MA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19);
    B:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));
    D:=EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4);
    长期线:A+100,COLOR9900FF;
    短期线:B+100,COLOR888888;
    中期线:D+100,coloryellow,LINETHICK2;
    见顶:=((REF(中期线,1)>85 AND REF(短期线,1)>85 AND REF(长期线,1)>65) AND CROSS(长期线,短期线));
    顶部区域:(中期线80) AND (REF(短期线,1)>95 OR REF(短期线,2)>95 ) AND 长期线>60 AND 短期线<83.5
    AND 短期线<中期线 AND 短期线<长期线+4,colorgreen;
    顶部:=FILTER(顶部区域,4);
    STICKLINE(  顶部,99,103,20,1 ),colorred,LINETHICK2;
    底部区域:(长期线<12 AND 中期线<8 AND (短期线<7.2 OR REF(短期线,1)<5) AND (中期线>REF(中期线,1) OR 短期线>REF(短期线,1)))
    OR (长期线<8 AND 中期线<7 AND 短期线<15 AND 短期线>REF(短期线,1)) OR (长期线<10 AND 中期线<7 AND 短期线<1) ,colorgreen;
    STICKLINE( 底部区域,-4,0,22,0 ),colorgreen;
    低位金叉:50*(长期线<15 AND REF(长期线,1)<15 AND 中期线<18 AND 短期线>REF(短期线,1) AND CROSS(短期线,长期线) AND 短期线>中期线
    AND (REF(短期线,1)<5 OR REF(短期线,2)<5 ) AND (中期线>=长期线 OR REF( 短期线,1)<1 )),colorred;
    X5:=EXPMA(CLOSE,3);
    X10:=EXPMA(CLOSE,7);
    X20:=EXPMA(CLOSE,20);
    五日斜率:=(X5-REF(X5,1))*100/REF(X5,1);
    十日斜率:=(X10-REF(X10,1))*100/REF(X10,1);
    二十斜率:=(X20-REF(X20,1))*100/REF(X20,1);
    XX5:=XMA(五日斜率,4);
    XX10:=XMA(十日斜率,7);
    XX200:=XMA(二十斜率,20);
    AA1:=XX200>=0.7 AND REF(XX200,1) XX10 AND  XX10>XX200
    AND  REF(XX5,2)XX202:=XMA(二十斜率,22);
    AA2:=XX202>=0.7 AND REF(XX200,1) XX10 AND  XX10>XX202
    AND  REF(XX5,2)XX204:=XMA(二十斜率,24);
    AA3:=XX204>=0.7  AND REF(XX200,1) XX10 AND  XX10>XX204
    AND  REF(XX5,2)XX206:=XMA(二十斜率,26);
    AA4:=XX206>=0.7  AND REF(XX200,1) XX10 AND  XX10>XX206
    AND  REF(XX5,2)XX207:=XMA(二十斜率,20);
    AA7:=XX207>=0.7 AND REF(XX207,1)AND CROSS(REF(XX5,1),REF(XX207,1));
    XX2071:=XMA(二十斜率,23);
    AA71:=XX2071>=0.7 AND REF(XX2071,1)AND CROSS(REF(XX5,1),REF(XX2071,1));
    XX2072:=XMA(二十斜率,26);
    AA72:=XX2072>=0.7 AND REF(XX2072,1)AND CROSS(REF(XX5,1),REF(XX2072,1));
    XX208:=XMA(二十斜率,20);
    AA8:=XX208>=0.7 AND REF(XX208,1)AND CROSS(XX5,XX208);
    XX2081:=XMA(二十斜率,23);
    AA81:=XX2081>=0.7 AND REF(XX2081,1)AND CROSS(XX5,XX2081);
    XX2082:=XMA(二十斜率,26);
    AA82:=XX2082>=0.7 AND REF(XX2082,1)AND CROSS(XX5,XX2082);
    DRAWTEXT(AA1=1,10,'★AA1'),colorred;
    DRAWTEXT(AA2=1,15,'★AA2'),colorred;
    DRAWTEXT(AA3=1,20,'★AA3'),colorred;
    DRAWTEXT(AA4=1,25,'★AA4'),colorred;
    DRAWTEXT(AA7=1,30,'★AA7'),colorred;
    DRAWTEXT(AA71=1,35,'★AA71'),colorred;
    DRAWTEXT(AA72=1,40,'★AA72'),colorred;
    DRAWTEXT(AA8=1,45,'★AA8'),colorred;
    DRAWTEXT(AA81=1,50,'★AA81'),colorred;
    DRAWTEXT(AA82=1,55,'★AA82'),colorred;
    斜率:AA1=1 OR AA2=1 OR AA3=1 OR AA3=1 OR AA4=1 OR AA7=1 OR AA71=1 OR AA72=1 OR AA8=1 OR AA81=1 OR AA82=1;
    DRAWTEXT(斜率,L,'斜率1');
    A1:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1);
    黑马线:=EMA(A1,5);
    A2:=(黑马线-REF(黑马线,1))/REF(黑马线,1)*100;
    A3:=EMA(C,5);
    A4:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;
    趋势线:=(MA(3*SMA(A4,6,1)-2*SMA(SMA(A4,5,1),5,1),2));
    A5:=(HHV(H,60)-C)/(HHV(H,60)-LLV(L,60))*100;
    DRAWTEXT(FILTER(REF(黑马线,1)>90 AND A2<0,7),黑马线,'跑'),COLOR00FF00;
    DRAWTEXT(CROSS(A1,黑马线)AND 黑马线DRAWTEXT(CROSS(黑马线,A5)AND 趋势线<80,黑马线,'追涨');
    DRAWTEXT(CROSS(趋势线,0)AND 黑马线<40,5,'大黑马');





    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » DMI背离 同花顺副图指标,源码分享 加入收藏