首页 > 编程语言 >通达信底部结构形成选股指标公式源码

通达信底部结构形成选股指标公式源码

时间:2024-01-27 19:25:01浏览次数:38  
标签:倒数 DIF 通达信 源码 选股 N1 死叉 REF INTPART

DIF:=100*(Ema(CLOSE,12)-EMA(CLOSE,26));
DEA:=EMA(DIF,9);
macd:=(DIF-DEA)*2;
{底部结构预警}
死叉:=crOSS(DEA,DIF);
N1:=BArslAst(死叉);{最近一次死叉的位置}
N2:=REF(BARSLAST(死叉),N1+1);{倒数第二次死叉与倒数第一次死叉的区间}
N3:=REF(BARSLAST(死叉),N2+N1+2);{倒数第三次死叉与倒数第二次死叉的区间}
CL1:=LLV(C,N1+1);{最近一次死叉后,最低收盘价}
DIFL1:=LLV(DIF,N1+1);
CL2:=REF(CL1,N1+1);{倒数第二次死叉与倒数第一次死叉之间的最低收盘价}
DIFL2:=REF(DIFL1,N1+1);
CL3:=REF(CL2,N1+1);{倒数第三次死叉与倒数第二次死叉之间的最低收盘价}
DIFL3:=REF(DIFL2,N1+1);
pdiFL2:=IF(DIFL2>0,INTPART(LOG(DIFL2))-1,INTPART(LOG(-DIFL2))-1);
mdiFL2:=INTPART(DIFL2/POW(10,PDIFL2));
PDIFL3:=IF(DIFL3>0,INTPART(LOG(DIFL3))-1,INTPART(LOG(-DIFL3))-1);
MDIFL3:=INTPART(DIFL3/POW(10,PDIFL3));
MDIFB2:=INTPART(DIF/POW(10,PDIFL2));
MDIFB3:=INTPART(DIF/POW(10,PDIFL3));
直接底背离:=(CL1MDIFL2) AND (MacD<0 AND REF(MACD,1)<0) AND MDIFB2<=REF(MDIFB2,1);
隔峰底背离:=(CL1MDIFL3) AND (MACD<0 AND REF(MACD,1)<0) AND MDIFB3<=REF(MDIFB3,1);
钝化:=直接底背离 OR 隔峰底背离;
BG:=((MDIFB2>REF(MDIFB2,1))*REF(直接底背离,1)) OR ((MDIFB3>REF(MDIFB3,1))*REF(隔峰底背离,1));
结构形成:=TFILTER(BG,MACD>0,1);
XG:COUNT(结构形成,5)>=1 AND CROSS(DIF,DEA);

 

标签:倒数,DIF,通达信,源码,选股,N1,死叉,REF,INTPART
From: https://www.cnblogs.com/zhibiao/p/17991811

相关文章

  • 通达信波段底王中王指标公式源码副图
    X_01:=5;X_02:=Ema(CLOSE,X_01);X_03:=EMA(X_02,X_01);X_04:=X_02-REF(X_02,1);X_05:=X_03-REF(X_03,1);X_06:=Abs(X_02-X_03);X_07:=(X_04+X_05)/2;X_08:=POW(X_06,1)*POW(X_07,3);X_09:=X_08/HHV(ABS(X_08),X_01*3);波段底:crOSS(X_09,-0.9),COLORGREEN;X_1......
  • 通达信擒涨停主图指标公式源码副图
    神秘均线75:=ma(CLOSE,75);ZJ:=EMA(C,13),COLOR0000FF;HY:=EMA(C,20),COLORFF00FF;ZJ升:=IF(ZJ>REF(ZJ,1),ZJ,DRAWNULL),COLORRED,LINETHICK2;ZJ降:=IF(ZJ<=REF(ZJ,1),ZJ,DRAWNULL),COLORBLUE,LINETHICK2;HY升:=IF(HY>REF(HY,1),HY,DRAWNULL),COLORFF00FF,LINETHICK2;......
  • 通达信十战功成选股指标公式源码副图
    ma111:=MA(CLOSE,20);MA112:=MA(CLOSE,40);MA113:=MA(CLOSE,60);A11:=OPENA12:=C>MAX(MA111,MAX(MA112,MA113));A13:=V/MA(V,30)>1.2;A14:=C/REF(C,1)>1.049;SSSS:=expma(EXPMA(CLOSE,50),1);BBBB:=MA(CLOSE,125);NNNN:=MA(CLOSE,240);ZF:=(C-REF(C,1))/RE......
  • 真正的黄金K线主图源码
    TT2:=DMA((((HIGH+LOW)+(CLOSE*2))/4.15),0.9);TT1:=REF(EMA(TT2,3),1);RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;LC:=REF(CLOSE,1);RSI:=((SMA(MAX((CLOSE-LC),0),3,1)/SMA(ABS((CLOSE-LC)),3,......
  • 通达信超级逃顶指标公式明确买卖点,规避风险
    基础线:MA(C,5),LINETHICK3,COLOR00CCFF;刚柔线:MA(C,13),CIRCLEDOT,COLORYELLOW;生命线:MA(C,34),CIRCLEDOT,COLORMAGENTA;MA05:=MA(C,5);MA10:=MA(C,10);MA20:=MA(C,20);MA30:=MA(C,30);五日乖离率:=(C-MA05)/MA05*100;BB05:=ATAN((MA05/REF(MA05,1)-1)*100)*180/3.141......
  • 通达信回调就买主图指标,一个指标,觉得有帮助就用
    MA5:MA(C,5),COLORFFFFFF;MA10:MA(C,10),COLOR00FFFF;MA20:MA(C,20),COLORLIBLUE;MA60:MA(C,60),COLORLIGREEN;MA120:=MA(C,120),COLOR0000FF;DRAWKLINE(H,O,L,C);BDGD:=C=HHV(C,13);GDSJ:=BARSLAST(FILTER(CROSS(0.8,BDGD),2))+1;高点:REF(C,GDSJ),COLORFF00FF,POINTDO......
  • 通达信神龙擒庄主图指标公式源码
    ma5:=MA(C,5);MA10:=MA(C,10);MA20:=MA(C,20);CY:stICKLINE(CLOSE/REF(CLOSE,1)>=1.1,CLOSE-(CLOSE-OPEN)/3,OPEN,2,0),COLORYELLOW;ZT:STICKLINE(CLOSE/REF(CLOSE,1)>=1.0989ANDCLOSE=HIGH,CLOSE,OPEN,2,0),COLORYELLOW;DY:STICKLINE(CLOSE/REF(CLOSE,1)>=......
  • 通达信涨停宝抄底宝主图指标公式源码副图
    M1:=10;M2:=20;N:=20;二品:(1+M1/100)*ma(CLOSE,N),COLORYELLOW;四品:(1-M2/100)*MA(CLOSE,N),COLORBLUE;三品:(二品+四品)/2,COLORWHITE;一品:8*(二品+四品)/14,COLORRED;五品:6*(二品+四品)/14,COLORGREEN;TM:=1200823;涨停:IF(DATE<tm,ztprice(ref(c,1),if(codelike('......
  • 通达信强弱界限指标公式源码副图
    VAR6:=(2*CLOSE+HIGH+LOW)/4;VAR8:=LLV(LOW,34);VARB:=HHV(HIGH,34);BB:=Ema((VAR6-VAR8)/(VARB-VAR8)*100,13);VARC:=EMA(0.667*REF(BB,1)+0.333*BB,2);RSV1:=(CLOSE-LLV(LOW,35))/(HHV(HIGH,35)-LLV(LOW,35))*100;K1:=SMA(RSV1,13,1);D1:=SMA(K1,13,1);浪:=EMA(D1,3)......
  • 通达信筹码乾坤指标公式源码副图
    显示:=1;A20:WINNER(COst(97))-WINNER((COST(97)-COST(3))/40*38+COST(3));A19:WINNER((COST(97)-COST(3))/40*38+COST(3))-WINNER((COST(97)-COST(3))/40*36+COST(3));A18:WINNER((COST(97)-COST(3))/40*36+COST(3))-WINNER((COST(97)-COST(3))/40*34+COST(3));A17:WINNER(......