通达信捕捉主升浪 和谐源码分享

VAR1:=EMA(EMA(CLOSE,7),2)-EMA(EMA(CLOSE,21),2);
VAR2:=EMA(0.668*REF(VAR1,1)+0.333*VAR1,1);
短多:IF(VAR1>=VAR2,VAR1,VAR2),COLORLIMAGENTA,LINETHICK3;
短空:VAR2,COLORGREEN,LINETHICK3;
STICKLINE(VAR2<0 AND VAR2<REF(VAR2,1),VAR2*0.7,0,0.05,0),COLORLIBLUE;
STICKLINE(VAR2<0 AND VAR2>REF(VAR2,1),VAR2*0.7,0,0.05,0),COLORYELLOW;
STICKLINE(VAR2>REF(VAR2,1) AND VAR2>0,VAR2*0.7,0,0.05,0),COLORRED;
STICKLINE(VAR2<REF(VAR2,1) AND VAR2>0,VAR2*0.7,0,0.05,0),COLORGREEN;
VAR3:=REF(CLOSE,1);{股票指标网}
VAR4:=SMA(MAX(CLOSE-VAR3,0),2,1)/SMA(ABS(CLOSE-VAR3),2,1)*100;
VAR5:=SMA(MAX(CLOSE-VAR3,0),3,1)/SMA(ABS(CLOSE-VAR3),3,1)*100;
VAR6:=SMA(MAX(CLOSE-VAR3,0),4,1)/SMA(ABS(CLOSE-VAR3),4,1)*100;
VAR7:=SMA(MAX(CLOSE-VAR3,0),5,1)/SMA(ABS(CLOSE-VAR3),5,1)*100;
VAR8:=SMA(MAX(CLOSE-VAR3,0),6,1)/SMA(ABS(CLOSE-VAR3),6,1)*100;
VAR9:=SMA(MAX(CLOSE-VAR3,0),7,1)/SMA(ABS(CLOSE-VAR3),7,1)*100;
VAR10:=SMA(MAX(CLOSE-VAR3,0),8,1)/SMA(ABS(CLOSE-VAR3),8,1)*100;
VAR11:=SMA(MAX(CLOSE-VAR3,0),9,1)/SMA(ABS(CLOSE-VAR3),9,1)*100;
VAR12:=SMA(MAX(CLOSE-VAR3,0),10,1)/SMA(ABS(CLOSE-VAR3),10,1)*100;
VAR13:=SMA(MAX(CLOSE-VAR3,0),11,1)/SMA(ABS(CLOSE-VAR3),11,1)*100;
VAR14:=SMA(MAX(CLOSE-VAR3,0),12,1)/SMA(ABS(CLOSE-VAR3),12,1)*100;
VAR15:=SMA(MAX(CLOSE-VAR3,0),13,1)/SMA(ABS(CLOSE-VAR3),13,1)*100;
VAR16:=SMA(MAX(CLOSE-VAR3,0),14,1)/SMA(ABS(CLOSE-VAR3),14,1)*100;
VAR17:=SMA(MAX(CLOSE-VAR3,0),15,1)/SMA(ABS(CLOSE-VAR3),15,1)*100;
VAR18:=SMA(MAX(CLOSE-VAR3,0),16,1)/SMA(ABS(CLOSE-VAR3),16,1)*100;
VAR19:=SMA(MAX(CLOSE-VAR3,0),17,1)/SMA(ABS(CLOSE-VAR3),17,1)*100;
VAR20:=SMA(MAX(CLOSE-VAR3,0),18,1)/SMA(ABS(CLOSE-VAR3),18,1)*100;
VAR21:=SMA(MAX(CLOSE-VAR3,0),19,1)/SMA(ABS(CLOSE-VAR3),19,1)*100;
VAR22:=SMA(MAX(CLOSE-VAR3,0),20,1)/SMA(ABS(CLOSE-VAR3),20,1)*100;
VAR23:=SMA(MAX(CLOSE-VAR3,0),21,1)/SMA(ABS(CLOSE-VAR3),21,1)*100;
VAR24:=(VAR4+VAR5+VAR6+VAR7+VAR8)/5;
VAR25:=(VAR9+VAR10+VAR11+VAR12+VAR13+VAR14+VAR15+VAR16+VAR17+VAR18+VAR19+VAR20+VAR21+VAR22+VAR23)/15;
VAR26:=CROSS(VAR24,VAR25);
VAR27:=CROSS(VAR25,VAR24);
 



来函数检测结果如下:
该公式没有未来函数

解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  指标公式网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 浙ICP备2024071487号-2 指标公式网别名指标网仅为互联网文章,所有指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。指标公式网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图