MA5:=MA(C,5);
MA10:=MA(C,10);
MA20:=MA(C,20);
ZF:=(C-O)/O*100>4;
BIAS20:=(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100*VOL;
BIAS21:=(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100*C;
量:BARSLAST(BARSLAST(BIAS20>0 AND REF(BIAS20,1)>0)>0),STICK,COLORRED,LINETHICK4;
价:=BARSLAST(BARSLAST(BIAS21>0 AND REF(BIAS21,1)<0)>0),STICK,COLORMAGENTA,LINETHICK4;
黑马:量=0 AND ZF AND CROSS(C,MA5) AND CROSS(C,MA10) AND CROSS(C,MA20),COLORRED,CIRCLEDOT,LINETHICK2;
STICKLINE(黑马,0,5,1.5,0),COLORWHITE;
DRAWICON(黑马,6,1);
DRAWTEXT(黑马,4,'---黑马'),COLORYELLOW;
STICKLINE(价,-1,0,1.5,0),COLORMAGENTA;
MA5:=MA(C,5);
MA10:=MA(C,10);
MA20:=MA(C,20);
ZF:=(C-O)/O*100>4;
BIAS20:=(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100*VOL;
BIAS21:=(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100*C;
量:BARSLAST(BARSLAST(BIAS20>0 AND REF(BIAS20,1)>0)>0),STICK,COLORRED,LINETHICK4;
价:=BARSLAST(BARSLAST(BIAS21>0 AND REF(BIAS21,1)<0)>0),STICK,COLORMAGENTA,LINETHICK4;
黑马:量=0 AND ZF AND CROSS(C,MA5) AND CROSS(C,MA10) AND CROSS(C,MA20),COLORRED,CIRCLEDOT,LINETHICK2;
STICKLINE(黑马,0,5,1.5,0),COLORWHITE;
DRAWICON(黑马,6,1);
DRAWTEXT(黑马,4,'---黑马'),COLORYELLOW;
STICKLINE(价,-1,0,1.5,0),COLORMAGENTA;