N:=5;
缩量1:=1/Dvol*100000,VOLSTICK;
放量1:=-缩量1,VOLSTICK;
正量冲顶2:=(LLV(放量1,60)+LLV(放量1,30))*0.55,COLORFF00FF;
反量探底2:=(HHV(缩量1,60)+HHV(缩量1,30))*0.55,COLORFF00FF;
AAAD:=REFDATE(HHV(H,130),DATE);
BBB:=REFDATE(LLV(L,130),DATE);
{DRAWBAND(正量冲顶2,RGB(21,89,21),反量探底2,RGB(55,55,89));}
DRAWBAND(正量冲顶2,RGB(21,89,21),反量探底2,RGB(21,89,21));
当天量:=1/DVOL*100000,VOLSTICK,COLORFF00FF;
N日极端缩量:SUM(当天量,N),VOLSTICK,COLORFF00FF;
N天极端缩量:-N日极端缩量,VOLSTICK,COLORFF00FF;
N日缩量:-N天极端缩量,VOLSTICK,COLORFF00FF;
外:=(HHV(N日缩量,60)+HHV(N日缩量,30))*0.45,COLORGREEN;
内:=(HHV(N日缩量,60)+HHV(N日缩量,30))*0.55,COLORFF00FF;
内环拐点:(HHV(N日缩量,60)+HHV(N日缩量,30))*0.45,COLORGREEN;
极限外环拐点:(HHV(N日缩量,60)+HHV(N日缩量,30))*0.55,COLORFF00FF;
环内拐点:-外,COLORGREEN;
极限环外拐点:-内,COLORFF00FF;