public LowestBar(DataSeries source, int period, string description) public static LowestBar Series(WealthLab.DataSeries source, int period) public static double Value(int bar, DataSeries source, int period)
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 areas of the chart where the 200 day low has occurred within the past 20 bars */ double n = 0; for(int bar = 200; bar < Bars.Count; bar++) { n = LowestBar.Value( bar, Low, 200 ); if( bar - n <= 20 ) SetBackgroundColor( bar, Color.FromArgb(255, 227, 231) ); } } } }