/// <summary> /// Squeeze collection /// </summary> /// <returns></returns> public Indicator.RSqueeze RSqueeze(Data.IDataSeries input, SqueezeStyle sStyle) { if (InInitialize && input == null) { throw new ArgumentException("You only can access an indicator with the default input/bar series from within the 'Initialize()' method"); } return(_indicator.RSqueeze(input, sStyle)); }
/// <summary> /// Squeeze collection /// </summary> /// <returns></returns> public RSqueeze RSqueeze(Data.IDataSeries input, SqueezeStyle sStyle) { if (cacheRSqueeze != null) { for (int idx = 0; idx < cacheRSqueeze.Length; idx++) { if (cacheRSqueeze[idx].SStyle == sStyle && cacheRSqueeze[idx].EqualsInput(input)) { return(cacheRSqueeze[idx]); } } } lock (checkRSqueeze) { checkRSqueeze.SStyle = sStyle; sStyle = checkRSqueeze.SStyle; if (cacheRSqueeze != null) { for (int idx = 0; idx < cacheRSqueeze.Length; idx++) { if (cacheRSqueeze[idx].SStyle == sStyle && cacheRSqueeze[idx].EqualsInput(input)) { return(cacheRSqueeze[idx]); } } } RSqueeze indicator = new RSqueeze(); indicator.BarsRequired = BarsRequired; indicator.CalculateOnBarClose = CalculateOnBarClose; #if NT7 indicator.ForceMaximumBarsLookBack256 = ForceMaximumBarsLookBack256; indicator.MaximumBarsLookBack = MaximumBarsLookBack; #endif indicator.Input = input; indicator.SStyle = sStyle; Indicators.Add(indicator); indicator.SetUp(); RSqueeze[] tmp = new RSqueeze[cacheRSqueeze == null ? 1 : cacheRSqueeze.Length + 1]; if (cacheRSqueeze != null) { cacheRSqueeze.CopyTo(tmp, 0); } tmp[tmp.Length - 1] = indicator; cacheRSqueeze = tmp; return(indicator); } }
public Indicator.RSqueeze RSqueeze(SqueezeStyle sStyle) { return(_indicator.RSqueeze(Input, sStyle)); }
/// <summary> /// Squeeze collection /// </summary> /// <returns></returns> public Indicator.RSqueeze RSqueeze(Data.IDataSeries input, SqueezeStyle sStyle) { return(_indicator.RSqueeze(input, sStyle)); }
/// <summary> /// Squeeze collection /// </summary> /// <returns></returns> public RSqueeze RSqueeze(SqueezeStyle sStyle) { return(RSqueeze(Input, sStyle)); }