通达信指标公式源码概况:

指标类别: 通达信指标公式

授权方式: 免费版

指标评级: ★★★★★

指标分类: 策略

画线方法: 副图

一、中线持仓线指标公式

    换手:=V*100/CAPITAL;

    主力:=MA(换手,4);

    大户:=MA(换手,9);

    中户:=MA(换手,17);

    散户:=MA(换手,34);

    均量:=(主力+大户+中户+散户)/4;

    主力能量:=(主力-均量);

    操盘:STICKLINE(主力能量>=0AND主力能量>=REF(主力能量,1),0,主力能量,3,3),COLORYELLOW;

    减仓:STICKLINE(主力能量>=0AND主力能量<REF(主力能量,1),0,主力能量,3,3),COLORYELLOW;

    反弹:STICKLINE(主力能量=REF(主力能量,1),0,主力能量,3,3),COLORGREEN;

    寻底:STICKLINE(主力能量<0AND主力能量<REF(主力能量,1),0,主力能量,3,3),COLORGREEN;

    N:=20;

    N1:=7;

    N2:=69;

    T1:=IF((DATE<=1341231),1,0);

    M3:=EMA(CLOSE,3);

    M8:EMA(CLOSE,8),COLOR008000;

    M13:EMA(M8,13),COLOR0000FF;

    M62:EMA(M8,55),COLORF0F000;

    VAR1:=EMA(M13,62);

    M81:EMA(M62,81),COLOR00FFFF;

    M144:EMA(VAR1,144),LINETHICK2,COLOR0000FF;

    M250:EMA(VAR1,250),POINTDOT,LINETHICK2,COLORF00FF0;

    VAR2:=(CLOSE+HIGH+LOW)/(3);

    VAR3:=(EMA(VAR2,10))*(T1);

    VAR4:=(REF(VAR3,1))*(T1);

    STICKLINE((VAR3>VAR4),VAR3,VAR4,4,0),COLOR00FFFF;

    STICKLINE((VAR3<VAR4),VAR3,VAR4,4,0),COLORFF0000;

    VAR5:=((REF(HIGH,1)+REF(LOW,1))/(2))*(T1);

    VAR6:=MA(CLOSE,N)+((2)*(STD(CLOSE,N)))*(T1);

    DRAWTEXT(CROSS(VAR3,VAR4),(VAR3)*(0.98),'★'),COLOR00FFFF;

    DRAWTEXT(CROSS(VAR5,VAR6),(HIGH)*(1.04),'↓卖'),COLOR008000;

    VAR7:=REF(CLOSE,1);

    VAR8:=((SMA(MAX(CLOSE-VAR7,0),N1,1))/(SMA(ABS(CLOSE-VAR7),N1,1)))*(100);

    VAR9:=CROSS(N2,VAR8);

    VARA:=(FILTER(VAR9,4))*(T1);

    DRAWTEXT(VARA,(HIGH)*(1.04),'↓卖'),COLORFFFFFF;

    VARB:=((2)*(CLOSE)+HIGH+LOW)/(4);

    VARC:=LLV(LOW,34);

    VARD:=HHV(HIGH,34);

    VARE:=(EMA(((VARB-VAR1)/(VAR5-VAR1))*(100),7))*(T1);

    VARF:=(EMA((0.667)*(REF(VARE,1))+(0.333)*(VARE),5))*(T1);

    DRAWTEXT(IF(((COUNT((CLOSE0.6)AND(VOL>=(1.5)*(MA(VOL,5)))ANDCOUNT((VARE>=VARF),3)AND(REF(LOW,1)=LLV(LOW,120)),1,0),LOW,'●买进'),COLORFF00FF;

    DRAWTEXT(IF(((COUNT((CLOSE0.6)ANDCOUNT((VARE>VARF),6)AND(REF(LOW,5)=LLV(LOW,120))ANDREF((CLOSE>=OPEN),4)ANDREF((CLOSE>OPEN),3)ANDREF((CLOSE>OPEN),2)ANDREF((OPEN>CLOSE),1)AND(OPEN>REF(CLOSE,1)),1,0),LOW,'●买进'),COLOR00FFFF;

    VAR10:=(MA(CLOSE,80)-(MA(CLOSE,10))/(3))*(T1);

    DRAWTEXT(IF((CLOSE(MA(VOL,5))/(240))AND(CLOSE>(REF(CLOSE,1))*(1.08))AND(CLOSE<(MA(CLOSE,13))*(1.3)),1,0),LOW,'●抄底'),COLOR0000FF;

image.png

二、中线持仓指标源码

    JJZ:=(HIGH+LOW+CLOSE)/3;QJ0Z:=AMOUNT/IF(HIGH=LOW,4,HIGH-LOW);

    买1:=QJ0Z*(MIN(OPEN,CLOSE)-LOW);

    买2:=QJ0Z*(JJZ-MIN(CLOSE,OPEN));

    卖1:=QJ0Z*(MAX(CLOSE,OPEN)-JJZ);

    卖2:=QJ0Z*(HIGH-MAX(OPEN,CLOSE));

    DTZ:=((买1+买2)-(卖1+卖2))/10000;

    主力持仓:SUM(DTZ,66),COLORWHITE,LINETHICK1;

    STICKLINE(DTZ>0,主力持仓,主力持仓+DTZ,1,0),COLOR0000FF;

    STICKLINE(DTZ<0,主力持仓+DTZ,主力持仓,1,0),COLOR00FF00;

    JJ:=(HIGH+LOW+CLOSE)/3;QJ0:=AMOUNT/IF(HIGH=LOW,4,HIGH-LOW);

    TD1:=QJ0*(MIN(OPEN,CLOSE)-LOW);

    DD1:=QJ0*(JJ-MIN(CLOSE,OPEN));

    DD2:=QJ0*(HIGH-MAX(OPEN,CLOSE));

    TD2:=QJ0*(MAX(CLOSE,OPEN)-JJ);

    TD:=TD1-TD2;DA:=DD1-DD2;

    XD1:=1-(TD1+DD1);XD2:=1-(TD2+DD2);

    TZ:=V/SUM(V,60)*100;

    DT:=((XD1-XD2)/10000)/TZ;

    散户持仓:SUM(DT,22),COLOR888888,LINETHICK1;

    STICKLINE(DT>0,散户持仓,散户持仓+DT,1,0),COLORFF00FF;

    STICKLINE(DT<0,散户持仓+DT,散户持仓,1,0),COLORFF8800;

    MAC5:=(ATAN((MA(C,5)/REF(MA(C,5),1)-1)*100)*180/3.14115926);

    M5:=MA(MAC5,5);

    AA:=PLOYLINE(CROSS(MAC5,M5),M5),COLORRED;

    AAB:=PLOYLINE(CROSS(M5,MAC5),MAC5),COLORFF00FF;

    XG:COUNT(CROSS(MAC5,M5),AAREF(AAB,5)),COLORYELLOW;

    A1:=3*eMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100,5)-2*eMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100,5);

    a4:=EMA(A1,5);

    A5:=(HHV(H,34)-C)/(HHV(H,34)-LLV(L,34))*100;

    DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);

    DEA:=EMA(DIFF,9);

    基础:=(diffdea);

    中线:CROSS(A1,a4)AND(A5-a4)>40and基础;

image.png

[源码注释]通达信公式动态翻译结果

N赋值:24

M赋值:6

0

输出WVAD:(收盘价-开盘价)/(最高价-最低价)*成交量(手)的N日累和/10000

输出MAWVAD:WVAD的M日简单移动平均

推荐阅读:主力持仓线指标公式

    S:=2;

    A:=BARSCOUNT(C);

    AH:=HHV(HIGH,120);

    AL:=LLV(LOW,120);

    B0:=(AH-AL)/40;

    B1:=HIGH+B0;

    B2:=LOW-B0;

    AMV0:=((VOL*(((OPEN+CLOSE)+HIGH)+LOW))/4);

    势:=(EMA(AMV0,21)/EMA(VOL,21));

    N1:=BARSCOUNT(5);

    N:=((N1-CURRBARSCOUNT)+1);

    HH:=HHV(HIGH,N);

    LL:=LLV(LOW,N);

    最高:=HHV(N1,1),POINTDOT;

    最低:=LLV(N1,1),COLOR00FFFF;

    DIFF:=(EMA(CLOSE,5)-EMA(CLOSE,26));

    DEA:=EMA(DIFF,3);

    MACD:=(2*(DIFF-DEA));

    MA5:=MA(CLOSE,5);

    MA20:=MA(CLOSE,20);

    MA120:=MA(CLOSE,120);

    AA10:=MA(CLOSE,10);

    Y:=((LLV(LOW,1)=LLV(LOW,60))AND((CLOSE/REF(CLOSE,1))>1.04));

    WX:=MA(CLOSE,0);

    MB5:=(MA(CLOSE,15)*IF((20<5),WX,1));

    MB7:=(MA(CLOSE,20)*IF((20<7),WX,1));

    M5:=(MA(CLOSE,15)*IF((20<5),WX,1));

    DDD:=(EMA(CLOSE,10)-EMA(CLOSE,100));

    AMA:=EMA(DDD,4);

    BMA:=(EMA(CLOSE,3)-EMA(CLOSE,30));

    BMB:=EMA(BMA,4);

    BMA1:=(EMA(CLOSE,13)-EMA(CLOSE,30));

    SS:=(MA(CLOSE,8)*0.998),COLORFFFFFF;

    买:=(DDD>=AMAANDBMA>=BMB);

    HH1:=FILTER(((DDD>=AMA)AND(BMA>=BMB)),33);

    {DRAWICON(HH1,SS,6);}

    VARR1:=((SMA(MAX((CLOSE-REF(CLOSE,1)),0),12,1)/SMA(ABS((CLOSE-REF(CLOSE,1))),12,1))*100);

    {DRAWICON(CROSS(82,VARR1),(HIGH*1.07),5);}

    VAR1:=REF(CLOSE,1);

    VAR2:=((SMA(MAX((CLOSE-VAR1),0),12,1)/SMA(ABS((CLOSE-VAR1)),12,1))*100);

    顶部雷达:=(CROSS(80,VAR2)*1);

    趋势线:=((3*SMA((((CLOSE-LLV(LOW,28))/(HHV(HIGH,28)-LLV(LOW,28)))*100),5,1))-(2*SMA(SMA((((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*100),5,1),3,1)));

    短期乖离率:=(((CLOSE-MA(CLOSE,13))/MA(CLOSE,13))*100);

    {DRAWTEXT(FILTER((IF(((CROSS(趋势线,10)AND((CLOSE/LOW)>1.04))AND(短期乖离率OPEN)),5),(LOW-0.07),'底'),COLOR00FFFF;}

    VARA:=EMA(((AMOUNT/VOL)/100),3);

    D:=LLV(CLOSE,20);

    XXY:=EMA(VARA,88);

    XXD:=(XXY*0.74);

    DRAWTEXT(FILTER(((((((短期乖离率1.03))AND(CLOSE>REF(CLOSE,1)))AND((CLOSE/LOW)>1.03)),5),(LOW-(LOW*0.09)),'★'),COLORFF00FF;

    均价:=((((HIGH+LOW)+OPEN)+CLOSE)/4);

    B:=((2*EMA(LLV(均价,88),5))-均价);

    黄买:=((3*B)-(2*SMA(B,5,1))),COLORFF0033,LINETHICK1;

    Y2:=DRAWTEXT(CROSS(CLOSE,黄买),L*0.97,'●'),COLORFF00FF;

    {DRAWTEXT(CROSS(CLOSE,黄买),L*0.97,'¤'),COLORMAGENTA;}

    黄点出买:=IF(Y2,L*0.97-0.01,DRAWNULL),CIRCLEDOT,COLOR00FFFF,LINETHICK2;

    买进价:=((C-REF(MA(C,55),1))/6+MA(C,55))*1.004;

    买进条件:=CROSS(C,买进价)AND买进价>REF(买进价,1);

    买进:STICKLINE(买进条件,H,L,0,0),COLORMAGENTA,LINETHICK2;

    STICKLINE(买进条件,O,C,3,0),COLORMAGENTA,LINETHICK2;

    {DRAWICON(买进条件,L*0.97,1),COLORRED;}

    KS:=(C-MA(C,33))/MA(C,33)*(-200);

    RKS:=REF(KS,1);

    FT:=RKS/KS>=1.23ANDRKS>=8ANDC/REF(C,1)>=1.03;

    反弹:STICKLINE(FT,H,L,0,1),COLORMAGENTA,LINETHICK2;

    STICKLINE(FT,O,C,3,0),COLORYELLOW,LINETHICK2;

    K1:=BACKSET(SS>=REF(SS,1),2),COLORFFFFCC,LINETHICK1;

    红线出买:=IF(K1,SS,DRAWNULL),COLORWHITE,LINETHICK2;

    K2:=BACKSET(SS<=REF(SS,1),2);

    弱:=IF(K2,SS,DRAWNULL),COLORGREEN,LINETHICK2;

    红点出买:IF(买,红线出买*0.988,DRAWNULL),POINTDOT,COLORRED,LINETHICK5;

    VAR10:=MA(C,80)-MA(C,10)/3;

    VAR11:=REF(C,1);

    VAR12:=SMA(MAX(C-VAR11,0),18,1)/SMA(ABS(C-VAR11),18,1)*100;

    高1:=REF(HHV(H,10),20);

    低1:=REF(LLV(L,10),20);

    H1:=高1-(高1-低1)*0.191;

    H2:=高1-(高1-低1)*0.382;

    H3:=高1-(高1-低1)*0.5;

    H4:=高1-(高1-低1)*0.618;

    H5:=高1-(高1-低1)*0.809;

    顶:=REFDATE(高1,DATE),COLORWHITE;

    中线:REFDATE(H1,DATE),COLORGRAY,LINETHICK3;

    DRAWTEXT(ISLASTBAR,中线,'—-中线'),COLORYELLOW,LINETHICK4;

    二:=REFDATE(H2,DATE),COLOR33FF33{MAGENTA},POINTDOT;

    三:=REFDATE(H3,DATE),COLORLIGRAY;

    四:=REFDATE(H4,DATE),COLORRED;

    水平线:REFDATE(H5,DATE),COLORGRAY,LINETHICK2;

    DRAWTEXT(ISLASTBAR,水平线,'水平线'),COLORYELLOW,LINETHICK4;

    低:=REFDATE(低1,DATE),COLORYELLOW,POINTDOT;

    DRAWTEXT(C=CANDCURRBARSCOUNT=50,中线+0.02,'中线'),COLORYELLOW;

    DRAWTEXT(C=CANDCURRBARSCOUNT=20,水平线-0.02,'水平线'),COLORFFFFCC;

    KSS:=(C-MA(C,33))/MA(C,33)*(-200);

    RKSS:=REF(KSS,1);

    VAR101:=MA(C,80)-MA(C,10)/3;

    VAR111:=REF(C,1);

    VAR122:=SMA(MAX(C-VAR111,0),18,1)/SMA(ABS(C-VAR111),18,1)*100;

    {DRAWICON(CROSS(79,VAR12),H*1.035,2);}

    DRAWTEXT(CROSS(79,VAR122),H*1.04,'抛↓'),COLOR33FF33;

    {垂直1:=IF(CURRBARSCOUNT=0,REFDATE(HHV(H,240),DATE),DRAWNULL),STICK;

    STICKLINE(低吸,HHV(H,240),LLV(L,240-239),0,0),STICK,COLORCYAN;};

    Y1:=(H+L)/2;

    AO:=MA(Y1,5)-MA(Y,34);

    DU0:=CROSS(AO,0);

    UD0:=CROSS(0,AO);

    TDU0:=BARSLAST(DU0);

    TUD0:=BARSLAST(UD0);

    DU3:=REF(DU0,1);

    UD3:=REF(UD0,1);

    TDU3:=BARSLAST(DU3);

    TUD3:=BARSLAST(UD3);

    决策线:IF(TDU3<TUD3,REF(HHV(H,2),TDU3),REF(LLV(L,2),TUD3)),COLORYELLOW;

    DRAWTEXT(ISLASTBAR,决策线,'决策线'),COLORYELLOW;

    阻力:REFDATE(REF(HHV(H,22),1),DATE),COLORGRAY,LINETHICK4;

    DRAWTEXT(ISLASTBAR,阻力,'———-阻力'),COLORRED,LINETHICK4;

    底:REFDATE(REF(LLV(L,22),1),DATE),COLORGRAY,LINETHICK4;

    DRAWTEXT(ISLASTBAR,底,'底'),COLORRED,LINETHICK4;

    AA17:=EMA(C,14)COLORWHITE,LINETHICK1;

    A17X:=(AA17-REF(AA17,1))/REF(AA17,1)*100,NODRAW;

    参考线试买:IF(A17X>=0,REF(EMA(C,14),BARSLAST(CROSS(A17X,0))+1),DRAWNULL)COLORRED,LINETHICK1;

    DRAWTEXT(ISLASTBAR,参考线试买,'参考线试买'),COLORRED,LINETHICK1;

    DMLJ:=HHV(H,120);

    E:=(H+L+O+2*C)/5;

    CRTP:=E+(H-L);

    CRZL:=2*E-L;

    CRZC:=2*E-H;

    CRFZ:=E-(H-L);

    CRXL:=(E+CRTP+CRZL+CRZC+CRFZ)/5;

    高:=CONST(CRTP),COLORRED;

    阻:=CONST(CRZL),COLORC7C9FF;

    支:=CONST(CRZC),COLOR7C9CFF;

    反:=CONST(CRFZ),COLORDD00DD;

    心理:=CONST(CRXL);

    高压:DRAWLINE(S>1&&CURRBARSCOUNT=5+1,高,ISLASTBAR,高,1),COLOR0000FF;

    阻力1:DRAWLINE(S>1&&CURRBARSCOUNT=5+1,阻,ISLASTBAR,阻,1),COLOR0099FF;

    支撑:DRAWLINE(S>1&&CURRBARSCOUNT=5+1,支,ISLASTBAR,支,1),COLORGREEN;

    反转价:DRAWLINE(S>1&&CURRBARSCOUNT=5+1,反,ISLASTBAR,反,1),COLORDD00DD;

    次日心理价:DRAWLINE(S>1&&CURRBARSCOUNT=5+1,心理,ISLASTBAR,心理,1),COLORFFFFFF;

    DRAWTEXT(ISLASTBAR,反,'反转买'),LINETHICK1,COLORDD00DD;

    DRAWTEXT(ISLASTBAR,支,'支撑'),LINETHICK1,COLOR00FF00;

    DRAWTEXT(ISLASTBAR,阻,'阻力1'),LINETHICK1,COLOR0099FF;

    DRAWTEXT(ISLASTBAR,高,'高压'),LINETHICK1,COLOR0000FF;

    T1:=CONST(LLVBARS(LOW,10));

    T1HIGH:=CONST(REF(HIGH,T1));

    CC:=CONST(CURRBARSCOUNT);

    T2:=CONST(BARSLAST(CURRBARSCOUNT>CC+T1ANDH>T1HIGH));

    T2HIGH:=CONST(REF(HIGH,T2));

    T3:=CONST(BARSLAST(CURRBARSCOUNT>CC+T2ANDHIGH>T2HIGH));

    T3HIGH:=CONST(REF(HIGH,T3));

    猎击线:DRAWLINE(CURRBARSCOUNT=T3+1,T3HIGH,ISLASTBAR,T3HIGH,1),COLORGRAY,LINETHICK1;

    DRAWTEXT(ISLASTBAR,T3HIGH,'————网买入')LINETHICK1,COLORYELLOW;

    IF(S=1,CRTP,DRAWNULL),COLORRED;

    IF(S=1,CRZL,DRAWNULL),COLORC7C9FF;

    IF(S=1,CRZC,DRAWNULL),COLOR7C9CFF;

    IF(S=1,CRFZ,DRAWNULL),COLORDD00DD;

    IF(S=1,CRXL,DRAWNULL),COLORFFDDFF;

    网12:=EXPMA(CLOSE,12),COLORGRAY,LINETHICK2;

    网33:EXPMA(CLOSE,33),COLORFF00FF,LINETHICK4;

    IF(网33<REF(网33,1),网33,DRAWNULL),COLOR00FF00,LINETHICK3;

    VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));

    主买:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));

    主卖:=IF(CLOSE>OPEN,VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,VAR1*(HIGH-LOW),VOL/2));

    主力买入量:=(主买*0.5+主卖*0.1)/2;

    ZL:SUM(主力买入量,60)/SUM(V,60)*100,LINETHICK2;

    DT:=ZL-REF(ZL,1);

    STICKLINE(DT>0,ZL,ZL+DT,1,0),COLORRED;

    STICKLINE(DT<0,ZL+DT,ZL,1,0),COLORGREEN;

    EMA3:EMA(ZL,3),COLORRED,LINETHICK2;

    EMA6:EMA(ZL,6),COLORFF00FF;

    EMA9:EMA(ZL,9),COLORYELLOW;

    EMA12:EMA(ZL,15),COLORFFCC66;

    EMA25:EMA(ZL,25),COLORBLUE;

    {短线持股持币区,红线区持股,绿线区持币}

    N1:=IF(BARSCOUNT(C)>=8,8,BARSCOUNT(C));

    AMOV1:=VOL*(C+L+H)/3;

    短线:SUM(AMOV1,N1)/SUM(VOL,N1),COLORRED;

    {DRAWTEXT(CURRBARSCOUNT=1,短线*0.998,'短线'),COLORRED;}

    NOTEXT1:IF(C>=短线,短线,DRAWNULL),LINETHICK2,COLORRED;

    NOTEXT2:IF(C<短线,短线,DRAWNULL),LINETHICK2,COLORGREEN;

    {中线持股持币区,黄线区持股,灰线区持币}

    N2:=IF(BARSCOUNT(C)>=48,48,BARSCOUNT(C));

    AMOV2:=VOL*(C+L+H)/3;

    中线:SUM(AMOV2,N2)/SUM(VOL,N2),COLORYELLOW;

    {DRAWTEXT(CURRBARSCOUNT=1,中线*0.998,'中线'),COLORRED;}

    NOTEXT3:IF(C>=中线,中线,DRAWNULL),LINETHICK2,COLORYELLOW;

    NOTEXT4:IF(C<中线,中线,DRAWNULL),LINETHICK2,COLORGRAY;

    {短线金叉中线}

    JC:=CROSS(短线,中线);

    DRAWICON(JC,L,9);

    {筹码平均成本线}

    筹均线:IF(CURRBARSCOUNT<13,CONST(COST(50)),DRAWNULL),COLORWHITE,DOTLINE;

    DRAWTEXT(CURRBARSCOUNT=1,筹均线*0.998,'筹均线'),COLORWHITE;

    {2020.8.23之后涨跌停显示}

    前5天:=BARSCOUNT(C)>5;{上市大于五天,前五天不限制幅度}

    ZC:=REF(C,1);

    ZF:=(H-ZC+0.01)/ZC*100;

    DF:=(ZC-L+0.01)/ZC*100;

    涨5:=ZF>=5AND前5天ANDC=H;

    跌5:=DF>=5AND前5天ANDC=L;

    涨10:=ZF>=10AND前5天ANDC=H;

    跌10:=DF>=10AND前5天ANDC=L;

    涨20:=ZF>=20AND前5天ANDC=H;

    跌20:=DF>=20AND前5天ANDC=L;

    涨停板:=IF(INBLOCK('科创板'),涨20,IF(INBLOCK('创业板')ANDDATE>1200823,涨20,IF(INBLOCK('ST板块'),涨5,涨10)));

    跌停板:=IF(INBLOCK('科创板'),跌20,IF(INBLOCK('创业板')ANDDATE>1200823,跌20,IF(INBLOCK('ST板块'),跌5,跌10)));

    STICKLINE(涨停板,O,C,2.7,0),COLORYELLOW;

    STICKLINE(涨停板,O,C,1.5,0),COLORRED;

    STICKLINE(跌停板,O,C,1.5,0),COLORBLUE;

    曾涨5:=ZF>=5AND前5天ANDC<H;

    曾跌5:=DF>=5AND前5天ANDC>L;

    曾涨10:=ZF>=10AND前5天ANDC<H;

    曾跌10:=DF>=10AND前5天ANDC>L;

    曾涨20:=ZF>=20AND前5天ANDC<H;

    曾跌20:=DF>=20AND前5天ANDC>L;

    曾涨停板:=IF(INBLOCK('科创板'),曾涨20,IF(INBLOCK('创业板')ANDDATE>1200823,曾涨20,IF(INBLOCK('ST板块'),曾涨5,曾涨10)));

    曾跌停板:=IF(INBLOCK('科创板'),曾跌20,IF(INBLOCK('创业板')ANDDATE>1200823,曾跌20,IF(INBLOCK('ST板块'),曾跌5,曾跌10)));

    STICKLINE(曾涨停板,O,C,0.1,0),COLORLIMAGENTA;

    DRAWICON(曾涨停板,H*1.001,37);

    DRAWTEXT(曾涨停板,H-0.02,'炸'),COLORCYAN;

    STICKLINE(曾跌停板,O,C,0.1,0),COLORBLUE;

    DRAWICON(曾跌停板,L*0.98,36);

    DRAWTEXT(曾跌停板,L-0.1,'撬'),COLORLIRED;

image.png

每日公式解答:

    公式编写要求:

    短线和中线粘合,或者短线和中线很接近,即将粘合在一起.

    公式编写方法:

    mx:=max(短线,中线);

    mi:=min(短线,中线);

    n:=3;{粘合参数,自己调}

    mx/mi<=(1+n/100);

    短线和中线自己定义

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