public static VHF Series(DataSeries source, int period) public VHF(DataSeries source, int period, string description)
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() { // Color chart background when prices are trending according to VHF DataSeries vhf = VHF.Series( Close, 28 ); ChartPane VHFPane = CreatePane( 30, true, true ); PlotSeries( VHFPane, vhf, Color.Red, WealthLab.LineStyle.Solid, 1 ); for(int bar = 28; bar < Bars.Count; bar++) { if( vhfbar > 0.4 ) SetBackgroundColor( bar, Color.FromArgb(50,0,100,255) ); } } } }