通達信L2仿大智慧DDX,DDY,DDZ指標公式詳細介紹
2018-01-03 14:55 股旁網(wǎng)
先將本人自用的“通達信DDX,DDY,DDZ”源碼送上,該公式與通達信官方公布的公式不同,是按大智慧形式,采集通達信L2數據而成,經(jīng)測試,數據與大智慧水乳交融,雖然不能百分之百相同,但是實(shí)戰效果顯著(zhù),
{DDX:}
DDX:(LARGEINTRDVOL-LARGEOUTTRDVOL)*10000/FINANCE(7),NODRAW,LINETHICK0;
STICKLINE(DDX《0,0,DDX,2,0),COLORFF9900;
STICKLINE(DDX》=0,0,DDX,2,0),COLOR000099;
DDX1:EMA(DDX,60)*50,COLOR00FFFF;
DDX2:MA(DDX1,3),COLORFF00FF;
DDX3:MA(DDX2,10),COLOR00FF00;
{DDY:}
DDY:(TRADEOUTNUM-TRADEINNUM)*100/TRADENUM,NODRAW,LINETHICK0;
STICKLINE(DDY《0,0,DDY,2,0),COLORFF9900;
STICKLINE(DDY》=0,0,DDY,2,0),COLOR0000AA;
DDY1:EMA(DDY,60)*30,COLOR00FFFF;
DDY2:MA(DDY1,5),COLORFF00FF;
DDY3:MA(DDY1,10),COLOR00FF00;
{DDZ:}
DDZ:=(TRADEOUTNUM-TRADEINNUM)/(TRADEOUTNUM+TRADEINNUM)*100,NODRAW;
DDZ1:=DDZ*1.7;
DDZ2:=DDZ*1.3;DRAWBAND(DDZ,RGB(0,250,0),DDZ1,RGB(255,0,0));
大單比值:EMA(DDZ,0),COLOR00FFFF;