• 网站首页
  • 股票知识
  • 股票公式
  • 散户炒股
  • 问答百科
  • 缠中说禅
  • 概念股
  • 【股票入门】【通达信】单阳不破+将军柱+布林轨道主图指标公式

    发布时间: 2020-04-19 11:01首页:股票一点通 > 股票公式 > 通达信公式 > 阅读()

    N:=20;
    MA5:MA(CLOSE,5);
    MA10:MA(CLOSE,10);
    MA20:MA(CLOSE,20);
    MA30:MA(CLOSE,30),LINETHICK2;
    MA60:MA(CLOSE,60),COLORRED,LINETHICK2;
    MA144:MA(CLOSE,144),COLOR9F5F9F;
    MA250:MA(CLOSE,250);
    {布林轨道}
    BOLL:=MA(CLOSE,N),POINTDOT,LINETHICK1;
    UB:BOLL+2*STD(CLOSE,N),POINTDOT,LINETHICK4,COLORRED;
    LB:BOLL-2*STD(CLOSE,N),POINTDOT,LINETHICK4,COLORYELLOW;
    {5、10周均线}
    ZRR:=(YEAR-1992)*365+INTPART((YEAR-1989)/4)+IF(MONTHWEEKDAY-REF(WEEKDAY,1))+1,NODRAW;
    T1:=REF(T,T)+T,NODRAW;
    T2:=REF(T,T1)+T1,NODRAW;
    T3:=REF(T,T2)+T2,NODRAW;
    T4:=REF(T,T3)+T3,NODRAW;
    T5:=REF(T,T4)+T4,NODRAW;
    T6:=REF(T,T5)+T5,NODRAW;
    T7:=REF(T,T6)+T6,NODRAW;
    T8:=REF(T,T7)+T7,NODRAW;
    周5:=(REF(CLOSE,T)+REF(CLOSE,T1)+REF(CLOSE,T2)+REF(CLOSE,T3)+CLOSE)/5,COLORE6E8FA,LINETHICK2;
    周10:=(REF(CLOSE,T)+REF(CLOSE,T1)+REF(CLOSE,T2)+REF(CLOSE,T3)+REF(CLOSE,T4)+
    REF(CLOSE,T5)+REF(CLOSE,T6)+REF(CLOSE,T7)+REF(CLOSE,T8)
    +CLOSE)/10,COLORBLUE,LINETHICK2;
    日跌:= L*0.99,NODRAW,COLORFF00FF;
    周跌:= L*0.94,NODRAW,COLORFF00FF;
    {支撑压力}
    HIGHN:=10;LOWN:=10;HIGHDISPLAY:=0;LOWDISPLAY:=0;ZGDISPLAY:=0;MADISPLAY:=0;
    AA:=REF(H,HIGHN)=HHV(H,2*HIGHN+1);
    QY:=BACKSET(AA,HIGHN+1);
    CC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1);
    DRAWICON(CC,H*1.02,2);
    DDD:=BARSLAST(CC);
    GDTS:=IF(CC,CURRBARSCOUNT,0);
    DINGBU:=IF(DDD,REF(H,DDD),H);{顶部}
    DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);
    DINGBU1:=REF(DINGBU,DDD+1);
    GDCS1:=CONST(DINGBUTS);
    DINGBUTS1:=REF(DINGBUTS,DDD+1);
    GDCS2:=CONST(DINGBUTS1);
    DINGBU2:=REF(DINGBU1,DDD+1);
    MM:=IF(CURRBARSCOUNT>GDCS2,0,1);
    高压:=DRAWLINE(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT=GDCS1,H,1) COLORFF00FF,LINETHICK1;
    DRAWLINE(CURRBARSCOUNT=GDCS2,H,ISLASTBAR,REF(H,GDCS2-1),1),COLOR0055FF,POINTDOT;
    DRAWLINE(CURRBARSCOUNT=GDCS1,H,ISLASTBAR,REF(H,GDCS1-1),1),COLORYELLOW,POINTDOT;
    AA1:=REF(L,LOWN)=LLV(L,2*LOWN+1);
    QY1:=BACKSET(AA1,LOWN+1);
    CC1:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1);
    DRAWICON(CC1,L*0.98,1);
    DD1:=BARSLAST(CC1);
    DDTS:=IF(CC1,CURRBARSCOUNT,0);
    YDB:=IF(DD1,REF(L,DD1),L);
    DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);
    DDCS1:=CONST(DDTS1);
    ZDB:=REF(YDB,DD1+1);
    DDTS2:=REF(DDTS1,DD1+1);
    DDCS2:=CONST(DDTS2);
    低支:=DRAWLINE(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT=DDCS1,L,1) COLORFF00FF,LINETHICK1;
    ZGSTAR:=(高压+低支)/2;
    ZGEND:=CONST((高压+低支)/2);
    STARDAY:=IF(DDCS21.095,C,O,2,0),COLORYELLOW;
    {财务数据}
    DRAWTEXT_FIX(ISLASTBAR ,0.06,0.01,1,DYBLOCK),COLORYELLOW;
    DRAWTEXT_FIX(ISLASTBAR ,0.065,0.01,0,HYBLOCK),COLORYELLOW;
    {DRAWTEXT_FIX(ISLASTBAR,0.16,0.01,1,’上市日期:’),COLOR00FF00;
    DRAWNUMBER_FIX(ISLASTBAR,0.16,0.01,0,FINANCE(42)),COLOR00FF00;
    DRAWTEXT_FIX(ISLASTBAR,0.06,0.04,1,’主营收入:’),COLORFFAAFF;
    DRAWNUMBER_FIX(ISLASTBAR,0.062,0.04,0,FINANCE(20)),COLORFFAAFF;
    DRAWTEXT_FIX(ISLASTBAR,0.21,0.04,1,’主营利润:’),COLORFFAAFF;
    DRAWNUMBER_FIX(ISLASTBAR,0.22,0.04,0,FINANCE(21)),COLORFFAAFF;
    DRAWTEXT_FIX(ISLASTBAR,0.06,0.07,1,’每股净资产:’),COLORFFAAFF;
    DRAWNUMBER_FIX(ISLASTBAR,0.062,0.07,0,FINANCE(34)),COLORFFAAFF;
    DRAWTEXT_FIX(ISLASTBAR,0.21,0.07,1,’每股公积金:’),COLORFFAAFF;
    DRAWNUMBER_FIX(ISLASTBAR,0.22,0.07,0,FINANCE(18)),COLORFFAAFF;
    DRAWTEXT_FIX(ISLASTBAR,0.06,0.1,1,’每股收益 年:’),COLORFFAAFF;
    DRAWNUMBER_FIX(ISLASTBAR,0.062,0.1,0,FINANCE(33)),COLORFFAAFF;
    DRAWTEXT_FIX(ISLASTBAR,0.21,0.1,1,’每股未分配利润:’),COLORFFAAFF;
    DRAWNUMBER_FIX(ISLASTBAR,0.22,0.1,0,FINANCE(32)),COLORFFAAFF;
    DRAWTEXT_FIX(ISLASTBAR,0.06,0.13,1,’经营现金流量:’),COLORFFAAFF;
    DRAWNUMBER_FIX(ISLASTBAR,0.062,0.13,0,FINANCE(25)),COLORFFAAFF;
    DRAWTEXT_FIX(ISLASTBAR,0.21,0.13,1,’其它利润:’),COLORFFAAFF;
    DRAWNUMBER_FIX(ISLASTBAR,0.22,0.13,0,FINANCE(22)),COLORFFAAFF;};
    {涨停秘籍}
    DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
    DEA:=EMA(DIFF,9);
    A1:=BARSLAST(REF(CROSS(DEA,DIFF),1));
    A2:=BARSLAST(REF(CROSS(DIFF,DEA),1));
    VAR1:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
    HONGJU:=IF(VAR1>0,VAR1,0);
    GAOPAO:=CROSS(DIFF,DEA) AND HONGJU>=40;
    DRAWICON(GAOPAO,HIGH*1.01,6);
    DRAWTEXT(GAOPAO,HIGH*1.02,’顶背’),COLORGREEN;
    LLVV:=LLV(LOW,5);
    DIXI:=CROSS(DEA,DIFF) AND REF(DEA,A1+1)>0 AND DEAEMA(CLOSE,17));
    {STICKLINE(短线,HIGH,LOW,0.5,0),COLORFFFF00;
    STICKLINE(短线,OPEN,CLOSE,10,1),LINETHICK2,COLORFFFF00;}
    CY:=BARSLAST(短线);
    MACD双底:=REF(LOW,A2+1)980 AND CLOSE>OPEN AND VOL>=MA(VOL,5) AND DIFF>=-0.1;
    DRAWTEXT(介入,LOW*0.98,’起涨点’),COLORRED;
    DRAWICON(介入,LOW*0.98,1);
    反向顶背:=REF(CLOSE,A2+1)>CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF);
    逃顶:=CROSS(SD,SK) AND SK>0.2 AND VOL/MA(VOL,5)=1.097 AND HIGH=CLOSE AND NOT(OPEN=HIGH);
    A1G:=BARSLAST(N1G);
    A2G:=LLV(LOW,A1G-1)>REF(LOW,A1G) AND CLOSE/REF(OPEN,A1G)>1 AND CLOSE/REF(OPEN,A1G)=4 AND A1GMA20 AND MA20>REF(MA20,1) AND DIFF>REF(DIFF,A2+1);
    DRAWICON(XPP1,LOW*0.96,3);
    DRAWTEXT(XPP1,LOW*0.96,’强势洗盘’),COLORWHITE;
    XPP2:=XPP1 AND A1G>=4 AND A1G=REF(C,1)*(1+阳涨幅/100)AND VOL>REF(VOL,1)*阳倍量;
    DRAWTEXT(CURRBARSCOUNT1.9*REF(VOL,4))*TIM;
    四日前高量柱:=(REF(VOL,3)>=REF(VOL,4) AND REF(VOL,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(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(HIGH,3),1,0)));
    立桩量三日不破:=BARSLAST(立桩量)=3 AND REF(LOW,3)

    特别声明:文章内容仅供参考,不造成任何投资建议。投资者据此操作,风险自担。

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

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

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