最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 市场派王卫峰指标源码 市场派指标源码 市场派指标公式

    正文概述    2024-04-12 23:12:24  

    INPUT:P1(5,1,999,1),P2(10,1,999,1),P3(20,1,999,1),P4(60,1,999,1),P5(125,1,999,1),P6(250,1,999,1);
    SVAR2:=BARPOS ;
    SVAR4:=MA(VOL,5) ;
    SVAR5:=MA(VOL,35) ;
    SVAR6:=MA(VOL,135) ;
    SVAR7:=MAX(SVAR4,SVAR5,SVAR6,VOL) * (1 + 23 / 100) ;
    SVAR9:=YEAR ;
    SVAR10:=MONTH ;
    SVAR11:=DAY ;
    MA1:MA(CLOSE,P1) ;
    MA2:MA(CLOSE,P2) ;
    MA3:MA(CLOSE,P3) ;
    MA4:MA(CLOSE,P4) ;
    MA5:MA(CLOSE,P5) ;
    MA6:MA(CLOSE,P6),LINETHICK3,COLOR0000FF ;
    SVAR0:=INTPART(MA(HIGH,17) * 100) / 100 ;
    SVAR1:=INTPART(MA(LOW,17) * 100) / 100 ;
    SVAR3:=IF(CLOSE < REF(SVAR1,1),0,1) ;
    SVAR8:=INTPART(SVAR7 / 100) * 100 ;
    IF (REF(SVAR3,1) = 0) AND CLOSE < OPEN THEN BEGIN
    SVAR3:=0 ;
    END
    IF (REF(SVAR3,1) = 0) AND CLOSE < REF(SVAR1,1) THEN BEGIN
    SVAR3:=0 ;
    END
    IF (REF(SVAR3,1) = 1) AND CLOSE >= REF(SVAR1,1) THEN BEGIN
    SVAR3:=1 ;
    END
    IF (REF(SVAR3,1) = 0) AND VOL >= REF(SVAR8,1) AND CLOSE >= REF(SVAR1,1) AND CLOSE >= OPEN THEN BEGIN
    SVAR3:=1 ;
    END
    IF (REF(SVAR3,1) = 0) AND VOL < REF(SVAR8,1) AND CLOSE >= REF(SVAR1,1) AND CLOSE < REF(SVAR0,1) AND CLOSE >= OPEN THEN BEGIN
    SVAR3:=0 ;
    END
    IF (REF(SVAR3,1) = 0) AND CLOSE >= REF(SVAR0,1) AND CLOSE >= OPEN THEN BEGIN
    SVAR3:=1 ;
    END
    DRAWTEXT((REF(SVAR3,1) = 0) AND (SVAR3 = 1),LOW * 0.995,'▲'),ALIGN1,COLOR0000FF;
    DRAWTEXT((REF(SVAR3,1) = 1) AND (SVAR3 = 0),HIGH * 1.01,'▼'),ALIGN1,COLOR00FF00;
    STICKLINE((SVAR3 = 0) AND CLOSE >= OPEN,CLOSE,OPEN,8,1),COLORF0F000;
    STICKLINE((SVAR3 = 0) AND CLOSE >= OPEN,CLOSE,HIGH,0.001,0),COLORF0F000;
    STICKLINE((SVAR3 = 0) AND CLOSE >= OPEN,LOW,OPEN,0.001,0),COLORF0F000;
    STICKLINE((SVAR3 = 0) AND CLOSE < OPEN,CLOSE,OPEN,8,0),COLORF0F000;
    STICKLINE((SVAR3 = 0) AND CLOSE < OPEN,CLOSE,LOW,0.001,0),COLORF0F000;
    STICKLINE((SVAR3 = 0) AND CLOSE < OPEN,HIGH,OPEN,0.001,0),COLORF0F000;
    STICKLINE((SVAR3 = 1) AND CLOSE >= OPEN,CLOSE,OPEN,8,1),COLOR0000FF;
    STICKLINE((SVAR3 = 1) AND CLOSE >= OPEN,CLOSE,HIGH,0.001,1),COLOR0000FF;
    STICKLINE((SVAR3 = 1) AND CLOSE >= OPEN,LOW,OPEN,0.001,1),COLOR0000FF;
    STICKLINE((SVAR3 = 1) AND CLOSE < OPEN,CLOSE,OPEN,7,1),LINETHICK3,COLOR0000FF;
    STICKLINE((SVAR3 = 1) AND CLOSE < OPEN,CLOSE,OPEN,7,0),COLORF0F000;
    STICKLINE((SVAR3 = 1) AND CLOSE < OPEN,HIGH,OPEN,0.001,0),COLOR0000FF;
    STICKLINE((SVAR3 = 1) AND CLOSE < OPEN,CLOSE,LOW,0.001,0),COLOR0000FF;
    DRAWFLAGTEXT(SVAR3 = 1,CLOSE,'' + SVAR9 + '年' + SVAR10 + '月' + SVAR11 + '日之明日卖出提示:
    股价跌破' + SVAR1 + '元卖出');
    DRAWFLAGTEXT((SVAR3 = 0) OR ((REF(SVAR3,1) = 0) AND (CLOSE < OPEN OR (CLOSE < REF(SVAR0,1) AND VOL < REF(SVAR8,1)))),CLOSE,'' + SVAR9 + '年' + SVAR10 + '月' + SVAR11 + '日之明日买入提示:
    1:股价 ≥' + SVAR0 + '元买入。
    2:股价≥' + SVAR1 + '元, 并且
    成交量 ≥' + SVAR8 + '手买入。');
     


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 市场派王卫峰指标源码 市场派指标源码 市场派指标公式 加入收藏