我一直用的黄金波段指标好用简单
均衡:=IF (YEAR<=2017,IF(YEAR<2017, EMA(EMA(CLOSE,5),5),IF(YEAR=2017 AND MONTH<10, EMA(EMA(CLOSE,5),5),1000)),1000);
中轨:=HHV(MA(HIGH,13),13);
趋势:=LLV(MA(HIGH,13),1);
VARA:=(CLOSE-REF(OPEN,29))/REF(OPEN,29)*100;
VARB:=EMA(0.667*REF(VARA,1)+0.333*VARA,5);
VARC:=SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100;
VAR1:=(HIGH+LOW+OPEN+2*CLOSE)/5;
VAR2:=REF(VAR1,1);
VAR3:=SMA(MAX(VAR1-VAR2,0),10,1)/SMA(ABS(VAR1-VAR2),10,1)*100;
VAR4:=(IF(COUNT(VAR3<20,5)>=1 AND COUNT(VAR1=LLV(VAR1,10),10)>=1 AND CLOSE>=OPEN*1.038 AND VOL>MA(VOL,5)*1.2,1,0));
VAR5:=(均衡>REF(均衡,1)AND 中轨<REF(中轨,1)AND CLOSE>REF(CLOSE,1));
趋势向上:=IF (MA(CLOSE,1)>MA(CLOSE,2) AND MA(CLOSE,2)>MA(CLOSE,3),1,0);
出击A:=IF (VAR5 AND 趋势向上 ,100,0);
均衡A:=BARSLAST(出击A>0);
A:=REF(均衡A,1)>5 AND 出击A>0;
CALF:=EMA((C/REF(C,10)-1)*100,5);
CALF1:=EMA((C/REF(C,10)-1)*100,30);
CALF2:=EMA((C/REF(C,10)-1)*100,120);
CALF3:=CROSS(CALF,CALF1);
B1F:=IF (YEAR>2005 AND CALF3>0,1,0);
D1F:=IF(REF(CLOSE,1)<REF(OPEN,1),1,0);
C1F:=IF((CLOSE-REF(CLOSE,1))/CLOSE*100>3.6,1,0);
AFF:=IF(B1F AND C1F AND D1F ,1,0);
FLY1:=FORCAST(CLOSE,8);
FLY2:=HHV(FLY1,18);
FLY3:=EMA(COST(5),17);
FLY4:=(CLOSE+OPEN)*0.75/2;
FLY5:=CROSS(FLY3,FLY4);
CBPZ:=IF (A OR AFF OR FLY5,1,0);
CBPYY:=BARSLAST(CBPZ>0);
ZJMR1:=REF(CBPYY,1)>5 AND CBPZ>0;
ZJMR2:=IF (CROSS(ZIG(3,7),REF(ZIG(3,7),1)),1,0);
HHH:=30;
CCVAR2:=REF(LOW,1);
CCVAR3:=SMA(ABS(LOW-CCVAR2),3,1)/SMA(MAX(LOW-CCVAR2,0),3,1)*100;
CCVAR4:=EMA(IF(CLOSE*1.2,CCVAR3*10,CCVAR3/10),3);
CCVAR5:=LLV(LOW,HHH);
CCVAR6:=HHV(CCVAR4,HHH);
CCVAR7:=IF(LLV(LOW,58),1,0);
CCVAR8:=EMA(IF(LOW<=CCVAR5,(CCVAR4+CCVAR6*2)/2,0),3)/618*CCVAR7;
DY11:=(2*CLOSE+HIGH+LOW)/4;
DY12:=LLV(LOW,34);
DY13:=HHV(HIGH,13);
A11:=MA((DY11-DY12)/(DY13-DY12)*100,13);
B11:=EMA((0.668*REF(A11,1)+0.333*A11),2);
DY1:=(2*CLOSE+HIGH+LOW)/4;
DY2:=LLV(LOW,34);
DY3:=HHV(HIGH,13);
DYA:=EMA((DY1-DY2)/(DY3-DY2)*100,30);
DYB:=EMA(DYA,7);
A1:=EMA((DY1-DY2)/(DY3-DY2)*100,9);
B1:=EMA((0.667*REF(A1,2)+0.333*A1),2);
买入:=IF(CROSS(A1,B1)AND A1<25,35,0);
关注A:=IF (YEAR<=2017,IF(YEAR<2017, IF(CROSS(A11,B11)AND A11<25,40,20),IF(YEAR=2017 AND MONTH<10, IF(CROSS(A11,B11)AND A11<25,40,20),1000)),1000);
CCVAR99:=IF (REF(CCVAR8,1)>1 AND CCVAR8<1, 1,0);
CCCVAR99:=IF (REF(CCVAR8,1)>1 AND CCVAR8<1, 1,0);
AF:=EMA((CLOSE+HIGH+LOW)/3,10);BF:=IF (YEAR<=2017,IF(YEAR<2017,REF(AF,1),IF(YEAR=2017 AND MONTH<10,REF(AF,1),0)),0);
STICKLINE(AF>BF,AF,BF,6,0),COLORYELLOW;
STICKLINE(AF<BF,AF,BF,6,0),COLORGREEN;
未来函数检测结果如下:
该公式包含未来函数:ZIG
该公式包含未来函数:COST
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
均衡赋值:IF (YEAR<=2017,IF(YEAR<2017, 收盘价的5日指数移动平均,5),IF(YEAR=2017 AND MONTH<10, 收盘价的5日指数移动平均,5),1000)),1000)
中轨赋值:HHV(最高价的13日简单移动平均,13)
趋势赋值:LLV(最高价的13日简单移动平均,1)
VARA赋值:(收盘价-29日前的开盘价)/29日前的开盘价*100
VARB赋值:E0.667*1日前的VARA+0.333*VARA的5日简单移动平均
VARC赋值:SMA(收盘价-1日前的收盘价和0较大值,6,1)/SMA(收盘价-1日前的收盘价的绝对值,6,1)*100
VAR1赋值:(最高价+最低价+开盘价+2*收盘价)/5
VAR2赋值:1日前的VAR1
VAR3赋值:SMA(VAR1-VAR2和0较大值,10,1)/SMA(VAR1-VAR2的绝对值,10,1)*100
VAR4赋值:(IF(统计5日满足VAR3<20的天数>=1 AND COUNT(VAR1=10日内VAR1最低值,10)>=1 AND 收盘价>=开盘价*1.038 AND 成交量>成交量的5日简单移动平均*1.2,1,0))
VAR5赋值:(均衡>1日前的均衡AND 中轨<1日前的中轨AND 收盘价>1日前的收盘价)
趋势向上:=IF (收盘价的1日简单移动平均>收盘价的2日简单移动平均 AND 收盘价的2日简单移动平均>收盘价的3日简单移动平均,1,0)
出击A赋值:IF (VAR5 AND 趋势向上 ,100,0)
均衡A:=上次出击A>0距今天数
A赋值:1日前的均衡A>5 AND 出击A>0
CALF赋值:EMA((C/10日前的C-1)*100,5)
CALF1:=EMA((C/10日前的C-1)*100,30)
CALF2:=EMA((C/10日前的C-1)*100,120)
CALF3:=CALF上穿CALF1
B1F赋值:IF (YEAR>2005 AND CALF3>0,1,0)
D1F赋值:IF(1日前的收盘价<1日前的开盘价,1,0)
C1F赋值:IF((收盘价-1日前的收盘价)/收盘价*100>3.6,1,0)
如果B1F AND C1F AND D1F 返回1否则返回0
FLY1赋值:FORCAST(收盘价,8)
FLY2赋值:18日内FLY1最高值
FLY3赋值:EMA(获利盘为5%的成本分布,17)
FLY4赋值:(收盘价+开盘价)*0.75/2
FLY5赋值:FLY3上穿FLY4
CBPZ赋值:IF (A OR AFF OR FLY5,1,0)
CBPYY赋值:上次CBPZ>0距今天数
ZJMR1赋值:1日前的CBPYY>5 AND CBPZ>0
ZJMR2赋值:IF (CROSS(ZIG(3,7),REF(ZIG(3,7),1)),1,0)
HHH赋值:30
CCVAR2赋值:1日前的最低价
CCVAR3赋值:SMA(最低价-CCVAR2的绝对值,3,1)/SMA(最低价-CCVAR2和0较大值,3,1)*100
如果收盘价*1.2返回CCVAR3*10否则返回CCVAR3/10
CCVAR5赋值:HHH日内最低价最低值
CCVAR6赋值:HHH日内CCVAR4最高值
CCVAR7赋值:IF(58日内最低价最低值,1,0)
CCVAR8赋值:EMA(IF(最低价<=CCVAR5,(CCVAR4+CCVAR6*2)/2,0),3)/618*CCVAR7
DY11赋值:(2*收盘价+最高价+最低价)/4
DY12赋值:34日内最低价最低值
DY13赋值:13日内最高价最高值
A11:=MA((DY11-DY12)/(DY13-DY12)*100,13)
B11赋值:EMA((0.668*1日前的A11+0.333*A11),2)
DY1赋值:(2*收盘价+最高价+最低价)/4
DY2赋值:34日内最低价最低值
DY3赋值:13日内最高价最高值
DYA赋值:EMA((DY1-DY2)/(DY3-DY2)*100,30)
DYB赋值:DYA的7日指数移动平均
A1:=EMA((DY1-DY2)/(DY3-DY2)*100,9)
B1赋值:EMA((0.667*2日前的A1+0.333*A1),2)
买入赋值:IF(A1上穿B1AND A1<25,35,0)
关注A赋值:IF (YEAR<=2017,IF(YEAR<2017, IF(A11上穿B11AND A11<25,40,20),IF(YEAR=2017 AND MONTH<10, IF(A11上穿B11AND A11<25,40,20),1000)),1000)
CCVAR99赋值:IF (1日前的CCVAR8>1 AND CCVAR8<1, 1,0)
CCCVAR99赋值:IF (1日前的CCVAR8>1 AND CCVAR8<1, 1,0)
AF赋值:EMA((收盘价+最高价+最低价)/3,10)
BF赋值:IF (YEAR<=2017,IF(YEAR<2017,1日前的AF,IF(YEAR=2017 AND MONTH<10,1日前的AF,0)),0)
当满足条件AF>BF时,在AF和BF之间画柱状线
当满足条件AF