原创绝版自编BOLL组合指标用了不好再骂我
中:MA(AMOUNT/(100*VOL),21),COLORFFFFFF;
上:中+1.96*STD(AMOUNT/(100*VOL),21),COLORYELLOW;
下:中-1.96*STD(AMOUNT/(100*VOL),21),COLORFF11FF;
持股线60:=EMA(AMOUNT/(100*VOL),60),COLORYELLOW,DOTLINE;
P:=AMOUNT/(VOL*100);
PP:=(HIGH+LOW+OPEN+2*CLOSE+P)/6;
五底:=EMA(PP,5),COLORWHITE,DOTLINE;
中1:=MA(AMOUNT/(100*VOL),59),COLORFFFFFF;
五高:EMA(1.09*PP,5),COLOR00FF00,DOTLINE;
十日:EMA(PP,10),COLORYELLOW,DOTLINE;
HS:=VOL/CAPITAL*100,COLOR0000FF;
换手:SUM(HS,60),NODRAW,COLOR0000FF;
带宽:100*(上-下)/中,NODRAW;
VAR1:=(2*CLOSE+HIGH+LOW)/5;
VAR2:=EMA(VAR1,5);
VAR3:=REF(VAR2,1);
STICKLINE((VAR2>VAR3),CLOSE,OPEN,2.2,0),COLOR000088;
STICKLINE((VAR2>VAR3),CLOSE,OPEN,2.2,0),COLOR000099;
STICKLINE((VAR2>VAR3),CLOSE,OPEN,2.4,0),COLOR0000AA;
STICKLINE((VAR2>VAR3),CLOSE,OPEN,2.2,0),COLOR0000BB;
STICKLINE((VAR2>VAR3),CLOSE,OPEN,2.0,0),COLOR0000CC;
STICKLINE((VAR2>VAR3),CLOSE,OPEN,1.8,0),COLOR0000DD;
STICKLINE((VAR2>VAR3),CLOSE,OPEN,1.5,0),COLOR0000EE;
STICKLINE((VAR2>VAR3),CLOSE,OPEN,1,0),COLOR0000FF;
STICKLINE((VAR2>VAR3),LOW,HIGH,0.0,0),COLOR0000FF;
STICKLINE((VAR3>VAR2),CLOSE,OPEN,2.2,0),COLOR888800;
STICKLINE((VAR3>VAR2),CLOSE,OPEN,2.1,0),COLOR999900;
STICKLINE((VAR3>VAR2),CLOSE,OPEN,2.1,0),COLORAAAA00;
STICKLINE((VAR3>VAR2),CLOSE,OPEN,2,2),COLORBBBB00;
STICKLINE((VAR3>VAR2),CLOSE,OPEN,2.0,0),COLORCCCC00;
STICKLINE((VAR3>VAR2),CLOSE,OPEN,1.8,0),COLORDDDD00;
STICKLINE((VAR3>VAR2),CLOSE,OPEN,1.5,0),COLOREEEE00;
STICKLINE((VAR3>VAR2),CLOSE,OPEN,1,0),COLORFFFF00;
STICKLINE((VAR3>VAR2),LOW,HIGH,0.0,0),COLORFFFF00;
STICKLINE((OPEN>CLOSE),CLOSE,OPEN,0,0),COLORFFFF00;
STICKLINE((OPEN<CLOSE),CLOSE,OPEN,0,0),COLORRED;
C4:=CROSS(VAR2,VAR3);
C5:=CROSS(VAR3,VAR2);
DRAWICON(C4,LOW-0.3,1);
DRAWICON(C5,HIGH+0.3,2);
BIS6 :=(C-五底)/五底*100,NODRAW;
BS60(0和20):(C-中1)/中1*100,NODRAW;
BS21(10负12):(C-EMA(C,21))/EMA(C,21)*100,NODRAW;
N:=21;M:=6;M1:=20;
TR1:=EMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),N);
HD :=HIGH-REF(HIGH,1);
LD :=REF(LOW,1)-LOW;
DMP:=EMA(IF(HD>0 AND HD>LD,HD,0),N);
DMM:=EMA(IF(LD>0 AND LD>HD,LD,0),N);
PDI:= DMP*100/TR1;
MDI:= DMM*100/TR1;
ADX:= EMA((PDI-MDI)/(MDI+PDI)*100,M)*2,NODRAW;
ADXR:=EMA(ADX,M),NODRAW;
斜率10:ATAN(EMA(C,10)/REF(EMA(C,10),1)*100-100)*57.3,NODRAW;
斜率21:ATAN(中/REF(中,1)*100-100)*57.3,NODRAW;
斜率60:ATAN(中1/REF(中1,1)*100-100)*57.3,NODRAW;
上轨:ATAN(上/REF(上,1)*100-100)*57.3,NODRAW;
CDP:=REF(H+L+2*C,1)/4;
最高:=CDP+REF(H-L,1),COLOR0000FF,NODRAW;
近高:=CDP*2-REF(L,1),COLOR00FFFF,NODRAW;
均值:=REF(H+L+2*C,1)/4,COLORLIGRAY,NODRAW;
近低:=CDP*2-REF(H,1),COLORFFFF00,NODRAW;
最低:=CDP-REF(H-L,1),COLOR40FF00,NODRAW;
X1:=EMA(C,3);
X2:=REF(X1,1);
X3:=EMA(C,10);
X4:=REF(X3,1);
X5:=EMA(C,21);
X6:=REF(X5,1);
三日线斜率:=((X1-X2)/X2*100)*10;
十日线斜率:=((X3-X4)/X4*100)*10;
均价线:=AMOUNT/V/100,NODRAW;
C2:=REF(C,1);
涨停:=IF(REF(C,1)*1.1-C<0.01 ,1,0);
STICKLINE(涨停,OPEN,CLOSE,3,0),COLORRED,NODRAW;
STICKLINE(涨停,OPEN,CLOSE,2,0),COLORYELLOW,NODRAW;
STICKLINE(涨停,H,L,0,0),COLORYELLOW,NODRAW;
B1:='┄┄┄┄┄',NODRAW;
DRAWTEXT(均价线 AND 涨停,均价线,B1),COLOR00FFFF,NODRAW;
B3:='┄┄┄┄┄',NODRAW;
DRAWTEXT((O+C)/2 AND 涨停,(O+C)/2 ,B3),COLORMAGENTA,NODRAW;
B2:='┄┄┄┄┄',NODRAW;
DRAWTEXT(涨停,L,B2),COLORGRAY,NODRAW;
黄金支持:=REF(L+(H-L)*0.618,BARSLAST(CONST(BARSLAST(IF(CURRBARSCOUNT<=390,C>REF(C,1)*1.097,0)))+1=CURRBARSCOUNT)),DOTLINE,COLOR00FF00;
涨停均线:=REF(AMOUNT/V/100,BARSLAST(CONST(BARSLAST(IF(CURRBARSCOUNT<=390,C>REF(C,1)*1.097,0)))+1=CURRBARSCOUNT)),DOTLINE,COLOR00FFFF;
半价:=REF((O+C)/2,BARSLAST(CONST(BARSLAST(IF(CURRBARSCOUNT<=390,C>REF(C,1)*1.097,0)))+1=CURRBARSCOUNT)),DOTLINE,COLORFF00FF;
未来函数检测结果如下:
该公式包含未来函数:CAPITAL
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
输出中:MA(AMOUNT/(100*成交量),21),COLORFFFFFF
输出上:中+1.96*STD(AMOUNT/(100*成交量),21),画黄色
输出下:中-1.96*STD(AMOUNT/(100*成交量),21),COLORFF11FF
持股线60赋值:EMA(AMOUNT/(100*成交量),60),画黄色,DOTLINE
P赋值:AMOUNT/(成交量*100)
PP赋值:(最高价+最低价+OPEN+2*收盘价+P)/6
五底赋值:PP的5日指数移动平均,画白色,DOTLINE
中1:=MA(AMOUNT/(100*成交量),59),COLORFFFFFF
输出五高:1.09*PP的5日指数移动平均,COLOR00FF00,DOTLINE
输出十日:PP的10日指数移动平均,画黄色,DOTLINE
HS赋值:成交量/CAPITAL*100,COLOR0000FF
输出换手:60的HS日累和,NODRAW,COLOR0000FF
输出带宽:100*(上-下)/中,NODRAW
VAR1赋值:(2*收盘价+最高价+最低价)/5
VAR2赋值:VAR1的5日指数移动平均
VAR3赋值:1日前的VAR2
STICKLINE((VAR2>VAR3),收盘价,OPEN,2.2,0),COLOR000088
STICKLINE((VAR2>VAR3),收盘价,OPEN,2.2,0),COLOR000099
STICKLINE((VAR2>VAR3),收盘价,OPEN,2.4,0),COLOR0000AA
STICKLINE((VAR2>VAR3),收盘价,OPEN,2.2,0),COLOR0000BB
STICKLINE((VAR2>VAR3),收盘价,OPEN,2.0,0),COLOR0000CC
STICKLINE((VAR2>VAR3),收盘价,OPEN,1.8,0),COLOR0000DD
STICKLINE((VAR2>VAR3),收盘价,OPEN,1.5,0),COLOR0000EE
STICKLINE((VAR2>VAR3),收盘价,OPEN,1,0),COLOR0000FF
STICKLINE((VAR2>VAR3),最低价,最高价,0.0,0),COLOR0000FF
STICKLINE((VAR3>VAR2),收盘价,OPEN,2.2,0),COLOR888800
STICKLINE((VAR3>VAR2),收盘价,OPEN,2.1,0),COLOR999900
STICKLINE((VAR3>VAR2),收盘价,OPEN,2.1,0),COLORAAAA00
STICKLINE((VAR3>VAR2),收盘价,OPEN,2,2),COLORBBBB00
STICKLINE((VAR3>VAR2),收盘价,OPEN,2.0,0),COLORCCCC00
STICKLINE((VAR3>VAR2),收盘价,OPEN,1.8,0),COLORDDDD00
STICKLINE((VAR3>VAR2),收盘价,OPEN,1.5,0),COLOREEEE00
STICKLINE((VAR3>VAR2),收盘价,OPEN,1,0),COLORFFFF00
STICKLINE((VAR3>VAR2),最低价,最高价,0.0,0),COLORFFFF00
STICKLINE((OPEN>收盘价),收盘价,OPEN,0,0),COLORFFFF00
STICKLINE((OPEN<收盘价),收盘价,OPEN,0,0),画红色
C4赋值:VAR2上穿VAR3
C5赋值:VAR3上穿VAR2
当满足条件C4时,在最低价-0.3和1之间画图标
当满足条件C5时,在最高价+0.3和2之间画图标
BIS6 :=(C-五底)/五底*100,NODRAW
输出BS60(0和20):(C-中1)/中1*100,NODRAW
输出BS21(10负12):(C-C的21日指数移动平均)/C的21日指数移动平均*100,NODRAW
N赋值:21
M赋值:6
M1:=20
TR1赋值:EMA(MAX(MAX(最高价-最低价,最高价-1日前的收盘价的绝对值),ABS(1日前的收盘价-最低价)),N)
HD :=最高价-1日前的最高价
LD :=1日前的最低价-最低价
如果HD>0 AND HD>LD返回HD否则返回0
如果LD>0 AND LD>HD返回LD否则返回0
PDI:= DMP*100/TR1
MDI:= DMM*100/TR1
ADX赋值: EMA((PDI-MDI)/(MDI+PDI)*100,M)*2,NODRAW
ADXR:=ADX的M日指数移动平均,NODRAW
输出斜率10:ATAN(C的10日指数移动平均/1日前的C的10日指数移动平均*100-100)*57.3,NODRAW
输出斜率21:ATAN(中/1日前的中*100-100)*57.3,NODRAW
输出斜率60:ATAN(中1/1日前的中1*100-100)*57.3,NODRAW
上轨:ATAN(上/1日前的上*100-100)*57.3,NODRAW
CDP赋值:1日前的H+L+2*C/4
最高赋值:CDP+1日前的H-L,COLOR0000FF,NODRAW
近高赋值:CDP*2-1日前的L,COLOR00FFFF,NODRAW
均值赋值:1日前的H+L+2*C/4,COLORLIGRAY,NODRAW
近低赋值:CDP*2-1日前的H,COLORFFFF00,NODRAW
最低赋值:CDP-1日前的H-L,COLOR40FF00,NODRAW
X1赋值:C的3日指数移动平均
X2赋值:1日前的X1
X3赋值:C的10日指数移动平均
X4赋值:1日前的X3
X5赋值:C的21日指数移动平均
X6赋值:1日前的X5
三日线斜率赋值:((X1-X2)/X2*100)*10
十日线斜率:=((X3-X4)/X4*100)*10
均价线赋值:AMOUNT/V/100,NODRAW
C2赋值:1日前的C
涨停赋值:IF(1日前的C*1.1-C<0.01 ,1,0)
当满足条件涨停时,在OPEN和收盘价之间画柱状线
当满足条件涨停时,在OPEN和收盘价之间画柱状线
当满足条件涨停时,在H和L之间画柱状线
B1赋值:'┄┄┄┄┄',NODRAW
当满足条件均价线 AND 涨停时,在均价线和B1位置书写文字
B3赋值:'┄┄┄┄┄',NODRAW
DRAWTEXT((O+C)/2 AND 涨停,(O+C)/2 ,B3),COLORMAGENTA,NODRAW
B2赋值:'┄┄┄┄┄',NODRAW
当满足条件涨停时,在L和B2位置书写文字
黄金支持赋值:REF(L+(H-L)*0.618,上次CONST(BARSLAST(IF(CURRBARSCOUNT<=390,C>REF(C,1距今天数*1.097,0)))+1=CURRBARSCOUNT)),DOTLINE,COLOR00FF00
涨停均线:=REF(AMOUNT/V/100,上次CONST(BARSLAST(IF(CURRBARSCOUNT<=390,C>REF(C,1距今天数*1.097,0)))+1=CURRBARSCOUNT)),DOTLINE,COLOR00FFFF
半价赋值:REF((O+C)/2,上次CONST(BARSLAST(IF(CURRBARSCOUNT<=390,C>REF(C,1距今天数*1.097,0)))+1=CURRBARSCOUNT)),DOTLINE,COLORFF00FF