通达信迪马克震荡指标公式
2021/4/9 18:59:40
本文公式指标的选股公式如下:
迪马克震荡之选股指标公式
N:=1;
M:=3;
N1:=64;
ST:=24;
OVERBOUGHT:0.7;
OVERSOLD:0.3;
DEMAX:=HIGH>REF(HIGH,1);
DEMIN:=LOW<REF(LOW,1);
DENUM:=MA(DEMAX,9);
DEDOM:=MA(DEMAX,9)+MA(DEMIN,9) ;
DEMARK:DENUM/DEDOM;
DD:=C=LLV(C,60);{60日最低点}
DDSJ:=BARSLAST(REF(DD,1));{上一低点时间}
DDGJ:=REF(CLOSE,DDSJ+1)>CLOSE;{股价趋势}
DMZB:REF(DEMARK,DDSJ+1);
DEMARK底背离:=IF(DDGJ AND DMZB,0.1,0);
TD1:=IF(C<REF(C,4),1,0);
TD2:=IF(TD1=1 AND REF(TD1,1)=1 AND REF(TD1,2)=1 AND REF(TD1,3)=1 AND
REF(TD1,4)=1 AND REF(TD1,5)=1 AND REF(TD1,6)=1 AND REF(TD1,7)=1 AND
REF(TD1,8)=1, 1,0);
TD3:=IF(REF(C,9)>=REF(C,13),1,0);
TD4:=IF(TD2=1 AND TD3=1,1,0);
TD5:=IF(H>=REF(LLV(L,5),3),1,0);
D8:=IF(REF(TD4,1)=1 AND TD5=1,1,0);
D9:=IF(TD4=1 AND TD5=1 AND REF(D8,1)!=1,1,0);
D10:=IF(REF(TD4,1)=1 AND TD5=1 AND REF(D8,2)!=1 AND REF(D9,1)!=1,1,0);
D11:=IF(REF(TD4,2)=1 AND TD5=1 AND REF(D8,3)!=1 AND REF(D9,2)!=1 AND
REF(D10,1)!=1,1,0);
D12:=IF(REF(TD4,3)=1 AND TD5=1 AND REF(D8,4)!=1 AND REF(D9,3)!=1 AND
REF(D10,2)!=1 AND REF(D11,1)!=1,1,0);
D13:=IF(REF(TD4,4)=1 AND TD5=1 AND REF(D8,5)!=1 AND REF(D9,4)!=1 AND
REF(D10,3)!=1 AND REF(D11,2)!=1 AND REF(D12,1)!=1,1,0);
D14:=IF(REF(TD4,5)=1 AND TD5=1 AND REF(D8,6)!=1 AND REF(D9,5)!=1 AND
REF(D10,4)!=1 AND REF(D11,3)!=1 AND REF(D12,2)!=1 AND REF(D13,1)!=1,1,0);
D15:=IF(REF(TD4,6)=1 AND TD5=1 AND REF(D8,7)!=1 AND REF(D9,6)!=1 AND
REF(D10,5)!=1 AND REF(D11,4)!=1 AND REF(D12,3)!=1 AND REF(D13,2)!=1 AND
REF(D14,1)!=1,1,0);
D16:=IF(REF(TD4,7)=1 AND TD5=1 AND REF(D8,8)!=1 AND REF(D9,7)!=1 AND
REF(D10,6)!=1 AND REF(D11,5)!=1 AND REF(D12,4)!=1 AND REF(D13,3)!=1 AND
REF(D14,2)!=1 AND REF(D15,1)!=1,1,0);
D17:=IF(REF(TD4,8)=1 AND TD5=1 AND REF(D8,9)!=1 AND REF(D9,8)!=1 AND
REF(D10,7)!=1 AND REF(D11,6)!=1 AND REF(D12,5)!=1 AND REF(D13,4)!=1 AND
REF(D14,3)!=1 AND REF(D15,2)!=1 AND REF(D16,1)!=1,1,0);
SETUP:=(D8+D9+D10+D11+D12+D13+D14+D15+D16+D17);
XG:SETUP AND (DEMARK=0 OR (DEMARK>0 AND (REF(DEMARK,1)=0 OR (REF(DEMARK,1)>0 AND REF(DEMARK,2)=0)))),COLORWHITE,NODRAW;
XG1:CROSS(DEMARK,DMZB) AND DMZB=0,COLORYELLOW;
STICKLINE(XG,0.3,0.35,2,0),COLORCYAN;
投 股票网 www.to u18.cn
股市公式下载推荐