以下是通达信强悍DMA和DDX放在一起看波段买卖指标公式
把DMA和DDX放在一起看波段买卖股票,可做好每一波段做到不轻易被洗出去,
input:N(10,1,72),M(50,1,72);
DRAWGBKlast(c>0,strip(RGB(0,40,0),RGB(0,0,40),0));0;
DDD:(MA(CLOSE,N)-MA(CLOSE,M));
AMA:MA(DDD,N),COLOR00FFFF;
FILLRGN(DDD,AMA,DDD>AMA,RGB(120,0,80)),LAYER7;
FILLRGN(DDD,AMA,DDD<AMA,RGB(0,0,255)),LAYER7;
partline(DDD,DDD>ref(DDD,1),rgb(255,0,0),DDD<ref(DDD,1),rgb(0,255,0)),LINETHICK2;
TODAY:="ddx.ddx"=0;{判断是否有正版数据}
主单买:=IF(TODAY,"DATA@DDE"(6),bigorder(1,2));
主单卖:=IF(TODAY,"DATA@DDE"(7),bigorder(2,2));
特单买:=IF(TODAY,"DATA@DDE"(4),bigorder(1,3));
特单卖:=IF(TODAY,"DATA@DDE" >
把DMA和DDX放在一起看波段买卖股票,可做好每一波段做到不轻易被洗出去,
input:N(10,1,72),M(50,1,72);
DRAWGBKlast(c>0,strip(RGB(0,40,0),RGB(0,0,40),0));0;
DDD:(MA(CLOSE,N)-MA(CLOSE,M));
AMA:MA(DDD,N),COLOR00FFFF;
FILLRGN(DDD,AMA,DDD>AMA,RGB(120,0,80)),LAYER7;
FILLRGN(DDD,AMA,DDD<AMA,RGB(0,0,255)),LAYER7;
partline(DDD,DDD>ref(DDD,1),rgb(255,0,0),DDD<ref(DDD,1),rgb(0,255,0)),LINETHICK2;
TODAY:="ddx.ddx"=0;{判断是否有正版数据}
主单买:=IF(TODAY,"DATA@DDE"(6),bigorder(1,2));
主单卖:=IF(TODAY,"DATA@DDE"(7),bigorder(2,2));
特单买:=IF(TODAY,"DATA@DDE"(4),bigorder(1,3));
特单卖:=IF(TODAY,"DATA@DDE"(5),bigorder(2,3));
DDX:(主单买 - 主单卖) * VOL/CAPITAL * 100,linethick0;
DDZB:=DDX;
STICKLINE(ddZB>0,ddZB,0,8,0),Color000011;
STICKLINE(ddZB>0,ddZB,0,7,0),Color000033;
STICKLINE(ddZB>0,ddZB,0,6,0),Color000055;
STICKLINE(ddZB>0,ddZB,0,5,0),Color000077;
STICKLINE(ddZB>0,ddZB,0,4,0),Color000099;
STICKLINE(ddZB>0,ddZB,0,3,0),Color0000BB;
STICKLINE(ddZB>0,ddZB,0,2,0),Color0000DD;
STICKLINE(ddZB>0,ddZB,0,1,0),Color0000FF;
STICKLINE(ddZB<0,ddZB,0,8,0),Color001100;
STICKLINE(ddZB<0,ddZB,0,7,0),Color003300;
STICKLINE(ddZB<0,ddZB,0,6,0),Color005500;
STICKLINE(ddZB<0,ddZB,0,5,0),Color007700;
STICKLINE(ddZB<0,ddZB,0,4,0),Color009900;
STICKLINE(ddZB<0,ddZB,0,3,0),Color00BB00;
STICKLINE(ddZB<0,ddZB,0,2,0),Color00DD00;
STICKLINE(ddZB<0,ddZB,0,1,0),Color00FF00;