文华财经4色双线macd多空箭头变色指标公式源码:
DIFF : EMA(CLOSE,12) – EMA(CLOSE,26),LINETHICK1,COLORWHITE;
DEA : EMA(DIFF,9),RGB(255,128,0),LINETHICK1;
AO:DIFF,NODRAW,NOTEXT;
TJ1:AO<REF(AO,1),NODRAW,NOTEXT;
TJ2:AO>REF(AO,1),NODRAW,NOTEXT;
STICKLINE1(TJ1&&AO>0,0,AO,1,0),RGB(47,151,255);//红柱缩量
STICKLINE1(TJ2&&AO<0,0,AO,1,0),RGB(255,81,168);//蓝柱缩量
STICKLINE1(TJ1&&AO<0,0,AO,1,0),RGB(47,151,255);//蓝柱加量
STICKLINE1(TJ2&&AO>0,0,AO,1,0),RGB(255,81,168);//红柱加量
DRAWTEXT(CROSS(DIFF,DEA),DEA,’▲’),RGB(255,255,255),FONTSIZE12,VALIGN0;
DRAWTEXT(CROSSDOWN(DIFF,DEA),DEA,’▼’),COLORGREEN,FONTSIZE12;
0,RGB(68,68,68),NOTEXT;
4倍DIFF快线: EMA(CLOSE,48) – EMA(CLOSE,104),COLORWHITE;//快线
4倍DEA慢线: EMA(4倍DIFF快线,36),RGB(255,128,0),COLORWHITE,DOT;//慢线