通达信量能饱和副图 源码
量能饱和指标使用说明:【通达信附图指标】
指标使用口诀:
巧设量能饱和度,绿柱出现请关注;
粉买起涨防登顶,低买黄金送祝福
- 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,'饱和度');
80177391.png
|