通达信新波段王指标公式

{使用说明:1、买点:多空分界线变红后出现波段买为做多信号,中间出现波段卖信号为杂波可以不考虑,再结合逃顶信号进行卖出操作,如果没有出现逃顶信号,则可以等多空分界线变绿后结合波段卖信号综合做出判断。2、卖点:多空分界线变绿后出现波段卖为做多信号,中间出

AV1:=(0.75*C+0.25*REF(0.75*C,1));
AV2:=(0.75*H+0.25*REF(0.75*H,1));
AV3:=(0.75*L+0.25*REF(0.75*L,1));
RSV1:=(AV1-LLV(AV3,360))/(HHV(AV2,360)-LLV(AV3,360))*100;
RSV2:=(HHV(AV2,36)-AV1)/(HHV(AV2,36)-LLV(AV3,36))*100;
K:=SMA(RSV1,3,1),COLORWHITE,LINETHICK1;
D:=SMA(K,8,1),COLORMAGENTA,LINETHICK1;
J:=SMA(D,11,1),COLORCYAN,LINETHICK1;
DRAWBAND(K,RGB(118,118,0),D,RGB(118,118,118));
DRAWBAND(D,RGB(118,0,118),J,RGB(0,118,118));
DRAWTEXT(CROSS(D,J),K,'波段买'),COLORRED;
DRAWICON(CROSS(D,J),K,7);
DRAWTEXT(CROSS(J,D),D,'波段卖'),COLORGREEN;
DRAWICON(CROSS(J,D),D,8);
多空分界:SMA(RSV2,3,1),COLORGREEN,LINETHICK2;
IF(多空分界<J,多空分界,DRAWNULL),COLORRED,LINETHICK2;
抄底线:95,COLORRED,LINETHICK1;
逃顶线:5,COLORGREEN,LINETHICK1;
DRAWTEXT(CROSS(多空分界,95),多空分界,'抄底'),COLORRED;
STICKLINE(CROSS(多空分界,95),95,105,1,0),COLORRED;
DRAWTEXT(CROSS(5,多空分界),多空分界,'逃顶'),COLORGREEN;
STICKLINE(CROSS(5,多空分界),5,15,1,0),COLORGREEN;

(0)

相关推荐