最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 通达信冲浪均线主图指标 九毛八公式指标网

    正文概述    2024-04-07 12:11:35  
    通达信冲浪均线主图指标 源码 贴图
    通达信冲浪均线主图指标 源码 贴图
    通达信冲浪均线主图指标 源码 贴图

    EMA12:=EMA(C,12);
    EMA26:=EMA(C,26);
    DIFF:=(EMA(C,12)-EMA(C,26))+EMA(C,12),COLORRED;
    DEA:=EMA((EMA(C,12)-EMA(C,26)),9)+EMA(C,12),COLORGREEN;
    三金叉:=CROSS(EMA12,EMA26) AND CROSS(DIFF,EMA12);
    MA1:DIFF,COLORRED;
    MA2:DEA,COLORGREEN;
    MA3:EMA12,COLORWHITE;
    MA4:EMA26,COLORYELLOW;
    最高乖离:(H-EMA26)/EMA26,NODRAW;
    最低乖离:(L-EMA26)/EMA26,COLORYELLOW,NODRAW;
    DIF角度:=ATAN((DIFF/REF(DIFF,1)-1)*100)*180/3.1416,NODRAW;
    EMA26角度:=ATAN((EMA26/REF(EMA26,1)-1)*100)*180/3.1416,NODRAW;
    MA1角度:DIF角度,NODRAW;
    MA4角度:EMA26角度,NODRAW;
    开口率:(DIFF-DEA)/DEA*1000,NODRAW;
    DRAWICON(CROSS(DIFF,DEA),DEA,1);
    DRAWICON(三金叉,DEA,5);
    DRAWICON(CROSS(EMA26,EMA12),DEA,6);
    DRAWICON(最高乖离 0.1 AND (H-C)/H 0.025,H*1.009,15);
    DRAWICON(CROSS(DEA,DIFF),DEA,2);
    DRAWICON(EMA12 EMA26 AND EMA26角度 -45 AND 最低乖离 -0.10 AND (C-L)/L 0.025,L*0.99,11);
    DRAWICON(EMA12 EMA26 AND 最低乖离 -0.09 AND (C-L)/L 0.025,L*0.99,7);

    {RSV:=(H-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
    K:=SMA(RSV,3,1),COLORWHITE;
    D:=SMA(K,3,1),COLORYELLOW;
    J:=3*K-2*D,COLORFF00FF;
    KDJ卖:=EMA12 EMA26 AND J 100 AND (H-C)/H 0.025;
    DRAWICON(KDJ卖,H,12); }
    {RC:=DYNAINFO(3);
    A:=EMA(C,12);B:=EMA(C,26);MD:=A-B;
    STICKLINE(MD 0,RC,RC+MD*2,0,0),COLORRED;
    STICKLINE(MD 0,RC,RC+MD*2,0,0),COLOR00FF00;}

    TY:=C;
    A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10); C1:=BACKSET(B1,10+1); HD:=FILTER(C1,10);
    A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10); C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10);
    前期高位:REF(C,BARSLAST(HD)),COLORRED,NODRAW;
    前高:=IF(量能划线开关=1,前期高位,DRAWNULL);
    STICKLINE(C,前高,前高,8,0),COLORRED;

    三日不破:=MIN(MIN(L,REF(L,1)),REF(L,2)) =REF(L,3);
    三日量缩:=(MAX(MAX(V,REF(V,1)),REF(V,2)) REF(V,3));
    三日价涨A:=C =REF(C,1);
    三日价涨B:=C REF(C,1);
    三日价涨C:=MIN(MIN(C,REF(C,1)),REF(C,2)) =REF(L,3);
    TIM:=IF(DATE 1140214,1,0);
    缩倍柱:=(VOL*1.95 =REF(VOL,1))*TIM;
    百日低量:=(VOL=LLV(VOL,100))*TIM;
    倍量柱:=C REF(C,1)*1.04 AND (VOL =1.9*REF(VOL,1))*TIM;
    四日前倍量柱:=(REF(VOL,3) 1.9*REF(VOL,4))*TIM;
    四日前高量柱:=(REF(VOL,3) =REF(VOL,4) AND REF(VOL,3) 1.9*REF(VOL,4) AND 三日量缩)*TIM;
    前三引用不成立:=COUNT(REF(四日前倍量柱,1) AND (REF(三日不破,1) OR REF(三日价涨C,1)),3)=0 AND COUNT(REF(四日前高量柱,1) AND (REF(三日不破,1) OR REF(三日价涨C,1)),3)=0;
    倍量黄金柱:=四日前倍量柱 AND 三日量缩 AND 三日不破 AND 三日价涨A AND 前三引用不成立;
    高量黄金柱:=四日前高量柱 AND 三日量缩 AND 三日不破 AND 三日价涨A AND 前三引用不成立;
    黄金柱:=倍量黄金柱 OR 高量黄金柱;
    次倍量黄金柱:=NOT(黄金柱) AND 四日前倍量柱 AND 三日量缩 AND 三日不破 AND 三日价涨B AND 前三引用不成立;
    次高量黄金柱:=NOT(黄金柱) AND 四日前高量柱 AND 三日量缩 AND 三日不破 AND 三日价涨B AND 前三引用不成立;
    次黄金柱:=次倍量黄金柱 OR 次高量黄金柱;
    准倍量黄金柱:=NOT(黄金柱 OR 次黄金柱) AND 四日前倍量柱 AND ((三日量缩 AND 三日价涨C) OR (COUNT(倍量柱,3) =1 AND 三日不破)) AND 前三引用不成立;
    准高量黄金柱:=NOT(黄金柱 OR 次黄金柱) AND 四日前高量柱 AND (三日量缩 AND 三日价涨C) AND 前三引用不成立;
    准黄金柱:=准倍量黄金柱 OR 准高量黄金柱;
    倍量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱) AND 四日前倍量柱 AND 三日不破 AND 三日价涨A AND 前三引用不成立;
    高量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱) AND 四日前高量柱 AND 三日不破 AND 三日价涨A AND 前三引用不成立;
    将军柱:=倍量将军柱 OR 高量将军柱;
    次倍量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱) AND 四日前倍量柱 AND 三日不破 AND 三日价涨B AND 前三引用不成立;
    次高量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱) AND 四日前高量柱 AND 三日不破 AND 三日价涨B AND 前三引用不成立;
    次将军柱:=次倍量将军柱 OR 次高量将军柱;
    准倍量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱 OR 次将军柱) AND 四日前倍量柱 AND 三日价涨C AND 前三引用不成立;
    准高量将军柱:=NOT(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱 OR 次将军柱) AND 四日前高量柱 AND 三日价涨C AND 前三引用不成立;
    准将军柱:=准倍量将军柱 OR 准高量将军柱;
    BACKSET100:=BACKSET(黄金柱 OR 次黄金柱 OR 准黄金柱 OR 将军柱 OR 次将军柱 OR 准将军柱,4);
    FILTER100:=FILTER(BACKSET100,3),NODRAW;
    BACKSET101:=BACKSET(黄金柱,4);
    FILTER101:=FILTER(BACKSET101,3);
    BACKSET102:=BACKSET(次黄金柱,4);
    FILTER102:=FILTER(BACKSET102,3);
    BACKSET103:=BACKSET(准黄金柱,4);
    FILTER103:=FILTER(BACKSET103,3);
    BACKSET104:=BACKSET(将军柱,4);
    FILTER104:=FILTER(BACKSET104,3);
    BACKSET105:=BACKSET(次将军柱,4);
    FILTER105:=FILTER(BACKSET105,3);
    BACKSET106:=BACKSET(准将军柱,4);
    FILTER106:=FILTER(BACKSET106,3);
    黄金线下影线:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2)) =REF(L,3);
    黄金线实体下端:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2)) =MIN(REF(C,3),REF(O,3)) AND MIN(MIN(L,REF(L,1)),REF(L,2)) REF(L,3),LINETHICK0;
    黄金线上影线:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2)) =REF(H,3);
    黄金线实体上端:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2)) =MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2)) REF(H,3);
    黄金线实体中间:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2)) MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2)) MIN(REF(C,3),REF(O,3));
    黄金线实体中间1:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2)) MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2)) MIN(REF(C,3),REF(O,3)) AND REF(L,2)=MIN(MIN(L,REF(L,1)),REF(L,2));
    黄金线实体中间2:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2)) MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2)) MIN(REF(C,3),REF(O,3)) AND REF(L,1)=MIN(MIN(L,REF(L,1)),REF(L,2));
    黄金线实体中间3:=REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2)) MAX(REF(C,3),REF(O,3)) AND REF(FILTER100,3)=1 AND MIN(MIN(L,REF(L,1)),REF(L,2)) MIN(REF(C,3),REF(O,3)) AND L=MIN(MIN(L,REF(L,1)),REF(L,2));
    BACKSET201:=BACKSET(黄金线下影线,4);{www.9m8.cn 九毛八公式指标网}
    FILTER201:=FILTER(BACKSET201,3),NODRAW;
    BACKSET202:=BACKSET(黄金线实体下端,4);
    FILTER202:=FILTER(BACKSET202,3),NODRAW;
    BACKSET203:=BACKSET(黄金线上影线,4);
    FILTER203:=FILTER(BACKSET203,3),NODRAW;
    BACKSET204:=BACKSET(黄金线实体上端,4);
    FILTER204:=FILTER(BACKSET204,3),NODRAW;
    BACKSET205:=BACKSET(黄金线实体中间,4);
    FILTER205:=FILTER(BACKSET205,3),NODRAW;
    BACKSET2051:=BACKSET(黄金线实体中间1,4);
    FILTER2051:=FILTER(BACKSET2051,3),NODRAW;
    BACKSET2052:=BACKSET(黄金线实体中间2,4);
    FILTER2052:=FILTER(BACKSET2052,3),NODRAW;
    BACKSET2053:=BACKSET(黄金线实体中间3,4);
    FILTER2053:=FILTER(BACKSET2053,3),NODRAW;
    BT201:=IF(BARSLAST(FILTER201)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER201));
    BT202:=IF(BARSLAST(FILTER202)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER202));
    BT203:=IF(BARSLAST(FILTER203)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER203));
    BT204:=IF(BARSLAST(FILTER204)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER204));
    BT205:=IF(BARSLAST(FILTER205)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER205));
    BT2051:=IF(BARSLAST(FILTER2051)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER2051));
    BT2052:=IF(BARSLAST(FILTER2052)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER2052));
    BT2053:=IF(BARSLAST(FILTER2053)=DRAWNULL,BARSCOUNT(CLOSE),BARSLAST(FILTER2053));
    最近黄金线:=MIN(MIN(MIN(MIN(MIN(MIN(BT201,BT202),BT203),BT204),BT2051),BT2052),BT2053);
    DAY1:=SUMBARS(FILTER100,1),NODRAW;
    HJX1_1:=IF(SUMBARS(FILTER201,1)=DAY1,IF(DAY1=1,LOW,REF(LOW,DAY1-1)),0),NODRAW;
    HJX1_2:=IF(SUMBARS(FILTER202,1)=DAY1,IF(DAY1=1,MIN(C,O),MIN(REF(C,DAY1-1),REF(OPEN,DAY1-1))),0),NODRAW;
    HJX1_3:=IF(SUMBARS(FILTER203,1)=DAY1,IF(DAY1=1,HIGH,REF(HIGH,DAY1-1)),0),NODRAW;
    HJX1_4:=IF(SUMBARS(FILTER204,1)=DAY1,IF(DAY1=1,MAX(C,O),MAX(REF(C,DAY1-1),REF(OPEN,DAY1-1))),0),NODRAW;
    HJX1_51:=IF(SUMBARS(FILTER2051,1)=DAY1,IF(DAY1=2,LOW,IF(DAY1 2,DRAWNULL,REF(LOW,DAY1-2))),0),NODRAW;
    HJX1_52:=IF(SUMBARS(FILTER2052,1)=DAY1,IF(DAY1=3,LOW,IF(DAY1 3,DRAWNULL,REF(LOW,DAY1-3))),0),NODRAW;
    HJX1_53:=IF(SUMBARS(FILTER2053,1)=DAY1,IF(DAY1=4,LOW,IF(DAY1 4,DRAWNULL,REF(LOW,DAY1-4))),0),NODRAW;
    黄金线:=HJX1_1+HJX1_2+HJX1_3+HJX1_4+HJX1_51+HJX1_52+HJX1_53,COLORYELLOW,NODRAW;
    立桩量:=VOL=HHV(VOL,40) AND VOL 1.9*REF(VOL,1);
    立桩量三日突破:=IF(BARSLAST(立桩量)=1 AND CLOSE REF(HIGH,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE REF(HIGH,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE REF(HIGH,3),1,0)));
    立桩量三日不破:=BARSLAST(立桩量)=3 AND REF(LOW,3) =MIN(MIN(C,REF(C,1)),REF(C,2));
    BACKSET300:=BACKSET(立桩量三日不破,4);
    BACKSET301:=BACKSET(立桩量三日突破,4);
    立桩量成立:=FILTER(BACKSET300,3) AND BACKSET301 AND 立桩量;
    {DRAWTEXT(立桩量成立,HIGH*1.01,'↙立桩量'),COLOR00FF00;
    DRAWTEXT(FILTER101,LOW*0.986,'↖黄金柱'),COLORYELLOW;
    STICKLINE(FILTER101,OPEN,CLOSE,0.5,0),COLORYELLOW;
    DRAWTEXT(FILTER102,LOW*0.986,'↖次黄金柱'),COLORYELLOW;
    DRAWTEXT(FILTER104,LOW*0.986,'↖将军柱'),COLORYELLOW;
    STICKLINE(FILTER104,OPEN,CLOSE,1.5,0),COLORYELLOW;}
    KK1:=SUMBARS(FILTER104,1);
    K1:=IF(量能划线开关=1,KK1,DRAWNULL);
    STICKLINE(K1,REF(L,K1-2),REF(L,K1-2),10,0),COLORLIBLUE;
    KK2:=SUMBARS(FILTER101,1);
    K2:=IF(量能划线开关=1,KK2,DRAWNULL);
    STICKLINE(K2,REF(L,K2-2),REF(L,K2-2),10,0),COLORLIRED;


    DRAWTEXT_FIX(1,0.00,0,0,HYBLOCK)COLOR0080FF;
    DRAWTEXT_FIX(1,0.06,0,0,DYBLOCK)COLOR00FFFF;
    DRAWTEXT_FIX(1,0.12,0,0,EXTERNSTR(0,2))COLOR0000FF;
    DRAWTEXT_FIX(1,0.00,0.06,0,EXTERNSTR(0,1))COLORFF88FF;
    DRAWTEXT_FIX(1,0.00,0.12,0,EXTERNSTR(0,3)),COLORLICYAN;
    DRAWTEXT_FIX(1,0.5,0.06,0,'【冲浪均线,甚财金融学院,呱呱:318316】'),COLORRED;
    DRAWTEXT_FIX(1,0,1,0,'QQ:69232655,QQ:69232655'),COLOR000000;

    {显示历史缺口}
    STICKLINE(HIGH REF(LOW,1),HIGH,REF(LOW,1),5,1) ,COLORGREEN;
    STICKLINE(LOW REF(HIGH,1) ,LOW,REF(HIGH,1),5,1),COLORYELLOW;

    PT := REF(HIGH,1)-REF(LOW,1);
    CDP :=(REF(HIGH,1) + REF(LOW,1)+ REF(CLOSE,1)*2)/4;
    今强阻力 :=CDP + PT COLORYELLOW;
    今次阻力:= 2*CDP-REF(LOW,1) COLORWHITE;
    今次支撑 := 2*CDP-REF(HIGH,1) COLORWHITE;
    今强支撑 := CDP - PT COLORYELLOW;
    PT1 := HIGH-LOW;
    CDP1 :=(HIGH + LOW+ CLOSE*2)/4;
    明强阻力 := CDP1 + PT1 COLORRED;
    明次阻力:= 2*CDP1-LOW COLORGREEN;
    明次支撑 := 2*CDP1-HIGH COLORGREEN;
    明强支撑 := CDP1 - PT1 COLORRED;
    AAA1:=CURRBARSCOUNT;
    AA1:=IF(价格预测开关=1,AAA1,DRAWNULL);
    BB1:=REFDATE(今强阻力,DATE);
    BB2:=REFDATE(今次阻力,DATE);
    BB3:=REFDATE(今次支撑,DATE);
    BB4:=REFDATE(今强支撑,DATE);
    强阻力:DRAWLINE(AA1 =4,BB1,AA1=4,BB1,1),DOTLINE,COLORYELLOW;
    次阻力:DRAWLINE(AA1 =2,BB2,AA1=2,BB2,1),DOTLINE,COLORLIRED;
    次支撑:DRAWLINE(AA1 =2,BB3,AA1=2,BB3,1),DOTLINE,COLORGREEN;
    强支撑:DRAWLINE(AA1 =4,BB4,AA1=4,BB4,1),DOTLINE,COLORLIGREEN;
    XJ:=IF(现价划线开关=1,DYNAINFO(7),DRAWNULL);
    现价:DRAWLINE(AAA1 =120,IF(XJ 0.1,XJ,DRAWNULL),AAA1=120,IF(XJ 0,XJ,DRAWNULL),1),COLORWHITE;


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 通达信冲浪均线主图指标 九毛八公式指标网 加入收藏