AccumDist

Modified on 2012/10/22 23:14 by Administrator — Categorized as: Standard Indicators

Syntax

public AccumDist(WealthLab.Bars bars, string description)
public static AccumDist Series(WealthLab.Bars bars)

Parameter Description

Bars The Bars object

Description

Accumulation/Distribution (created by L. Williams) uses the closing price's proximity to the high or low to determine if accumulation or distribution is occurring in the market. The proximity value is multiplied by volume to give more weight to moves with higher volume. You can often spot divergences between price action and the AccumDist indicator. For example, if prices make a new high but the move is not accompanied by sufficient volume, AccumDist will fail to make a new high. Divergences can be a sign the trend is nearing completion.

Interpretation


Calculation

AccumDist = Volume * ((Close-Low) - (High-Close))/(High-Low) + I
where,
I = yesterday's AccumDist value

Example

using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using WealthLab;
using WealthLab.Indicators;

namespace WealthLab.Strategies { public class MyStrategy : WealthScript { protected override void Execute() { // Look for a diverging slope of AccumDist and price DataSeries ad = AccumDist.Series( Bars );

for(int bar = 10; bar < Bars.Count; bar++) { if( ( ad[bar] > ad[bar-10] ) & ( Close[bar] < Close[bar-10] ) ) SetBarColor( bar, Color.SpringGreen ); }

ChartPane AccumDistPane = CreatePane( 50, false, true ); PlotSeries( AccumDistPane, ad, Color.Black, WealthLab.LineStyle.Solid, 2 ); } } }