热门主图指标–对布林通道最完美的优化!
基于布林通道笔者做了最完美的优化,形成最美最实用的指标。
投资学习的过程,从简单到复杂,从复杂再到简单!
指标总收益率 股票收益率 超额收益 年化收益率 同期沪深300 跑赢大市
316.85% 206.9% 109.95% 316% 34.70% 281.3%
通达信 主图指标:
公式源码:
BOLL:MA(CLOSE,20);
UP:BOLL+2*STD(CLOSE,20),COLORYELLOW;
LO:BOLL-2*STD(CLOSE,20),COLORLIMAGENTA;
MA5:MA(CLOSE,5);
MA10:MA(CLOSE,10),POINTDOT,COLORLIBLUE;
Z:=2*STD(CLOSE,20);
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
D:=(SMA(SMA(RSV,3,1),3,1)*2.5)-100;
K:=(SMA(RSV,3,1)*2.5)-100;
J:=3*K-2*D;
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
JJ:IF(J>=100,BOLL+Z*J/100,IF(J<=(-100),BOLL+Z*J/100,DRAWNULL)),POINTDOT,COLORMAGENTA;
CC:IF(CCI>=100,BOLL+Z*CCI/100,IF(CCI<=(-100),BOLL+Z*CCI/100,DRAWNULL)),POINTDOT,COLORGREEN;
DRAWICON(CROSS(BOLL+Z*CCI/100,LO)=1,BOLL-Z*1.3,1);DRAWICON(CROSS(UP,BOLL+Z*CCI/100)=1,BOLL+Z*1.3,2);
DRAWICON(CROSS(BOLL+Z*J/100,LO)=1,BOLL-Z*1.52,7);DRAWICON(CROSS(UP,BOLL+Z*J/100)=1,BOLL+Z*1.52,8);
DRAWICON(CROSS(J,D)=1 AND D<-20,BOLL-Z*1.3,9);
DRAWICON(CROSS(D,J)=1 AND D>20,BOLL+Z*1.3,15);
W:BOLL+2*STD(CLOSE,20)*1.25,POINTDOT,COLOR555555;
M:BOLL-2*STD(CLOSE,20)*1.25,POINTDOT,COLOR555555;
JN1:=INTPART(J)/41=INTPART(INTPART(J)/41);
JN2:=INTPART(J)/42=INTPART(INTPART(J)/42);
DRAWTEXT(CROSS(J,(-100))=1 AND JN1,BOLL-Z*1.52,' KDJ'),COLORRED;
DRAWTEXT(CROSS(CCI,(-100))=1 AND JN2,BOLL-Z*1.3,' CCI'),COLORRED;
DRAWTEXT(CROSS(CCI,(-100))=1 AND CROSS(J,D)=1 AND D<-20,BOLL-Z*1.3,' 金叉'),COLOR4AE9E9;
评论(0)