Exemplo n.º 1
0
 internal Order(SingleOrder order)
 {
     this.order      = order;
     this.instrument = (Map.SQ_OQ_Instrument[order.Instrument] as Instrument);
     this.ibEx       = new IBEx(order);
     if (order.Provider == null)
     {
         order.Provider     = Configuration.Active.ExecutionProvider;
         order.StrategyMode = ConfigurationModeConverter.ModeToChar(Configuration.ActiveMode);
     }
 }
Exemplo n.º 2
0
 internal Order(SingleOrder order)
 {
     this.order      = order;
     this.instrument = Map.FQ_OQ_Instrument[(object)order.Instrument] as Instrument;
     this.ibEx       = new IBEx(order);
     if (order.Provider != null)
     {
         return;
     }
     order.Provider     = Configuration.Active.ExecutionProvider;
     order.StrategyMode = ConfigurationModeConverter.ModeToChar(Configuration.ActiveMode);
 }
Exemplo n.º 3
0
		internal Order(SingleOrder order)
		{
			this.order = order;
			this.instrument = (Map.SQ_OQ_Instrument[order.Instrument] as Instrument);
			this.ibEx = new IBEx(order);
			if (order.Provider == null)
			{
				order.Provider = Configuration.Active.ExecutionProvider;
				order.StrategyMode = ConfigurationModeConverter.ModeToChar(Configuration.ActiveMode);
			}
		}
Exemplo n.º 4
0
		internal Order(SingleOrder order)
		{
			this.order = order;
			this.instrument = Map.FQ_OQ_Instrument[(object)order.Instrument] as Instrument;
			this.ibEx = new IBEx(order);
			if (order.Provider != null)
				return;
			order.Provider = Configuration.Active.ExecutionProvider;
			order.StrategyMode = ConfigurationModeConverter.ModeToChar(Configuration.ActiveMode);
		}
Exemplo n.º 5
0
 // mock has a constructor
 public Order()
 {
     IB = new IBEx();
 }
Exemplo n.º 6
0
 public Order() // mock has a constructor
 {
     IB = new IBEx();
 }