The Divergence index displays the percentual value of the closing price to the underlying moving average. A Divergence Index of 105% shows that the closing price is 5% above the moving average.
int count=0; for (;count<10; count++) if ((iMA(NULL,0,100,0,MODE_EMA,PRICE_CLOSE,startFrom+count)-iMA(NULL,0,100,0,MODE_EMA,PRICE_CLOSE,startFrom+count+1))<0) break; bool allHigher=(count==10); count=0; for (;count<10; count++) if ((iMA(NULL,0,100,0,MODE_EMA,PRICE_CLOSE,startFrom+count)-iMA(NULL,0,100,0,MODE_EMA,PRICE_CLOSE,startFrom+count+1))>0) break; bool allLower =(count==10);
您的原始问题是:
答案是关于这一点。在任何情况下,如果你是手动交易,那么就没有必要改变任何东西(甚至是重绘指标)。你好。
我想写一些代码来检查 100 EMA是否在10根蜡烛的每根蜡烛上走低或走高。我可以把它写成20行,但这不是很方便。(10个周期的趋势)
谁能帮我写一个这样的循环?
非常感谢您。
嗨,Mladen先生
The Divergence index displays the percentual value of the closing price to the underlying moving average. A Divergence Index of 105% shows that the closing price is 5% above the moving average.
请您编写这个指标的代码,或者如果已经做了,请提供链接?
你好。
我想写一些代码来检查100 EMA是否在10根蜡烛的每根蜡烛上走低或走高。我可以把它写成20行,但这不是很方便。(10个周期的趋势)
谁能帮我写一个这样的循环?
非常感谢您。
你可以做与此类似的事情。
count=0; for (;count<10; count++) if ((iMA(NULL,0,100,0,MODE_EMA,PRICE_CLOSE,startFrom+count)-iMA(NULL,0,100,0,MODE_EMA,PRICE_CLOSE,startFrom+count+1))>0) break; bool allLower =(count==10);
嗨,Mladen先生
请您编写这个指标的代码,或者如果已经做了,请提供链接?
我在另一个论坛上得到了这个指标
这是给论坛成员的。
能否检查一下 这个指标,因为它在我的图表上没有加载?
谢谢
经理人(TEAMTRADER
能否检查一下这个指标,因为它在我的图表上没有加载?
谢谢
团队交易员
暂时可以使用,但不要相信我的修正,我不知道如何编码/修正正确的方法,版主可以更好地指导我们。
问候
能否检查一下这个指标,因为它在我的图表上没有加载?
谢谢
经理人(TEAMTRADER
暂时可以使用,但不要相信我的修正,我不知道如何编码/修正正确的方法,版主可以更好地指导我们。
问候
mntiwana
在默认设置下,它计算的是SMA(而不是DEMA,因为iMA()不知道如何计算DEMA)
能否检查一下这个指标,因为它在我的图表上没有加载?
谢谢
经理人(TEAMTRADER