• 网站首页
  • 股票知识
  • 股票公式
  • 散户炒股
  • 问答百科
  • 缠中说禅
  • 概念股
  • [股票基础知识]通达信源码:股性活跃度,红色k线,压力与支撑

    发布时间: 2022-05-06 20:26 首页:股票一点通>股票公式>通达信公式> 阅读()
    1、股性活跃度,用红绿蓝表示股性的活跃程度

    REFLINE:2,COLORGRAY,POINTDOT;

    CS:=DMA(AMOUNT/(100*VOL),VOL/CAPITAL);
    M20:=MA(C,20);
    M30:=MA(C,30);
    M2:=M20>REF(M20,1);
    M3:=M30>REF(M30,1);
    MCS:=CS>REF(CS,1);
    TRD:=M2+M3+MCS>1;{趋势}

    LBARS:=LLVBARS(L,21);
    BARS:=IF(LBARS<13,13,LBARS);
    ACT:=SMA(MAX(ABS(C-O),ABS(C-REF(C,1)))/REF(C,1)*100,10,1);{活跃度}

    YD:=ACT>LLV(ACT,13)*1.2;{异动}

    A1:=ACT<=2 AND NOT(YD);{弱}
    A2:=ACT<=2 AND YD;{异动}
    A3:=ACT>=2 AND TRD;{强}
    A4:=ACT>=2 AND NOT(TRD); {跌}

    弱:IF(A1,ACT,DRAWNULL),COLORBLUE,LINETHICK3;
    异:IF(A2,ACT,DRAWNULL),COLORBROWN,LINETHICK3;
    强:IF(A3,ACT,DRAWNULL),COLORRED,LINETHICK3;
    跌:IF(A4,ACT,DRAWNULL),COLORGREEN,LINETHICK3;



    2、红色k线,线上做多线下做空

    红色k线,线上做多线下做空

    {主趋势线:EMA(EMA(C,10),10),COLORBLUE,LINETHICK3;

    B:=主趋势线
    IF(B-1,主趋势线,DRAWNULL)COLORRED,LINETHICK3;}

    主趋势线:EMA(EMA(C,10),10),COLORRED,LINETHICK3;

    B:=主趋势线>REF(主趋势线,1);

    IF(B-1,主趋势线,DRAWNULL)COLORBLUE,LINETHICK3;

    {操盘线:EMA(EMA(C,5),5),COLORRED,LINETHICK2;

    Y:=操盘线>REF(操盘线,1);

    IF(Y-1,操盘线,DRAWNULL)COLORGREEN,LINETHICK2;}

    AA:=EMA(C,5) > EMA(C,20);

    BB:=EMA(C,5) < EMA(C,20);

    CC:= EMA(C,5) > EMA(C,10);

    CC1:=EMA(C,5) < EMA(C,10);

    DD:=CLOSE
    STICKLINE(AA,H,L,0,0),COLORRED;

    STICKLINE(AA,O,C,3,1),COLORRED;

    STICKLINE(AA AND DD,O,C,3,0),COLORRED;

    STICKLINE(BB,H,L,0,0),COLORGREEN;

    STICKLINE(BB,O,C,3,1),COLORGREEN;

    STICKLINE(BB AND DD,O,C,3,0),COLORGREEN;

    STICKLINE(BB AND CC,H,L,0,1),COLORWHITE;

    STICKLINE(BB AND CC,O,C,3,1),COLORWHITE;

    STICKLINE(BB AND CC AND DD,O,C,3,0),COLORWHITE;

    STICKLINE(AA AND CC1,H,L,0,0),COLORWHITE;

    STICKLINE(AA AND CC1,O,C,3,1),COLORWHITE;

    STICKLINE(AA AND CC1 AND DD,O,C,3,0),COLORWHITE;

    AAA:=CONST(HHV(C,90));

    {DRAWTEXT(T1=1 AND CURRBARSCOUNT=58,AAA,'智能分析:目前处于红色买区,上涨趋势良好,多单持有。'),COLORRED,LINETHICK4;}

    DRAWTEXT(C AND CURRBARSCOUNT=80 ,AAA, '提示:红色K线做多,绿色K线做空,白色K线观望。 '),COLORYELLOW;




    3、压力与支撑,箱底买箱顶卖

    公式用法简单:
    箱底买,箱顶卖( 顶尖财经 股票学院: )

    N:=5;
    MA250:=MA(CLOSE,250),COLORMAGENTA,LINETHICK3;
    {N(3,30,5);}
    【箱顶】:PEAK(3,N,1)*0.999;
    【箱底】:TROUGH(3,N,1)*0.999;
    【箱高】:=1*(【箱顶】-【箱底】)/【箱底】;
    K线运行的升幅:=(MA(H,3)-REF(MA(H,3),1))*100/REF(MA(H,3),1);{NODRAW;}
    {ML:=EMA(L,7),COLORMAGENTA;
    MH:=MA(H,7),COLORGRAY;
    趋势线:MA((MH+ML)/2,3),LINETHICK1,COLORGREEN;
    趋势线1:IF(趋势线>REF(趋势线,1),趋势线,DRAWNULL),LINETHICK2,COLORMAGENTA;}
    {八周均线}
    VAR1:MA(C,7),COLORGREEN;
    VAR1A:IF(VAR1>REF(VAR1,1),VAR1,DRAWNULL),COLORRED;
    DRAWICON(CROSS(C,VAR1),L*0.99,1);
    DRAWICON(CROSS(VAR1,C),H*1.00,2);
    www58188com:=DRAWICON(CROSS(VAR1,C),H*1.00,2);
    XDU:=IF(EMA(EMA(EMA(C,2),2),2)>REF(EMA(EMA(EMA(C,2),2),2),1),【箱底】,【箱顶】);
    XTB:=【箱底】!=REF(【箱底】,2) &&【箱底】=REF(【箱底】,1);
    XTS:=【箱顶】!=REF(【箱顶】,2) &&【箱顶】=REF(【箱顶】,1);
    买点:=(【箱底】!=REF(【箱底】,2) && 【箱底】=REF(【箱底】,1));
    卖点:=(【箱顶】!=REF(【箱顶】,2) && 【箱顶】=REF(【箱顶】,1));
    DRAWICON(XTB,MIN(【箱底】,L)*0.979,1);
    DRAWTEXT(XTB,MIN(【箱底】,L)*0.977,'[到底了,抢钱!]'),COLOR0000DD;
    DRAWICON(XTS,MAX(【箱顶】,H)*1.018,2);
    DRAWTEXT(XTS,MIN(【箱顶】,H)*1.028,'[到顶了,快跑!]')COLOR00DD00;


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

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

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

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