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(MACMA2c:=(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(MA2CMA20:(ma2c+ma2H+ma2L+MA2O)/4,COLORRED,LINETHICK2; MA60:(mac+mah+mal+MAO)/4,COLORYELLOW,LINETHICK2; KLINE(o,h,l,C,0); |