DataSeries SenkouSpanA (Bars bars) DataSeries SenkouSpanB (Bars bars) DataSeries TenkanSen(Bars bars) DataSeries KijunSen(Bars bars)
using System; using System.Collections.Generic; using System.Text; using System.Drawing; using WealthLab; using Community.Indicators;namespace WealthLab.Strategies { public class MyStrategy : WealthScript { protected override void Execute() { PlotSeriesDualFillBand( PricePane, SenkouSpanA.Series(Bars), SenkouSpanB.Series(Bars), Color.FromArgb( 50, Color.Blue ), Color.FromArgb( 50, Color.Red ), Color.FromArgb( 50, Color.Black ), LineStyle.Solid, 1 ); } } }
using System; using System.Collections.Generic; using System.Text; using System.Drawing; using WealthLab; using Community.Indicators;namespace WealthLab.Strategies { public class IchimokuClouds : WealthScript { protected override void Execute() { int p4 = 26; // Push the Price DataSeries back 26 bars to align with Kumo for (int bar = p4; bar < Bars.Count; bar++) { int b = bar - p4 + 1; Open[b] = Open[bar]; High[b] = High[bar]; Low[b] = Low[bar]; Close[b] = Close[bar]; } // flat line the values for the last 26 bars double last = Close[Bars.Count - 1]; for (int bar = Bars.Count - p4 + 1; bar < Bars.Count; bar++) { Open[bar] = last; High[bar] = last; Low[bar] = last; Close[bar] = last; } Color ltRed = Color.FromArgb(60, 255, 0, 0); Color ltBlue = Color.FromArgb(60, 0, 0, 255); PlotSeriesDualFillBand( PricePane, SenkouSpanA.Series(Bars), SenkouSpanB.Series(Bars), ltBlue, ltRed, Color.Red, LineStyle.Solid, 1 ); HideVolume(); } } }