示例#1
0
 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);
         }
     }
 }
示例#2
0
		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);
			}
		}
示例#3
0
 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);
     }
 }
示例#4
0
		private void OnNewBarSlice(object sender, BarSliceEventArgs e)
		{
			if (this.NewBarSlice != null)
			{
				this.NewBarSlice(this, new BarSliceEventArgs(e.BarSize, this));
			}
		}
示例#5
0
 private void marketDataProvider_NewBarSlice(object sender, BarSliceEventArgs args)
 {
     foreach (StrategyRunner strategyRunner in this.strategies.Values)
     {
         if (strategyRunner.Enabled)
             strategyRunner.SetNewBarSlice(args.BarSize);
     }
 }
示例#6
0
 private void barFactory_NewBarSlice(object sender, BarSliceEventArgs args)
 {
   this.EmitBarSlice(args.BarSize);
 }