以下是通达信内外盘差
通达信内外盘差
{内外盘差}
PJ:=(H+L+C)/3;
V1:=IF(H=L,1,H-MAX(O,C));
V2:=IF(H=L,1,MAX(C,O)-PJ);
V3:=IF(H=L,1,MIN(O,C)-L);
V4:=IF(H=L,1,PJ-MIN(C,O));
V5:=VOL/IF(H=L,4,H-L);
V6:=(V1*V5)+(V2*V5);
V7:=(V3*V5)+(V4*V5);
WP1:=DYNAINFO(23);
NP1:=DYNAINFO(22);
WP2:=IF(ISLASTBAR,V7*240/FROMOPEN,V7);
NP2:=IF(ISLASTBAR,V6*240/FROMOPEN,V6);
WP【外】:IF(ISLASTBAR AND PERIOD=5 ,WP1,WP2),NODRAW;
NP【内】:IF(ISLASTBAR AND PERIOD=5 ,NP1,NP2),NODRAW;
日差【手】:WP【外】-NP【内】,NODRAW;
周差【手】:SUM(日差【手】,5),NODRAW;
十日差【手】:SUM(日差【手】,10),LINETHICK2,COLORYELLOW,NODRAW;
月差【手】:SUM(日差【手】,22),NODRAW;
STICKLINE(日差【手】>O,0,日差【手】,2,0),COLORRED;
STICKLINE(日差【手】<O,0,日差【手】,2,0),COLORFFFF00;
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
评论(0)