{主图量能饱和度--创幻のloy518制作}
N:=20;
SAT:=(AMOUNT/C)/(HHV(AMOUNT,N)/HHV(C,N));
量能饱和度:=IF(SAT>1,1,SAT)*100;
AAA:=量能饱和度<=10;
BBB:=量能饱和度>10 AND 量能饱和度<=20;
CCC:=量能饱和度>20 AND 量能饱和度<=30;
DDD:=量能饱和度>30 AND 量能饱和度<=50;
EEE:=量能饱和度>50 AND 量能饱和度<=70;
FFF:=量能饱和度>70 AND 量能饱和度<=80;
GGG:=量能饱和度>80 AND 量能饱和度<=90;
HHH:=量能饱和度>90;
三分之一:=(SYSPARAM(4)-SYSPARAM(5))/3;
再分八:=三分之一/9.5;
A1:=SYSPARAM(5)-(三分之一);
//A1:=MA(CLOSE,13);
STICKLINE(AAA,A1,A1+再分八*2.5,8,1),COLORWHITE;
STICKLINE(BBB,A1,A1+再分八*3.5,8,1),COLORWHITE;
STICKLINE(CCC,A1,A1+再分八*4.5,8,1),COLORWHITE;
STICKLINE(DDD,A1,A1+再分八*5.5,8,1),COLORWHITE;
STICKLINE(EEE,A1,A1+再分八*6.5,8,1),COLORWHITE;
STICKLINE(FFF,A1,A1+再分八*7.5,8,1),COLORWHITE;
STICKLINE(GGG,A1,A1+再分八*8.5,8,1),COLORWHITE;
STICKLINE(HHH,A1,A1+再分八*9.5,8,1),COLORWHITE;
STICKLINE(C AND AAA,A1,A1+再分八,8,0),COLOR66CCCC;
STICKLINE(C AND BBB,A1,A1+再分八*2,8,0),COLOR6699CC;
STICKLINE(C AND CCC,A1,A1+再分八*3,8,0),COLOR6666CC;
STICKLINE(C AND DDD,A1,A1+再分八*4,8,0),COLOR6633CC;
STICKLINE(C AND EEE,A1,A1+再分八*5,8,0),COLOR00CCCC;
STICKLINE(C AND FFF,A1,A1+再分八*6,8,0),COLOR0099CC;
STICKLINE(C AND GGG,A1,A1+再分八*7,8,0),COLOR0066CC;
STICKLINE(C AND HHH,A1,A1+再分八*8,8,0),COLOR0000CC;
DRAWTEXT(AAA,A1+再分八*2,'①'),COLOR6699CC,ALIGN0;
DRAWTEXT(BBB,A1+再分八*3,'②'),COLOR6666CC,ALIGN0;
DRAWTEXT(CCC,A1+再分八*4,'③'),COLOR6633CC,ALIGN0;
DRAWTEXT(DDD,A1+再分八*5,'④'),COLOR00CCCC,ALIGN0;
DRAWTEXT(EEE,A1+再分八*6,'⑤'),COLOR0099CC,ALIGN0;
DRAWTEXT(FFF,A1+再分八*7,'⑥'),COLOR0066CC,ALIGN0;
DRAWTEXT(GGG,A1+再分八*8,'⑦'),COLOR0000CC,ALIGN0;
DRAWTEXT(HHH,A1+再分八*9,'八'),COLORRED,ALIGN0;