SS:=PERIOD;
自:=100*(HHV(H,6)-C)/(HHV(H,6)-LLV(L,6));
然:=100*(HHV(H,10)-C)/(HHV(H,10)-LLV(L,10));
峰1:=IF(自<50,自+70,120);
DRAWBAND(120,RGB(0,30,250),峰1,RGB(0,30,250));
谷1:=IF(自>50,自-50,0);
DRAWBAND(谷1,RGB(160,88,8),0,RGB(160,88,8));
R9:=IF(SS=2,80,9); RK3:=IF(SS=2,3,9); RD3:=IF(SS=2,10,9);
RSV:=(C-LLV(L,R9))/(HHV(H,R9)-LLV(L,R9))*100;
K:=SMA(RSV,RK3,1); D:=SMA(K,RD3,1); J:=3*K-2*D;
峰2:=IF(然<50,然+70,120);
谷2:=IF(然>50,然-50,0);
CS:=(C-LLV(L,8))/(HHV(H,8)-LLV(L,8))*100;
价:EMA(CS,3)*1.25,COLOR00FFFF,LINETHICK3;
价势:=J*1.1;
DRAWBAND(价,RGB(0,180,220),IF(价>峰2,峰2,价),RGB(0,180,220));
DRAWBAND(价势,RGB(120,8,138),IF(价势<谷1,谷1,价势),RGB(120,8,138));
DRAWBAND(价势,RGB(0,0,130),IF(价势>峰1,峰1,价势),RGB(0,0,130));
DRAWBAND(价,RGB(250,96,96),IF(价<谷2,谷2,价),RGB(250,96,96));
势:EMA((0.668*REF(价势,1)+0.333*价势),1),COLOR00EE00,LINETHICK2;
峰:峰2,COLOR8E00E8,LINETHICK2;
谷:谷2,COLORFFFFFF,LINETHICK2;