private static void EmitNewBarSlice(object sender, BarSliceEventArgs e) { if (ProviderManager.threadSafe) { Monitor.Enter(ProviderManager.dataLock); } try { if (ProviderManager.NewBarSlice != null) { ProviderManager.NewBarSlice(sender, e); } } finally { if (ProviderManager.threadSafe) { Monitor.Exit(ProviderManager.dataLock); } } }
internal void z63WIUgWPv(BarSliceEventArgs obj0) { try { long barSize = obj0.BarSize; foreach (StrategyBase strategyBase in this.strategies) { if (strategyBase.IsEnabled) strategyBase.xuVn4XYwX(barSize); } this.OnNewBarSlice(barSize); } catch (Exception ex) { this.x6bWBlLIvv(ex); } }
private static void EmitNewBarSlice(object sender, BarSliceEventArgs e) { if (ProviderManager.threadSafe) Monitor.Enter(ProviderManager.dataLock); try { if (ProviderManager.NewBarSlice != null) ProviderManager.NewBarSlice(sender, e); } finally { if (ProviderManager.threadSafe) Monitor.Exit(ProviderManager.dataLock); } }
private void OnNewBarSlice(object sender, BarSliceEventArgs e) { if (this.NewBarSlice != null) { this.NewBarSlice(this, new BarSliceEventArgs(e.BarSize, this)); } }
private void marketDataProvider_NewBarSlice(object sender, BarSliceEventArgs args) { foreach (StrategyRunner strategyRunner in this.strategies.Values) { if (strategyRunner.Enabled) strategyRunner.SetNewBarSlice(args.BarSize); } }
private void barFactory_NewBarSlice(object sender, BarSliceEventArgs args) { this.EmitBarSlice(args.BarSize); }