组合买点(副图 源码)

2011-02-22 10:23:00来源:本站整理浏览:109

M加K

DIF:=(EMA(CLOSE,12)-EMA(CLOSE,26))*100+50;
DEA:=EMA(DIF,9);
{DRAWBAND(DIF,RGB(220,160,230),DEA,RGB(110,140,150));}
MACD:=(DIF-DEA)*2;
STICKLINE(MACD>=0,50,50+MACD,0,1),COLORRED;
STICKLINE(MACD<0,50,50+MACD,0,1),COLORLIBLUE;


TYP:=(HIGH+LOW+CLOSE)/3;
RSV:=(TYP-MA(TYP,14.14))/(0.015*AVEDEV(TYP,14.14));
K:EMA(RSV,3);
D:EMA(K,3);
J:3*K-2*D;

0,POINTDOT,COLORWHITE;
DRAWBAND(J,RGB(200,0,200),K,RGB(0,0,200));
DRAWBAND(D,RGB(0,200,0),J,RGB(200,0,200));
DRAWBAND(K,RGB(0,0,200),D,RGB(200,200,0));


DRAWICON(J>REF(J,1) AND REF(J,1)<REF(J,2),REF(J,1),1);
DRAWICON(J<REF(J,1) AND REF(J,1)>REF(J,2),REF(J,1),2);
DRAWICON(CROSS(K,D),J,11);
DRAWICON(CROSS(D,K),REF(J,1),12);

股票公式栏目导航

精品指标推荐

最新热门

本类随机推荐

相关公式