本指标为超短线风险控制专用。柱体长短带表风险系数,红绿为多空方向,浅色为区间风险。
IF CLOSE[
]THEN dHIGHer=HIGH;
ELSE dHIGHer=REF(DHIGHer,1);
IF CLOSE>REF(CLOSE,1)
THEN dLOWer=LOW;
ELSE DLOWer=REF(DLOWer,1);
IF CLOSE=REF(CLOSE,1)
THEN dHIGHer=HIGH;
IF CLOSE=REF(CLOSE,1)
THEN dLOWer=LOW;
H0:HHV(dhigher,n);
L0:LLV(dlower,n);
dhl:(ABS(H0-L0)/CLOSE)*100;
dim0:0;
STICKLINE(CLOSE>h0,0,dhl,9,1),RGB(255,0,0);
STICKLINE(CLOSEL0 AND CLOSE>OPEN,dhl,0,9,1),RGB(164,164,164);
STICKLINE(CLOSEL0 AND CLOSE<=OPEN,-dhl,0,9,1),RGB(164,164,0);
STICKLINE(CLOSE
sec=REF(sec,1);
IF CLOSE>H0 AND REF(CLOSE,1)<=H0
THEN Sec=1;
IF CLOSE=l0
THEN sec=-1;
SECN=sec;
DRAWICON((sec=1 AND REF(sec,1)<1),-dhl,1);
DRAWICON((sec=-1 AND REF(sec,1)>-1),dhl,2);