最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 价量线主线快线 做选股指标

    正文概述    2024-04-08 00:55:59  

    (指标显示中轴上为红黄柱,下方为蓝粉柱,要求红柱出现当天 前2天以上是蓝粉柱或空格,并且出现红柱当天股价是下跌的)请老师帮忙做选股公式。谢谢老师
    {价量线主线快线}
    价量:3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)
    -2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1)
    ,COLOR00CCFF,NODRAW;
    主线:(((价量-LLV(价量,27))/(HHV(价量,27)-LLV(价量,27)))*(4))*(25)
    ,COLORCYAN,NODRAW;
    快线:(((价量-LLV(价量,9))/(HHV(价量,9)-LLV(价量,9)))*(4))*(25)
    ,COLOR55AAFF,NODRAW;
    RSV:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;
    K1:=SMA(RSV,3,1);
    D1:=SMA(K1,3,1);
    KK:=INTPART(K1);
    DD:=INTPART(D1);
    TFXXS:=KK+DD;{变异KD风险系数}
    TGLXS:=(TFXXS-REF(TFXXS,1));{变异KD乖离系数:资金流向}
    {红}
    STICKLINE(TGLXS 0 AND TGLXS REF(TGLXS,1),100,TGLXS+100,2.5,0),COLOR0000AA;
    STICKLINE(TGLXS 0 AND TGLXS REF(TGLXS,1),100,TGLXS+100,1.5,0),COLOR0022CC;
    STICKLINE(TGLXS 0 AND TGLXS REF(TGLXS,1),100,TGLXS+100,0.5,0),COLOR0055FF;
    {粉}
    STICKLINE(TGLXS 0 AND TGLXS REF(TGLXS,1),100,TGLXS+100,2.5,0),COLORAA00BB;
    STICKLINE(TGLXS 0 AND TGLXS REF(TGLXS,1),100,TGLXS+100,1.5,0),COLORCC22BB;
    STICKLINE(TGLXS 0 AND TGLXS REF(TGLXS,1),100,TGLXS+100,0.5,0),COLORFF55BB;
    {黄}
    STICKLINE(TGLXS 0 AND TGLXS =REF(TGLXS,1),100,TGLXS+100,2.5,0),COLOR00AAFF;
    STICKLINE(TGLXS 0 AND TGLXS =REF(TGLXS,1),100,TGLXS+100,1.5,0),COLOR00CCFF;
    STICKLINE(TGLXS 0 AND TGLXS =REF(TGLXS,1),100,TGLXS+100,0.5,0),COLOR00FFFF;
    {蓝}
    STICKLINE(TGLXS 0 AND TGLXS =REF(TGLXS,1),100,TGLXS+100,2.5,0),COLORFF7700;
    STICKLINE(TGLXS 0 AND TGLXS =REF(TGLXS,1),100,TGLXS+100,1.5,0),COLORFFAA22;
    STICKLINE(TGLXS 0 AND TGLXS =REF(TGLXS,1),100,TGLXS+100,0.5,0),COLORFFFF55;
    STICKLINE(TGLXS=0 AND REF(TGLXS,1) =0,100,TGLXS+100,8,0),COLORBROWN;
    STICKLINE(TGLXS=0 AND REF(TGLXS,1) 0,100,TGLXS+100,8,0),COLORWHITE;

    公式模块:


    RSV:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;
    K1:=SMA(RSV,3,1);D1:=SMA(K1,3,1);KK:=INTPART(K1);
    DD:=INTPART(D1);TFXXS:=KK+DD;TGLXS:=(TFXXS-REF(TFXXS,1));
    KKK:=TGLXS 0 AND TGLXS REF(TGLXS,1);
    CROSS(KKK REF(KKK,1),0.5) AND DYNAINFO(17)

    加入条件限制出票数量,如换手,股本,股价等......

    选出的票是首次出现红柱,,,至于前两天的情况,最好是手工判断,若要用指标表示,需用到未来函数才行,没有必要.


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 价量线主线快线 做选股指标 加入收藏