联系方式 Contact

云指标公式网

淘宝:zb-mart.taobao.com

电话:18020657357

微信:18020657357

Q Q:396950280

点击这里给我发消息

网址:www.yzhibiao.com

搜索 Search

J_018千钧

2015-11-22 21:26:03点击:
分析MACD柱状线,由绿变红(负变正),买入信号。DIFF与DEA形成金叉时为买入信号。
分析MACD柱状线,由红变绿(正变负),卖出信号。DEA与DIFF形成死叉时为卖出信号。

参数:LONG、SHORT、M  天数,计算MACD时用,一般15、30、55。 DIFF= EMA(CLOSE,BUYCOUNT) - EMA(CLOSE,S



ELLCOUNT);

DEA = EMA(DIFF,m);
IF(BUYCOUNT>SELLCOUNT)
{
IF (CROSS(diff,dea))
BUYCOUNT;
IF (CROSS(dea,diff))
SELLCOUNT;
}
N:=22;JJ:=(HIGH+LOW+CLOSE)/3;qj0:=VOL/IF(HIGH=LOW,4,HIGH-LOW);
qj1:=IF(CAPITAL=0,qj0*(JJ-MIN(CLOSE,OPEN)),qj0*IF(HIGH=LOW,1,(MIN(OPEN,CLOSE)-LOW)));
qj2:=IF(CAPITAL=0,qj0*(MIN(OPEN,CLOSE)-LOW),qj0*IF(HIGH=LOW,1,(JJ-MIN(CLOSE,OPEN))));
qj3:=IF(CAPITAL=0,qj0*(HIGH-MAX(OPEN,CLOSE)),qj0*IF(HIGH=LOW,1,(HIGH-MAX(OPEN,CLOSE))));
qj4:=IF(CAPITAL=0,qj0*(MAX(CLOSE,OPEN)-JJ),qj0*IF(HIGH=LOW,1,(MAX(CLOSE,OPEN)-JJ)));
DDY:((qj2+qj4)-(qj1+qj3))/SUM(VOL,60),COLOR00DD00,LINETHICK0;
DY:=MA(ddy,5)*N;
STICKLINE(DDY<0,0,DDY,8,0),COLORFF8800;
STICKLINE(DDY<0,0,DDY,5,0),COLORFFaa00;
STICKLINE(DDY<0,0,DDY,3,0),COLORFFcc00;
STICKLINE(DDY<0,0,DDY,1,0),COLORFFee00;
STICKLINE(DDY>0,0,DDY,8,0),COLOR880088;
STICKLINE(DDY>0,0,DDY,5,0),COLORaa00aa;
STICKLINE(DDY>0,0,DDY,3,0),COLORcc00CC;
STICKLINE(DDY>0,0,DDY,1,0),COLORee00ee;
DDY1:SMA(DY,3,1),ColorFFFFFF;
DDY2:SMA(DDY1,3,1),Color00FFFF;
DDY3:WMA(DDY2,5),ColorFF00FF;
预警:DDy>0 AND CROSS(DDy1,DDy2) AND ddy1<0,nodraw;
DRAWTEXT(预警,0*1.06,'★★'),LINETHICK3,COLOR00BBFF;
CLOSE