周期K线主图,源码,说明
本指标设计原理,一是对均线进行了复合处理,其目的是为了保证均线的可靠性。二是用彩带来描述大周期K线,其上沿与下沿反映该周期的最高价和最低价。三是在用法上关注二彩带的颜色,如果股价在均线下方,但是,二彩带均变色即可进入,这样可以提前反应。本人不敢说本指标多么好,但是,具有稳定性和趋势性的特点。
源码
MAc:=(WMA(c,30)+WMA(c,60)+WMA(c,90))/3;
MAh:=(WMA(h,30)+WMA(h,60)+WMA(h,90))/3;
MAl:=(WMA(l,30)+WMA(l,60)+WMA(l,90))/3;
MAo:=(WMA((o+ref(C,1))/2,30)+WMA((o+ref(C,1))/2,60)+WMA((o+ref(C,1))/2,90))/3;
FILLRGN(MAC>=MAO,maH,maL),COLORBROWN;
FILLRGN(MAC<MAO,maH,maL),COLORBLUE;
MA2c:=(WMA(c,10)+WMA(c,20)+WMA(c,30))/3;
MA2h:=(WMA(h,10)+WMA(h,20)+WMA(h,30))/3;
MA2l:=(WMA(l,10)+WMA(l,20)+WMA(l,30))/3;
MA2o:=(WMA((o+ref(C,1))/2,10)+WMA((o+ref(C,1))/2,20)+WMA((o+ref(C,1))/2,30))/3;
FILLRGN(MA2C>=MA2O,ma2H,ma2L),COLORFFC0FF;
FILLRGN(MA2C<MA2O,ma2H,ma2L),COLORGRAY;
MA20:(ma2c+ma2H+ma2L+MA2O)/4,COLORRED,LINETHICK2;
MA60:(mac+mah+mal+MAO)/4,COLORYELLOW,LINETHICK2;
KLINE(o,h,l,C,0);