同花顺强化MACD指标公式

2015-04-23    作者:投资家网tzj123.com    来源:本站整理

VAR1:=(MA(CLOSE,80)-MA(CLOSE,13)/3);
VAR2:=( MA((CLOSE-VAR1)/VAR1,1));
测试版: IF(CROSS(VAR2,0) AND LOW/REF(HIGH,1)<1.012,20,0);
长黄柱抄底:IF(COUNT(VAR2>REF(VAR2,1),3)=3 AND
COUNT(VAR2<0,10)=10 AND REF(VAR2,3)=LLV(VAR2,10),60,0);
短粉柱加仓: IF(REF(VAR2,2)=LLV(VAR2,20) AND
REF(VAR2,2)<0.071 AND REF(VAR2,2)<REF(VAR2,1) AND
NOT(REF(LOW,1)>REF(HIGH,2) AND LOW>REF(HIGH,1)) AND
CLOSE>REF(CLOSE,1),20,0);
MMA:=EMA(VAR2,12)*0.7;
MMB:=EMA(VAR2,3);
DIFF:( EMA(CLOSE,12) - EMA(CLOSE,26))*100,colorred;
DEA: EMA(DIFF,9),COLORFFFFFF,LINETHICK1;
MACD:= 2*(DIFF-DEA);
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,2,0),colorgreen;
STICKLINE(MACD<REF(MACD,1)AND MACD<0,0,MACD,2,0),COLORC6C622;
STICKLINE(MACD>REF(MACD,1)AND MACD,0,MACD,2,0),coloryellow;
STICKLINE(MACD>REF(MACD,1)AND MACD>0,0,MACD,3,0),COLORFF75FF;

阅读:1085    评论:0

联系我们 - 关于我们 - 网站地图

声明:站内所有文章、公式均来自互联网或网友分享提供,如侵犯您的权利请告知,我们会在24小时内及时删除! 


【电脑版】  【回到顶部】