布林BOLL金重心线主图指标公式[通达信公式]
相关标签:
原理解析:
源码:
{BOLL-金Z}
DRAWGBK(C>0,RGB(80,0,80),RGB(0,0,80),1,0,0);
{1.重心线}
HH:=HHV(H,3);LL:=LLV(L,3);
ZXC:=WMA((2*C+HH+LL)/4,4);
ZXO:=REF(ZXC,1);
ZXC,COLOR00FF00,LINETHICK2;
IF(ZXC,ZXC>REF(ZXC,1),RGB(255,80,0)),LINETHICK3;
{3.BOLL-金}
MID:MA(ZXC,18),COLOR00FFFF,DOTLINE;
UPPER:MID + 1.8*STD(ZXC,18),COLORFF66FF;
LOWER:MID - 1.8*STD(ZXC,18),COLORFF9900;
{4.高抛.低吸}
RC:=(H+L+C*2)/4;
R2D:=WMA(RC,27);
R2E:=STD(RC,27);
R3F:=(RC-R2D)/R2E*100;
R40:=WMA(R3F,3);
R41:=WMA(R40,3);
JD:=WMA(R41,2);
AJ:=3*R41-2*JD;
DRAWTEXT(CROSS(AJ,JD) ,L-0.2,'←买呗'),COLOR00FFFF,LINETHICK2;
DRAWTEXT(CROSS(JD,AJ) ,H+0.2,'←跑哇'),COLOR00FFFF,LINETHICK2;
{5.K线}
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,8.5,0) ,COLOR000011;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,7,0) ,COLOR000033;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,6,0) ,COLOR000055;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,5,0) ,COLOR000077;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0) ,COLOR000099;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0) ,COLOR0000BB;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0) ,COLOR0000DD;
STICKLINE((CLOSE >= OPEN),HIGH,LOW,0,0),COLOR0000FF;
STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,8.5,0),COLOR906600;
STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,7,0),COLOR908800;
STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,6,0),COLOR90AA00;
STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,5,0),COLOR90BB00;
STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,4,0),COLOR90CC00;
STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,3,0),COLOR90DD00;
STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,2,0),COLOR90EE00;
STICKLINE((OPEN > CLOSE),HIGH,LOW,0,0),COLOR90FF00;DRAWTEXT_FIX(C>O,0.01,0.9,0,' WWW.CXH99.COM '),COLORRED;
DRAWTEXT_FIX(C>O,1,1,0,'程序化交易模型'),COLORRED;
公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程】
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 511411198 进行 有偿 编写!(不贵!点击查看价格!)
相关文章
-
没有相关内容