This is a trading item or a component that was created using QuantShare by one of our members.
This item can be downloaded and used by QuantShare Trading Software.
Trading items are of different types. There are data downloaders, trading indicators, trading systems, watchlists, composites/indices...
You can use this item and hundreds of others for free by downloading QuantShare.
Top Reasons Why You Should Use QuantShare:
Works with US and international markets (stock, forex, options, futures, ETF...)
Offers you the tools that will help you become a profitable trader
Allows you to implement any trading ideas
Exchange items and ideas with other QuantShare users
Our support team is very responsive and will answer any of your questions
We will implement any features you suggest
Very low price and much more features than the majority of other trading software
The Accumulation/Distribution or A/D indicator tries to determine whether the current security is controlled by buyers (accumulation) or by sellers (distribution). It acts as a leading indicator and it is calculated by summing over a specific number of bars, a formula that uses the close, high, low and volume prices. The more volume there is for a specific bar and the more the price change will contribute to the value of the indicator.
Trading signals are given by the divergence between the indicator time-series and the close price time-series. A bullish signal occurs when there is a bullish divergence; that is, the close price is making a new low while the indicator fails to make a new low. A bearish signal occurs when there is a bearish divergence; the close price is making a new high while the indicator fails to make a new high.
You can use the following SEARCHFOR function to detect bearish divergences between the accumulation/distribution indicator and the close price.
acc = AccumulationDistribution(30);
var2 = SEARCHFOR acc < 0.9 * _max(acc) && close >= _max(close) AFTER 30 WITHIN 100;
The SEARCHFOR formula tells the application to search for instances (within the last 100 bars; rejects instances that last less than 31 bars) where the close price is at its highest value and the A/D indicator is below 90% of its highest value.
This is just an example; there are many other ways to detect divergences.