{www.gszb.com指标介绍:显示涨停、跌停和炸版,红线上穿白线做多,转绿做空。}
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26); DEA:=EMA(DIF,9); macd:=2*(DIF-DEA),COLORRED; VA1:=HHVBARS(MacD,BArslAST(MACD<0)+1); VA2:=crOSS(BACKSET(CROSS(0,MACD),REF(VA1,1)+2),0.5); QG:=CROSS(BACKSET(CROSS(0,MACD) OR (ISLASTBAR AND MACD>0),REF(VA1,1)+2),0.5); 前高线:DRAWLINE(VA2,MACD,REF(VA2,1),REF(MACD,1),1),COLORMAGENTA,LINETHICK2; MACD120:=REF(MACD/2,BARSLAST(MACD=HHV(MACD,120))),COLORA67D3D,LINETHICK1; MACD250:REF(MACD/2,BARSLAST(MACD=HHV(MACD,250))),COLORYELLOW,LINETHICK2; XG:=NOT(REF(MACD120,1)=MACD120); {www.gszb.comSTICKLINE(XG,0,MACD,0,0),COLORYELLOW;} STICKLINE(MACD>=MACD250,MACD250,MACD,2,0),COLORMAGENTA; STICKLINE(MACD>=MACD250 AND MACD>REF(MACD,1),MACD,0,1,0),COLORYELLOW; 大行情:NOT(REF(MACD120,1)=REF(MACD250,1)) AND MACD120=MACD250;
移动端首页 | PC端
© by gszx.com.cn Mobile Web
{www.gszb.com指标介绍:显示涨停、跌停和炸版,红线上穿白线做多,转绿做空。}
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
macd:=2*(DIF-DEA),COLORRED;
VA1:=HHVBARS(MacD,BArslAST(MACD<0)+1);
VA2:=crOSS(BACKSET(CROSS(0,MACD),REF(VA1,1)+2),0.5);
QG:=CROSS(BACKSET(CROSS(0,MACD) OR (ISLASTBAR AND MACD>0),REF(VA1,1)+2),0.5);
前高线:DRAWLINE(VA2,MACD,REF(VA2,1),REF(MACD,1),1),COLORMAGENTA,LINETHICK2;
MACD120:=REF(MACD/2,BARSLAST(MACD=HHV(MACD,120))),COLORA67D3D,LINETHICK1;
MACD250:REF(MACD/2,BARSLAST(MACD=HHV(MACD,250))),COLORYELLOW,LINETHICK2;
XG:=NOT(REF(MACD120,1)=MACD120);
{www.gszb.comSTICKLINE(XG,0,MACD,0,0),COLORYELLOW;}
STICKLINE(MACD>=MACD250,MACD250,MACD,2,0),COLORMAGENTA;
STICKLINE(MACD>=MACD250 AND MACD>REF(MACD,1),MACD,0,1,0),COLORYELLOW;
大行情:NOT(REF(MACD120,1)=REF(MACD250,1)) AND MACD120=MACD250;