public static void PriceVolumeDist(this WealthScript obj, int Lookback, Color LineColor, Color FillColor)public void PriceVolumeDist( int Lookback, System.Color LineColor, System.Color FillColor );
Price Volume Distribution (Crude Oil continuous contract)
using System; using System.Collections.Generic; using System.Text; using System.Drawing; using WealthLab; using WealthLab.Indicators; namespace WealthLab.Strategies { public class PriceVolumeDistribution_Test : WealthScript { protected override void Execute() { Color LineColor = Color.Blue; Color FillColor = Color.FromArgb( 30, Color.Blue ); int Lookback = 250; if( Bars.Count < Lookback ) return; this.PriceVolumeDist( Lookback, LineColor, FillColor ); } } }
using System; using System.Collections.Generic; using System.Text; using System.Drawing; using WealthLab; using WealthLab.Indicators; using Community.Components; /*** Requires installation of Community.Components Extension from www.wealth-lab.com > Extensions ***/namespace WealthLab.Strategies { public class PriceVolumeDistribution_Test : WealthScript { protected override void Execute() { Calculate c = new Calculate( this ); Color LineColor = Color.Blue; Color FillColor = Color.FromArgb( 30, Color.Blue ); int Lookback = 250; if( Bars.Count < Lookback ) return; c.PriceVolumeDist( Lookback, LineColor, FillColor ); } } }