以下是通达信买卖盘源码副图

通达信买卖盘源码副图

VAR1:=(VOL / (((HIGH – LOW) * 2) – ABS((CLOSE – OPEN))));
买盘:=IF((CLOSE > OPEN),(VAR1 * (HIGH – LOW)),IF((CLOSE < OPEN),(VAR1 * ((HIGH – OPEN) + (CLOSE – LOW))),(VOL / 2)));
卖盘:=IF((CLOSE > OPEN),(0 – (VAR1 * ((HIGH – CLOSE) + (OPEN – LOW)))),IF((CLOSE < OPEN),(0 – (VAR1 * (HIGH – LOW))),(0 – (VOL / 2))));
bb:=ema(SUM(卖盘,5)+SUM(卖盘,2)+SUM(卖盘,4)+SUM(卖盘,3)+SUM(卖盘,1),3);
cg:=ema(SUM(买盘,5)+SUM(买盘,4)+SUM(买盘,3)+SUM(买盘,2)+SUM(买盘,1),3);

aa:=(cg+bb);
cc:=ref(sum(买盘,30),5);
mm:=ref(sum(卖盘,30),5);
dd:=(sum(aa,20))/10000;

TGLXS:=aa,COLORSTICK;

STICKLINE(TGLXS>0,0,TGLXS,5,0),COLOR5544ff;
STICKLINE(TGLXS<0,0,TGLXS,5,0),COLOR00FF00;

换手率1:V/CAPITAL*100;
盘:CAPITAL/1000000;
STICKLINE(TGLXS>cc,0,TGLXS,5,0),COLOR11FFFF;

STICKLINE(TGLXS>cc*2,0,TGLXS,5,0),COLORRED;
买卖差:1*(买盘+卖盘)/10000,colorff00ff;

 

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。