最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 通达信峰峰心理线指标公式

    正文概述    2024-04-13 16:11:13  

    N:=5;
    M:=3;
    PSY:COUNT(CLOSE>REF(CLOSE,1),N)/N*100,LINETHICK1;
    psyMA:=MA(PSY,M),LINETHICK2;
    {rsi}
    LC:=REF(CLOSE,1);
    RSI1:(SMA(MAX(CLOSE-LC,0),7,1)/SMA(Abs(CLOSE-LC),7,1)*100),LINETHICK2,COLOR0099FF;
    RSI2:(SMA(MAX(CLOSE-LC,0),21,1)/SMA(ABS(CLOSE-LC),21,1)*100),LINETHICK2,COLORGREEN;
    A1:=RSI2=REF(RSI2,1) AND RSI1 A2:=RSI2=REF(RSI2,1) AND RSI1=REF(RSI1,1) AND RSI1>10 AND RSI1<40;
    出击:IF(A1 OR A2, 50,25),COLORRED;
    {以下是买卖信号}
    VARR1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
    VARR2:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
    VARR3:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;
    VARR4:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
    VARR5:=(VARR2+2*VARR3+3*VARR4)/6;
    VARR6:=MA(VARR5,3);
    导弹:IF(VARR6<=-10,80,25),COLORYELLOW;
    RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
    顶部雷达:IF(crOSS(80,RSI),75,85)LINETHICK1,COLORYELLOW;
    {DRAWTEXT(CROSS(80,RSI),75,'见顶 '),COLORGREEN;}
    VARB:=SMA(MAX(CLOSE-LC,0),7,1)/SMA(ABS(CLOSE-LC),7,1)*100;
    VARC:=SMA(MAX(CLOSE-LC,0),13,1)/SMA(ABS(CLOSE-LC),13,1)*100;
    VARD:=BARSCOUNT(CLOSE);
    底部雷达:IF((VARB< 20 AND VARC< 25 AND VARD> 50),55,25),LINETHICK2, COLORFF9933;
    {DRAWTEXT(CROSS(100,底部雷达),50,'底 '),LINETHICK1,COLORF00FF0;}
    主力:=EMA( (CLOSE-MA(CLOSE,7))/MA(CLOSE,7)*480,2),LINETHICK2 ,COLORRED;
    散户:=EMA( (CLOSE-MA(CLOSE,11))/MA(CLOSE,11)*480,7),LINETHICK2 ,COLORWHITE;
    上涨:IF(CROSS(主力,散户) AND 主力<-10,25,15),LINETHICK2,COLORMAGENTA;
    {DRAWTEXT(CROSS(主力,散户) AND 主力<-10,25,'上涨'),COLOR00CCFF;}
    DRAWICON(CROSS(主力,散户) AND 主力<-10 AND 散户>REF(散户,1)OR CROSS(主力,散户) AND 散户<-35 ,15,1);
    DRAWTEXT(CROSS(18,RSI)AND 散户<-20 AND 底部雷达,25,'底 '),LINETHICK1,COLORYELLOW;


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 通达信峰峰心理线指标公式 加入收藏