通达信资金共振指标公式

M:=10;
0,COLOR666666;
VAR1:=SMA(AMOUNT/10,M,1)/10000; {10日成交额的SMA平均,考虑一日权重}
DIF1:=EMA(VAR1,20)-EMA(VAR1,60);
DEA1:=EMA(DIF1,10),COLORWHITE;
macd1:=(DIF1-DEA1)*2;
MAMacD1:=MA(MACD1,3);
DIF2:=EMA(VAR1,30)-EMA(VAR1,60);
DEA2:=EMA(DIF2,10),COLORWHITE;
MACD2:=(DIF2-DEA2)*2;
MAMACD2:=MA(MACD2,3);
DIF3:=EMA(VAR1,40)-EMA(VAR1,60);
DEA3:=EMA(DIF3,10),COLORWHITE;
MACD3:=(DIF3-DEA3)*2;
MAMACD3:=MA(MACD3,3);
DIF4:=EMA(VAR1,60)-EMA(VAR1,120);
DEA4:=EMA(DIF4,10),COLORWHITE;
MACD4:=(DIF4-DEA4)*2;
MAMACD4:=MA(MACD4,3);
DIF5:=EMA(VAR1,120)-EMA(VAR1,250);
DEA5:=EMA(DIF5,10),COLORWHITE;
MACD5:=(DIF5-DEA5)*2;
MAMACD5:=MA(MACD5,3);
DIF6:=EMA(VAR1,250)-EMA(VAR1,500);
DEA6:=EMA(DIF6,10),COLORWHITE;
MACD6:=(DIF6-DEA6)*2;
MAMACD6:=MA(MACD6,3);
A1:=MAMACD1>=REF(MAMACD1,1);
A2:=MAMACD2>=REF(MAMACD2,1);
A3:=MAMACD3>=REF(MAMACD3,1);
A4:=MAMACD4>=REF(MAMACD4,1);
A5:=MAMACD5>=REF(MAMACD5,1);
A6:=MAMACD6>=REF(MAMACD6,1);
B1:=MAMACD1<=REF(MAMACD1,1);
B2:=MAMACD2<=REF(MAMACD2,1);
B3:=MAMACD3<=REF(MAMACD3,1);
B4:=MAMACD4<=REF(MAMACD4,1);
B5:=MAMACD5<=REF(MAMACD5,1);
B6:=MAMACD6<=REF(MAMACD6,1);
{A1:=DIF1>=REF(DIF1,1);
A2:=DIF2>=REF(DIF2,1);
A3:=DIF3>=REF(DIF3,1);
A4:=DIF4>=REF(DIF4,1);
A5:=DIF5>=REF(DIF5,1);
A6:=DIF6>=REF(DIF6,1);
B1:=DIF1<=REF(DIF1,1);
B2:=DIF2<=REF(DIF2,1);
B3:=DIF3<=REF(DIF3,1);
B4:=DIF4<=REF(DIF4,1);
B5:=DIF5<=REF(DIF5,1);
B6:=DIF6<=REF(DIF6,1);}
STICKLINE(A6,0,1,3,0),COLORBLUE;
STICKLINE(A5,1,2,3,0),COLORDDDDDD;
STICKLINE(A4,2,3,3,0),COLORRED;
STICKLINE(A3,3,4,3,0),COLORMAGENTA;
STICKLINE(A2 AND A1,4,5,3,0),COLORYELLOW;
STICKLINE(B6,0,1,3,0),COLOR333333;
STICKLINE(B5,1,2,3,0),COLOR444444;
STICKLINE(B4,2,3,3,0),COLOR555555;
STICKLINE(B3,3,4,3,0),COLOR666666;
STICKLINE(A6 OR A5,7.5,8,3,0),COLOR339999;
STICKLINE(A6 OR A5,7.5,8,1,0),COLOR33FFFF;
STICKLINE(B5 OR B6,7.5,8,3,0),COLOR333333;
STICKLINE(B5 OR B6,7.5,8,1,0),COLOR666666;
STICKLINE((A6 OR A5) AND A3 AND A2 AND A1,7.5,8,3,0),COLOR993399;
STICKLINE((A6 OR A5) AND A3 AND A2 AND A1,7.5,8,1,0),COLORFF00FF;
STICKLINE((B6 OR B5) AND A3 AND A2 AND A1,7.5,8,3,0),COLOR666600;
STICKLINE((B6 OR B5) AND A3 AND A2 AND A1,7.5,8,1,0),COLORFFFF00;
向上三线共振:=A3 AND A2 AND A1;
DRAWICON(IF(向上三线共振=1 AND REF(向上三线共振,1)=0 ,向上三线共振,0) AND COUNT(向上三线共振,20)<=3,7,1);
VAR2:=BArslAST(A3=1 AND REF(A3,2)=0);
DRAWICON(IF(REF(向上三线共振,1)=1 AND 向上三线共振=0 AND COUNT(向上三线共振,VAR2)>8,1,0),7,2);




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

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

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

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