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() { if( Bars.Scale == BarScale.Minute ) { SetScaleDaily(); DataSeries option2 = Bars.High; option2.Description = "High (option2)"; DataSeries option3 = option2 >> 1; option3.Description = "High (option3)"; RestoreScale(); option2 = Synchronize( option2 ); option3 = Synchronize( option3 ); DataSeries option1 = option3 << 1; option1.Description = "High (option1)"; option1[Bars.Count-1] = option2[Bars.Count-1]; PlotSeries( PricePane, option2, Color.Blue, LineStyle.Solid, 4 ); PlotSeries( PricePane, option3, Color.Red, LineStyle.Solid, 2 ); PlotSeries( PricePane, option1, Color.Black, LineStyle.Solid, 1 ); } else { DrawLabel( PricePane, "Switch to minutes" ); } } } }