通达信量能饱和副图源码

 2023-07-02 19:59:51    通达信指标网  

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,'饱和度');   

  •  标签:  

原文链接:https://www.tdxzb.com/?id=1459

本文版权:如无特别标注,本站文章均为原创。

相关文章

服务热线

18020657357

微信客服

微信客服