以下是通达信强悍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),Culor000011;
STICKLINE(ddZB>0,ddZB,0,7,0),Culor000033;
STICKLINE(ddZB>0,ddZB,0,6,0),Culor000055;
STICKLINE(ddZB>0,ddZB,0,5,0),Culor000077;
STICKLINE(ddZB>0,ddZB,0,4,0),Culor000099;
STICKLINE(ddZB>0,ddZB,0,3,0),Culor0000BB;
STICKLINE(ddZB>0,ddZB,0,2,0),Culor0000DD;
STICKLINE(ddZB>0,ddZB,0,1,0),Culor0000FF;
STICKLINE(ddZB<0,ddZB,0,8,0),Culor001100;
STICKLINE(ddZB<0,ddZB,0,7,0),Culor003300;
STICKLINE(ddZB<0,ddZB,0,6,0),Culor005500;
STICKLINE(ddZB<0,ddZB,0,5,0),Culor007700;
STICKLINE(ddZB<0,ddZB,0,4,0),Culor009900;
STICKLINE(ddZB<0,ddZB,0,3,0),Culor00BB00;
STICKLINE(ddZB<0,ddZB,0,2,0),Culor00DD00;
STICKLINE(ddZB<0,ddZB,0,1,0),Culor00FF00;
评论(0)