MACD126指标 (源码)
2012-10-21 09:11:00来源:本站整理浏览:216
SHORT:=12;LONG:=26;MID:=9;
M12:=EMA((((HIGH-REF(LOW,1))-(LOW-REF(HIGH,1)))/2)+C,SHORT);
M26:=EMA((((HIGH-REF(LOW,1))-(LOW-REF(HIGH,1)))/2)+C,LONG);
DIFF:(M12-M26)/2; DEA:EMA(DIFF,MID);
HISTOGRAM:(DIFF-DEA)*2,COLORSTICK;
{ GUPANG.COM 股票软件下载网_通达信股票指标公式}
STICKLINE(HISTOGRAM<REF(HISTOGRAM,1)AND HISTOGRAM>0,0,HISTOGRAM,-2,0),COLORLIGREEN;
STICKLINE(HISTOGRAM<REF(HISTOGRAM,1)AND HISTOGRAM<0,0,HISTOGRAM,-2,0),COLORLICYAN;
STICKLINE(HISTOGRAM>REF(HISTOGRAM,1)AND HISTOGRAM,0,HISTOGRAM,-2,0),COLORLIRED;
STICKLINE(HISTOGRAM>REF(HISTOGRAM,1)AND HISTOGRAM>0,0,HISTOGRAM,-3,0),COLORLIMAGENTA;
DRAWBAND(DIFF,RGB(250,250,250),DIFF,RGB(250,250,250));
DRAWBAND(DEA,RGB(250,250,0),DEA,RGB(250,250,0));
- 上一篇公式:价量动能共振选股指标 (源码)
- 下一篇公式:短线指针选股指标 (源码)