★★★★★博文原创不易,我的博文不需要打赏,也不需要知识付费,可以白嫖学习小技巧,喜欢的老铁可以多多帮忙点赞,小红牛在此表示感谢,就是对作者的最大支持。愿与诸君共勉,悟道于股市★★★★★
#龙虎榜小红牛系统,官方微信公众号:gxzfp888
#龙虎榜小红牛系统,官方微信公众号:gxzfp888
1.0中已经简单的介绍了该指标的思想,完全不了解的朋友,可以回顾下面以前发布的文章,升级的2.0增加了一个振幅周期系统。
A.实际运用:目的为了,通过振幅数据来反应出个股的最大波动次数,进一步结合涨幅周期来判断出确定性的上涨,和下跌周期次数。比如某一天涨幅+3%的次数=5,振幅+5%=4,-5%不存在或者明显数据偏低,是不是说明了这一天上涨可能性更大,大家体会一下这个思想。如果说这一天的-5%次数=4,明显接近/高于涨幅的数值,以及不存在涨幅的数值或者明显偏低,那么这一天建议要规避操作,因为负向数据是不适合操作的。
(关于涨幅和振幅,你可以这样理解,涨幅是实际中,保守的涨幅范围,振幅是可能最大的波动的范围值)
B.本指标是一个周期指标,根据历史股性数据得出来的结算结果,周期指标代表未来发生的概率比较大,而不是一定发生。
C.任何一个指标都有他的局限性,不可能适合所有的情况,大盘指数,大盘个股,小盘个股,板块行业的周期,都会有所不同。加上牛市,熊市,上涨,下跌,震荡市股市外部环境不同,如果是一个好指标好思想,一定要学会自己调节参数,优化源码。
D.本指标源码是通达信指标,为小红牛原创的一个的周期思想,古人智慧中也不乏周期思想,万物皆有周期,皆可循环,如春夏秋冬,24节气,阴盛阳衰,物极必反,祸兮福所倚,福兮祸所伏,守则不足,攻则有余等等词汇,讲的就是一种在有优势的时候,多操作,不合适操作的时候,懂的规避风险,减少操作,公式名称 涨跌星期密码,主图显示,有5个参数,复制源码即可使用。
自己看图把参数补全一下,以免指标使用报错,涨幅是±3%,振幅是±5%,周期120天,当然你可以观察60天,甚至250天的数据情况,取决于你的操作风格是中线,长线,短线。
#龙虎榜小红牛系统,官方微信公众号:gxzfp888
MA5:MA(C,5),COLORWHITE;
MA10:MA(C,10),COLORYELLOW;
MA20:MA(C,20),COLORRED;
MA30:MA(C,30),COLORMAGENTA;
MA60:MA(C,60),COLORGREEN;
MA120:MA(C,120),COLORLIGRAY;
MA250:MA(C,250),COLORBLUE;
涨跌幅:(C-REF(C,1))*100/REF(C,1),NODRAW;
星期几:WEEKDAY,COLORFFAA00,NODRAW;
{显示函数是为了在K线上面显示画数字}
显示:=VARCAT('T',VAR2STR(星期几,0)),NODRAW;
DRAWTEXT(涨跌幅>=ZF AND 星期几>0,C*0.9, 显示),COLORYELLOW;
{基本上解决了排序时候,星期数值错误的情况,两种写法的主图显示结果是一样的
即用IF+COUNT同时使用,不要仅使用COUNT}
A1:=COUNT(IF(涨跌幅>=ZF AND 星期几=1,1,0)=1,T),NODRAW;
A2:=COUNT(IF(涨跌幅>=ZF AND 星期几=2,1,0)=1,T),NODRAW;
A3:=COUNT(IF(涨跌幅>=ZF AND 星期几=3,1,0)=1,T),NODRAW;
A4:=COUNT(IF(涨跌幅>=ZF AND 星期几=4,1,0)=1,T),NODRAW;
A5:=COUNT(IF(涨跌幅>=ZF AND 星期几=5,1,0)=1,T),NODRAW;
DRAWTEXT_FIX(ISLASTBAR,0.11,0.05,0,'--涨幅次数--'),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.12,0.1,0,'T5='),COLORYELLOW;
DRAWNUMBER_FIX(ISLASTBAR,0.15,0.1,0,A5),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.12,0.14,0,'T4='),COLORYELLOW;
DRAWNUMBER_FIX(ISLASTBAR,0.15,0.14,0,A4),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.12,0.18,0,'T3='),COLORYELLOW;
DRAWNUMBER_FIX(ISLASTBAR,0.15,0.18,0,A3),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.12,0.22,0,'T2='),COLORYELLOW;
DRAWNUMBER_FIX(ISLASTBAR,0.15,0.22,0,A2),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.12,0.26,0,'T1='),COLORYELLOW;
DRAWNUMBER_FIX(ISLASTBAR,0.15,0.26,0,A1),COLORYELLOW;
显示1:=VARCAT('T',VAR2STR(星期几,0)),NODRAW;
DRAWTEXT(涨跌幅<=DF AND 星期几>0,C*0.85, 显示1),COLORGREEN;
B1:=COUNT(IF(涨跌幅<=DF AND 星期几=1,1,0)=1,T),NODRAW;
B2:=COUNT(IF(涨跌幅<=DF AND 星期几=2,1,0)=1,T),NODRAW;
B3:=COUNT(IF(涨跌幅<=DF AND 星期几=3,1,0)=1,T),NODRAW;
B4:=COUNT(IF(涨跌幅<=DF AND 星期几=4,1,0)=1,T),NODRAW;
B5:=COUNT(IF(涨跌幅<=DF AND 星期几=5,1,0)=1,T),NODRAW;
DRAWTEXT_FIX(ISLASTBAR,0.26,0.05,0,'--跌幅次数--'),COLORGREEN;
DRAWTEXT_FIX(ISLASTBAR,0.27,0.1,0,'T5='),COLORGREEN;
DRAWNUMBER_FIX(ISLASTBAR,0.3,0.1,0,B5),COLORGREEN;
DRAWTEXT_FIX(ISLASTBAR,0.27,0.14,0,'T4='),COLORGREEN;
DRAWNUMBER_FIX(ISLASTBAR,0.3,0.14,0,B4),COLORGREEN;
DRAWTEXT_FIX(ISLASTBAR,0.27,0.18,0,'T3='),COLORGREEN;
DRAWNUMBER_FIX(ISLASTBAR,0.3,0.18,0,B3),COLORGREEN;
DRAWTEXT_FIX(ISLASTBAR,0.27,0.22,0,'T2='),COLORGREEN;
DRAWNUMBER_FIX(ISLASTBAR,0.3,0.22,0,B2),COLORGREEN;
DRAWTEXT_FIX(ISLASTBAR,0.27,0.26,0,'T1='),COLORGREEN;
DRAWNUMBER_FIX(ISLASTBAR,0.3,0.26,0,B1),COLORGREEN;
DRAWTEXT_FIX(ISLASTBAR,0.41,0.05,0,'--统计计数--'),COLORMAGENTA;
T1:A1-B1,NODRAW,COLORYELLOW;
T2:A2-B2,NODRAW;
T3:A3-B3,NODRAW,COLORRED;
T4:A4-B4,NODRAW;
T5:A5-B5,NODRAW;
DRAWTEXT_FIX(ISLASTBAR,0.42,0.1,0,'N5='),COLORMAGENTA;
DRAWNUMBER_FIX(ISLASTBAR,0.45,0.1,0,T5),COLORMAGENTA;
DRAWTEXT_FIX(ISLASTBAR,0.42,0.14,0,'N4='),COLORMAGENTA;
DRAWNUMBER_FIX(ISLASTBAR,0.45,0.14,0,T4),COLORMAGENTA;
DRAWTEXT_FIX(ISLASTBAR,0.42,0.18,0,'N3='),COLORMAGENTA;
DRAWNUMBER_FIX(ISLASTBAR,0.45,0.18,0,T3),COLORMAGENTA;
DRAWTEXT_FIX(ISLASTBAR,0.42,0.22,0,'N2='),COLORMAGENTA;
DRAWNUMBER_FIX(ISLASTBAR,0.45,0.22,0,T2),COLORMAGENTA;
DRAWTEXT_FIX(ISLASTBAR,0.42,0.26,0,'N1='),COLORMAGENTA;
DRAWNUMBER_FIX(ISLASTBAR,0.45,0.26,0,T1),COLORMAGENTA;
DRAWTEXT_FIX(ISLASTBAR,0.12,0.36,0,'---------------------------统计某个涨跌幅在某一天内出现的次数--------------------------'),COLORFFAA00;
TA:A1+A2+A3+A4+A5,NODRAW,COLORYELLOW;
TB:-(B1+B2+B3+B4+B5),NODRAW,COLORGREEN;
T0:TA+TB,NODRAW;
{2.振幅周期,长度已经是对振幅的振幅值做了判断了}
长度:=IF(C>=O,H-L,L-H),NODRAW;
振幅:100*长度/REF(C,1),NODRAW;
显示2:=VARCAT('0T',VAR2STR(星期几,0)),NODRAW;
DRAWTEXT(振幅>=ZF0 AND 星期几>0,C*1.1, 显示2),COLORYELLOW;
A01:=COUNT(IF(振幅>=ZF0 AND 星期几=1,1,0)=1,T),NODRAW;
A02:=COUNT(IF(振幅>=ZF0 AND 星期几=2,1,0)=1,T),NODRAW;
A03:=COUNT(IF(振幅>=ZF0 AND 星期几=3,1,0)=1,T),NODRAW;
A04:=COUNT(IF(振幅>=ZF0 AND 星期几=4,1,0)=1,T),NODRAW;
A05:=COUNT(IF(振幅>=ZF0 AND 星期几=5,1,0)=1,T),NODRAW;
DRAWTEXT_FIX(ISLASTBAR,0.57,0.05,0,'--振幅次数--'),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.58,0.1,0,'T5='),COLORYELLOW;
DRAWNUMBER_FIX(ISLASTBAR,0.61,0.1,0,A05),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.58,0.14,0,'T4='),COLORYELLOW;
DRAWNUMBER_FIX(ISLASTBAR,0.61,0.14,0,A04),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.58,0.18,0,'T3='),COLORYELLOW;
DRAWNUMBER_FIX(ISLASTBAR,0.61,0.18,0,A03),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.58,0.22,0,'T2='),COLORYELLOW;
DRAWNUMBER_FIX(ISLASTBAR,0.61,0.22,0,A02),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.58,0.26,0,'T1='),COLORYELLOW;
DRAWNUMBER_FIX(ISLASTBAR,0.61,0.26,0,A01),COLORYELLOW;
显示3:=VARCAT('0T',VAR2STR(星期几,0)),NODRAW;
DRAWTEXT(振幅<=DF0 AND 星期几>0,C*1.03, 显示3),COLORGREEN;
B01:=COUNT(IF(振幅<=DF0 AND 星期几=1,1,0)=1,T),NODRAW;
B02:=COUNT(IF(振幅<=DF0 AND 星期几=2,1,0)=1,T),NODRAW;
B03:=COUNT(IF(振幅<=DF0 AND 星期几=3,1,0)=1,T),NODRAW;
B04:=COUNT(IF(振幅<=DF0 AND 星期几=4,1,0)=1,T),NODRAW;
B05:=COUNT(IF(振幅<=DF0 AND 星期几=5,1,0)=1,T),NODRAW;
DRAWTEXT_FIX(ISLASTBAR,0.72,0.05,0,'--跌幅次数--'),COLORGREEN;
DRAWTEXT_FIX(ISLASTBAR,0.73,0.1,0,'T5='),COLORGREEN;
DRAWNUMBER_FIX(ISLASTBAR,0.76,0.1,0,B05),COLORGREEN;
DRAWTEXT_FIX(ISLASTBAR,0.73,0.14,0,'T4='),COLORGREEN;
DRAWNUMBER_FIX(ISLASTBAR,0.76,0.14,0,B04),COLORGREEN;
DRAWTEXT_FIX(ISLASTBAR,0.73,0.18,0,'T3='),COLORGREEN;
DRAWNUMBER_FIX(ISLASTBAR,0.76,0.18,0,B03),COLORGREEN;
DRAWTEXT_FIX(ISLASTBAR,0.73,0.22,0,'T2='),COLORGREEN;
DRAWNUMBER_FIX(ISLASTBAR,0.76,0.22,0,B02),COLORGREEN;
DRAWTEXT_FIX(ISLASTBAR,0.73,0.26,0,'T1='),COLORGREEN;
DRAWNUMBER_FIX(ISLASTBAR,0.76,0.26,0,B01),COLORGREEN;
T01:A01-B01,NODRAW,COLORYELLOW;
T02:A02-B02,NODRAW;
T03:A03-B03,NODRAW,COLORRED;
T04:A04-B04,NODRAW;
T05:A05-B05,NODRAW;
DRAWTEXT_FIX(ISLASTBAR,0.87,0.05,0,'--统计计数--'),COLORMAGENTA;
DRAWTEXT_FIX(ISLASTBAR,0.88,0.1,0,'N5='),COLORMAGENTA;
DRAWNUMBER_FIX(ISLASTBAR,0.91,0.1,0,T05),COLORMAGENTA;
DRAWTEXT_FIX(ISLASTBAR,0.88,0.14,0,'N4='),COLORMAGENTA;
DRAWNUMBER_FIX(ISLASTBAR,0.91,0.14,0,T04),COLORMAGENTA;
DRAWTEXT_FIX(ISLASTBAR,0.88,0.18,0,'N3='),COLORMAGENTA;
DRAWNUMBER_FIX(ISLASTBAR,0.91,0.18,0,T03),COLORMAGENTA;
DRAWTEXT_FIX(ISLASTBAR,0.88,0.22,0,'N2='),COLORMAGENTA;
DRAWNUMBER_FIX(ISLASTBAR,0.91,0.22,0,T02),COLORMAGENTA;
DRAWTEXT_FIX(ISLASTBAR,0.88,0.26,0,'N1='),COLORMAGENTA;
DRAWNUMBER_FIX(ISLASTBAR,0.91,0.26,0,T01),COLORMAGENTA;
T0A:A01+A02+A03+A04+A05,NODRAW,COLORYELLOW;
T0B:-(B01+B02+B03+B04+B05),NODRAW,COLORGREEN;
T00:T0A+T0B,NODRAW;
DRAWICON(C>O AND HOUR=15,L*0.97,7);
DRAWTEXT_FIX(1,0,0.88,0,'申万行业:'),COLORYELLOW;
DRAWTEXT_FIX(1,0.06,0.88,0,EXTERNSTR(0,12)),COLORYELLOW;