组合买点(副图 源码)
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);
- 上一篇公式:多空平衡SN3
- 下一篇公式:非常准确的指标,请高手看看有没未来函数!