以下是神奇布林主图指标公式(无源码的请下载附件导入)

NNN:=36;
ZD_MA:=MA(C,NNN);
ZD_EMA:=EMA(C,NNN);
STICKLINE(ZD_EMA>ZD_MA,ZD_EMA,ZD_MA,0,-1),COLORMAGENTA;
STICKLINE(ZD_EMA<ZD_MA,ZD_EMA,ZD_MA,0,-1),COLORMAGENTA;
RD_4P:=(-REF(C,3)-0.382*REF(C,2)+0.382*REF(C,1)+2*C);
BD:=STD(C,NNN);
RD:=STD(RD_4P,NNN);
BZC:=POW(BD*BD+RD*RD,1/2);
A11:=ZD_MA+(1.618)*BZC;
B11:=ZD_MA-(1.618)*BZC;
DRAWBAND(A11,RGB(5400,100,0),B11,RGB(0,0,0));
A1:ZD_MA+(1.618)*BZC;
A2:ZD_MA+(1.000)*BZC;
A3:ZD_MA+(0.618)*BZC;
中道:ZD_MA,COLORMAGENTA,LINETHICK2;
快道:ZD_EMA;
B3:ZD_MA-(0.618)*BZC;
B2:ZD_MA-(1.000)*BZC;
B1:ZD_MA-(1.618)*BZC;
N:=12;M:=26;
DIFF:=EMA(CLOSE,N)-EMA(CLOSE,M);
DEA:=EMA(DIFF,9);
STICKLINE(DIFF>DEA,C,O,3.2,0),COLOR000045;
STICKLINE(DIFF>DEA,O,O,2.7,0),COLOR000065;
STICKLINE(DIFF>DEA,C,O,2.2,0),COLOR000085;
STICKLINE(DIFF>DEA,C,O,1.7,0),COLOR0000A5;
STICKLINE(DIFF>DEA,C,O,1.2,0),COLOR0000C5;
STICKLINE(DIFF>DEA,H,L,0.5,0),COLOR0000F5;
STICKLINE(DIFF<=DEA,C,O,3.2,0),COLOR555555;
STICKLINE(DIFF<=DEA,C,O,2.7,0),COLOR777777;
STICKLINE(DIFF<=DEA,C,O,2.2,0),COLOR999999;
STICKLINE(DIFF<=DEA,C,O,1.7,0),COLORBBBBBB;
STICKLINE(DIFF<=DEA,C,O,1.2,0),COLORDDDDDD;
STICKLINE(DIFF<=DEA,H,L,0.5,0),COLORFFFFFF;
DRAWTEXT(ISLASTBAR,B1,’———B1′),COLORWHITE;
DRAWTEXT(ISLASTBAR,B2,’———B2′),COLORWHITE;

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。