MA主图,自己常用,公式普通,有点特色是:突破当天,用黄方块表示,并显示已经突破天数并做出价格划线 {MA主图}
XA_1:=EMA(CLOSE,7);XA_2:=EMA(CLOSE,21);XA_3:=10;XA_4:=CONST(HHVBARS(VOL,XA_3));XA_5:=XA_3;XA_6:=CONST(REF(HHVBARS(VOL,XA_5),XA_4+1)+XA_4+1);突破天数:XA_6,NODRAW,COLOR40FF00;XA_7:=IF(CURRBARSCOUNT<=XA_4+XA_5+3 AND CURRBARSCOUNT>=XA_4+1,CONST(REF(MAX(CLOSE,OPEN),XA_6)),DRAWNULL);突破价格:XA_7,COLOR40FF00;XA_8:=IF(CURRBARSCOUNT<=XA_4+XA_5+3 AND CURRBARSCOUNT>=XA_4+1,CONST(REF(HIGH,XA_6)),DRAWNULL);XA_9:=DRAWICON(CURRBARSCOUNT=XA_6+1,XA_7,25);XA_10:=CONST(LLVBARS(VOL,XA_5));XA_11:=XA_6+1;XA_12:=REF(MAX(CLOSE,OPEN),XA_6);XA_13:=IF(CURRBARSCOUNT<=XA_4+XA_5+3 AND CURRBARSCOUNT>=XA_4+1,CONST(REF(VOL,XA_6)),DRAWNULL);XA_14:=CROSS(CLOSE,XA_7) AND CROSS(VOL,XA_13) AND REF(MAX(CLOSE,OPEN),XA_4+1)=HHV(MAX(REF(CLOSE,1),REF(OPEN,1)),XA_4+1) AND XA_11>=5 AND XA_11<=11;XA_15:=CROSS(CLOSE,XA_7) AND CROSS(VOL,XA_13) AND LAST(MAX(REF(CLOSE,1),REF(OPEN,1))<=REF(MAX(CLOSE,OPEN),1),XA_11,1) AND XA_11>=4 AND XA_11<=11 AND CLOSE>OPEN;XA_16:=CROSS(CLOSE,XA_7) AND CROSS(VOL,XA_13) AND LAST(MAX(CLOSE,OPEN)<XA_8,XA_11-2,1) AND XA_11>=5 AND XA_11<=11 AND CLOSE>OPEN;XA_17:=XA_16 AND CROSS(XA_1,XA_2);STICKLINE(CURRBARSCOUNT=XA_6+1,CLOSE,OPEN,2,0),COLORYELLOW;STICKLINE(XA_17,XA_7,OPEN,2,0),COLORMAGENTA;M5:MA(CLOSE,5);M10:MA(CLOSE,10),COLORCYAN;M20:MA(CLOSE,20);M30:MA(CLOSE,30),COLORYELLOW,LINETHICK2;M60:MA(CLOSE,60),COLORLIMAGENTA,LINETHICK2;MA120:MA(CLOSE,120),COLOR80FF00;
MA250:MA(CLOSE,250),COLORFF0080;
|