input:N(20,1,100);
SAT:IF((AMOUNT/C)/(HHV(AMOUNT,N)/HHV(C,N))*100>100,100,(AMOUNT/C)/(HHV(AMOUNT,N)/HHV(C,N))*100);
STICKLINE(((CLOSE > 0) AND BARSTATUS=2),20,121,40,1),colorFFFFFF;
STICKLINE(((SAT <= 5) AND BARSTATUS=2),21,(20 + SAT),35,0),colorFFFFFF;
STICKLINE((((SAT > 5) AND (SAT <= 20)) AND BARSTATUS=2),21,(20 + SAT),35,0),colorCCFF88;
STICKLINE((((SAT > 20) AND (SAT <= 40)) AND BARSTATUS=2),21,(20 + SAT),35,0),colorFF00FF;
STICKLINE(((SAT > 40) AND BARSTATUS=2),21,(20 + SAT),35,0),color0000FF;
IF BARSTATUS=2 and (SAT) THEN BEGIN DRAWTEXTREL(700,800,'量能饱和度:'+NUMTOSTRN(SAT,0)),LINETHICK6,COLORccffcc;end;
DRAWTEXTREL(0,0,'(一)根据量大成头的原理,当【量能饱和度】出现饱和,而当前股价正巧位于一处高价区时,暗示该价位成为该时期峰顶的机率将会大幅增加。'),COLORYELLOW;
DRAWTEXTREL(0,100,'(二)根据【爆发力】原理,当【量能饱和度】在一处股价的低价区出现饱和时,该价位便很可能成为一处起涨点。 '),COLORYELLOW;
100,POINTDOT,COLORFFFF00;