量能饱和副图-精品通达信指标公式源码分享

通达信免费指标 12-04 阅读:11 评论:0

image.png

N:=21;

SAT:IF((AMOUNT/C)/(HHV(AMOUNT,N)/HHV(C,N))*100>100,100,(AMOUNT/C)/(HHV(AMOUNT,N)/HHV(C,N))*100),COLOR0000FF,LINETHICK2;   

STICKLINE(((CLOSE > 0) AND ISLASTBAR ),20,121,4,1),COLORFFFFFF;   

STICKLINE(((SAT <= 5) AND ISLASTBAR ),21,(20 + SAT),3,0),COLOR00FFFF;   

STICKLINE((((SAT > 5) AND (SAT <= 20)) AND ISLASTBAR ),21,(20 + SAT),3,0),COLORCCFF88;   

STICKLINE((((SAT > 20) AND (SAT <= 40)) AND ISLASTBAR ),21,(20 + SAT),3,0),COLORFF00FF;   

STICKLINE(((SAT > 40) AND ISLASTBAR ),21,(20 + SAT),3,0),COLOR0000FF;   

{IF CURRBARSCOUNT  AND (SAT) THEN BEGIN DRAWTEXTREL(700,800,'量能饱和度:'+NUMTOSTRN(SAT,0)),LINETHICK6,COLORCCFFCC;END;}   

100,POINTDOT,COLORFFFF00;   

K2:=BACKSET(SAT<REF(SAT,1),2);   

Y:IF(K2,SAT,DRAWNULL),COLOR33FF33,LINETHICK2,LINETHICK2;   

DRAWTEXT(Y=SAT AND ISLASTBAR AND BACKSET(CLOSE,3),50,'饱和度');


版权声明

本文版权归掌上指标所有。
未经许可,不得转载,转载请注明出处!

服务热线

18020657357

微信客服

微信客服