以下是通达信短线分时线指标公式源码

通达信短线分时线指标公式源码:

    VAR1:=(HIGH+LOW+OPEN+CLOSE*2)/5;
    VAR2:=EMA(VAR1,21);
    VAR3:=STD(VAR1,23);
    VAR4:=EMA(VAR1,2);
    VARA:=(VAR1-VAR2)*100/VAR3;
    K:(EMA(VARA,23)+100)/2-3,LINETHICK2,COLORFF0000;
    D:SMA(K,5,1),LINETHICK2,COLORFFFF00;
    J:4*K-3*D,LINETHICK2,COLORFF00FF;
    DRAWICON(FILTER(J>REF(J,1)ANDJ<REF(J,3)ANDJ<KANDVAR4>REF(VAR4,1)
    ANDK>=REF(K,1)ANDJ<40ORCROSS(J,K)ANDCROSS(J,D)ANDJ<40ORJ>REF
    (J,1)ANDJ<-20,7),J*0.8,6);
    DRAWICON(FILTER(J<=REF(J,1)ANDJ>80,8),J*1.2,5);
    AA:=CROSS(J,D);
    DRAWICON(AA,LOW,1);
    VAR1M:=REF(CLOSE,1);
    VAR2M:=(SMA(MAX(CLOSE-VAR1M,0),6,1))/(SMA(ABS(CLOSE-VAR1M),6,1))*100;
    短期顶部:CROSS(80,VAR2M)*100,COLORFF0000;
    DRAWTEXT(CROSS(80,VAR2M),100,'★顶'),COLORFFFF00;
    VAR3M:=(SMA(MAX(CLOSE-VAR1M,0),7,1))/(SMA(ABS(CLOSE-VAR1M),7,1))*100;
    VAR4M:=(SMA(MAX(CLOSE-VAR1M,0),13,1))/(SMA(ABS(CLOSE-VAR1M),13,1))*100;
    VAR5M:=BARSCOUNT(CLOSE);
    短期底部:=VAR3M<20ANDVAR4M<25ANDVAR5M>50*100;
    DRAWTEXT(CROSS(100,短期底部),100,'短'),COLORFFFF00;
    AAM:=CLOSE/REF(CLOSE,1)>=1.099;
    AB:=VOL/REF(VOL,1);
    涨停预警:IF(CLOSE/REF(CLOSE,1)>=1.03ANDAB<1,33,0),COLORFF0000;
    目标出现:(IF(AAMANDAB<1,55,0)),LINETHICK2,COLORFFFF00;
    MA30:=EMA(CLOSE,30);
    强弱:EMA(CLOSE,900);
    STICKLINE((MA30>强弱),MA30,强弱,1,0),COLOR0000FF;
    STICKLINE((MA30<强弱),MA30,强弱,1,0),COLOR00FF00;
    H1:=MAX(DYNAINFO(3),DYNAINFO(5));
    L1:=MIN(DYNAINFO(3),DYNAINFO(6));
    P1:=H1-L1;
    阻力:L1+P1*7/8,COLOR00DD00;
    支撑:L1+P1*0.5/8,COLOR00DD00;
    现价:CLOSE,COLORWHITE,LINETHICK1;
    STICKLINE(CROSS(支撑,现价),支撑,阻力,1,0),COLORYELLOW;
    DRAWTEXT(LONGCROSS(支撑,现价,2),支撑*1.001,'★B'),COLORYELLOW;{吸}
    DRAWTEXT(LONGCROSS(现价,阻力,2),现价,'★'),COLORRED;{抛};

通达信短线分时线指标公式截图

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。