最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • (松班买入)指标出现实心红色K线时选股公式

    正文概述    2024-04-14 09:09:38  

    九毛八公式指标

    做个选股公式,这个是小松的主图公式,我想选出:出现红色实心K红的那部分,而不是“松班买入”的部分。谢谢!!! 参数 n 1,300,14 A0:=(L+H+C*2)/4; A1:EMA(A0,14)COLORBLUE,LINETHICK2; A2:=EMA(A0,25)COLORLIBLUE,LINETHICK2; A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW; A2X:=(A2-REF(A2,1))/REF(A2,1)*100,NODRAW; 出击:IF(A1X>=0 AND BARSLAST(CROSS(A1X,0))>0,REF((C+O)/2,BARSLAST(CROSS(A1X,0))),DRAWNULL),COLORMAGENTA,LINETHICK2; 逃遁:IF(A1X<0 and barslast(cross(0,a1x))>0,REF((C+O)/2,BARSLAST(CROSS(0,A1X))),DRAWNULL),COLORGREEN,LINETHICK2; 盈10%:IF(A1X>=0 AND H>=REF(A0,BARSLAST(CROSS(A1X,0)))*1.1,REF((C+O)/2,BARSLAST(CROSS(A1X,0)))*1.1,DRAWNULL),COLORWHITE,POINTDOT; 盈20%:IF(A1X>=0 AND H>=REF(A0,BARSLAST(CROSS(A1X,0)))*1.2,REF((C+O)/2,BARSLAST(CROSS(A1X,0)))*1.2,DRAWNULL),COLORWHITE,POINTDOT; 盈30%:IF(A1X>=0 AND H>=REF(A0,BARSLAST(CROSS(A1X,0)))*1.3,REF((C+O)/2,BARSLAST(CROSS(A1X,0)))*1.3,DRAWNULL),COLORWHITE,POINTDOT; 盈40%:IF(A1X>=0 AND H>=REF(A0,BARSLAST(CROSS(A1X,0)))*1.4,REF((C+O)/2,BARSLAST(CROSS(A1X,0)))*1.4,DRAWNULL),COLORWHITE,POINTDOT; 盈50%:IF(A1X>=0 AND H>=REF(A0,BARSLAST(CROSS(A1X,0)))*1.5,REF((C+O)/2,BARSLAST(CROSS(A1X,0)))*1.5,DRAWNULL),COLORWHITE,POINTDOT; 铁:IF(A1X>=0,A1,DRAWNULL)COLORRED,LINETHICK2; 律:IF(A1X<0 and a2x<0,a1,drawnull)colorgreen,linethick2; stickline(cross(a1x,0),h,l,0,0 ),color9933ff; stickline(cross(a1x,0),c,o,3,0 ),color0000cc; stickline(cross(a1x,0),c,o,1,0 ),color0033ff; stickline(cross(0,a1x),l,h,0,0 ),color66cc33; stickline(cross(0,a1x),c,o,3,0),color00cc00; stickline(cross(0,a1x),c,o,1,0),color66ff00; lc:=REF(CLOSE,1);RSI5:=((SMA(MAX((CLOSE - lc),0),5,1)> 0) AND (HD > LD)),HD,0),10); DMM:=SUM(IF(((LD > 0) AND (LD > HD)),LD,0),10); PDI:=((DMP * 100) / TR1); MDI:=((DMM * 100) / TR1); ADX:=MA(((ABS((MDI - PDI)) / (MDI + PDI)) * 100),5); AV:=(RSI5 + ADX); DXR:=(((ADX + REF(ADX,5)) / 2) + RSI5); WR10:=((100 * (HHV(HIGH,10) - CLOSE)) / (HHV(HIGH,10) - LLV(LOW,10))); NEWVOL:=(RSI5 - WR10); 松班买入:=(AV + NEWVOL); DRAWTEXT(CROSS(松班买入,0),L*0.95,'松班买入'),COLORFF00FF; DRAWICON(CROSS(松班买入,-5),L*0.98,1); {AND 松班买入>REF(松班买入,1)}(

    公式模块:

    {N 1,300,14}

    A0:=(L+H+C*2)/4;
    A1:=EMA(A0,14);
    A1X:=(A1-REF(A1,1))/REF(A1,1)*100;
    crOSS(A1X,0);

    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » (松班买入)指标出现实心红色K线时选股公式 加入收藏