只做上升趋势,信号盲区,收工休息!
AA:=MA((2*CLOSE+HIGH+LOW)/4,5);
通1:=AA*102/100;
通2:=AA*(200-102)/100;
CA:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
DD:=DMA(CLOSE,CA);
上:=(1+7/100)*DD;
下:=(1-7/100)*DD;
中:=(上+下)/2;
趋势:=BARSLAST(ZIG(下,7)<REF(ZIG(下,7),1));
MA(C,5)DOTLINE;
MA(C,10)DOTLINE;
DRAWKLINE(IF(趋势,H,DRAWNULL),IF(趋势,O,DRAWNULL),IF(趋势,L,DRAWNULL),IF(趋势,C,DRAWNULL));
DRAWICON(BARSLAST(ZIG(下,7)<REF(ZIG(下,7),1))=1,LOW,11);
DRAWTEXT(BARSLAST(ZIG(下,7)<REF(ZIG(下,7),1))=1,LOW,'进')COLORFF00FF;
DRAWICON(BARSLAST(ZIG(下,7)>REF(ZIG(下,7),1))=1,LOW,12);
DRAWTEXT(BARSLAST(ZIG(下,7)>REF(ZIG(下,7),1))=1,LOW,'跑')COLOR008000;