• 网站首页
  • 股票知识
  • 股票公式
  • 散户炒股
  • 问答百科
  • 缠中说禅
  • 概念股
  • 【股票入门】通达信源码:压力支撑回马枪+阴阳太极+长阴短柱

    发布时间: 2020-04-11 16:44首页:股票一点通 > 股票公式 > 通达信公式 > 阅读()
    压力支撑回马枪:

    {公式名称: 压力支撑回马枪}

    {主图叠加}
     
    X_1:=IF(1,(CLOSE/REF(CLOSE,1)-1)*100>9.5,0);
    最后涨停距今数:BARSLAST(X_1),NODRAW,COLOR00CCCC;
    X_2:=(REF(CLOSE,BARSLAST(X_1))+REF(OPEN,BARSLAST(X_1)))/2;
    STICKLINE(CLOSE,X_2,REF(LOW,BARSLAST(X_1)),4,0),COLOR002828;
    DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
    STICKLINE(X_1,OPEN,CLOSE,2.6,0),COLOR0000E5;
    STICKLINE(X_1,OPEN,CLOSE,2.4,0),COLOR335555;
    STICKLINE(X_1,OPEN,CLOSE,1.8,0),COLOR338888;
    STICKLINE(X_1,OPEN,CLOSE,1.2,0),COLOR33AAAA;
    STICKLINE(X_1,OPEN,CLOSE,0.6,0),COLOR33CCCC;
    STICKLINE(X_1,OPEN,CLOSE,0.1,0),COLOR33EEEE;
    X_3:=REF(CLOSE,1);
    X_4:=IF((X_3-CLOSE)*100/X_3>=10-0.01*100/X_3,1,0);
    STICKLINE(X_4,OPEN,CLOSE,2.6,0),COLORE50000;
    MA13:MA(CLOSE,13),COLORCYAN;
    IF(MA13>REF(MA13,1),MA13,DRAWNULL),COLORRED;
    MA21:MA(CLOSE,21),COLOR00CCCC,LINETHICK2;
    X_5:=CLOSE>MA21 AND MA13>REF(MA13,1) AND X_4!=1;
    X_6:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
    X_7:=REF(CLOSE,1);
    X_8:=SMA(MAX(CLOSE-X_7,0),2,1)/SMA(ABS(CLOSE-X_7),2,1)*100;
    X_9:=SMA(MAX(CLOSE-X_7,0),14,1)/SMA(ABS(CLOSE-X_7),14,1)*100;
    X_10:=45;
    X_11:=80;
    X_12:=20;
    X_13:=5;
    X_14:=X_8<X_10 AND REF(X_8,1)>X_10;
    X_15:=X_8<X_12 AND REF(X_8,1)>X_12;
    X_16:=COUNT(X_1,13)>=1;
    X_17:=SMA(LOW,4,3);
    X_18:=X_14 OR X_15 AND X_16;
    X_19:=REF(X_14,1) OR REF(X_15,1) AND LOW<MA(CLOSE,5) AND X_16 AND X_5 AND CLOSE>REF(LOW,BARSLAST(X_1));
    STICKLINE(X_18 AND NOT(X_1),OPEN,CLOSE,2.4,0),COLOR550055;
    STICKLINE(X_18 AND NOT(X_1),OPEN,CLOSE,1.8,0),COLOR880088;
    STICKLINE(X_18 AND NOT(X_1),OPEN,CLOSE,1.2,0),COLORAA00AA;
    STICKLINE(X_18 AND NOT(X_1),OPEN,CLOSE,0.6,0),COLORCC00CC;
    STICKLINE(X_18,OPEN,CLOSE,0.1,0),COLOREE00EE;
    STICKLINE(X_19 AND NOT(X_1),OPEN,CLOSE,1.2,0),COLOR000088;
    STICKLINE(X_19 AND NOT(X_1),OPEN,CLOSE,0.6,0),COLOR0000AA;
    STICKLINE(X_19 AND NOT(X_1),OPEN,CLOSE,0.3,0),COLOR0000CC;
    STICKLINE(X_19,OPEN,CLOSE,0.1,0),COLOR0000EE;
    STICKLINE(X_19,X_17*0.995,X_17,5,0),COLORGREEN;
    DRAWICON(X_19,LOW*0.98,1);
    X_20:=AMOUNT/VOL/100;
    X_21:=REF(CLOSE,1);
    STICKLINE(CURRBARSCOUNT<21 AND X_1=1,X_20,X_20,2.5,0),COLORYELLOW;
    STICKLINE(CLOSE,X_2,X_2,2,0),COLORRED;
    STICKLINE(CLOSE,REF(LOW,BARSLAST(X_1)),REF(LOW,BARSLAST(X_1)),2,0),COLORCCCC00;




    阴阳太极:

    {公式名称: 阴阳太极}
    {公式描述: 黄线+红线上持股}
    {主图叠加}
     
    分析家公式网:DRAWNULL,COLORCCCCCC;
    VAR1:=(CLOSE+LOW+HIGH)/3;
    VAR2:=IF(VAR1>REF(VAR1,1),(CLOSE+LOW+HIGH)/3,REF((CLOSE+LOW+HIGH)/3,1));
    VAR3:=IF(VAR1<REF(VAR1,1),(CLOSE+LOW+HIGH)/3,REF((CLOSE+LOW+HIGH)/3,1));
    VAR4:=VAR2;
    VAR5:=(VAR2+VAR3)/2;
    VAR6:=VAR3;
    上线:IF(ISLASTBAR,REF(VAR4,1),DRAWNULL),NODRAW,COLORRED;
    中线:IF(ISLASTBAR,REF(VAR6,1),DRAWNULL),NODRAW,COLORYELLOW;
    下线:IF(ISLASTBAR,REF(VAR5,1),DRAWNULL),NODRAW,COLORLIBLUE;
    VAR7:=1;
    VAR8:=CURRBARSCOUNT<2;
    VAR9:=CURRBARSCOUNT<13;
    VAR10:=IF(VAR8,上线,DRAWNULL);
    VAR11:=IF(VAR8,中线,DRAWNULL);
    VAR12:=IF(VAR8,下线,DRAWNULL);
    VAR13:=IF(VAR9,VAR10,DRAWNULL);
    VAR14:=IF(VAR9,VAR11,DRAWNULL);
    VAR15:=IF(VAR9,VAR12,DRAWNULL);
    STICKLINE(VAR9,VAR13,VAR13,20,(-1)),COLOR0000CC;
    STICKLINE(VAR9,VAR14,VAR14,20,(-1)),COLOR00CCCC;
    STICKLINE(VAR9,VAR15,VAR15,20,(-1)),COLORCCCC00;
    VAR16:=TDXDLL8(2007,HIGH,CLOSE,LOW);
    VAR17:=CLOSE/VAR16>=1.098 AND CLOSE=HIGH;
    STICKLINE(VAR17,CLOSE,OPEN,0.3,0),COLORYELLOW;
    VAR18:=MA(CLOSE,13);
    VAR19:=MA(CLOSE,21);
    VAR20:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
    VAR21:=REF(VAR20,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
    VAR22:=REF(VAR21,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
    VAR23:=REF(VAR22,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
    VAR24:=REF(VAR23,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
    VAR25:=REF(VAR24,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
    VAR26:=REF(VAR25,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
    VAR27:=REF(VAR26,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
    VAR28:=REF(VAR27,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
    VAR29:=REF(VAR28,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
    VAR30:=REF(VAR29,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
    VAR31:=REF(VAR30,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
    VAR32:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);
    VAR33:=REF(VAR32,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
    VAR34:=REF(VAR33,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
    VAR35:=REF(VAR34,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
    VAR36:=REF(VAR35,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
    VAR37:=REF(VAR36,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
    VAR38:=REF(VAR37,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
    VAR39:=REF(VAR38,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
    VAR40:=REF(VAR39,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
    VAR41:=REF(VAR40,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
    VAR42:=REF(VAR41,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
    VAR43:=REF(VAR42,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
    VAR44:=REF(VAR32 OR VAR33 OR VAR34 OR VAR35 OR VAR36 OR VAR37 OR VAR38 OR VAR39 OR VAR40 OR VAR41 OR VAR42 OR VAR43,1) AND VAR20;
    VAR45:=REF(VAR20 OR VAR21 OR VAR22 OR VAR23 OR VAR24 OR VAR25 OR VAR26 OR VAR27 OR VAR28 OR VAR29 OR VAR30 OR VAR31,1) AND VAR32;
    VAR46:=IF(CLOSE<200,MA(COST(80),3),2500);
    VAR47:=(HIGH+LOW+CLOSE)/3;
    VAR48:=EMA((OPEN+HIGH+LOW+CLOSE)/4,2330);
    VAR49:=VAR48+VAR48*6/100;
    VAR50:=VAR20 OR VAR21 OR VAR22 OR VAR23 OR VAR24 OR VAR25 OR VAR26 OR VAR27 OR VAR28 OR VAR29 OR VAR30 OR VAR31;
    VAR51:=VAR32 OR VAR33 OR VAR34 OR VAR35 OR VAR36 OR VAR37 OR VAR38 OR VAR39 OR VAR40 OR VAR41 OR VAR42 OR VAR43;
    VAR52:=HHV(CLOSE,2);
    VAR53:=LLV(CLOSE,2);
    VAR54:=IF(VAR50,VAR53,DRAWNULL);
    VAR55:=VAR54;
    VAR56:=REF(VAR54,1);
    VAR57:=IF(VAR51,VAR52,DRAWNULL);
    VAR58:=VAR57;
    VAR59:=REF(VAR58,1);
    VAR60:=IF(VAR59!=DRAWNULL,VAR59,IF(VAR56!=DRAWNULL,VAR56,DRAWNULL));
    STICKLINE(ISLASTBAR AND VAR60,VAR60,VAR60,6,0),COLORGREEN;
    VAR61:=VAR7;
    VAR62:=VAR61;
    NOTEXT4:IF(VAR7!=1,0,VAR60),COLOR0000CC,LINETHICK3;
    离场线:IF(CLOSE<=VAR60,VAR60,DRAWNULL),COLOR00CC00,LINETHICK3;
    IF(CLOSE>VAR60,VAR60,DRAWNULL),COLOR0000CC,LINETHICK3;
    VAR63:=EMA(CLOSE,8);
    VAR64:=EMA(CLOSE,18);
    VAR65:=IF(VAR61!=1,0,EMA(VAR63-VAR64,9));
    阴鱼:9*REF(VAR65,1)-7*REF(VAR63,1)+8*REF(VAR64,1),COLORFF8000,LINETHICK2;
    阳鱼:IF(CLOSE>=阴鱼,阴鱼,DRAWNULL),COLORYELLOW,LINETHICK2;
    鱼眼:IF(ISLASTBAR,阴鱼,DRAWNULL),POINTDOT,COLORRED,LINETHICK6;
    VAR66:=VAR60>阳鱼 AND LOW<VAR60;
    STICKLINE(VAR66,LOW,MIN(VAR60,HIGH),0,0),COLORMAGENTA;



    长阴短柱(顶尖财经 股票学院: ):

     长阴短柱:=(C/REF(C,1)<=0.95 OR C/O<=0.95) AND V/HHV(V,20)<=0.618;

    长腿:= (MIN(O,C)-L)/(H-L)>0.5 AND (MIN(O,C)-L)/C>=0.05;
    XG0:= REF(COUNT(长阴短柱,2),1) AND 长腿;
    XG : COUNT(XG0,N) AND DYNAINFO(8)>0;
     
    特别声明:文章内容仅供参考,不造成任何投资建议。投资者据此操作,风险自担。

    网站首页 - 股票知识 - - 股票公式 - 散户炒股 - 问答百科 - - 缠中说禅 - 概念股

    未经本站书面特别授权,请勿转载或建立镜像

    Copyright @ 2020 All Rights Reserved.版权所有 XMl地图
    Baidu
    map