public LBR3_10(DataSeries ds, int period1, int period2, string description) public static LBR3_10 Series(DataSeries ds, int period1, int period2)public LBR3_10_Histogram(DataSeries ds, int period1, int period2, int period3, string description) public static LBR3_10_Histogram Series(DataSeries ds, int period1, int period2, int period3)public LBR3_10_Signal(DataSeries ds, int period1, int period2, int period3, string description) public static LBR3_10_Signal Series(DataSeries ds, int period1, int period2, int period3)
using System; using System.Collections.Generic; using System.Text; using System.Drawing; using WealthLab; using WealthLab.Indicators; using Community.Indicators;namespace WealthLab.Strategies { public class CompareMACDwithLBR : WealthScript { protected override void Execute() { MACDEx macdex = MACDEx.Series(Close,3,10); MACDEx_Histogram macdexHist = MACDEx_Histogram.Series(Close,3,10); MACDEx_Signal3 macdSignal = MACDEx_Signal3.Series(Close,3,10,16); LBR3_10 lbrOsc = LBR3_10.Series(Close,3,10); LBR3_10_Histogram lbrOscHist = LBR3_10_Histogram.Series(Close,3,10,16); LBR3_10_Signal lbrOscSignal = LBR3_10_Signal.Series(Close,3,10,16); ChartPane macdPane = CreatePane(50,true,true); ChartPane lbrPane = CreatePane(50,true,true); DrawHorzLine(macdPane,0,Color.Blue,LineStyle.Dashed,1); DrawHorzLine(lbrPane,0,Color.Blue,LineStyle.Dashed,1); HideVolume(); PlotSeries( macdPane, macdex, Color.Black, LineStyle.Solid, 2 ); PlotSeries( macdPane, macdexHist, Color.DarkGreen, LineStyle.Histogram, 1 ); PlotSeries( macdPane, macdSignal, Color.Red, LineStyle.Solid, 2 ); PlotSeries( lbrPane, lbrOsc, Color.Black, LineStyle.Solid, 2 ); PlotSeries( lbrPane, lbrOscHist, Color.DarkGreen, LineStyle.Histogram, 1 ); PlotSeries( lbrPane, lbrOscSignal, Color.Red, LineStyle.Solid, 2 ); } } }