大智慧量能饱合幅图指标
源码
input:N(20,1,100);
饱和度:IF((AMOUNT/C)/(HHV(AMOUNT,N)/HHV(C,N))*100>100,100,(AMOUNT/C)/(HHV(AMOUNT,N)/HHV(C,N))*100),DOTLINE,COLORred;
STICKLINE(((CLOSE > 0) AND BARSTATUS=2),0,100,19,1),colorFFFFFF;
STICKLINE(((饱和度 <= 5) AND BARSTATUS=2),1,(10+ 饱和度),18,0),colorFFFFFF;
STICKLINE((((饱和度 > 5) AND (饱和度 <= 20)) AND BARSTATUS=2),1,(8 + 饱和度),18,0),colorCCFF88;
STICKLINE((((饱和度 > 20) AND (饱和度 <= 40)) AND BARSTATUS=2),1,( 饱和度),18,0),colorFF00FF;
STICKLINE(((饱和度 > 40) AND BARSTATUS=2),1,( 饱和度),18,0),color0000FF;
IF BARSTATUS=2 and (饱和度) THEN BEGIN DRAWTEXTREL(760,800,'量能饱和度:'+NUMTOSTRN(饱和度,0)),LINETHICK5,COLORred;end;