示例#1
0
文件: Stop.cs 项目: heber/FreeOQ
    private void mSa6vRBe3Z(ReminderEventArgs obj0)
    {
      this.fStopPrice = this.fInstrument.Price();
      this.Lk960PQCI8(StopStatus.Executed);
			this.Udd6EeE9v6.ClosePosition(this.fInstrument, this.fStopPrice, ComponentType.Stop, "");
    }
示例#2
0
		private void nAMLprxZKC(ReminderEventArgs obj0)
		{
			SortedList sortedList = new SortedList();
			lock (this)
			{
				foreach (DictionaryEntry item_1 in new Hashtable(this.A3ELH6L4QJ))
				{
					IFIXInstrument local_2 = (IFIXInstrument)item_1.Key;
					Hashtable local_3 = (Hashtable)item_1.Value;
					SortedList local_4 = local_3[BarType.Time] as SortedList;
					if (local_4 != null)
					{
						foreach (DictionaryEntry item_0 in new SortedList(local_4))
						{
							long local_6 = (long)item_0.Key;
							Bar local_7 = (Bar)item_0.Value;
							if (local_7.BeginTime.AddSeconds(local_6) == obj0.SignalTime)
							{
								local_7.EndTime = obj0.SignalTime;
								ArrayList local_8 = sortedList[local_6] as ArrayList;
								if (local_8 == null)
								{
									local_8 = new ArrayList();
									sortedList.Add(local_6, local_8);
								}
								local_8.Add(new KeyValuePair<IFIXInstrument, Bar>(local_2, local_7));
								local_4.Remove(local_6);
							}
						}
						if (local_4.Count == 0)
							local_3.Remove(BarType.Time);
						if (local_3.Count == 0)
							this.A3ELH6L4QJ.Remove(local_2);
					}
				}
			}
			foreach (DictionaryEntry dictionaryEntry in sortedList)
			{
				long num = (long)dictionaryEntry.Key;
				foreach (KeyValuePair<IFIXInstrument, Bar> keyValuePair in (ArrayList) dictionaryEntry.Value)
					this.EmitNewBar(keyValuePair.Value, keyValuePair.Key);
				this.EmitNewBarSlice(num);
			}
			this.NJNLAPvWPO.Remove(obj0.SignalTime);
		}
示例#3
0
		private void xT1FyAqCPT(ReminderEventArgs obj0)
		{
			this.XNWFfvowtr();
		}
示例#4
0
文件: Strategy.cs 项目: heber/FreeOQ
 private void OnReminder(ReminderEventArgs args)
 {
   HashSet<object> hashSet;
   if (!this.timers.TryGetValue(args.SignalTime, out hashSet))
     return;
   this.timers.Remove(args.SignalTime);
   foreach (object data in hashSet)
     this.OnTimer(args.SignalTime, data);
 }
示例#5
0
		private void JKNyi7SDXu(ReminderEventArgs obj0)
		{
			lock (this)
			{
				try
				{
					DateTime local_0 = obj0.SignalTime;
					for (DateTime local_1 = Clock.Now; local_0 <= local_1; local_0 = this.AddInterval(local_0, this.timeInterval))
					{
						this.Cndy1I50JO(local_0);
						this.isNewData = false;
					}
					this.awaitTime = local_0;
					this.awaitHandler = new ReminderEventHandler(this.JKNyi7SDXu);
					Clock.AddReminder(this.awaitHandler, this.awaitTime, (object)null);
				}
				catch (Exception exception_0)
				{
					throw exception_0;
				}
			}
		}
示例#6
0
		private void AaPRYK2epA(ReminderEventArgs e) 
    {
      if (e.SignalTime > Clock.Now)
        return;
      this.FuNRz16ilo = this.ElNRan0isi.GetValue();
      this.sKmRoRmeN5.ClosePortfolio();
      if (this.RUQiAxBBaC)
        this.sKmRoRmeN5.IsActive = false;
      this.aH7RuF48ZR(StopStatus.Executed);
    }
示例#7
0
文件: Script.cs 项目: heber/FreeOQ
		private void OnReminder(ReminderEventArgs args)
		{
			this.OnTimer(args.SignalTime, args.Data);
		}
		private void gFqPLKYI6J(ReminderEventArgs e)
		{
			this.M9IPlabLYo(e.Data as OrderCancelReplaceRequest);
		}
		private void t99PErAC3Y(ReminderEventArgs e)
		{
			this.E3jPCDq9jY(e.Data as OrderCancelRequest);
		}
示例#10
0
		private void MxtPRD9hCH(ReminderEventArgs e)
		{
			this.lCXP6mCfhb(e.Data as NewOrderSingle);
		}