【通达信免费源码】多空波段指标副图 波段 短线 买卖点 操盘控盘
2021-10-28未知 编 辑:掌上指标
突破:=REF(EMA(C,14),1);
A1X:=(EMA(C,10)-突破)/突破*100;
多方:=IF(A1X>=0,REF(EMA(C,10),BARSLAST(CROSS(A1X,0))+1),DRAWNULL);
DRAWBAND(多方,RGB(111,0,0),突破,RGB(238,204,0));
N:=40;
MA1:=WMA(HIGH,N);
MA2:=WMA(LOW,N);
STICKLINE(CLOSE>MA1 AND OPEN>MA1,MA1,MA2,1,-1),COLORCYAN;
STICKLINE(CLOSE<MA2 AND OPEN<MA2,MA1,MA2,1,-1),COLORFF0000;
IF(CLOSE>=MA2,MA1,DRAWNULL),COLORCYAN;
IF(CLOSE<MA2,MA1,DRAWNULL),COLORFF0000;
IF(CLOSE>=MA2,MA2,DRAWNULL),LINETHICK1,COLORFFFFFF;
IF(CLOSE<MA2,MA2,DRAWNULL),LINETHICK1,COLORFF0000;
IF(CLOSE>=MA2,MA1,DRAWNULL),COLORCYAN;
IF(CLOSE<MA2,MA1,DRAWNULL),COLORFF0000;
IF(CLOSE>=MA2,MA2,DRAWNULL),LINETHICK1,COLORCYAN;
IF(CLOSE<MA2,MA2,DRAWNULL),LINETHICK1,COLORFF0000;
STICKLINE(CLOSE<MA2,LOW,HIGH,0,0),COLORGREEN;
STICKLINE(CLOSE<MA2,OPEN,CLOSE,3,0),COLORGREEN;
STICKLINE(CLOSE>=MA2,LOW,HIGH,0,0),COLORRED;
STICKLINE(CLOSE>=MA2,OPEN,CLOSE,3,0),COLORRED;
趋势跌:IF(CLOSE<MA2,WMA(OPEN,11),DRAWNULL),LINETHICK2,COLORFFFF00;
趋势涨:IF(CLOSE>=MA2,WMA(OPEN,11),DRAWNULL),LINETHICK2,COLORFF00FF;
{收盘划横线}
β0:=(H-L)/2+L;
α:=β0,LINETHICK0;
β:=REF(β0,1),LINETHICK0,COLORGREEN;
γ:=REF(β0,2),LINETHICK0,COLORMAGENTA;
高位:PLOYLINE(1,CONST(HHV(H,20))),COLOR880088,LINETHICK1,DOTLINE;
低位:PLOYLINE(1,CONST(LLV(L,20))),COLOR888800,LINETHICK1,DOTLINE;
止赢止损位:PLOYLINE(1,CONST(HHV(H,20)*0.95)),COLOR888888,LINETHICK2;
收盘划横线&持股:IF(CONST(α>β) AND DYNAINFO(7)>0,DYNAINFO(7),DRAWNULL),COLORRED,LINETHICK1;
持币:IF(CONST(α<=β)AND DYNAINFO(7)>0 ,DYNAINFO(7),DRAWNULL),COLORGREEN,LINETHICK1;