18评论

0收藏

完整的MQL4关于资金流量指数指标的代码

avatar 编程逆袭仔 | 7894 人阅读 | 18 人评论 | 2013-07-22

Name:
Accumulation/Distribution, A/D
Author:
[size=1em]MetaQuotes (2005.11.29 12:51)
Downloaded:
4057
Download:
[size=1em] [size=1em]Accumulation.mq4 (1.9 Kb) [size=1em]View
[size=1em] [size=1em]accumulation.gif (8.9 Kb)
1560.jpg
[size=1em]
    Accumulation/Distribution Technical Indicator is determined by the changes in price and volume. The volume acts as a weighting coefficient at the change of price — the higher the coefficient (the volume) is, the greater the contribution of the price change (for this period of time) will be in the value of the indicator.
[size=1em]    In fact, this indicator is a variant of the more commonly used indicator On Balance Volume. They are both used to confirm price changes by means of measuring the respective volume of sales.
[size=1em]    When the Accumulation/Distribution indicator grows, it means accumulation (buying) of a particular security, as the overwhelming share of the sales volume is related to an upward trend of prices. When the indicator drops, it means distribution (selling) of the security, as most of sales take place during the downward price movement.
[size=1em]    Divergences between the Accumulation/Distribution indicator and the price of the security indicate the upcoming change of prices. As a rule, in case of such divergences, the price tendency moves in the direction in which the indicator moves. Thus, if the indicator is growing, and the price of the security is dropping, a turnaround of price should be expected.
    Calculation
[size=1em]    A certain share of the daily volume is added to or subtracted from the current accumulated value of the indicator. The nearer the closing price to the maximum price of the day is, the higher the added share will be. The nearer the closing price to the minimum price of the day is, the greater the subtracted share will be. If the closing price is exactly in between the maximum and minimum of the day, the indicator value remains unchanged.
[size=1em]    A/D(i) =((CLOSE(i) - LOW(i)) - (HIGH(i) - CLOSE(i)) * VOLUME(i) / (HIGH(i) - LOW(i)) + A/D(i-1)
[size=1em]     Where:
A/D(i) — importance of the Indicator of the Accumulation/Distribution for the current bar;
CLOSE(i) — the price of the closing the bar;
LOW(i) — the minimum price of the bar;
HIGH(i) — the maximum price of the bar;
VOLUME(i) — volume;
A/D(i-1) — importance of the Indicator of the Accumulation/Distribution for previous bar.

""
还没有人打赏,支持一下

评论|共 18 个

天道

发表于 2013-11-25 08:34:25 | 显示全部楼层

学习了!!!!!

宝翼弛

发表于 2015-1-20 01:54:33 | 显示全部楼层


新手加入,期待拜读

星光

发表于 2015-1-22 09:40:13 | 显示全部楼层

多谢分享 看看是什么

仲夏

发表于 2015-1-24 08:39:41 | 显示全部楼层

看看是什么东西啊

sun001002003

发表于 2015-1-24 11:00:04 | 显示全部楼层

指数指标的代码

hnjzwyc

发表于 2015-1-24 11:00:06 | 显示全部楼层

nice!!!!!!!!!!!!

戈多

发表于 2015-1-28 03:14:58 | 显示全部楼层

下了  的确不错

蒋蒙

发表于 2020-6-16 14:12:20 | 显示全部楼层

:lol不错

相依爲命

发表于 2020-6-21 17:54:22 | 显示全部楼层

好帖,来顶下

12下一页
您需要登录后才可以回帖 登录 | 注册 微信登录

EA之家评论守则