周期K线主图 源码
2013-01-15 09:55:00来源:本站整理浏览:1079
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);