diff --git a/indicators/LVN.cs b/indicators/LVN.cs index bacd8e6..5d9f69f 100644 --- a/indicators/LVN.cs +++ b/indicators/LVN.cs @@ -158,55 +158,55 @@ namespace NinjaTrader.NinjaScript.Indicators namespace NinjaTrader.NinjaScript.Indicators { - public partial class Indicator : NinjaTrader.Gui.NinjaScript.IndicatorRenderBase - { - private LVN[] cacheLVN; - public LVN LVN(int surroundingLevels, Stroke lVNStroke, int maxPixelWidth, int opacity) - { - return LVN(Input, surroundingLevels, lVNStroke, maxPixelWidth, opacity); - } + public partial class Indicator : NinjaTrader.Gui.NinjaScript.IndicatorRenderBase + { + private LVN[] cacheLVN; + public LVN LVN(int surroundingLevels, Stroke lVNStroke, int maxPixelWidth, int opacity) + { + return LVN(Input, surroundingLevels, lVNStroke, maxPixelWidth, opacity); + } - public LVN LVN(ISeries input, int surroundingLevels, Stroke lVNStroke, int maxPixelWidth, int opacity) - { - if (cacheLVN != null) - for (int idx = 0; idx < cacheLVN.Length; idx++) - if (cacheLVN[idx] != null && cacheLVN[idx].SurroundingLevels == surroundingLevels && cacheLVN[idx].LVNStroke == lVNStroke && cacheLVN[idx].MaxPixelWidth == maxPixelWidth && cacheLVN[idx].Opacity == opacity && cacheLVN[idx].EqualsInput(input)) - return cacheLVN[idx]; - return CacheIndicator(new LVN(){ SurroundingLevels = surroundingLevels, LVNStroke = lVNStroke, MaxPixelWidth = maxPixelWidth, Opacity = opacity }, input, ref cacheLVN); - } - } + public LVN LVN(ISeries input, int surroundingLevels, Stroke lVNStroke, int maxPixelWidth, int opacity) + { + if (cacheLVN != null) + for (int idx = 0; idx < cacheLVN.Length; idx++) + if (cacheLVN[idx] != null && cacheLVN[idx].SurroundingLevels == surroundingLevels && cacheLVN[idx].LVNStroke == lVNStroke && cacheLVN[idx].MaxPixelWidth == maxPixelWidth && cacheLVN[idx].Opacity == opacity && cacheLVN[idx].EqualsInput(input)) + return cacheLVN[idx]; + return CacheIndicator(new LVN(){ SurroundingLevels = surroundingLevels, LVNStroke = lVNStroke, MaxPixelWidth = maxPixelWidth, Opacity = opacity }, input, ref cacheLVN); + } + } } namespace NinjaTrader.NinjaScript.MarketAnalyzerColumns { - public partial class MarketAnalyzerColumn : MarketAnalyzerColumnBase - { - public Indicators.LVN LVN(int surroundingLevels, Stroke lVNStroke, int maxPixelWidth, int opacity) - { - return indicator.LVN(Input, surroundingLevels, lVNStroke, maxPixelWidth, opacity); - } + public partial class MarketAnalyzerColumn : MarketAnalyzerColumnBase + { + public Indicators.LVN LVN(int surroundingLevels, Stroke lVNStroke, int maxPixelWidth, int opacity) + { + return indicator.LVN(Input, surroundingLevels, lVNStroke, maxPixelWidth, opacity); + } - public Indicators.LVN LVN(ISeries input , int surroundingLevels, Stroke lVNStroke, int maxPixelWidth, int opacity) - { - return indicator.LVN(input, surroundingLevels, lVNStroke, maxPixelWidth, opacity); - } - } + public Indicators.LVN LVN(ISeries input , int surroundingLevels, Stroke lVNStroke, int maxPixelWidth, int opacity) + { + return indicator.LVN(input, surroundingLevels, lVNStroke, maxPixelWidth, opacity); + } + } } namespace NinjaTrader.NinjaScript.Strategies { - public partial class Strategy : NinjaTrader.Gui.NinjaScript.StrategyRenderBase - { - public Indicators.LVN LVN(int surroundingLevels, Stroke lVNStroke, int maxPixelWidth, int opacity) - { - return indicator.LVN(Input, surroundingLevels, lVNStroke, maxPixelWidth, opacity); - } + public partial class Strategy : NinjaTrader.Gui.NinjaScript.StrategyRenderBase + { + public Indicators.LVN LVN(int surroundingLevels, Stroke lVNStroke, int maxPixelWidth, int opacity) + { + return indicator.LVN(Input, surroundingLevels, lVNStroke, maxPixelWidth, opacity); + } - public Indicators.LVN LVN(ISeries input , int surroundingLevels, Stroke lVNStroke, int maxPixelWidth, int opacity) - { - return indicator.LVN(input, surroundingLevels, lVNStroke, maxPixelWidth, opacity); - } - } + public Indicators.LVN LVN(ISeries input , int surroundingLevels, Stroke lVNStroke, int maxPixelWidth, int opacity) + { + return indicator.LVN(input, surroundingLevels, lVNStroke, maxPixelWidth, opacity); + } + } } #endregion