同花顺超短线风险控制指标V1.0
-
相关简介:同花顺超短线风险控制指标 本指标为超短线风险控制专用。柱体长短带表风险系数,红绿为多空方向,浅色为区间风险。 IF CLOSEREF(CLOSE,1) THEN dHIGHer=HIGH; ELSE dHIGHer=REF(DHIGHer,1); IF CLOSEREF(CLOSE,1) THEN dLOWer=LOW; ELSE DLOWer=REF(DLOWer,1); IF CLOSE=REF(CLOSE,1) THEN dHIGHer=HIGH; IF CLOSE=REF(CLOSE,1
-
文章来源:股海网作者:股海网发布时间:2015-08-05浏览次数:
同花顺超短线风险控制指标
本指标为超短线风险控制专用。柱体长短带表风险系数,红绿为多空方向,浅色为区间风险。
IF CLOSE<REF(CLOSE,1)
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(CLOSE<H0 AND CLOSE>L0 AND CLOSE>OPEN,dhl,0,9,1),RGB(164,164,164);
STICKLINE(CLOSE<H0 AND CLOSE>L0 AND CLOSE<=OPEN,-dhl,0,9,1),RGB(164,164,0);
STICKLINE(CLOSE<l0,-dhl,0,9,0),RGB(0,255,0);
sec=REF(sec,1);
IF CLOSE>H0 AND REF(CLOSE,1)<=H0
THEN Sec=1;
IF CLOSE<l0 AND REF(CLOSE,1)>=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);