Ejemplo n.º 1
0
 public override void CancelOrderNotification(IOrder cancelledOrder)
 {
     if (cancelledOrder.getOwner() == _agent)
     {
         MyTrajectory.add(TimeNow, _agent.NumBids);
     }
 }
Ejemplo n.º 2
0
 public override void PartialFilledOrderNotification(IOrder partialOrder, double price, int volume)
 {
     if (partialOrder.getOwner() == _agent)
     {
         MyTrajectory.add(TimeNow, _agent.NumBids);
     }
 }
Ejemplo n.º 3
0
 public override void NewOrderNotification(IOrder newOrder)
 {
     if (newOrder.getOwner() == _agent)
     {
         MyTrajectory.add(TimeNow, _agent.NumBids);
     }
 }
Ejemplo n.º 4
0
 public override void NewOrderNotification(IOrder newOrder)
 {
     if (Orderbook.isNonDegenerate())
     {
         MyTrajectory.add(TimeNow, Orderbook.getNumBids() + Orderbook.getNumAsks());
     }
 }
 public override void FilledOrderNotification(IOrder filledOrder, double price, int volume)
 {
     if (filledOrder.getOwner() == _agent)
     {
         MyTrajectory.add(TimeNow, _agent.GetMetricValue(_metricName));
     }
 }
 public override void CancelOrderNotification(IOrder cancelledOrder)
 {
     if (cancelledOrder.getOwner() == _agent)
     {
         MyTrajectory.add(TimeNow, _agent.GetMetricValue(_metricName));
     }
 }
Ejemplo n.º 7
0
        public override void SimulationEndNotification()
        {
            // Console.WriteLine("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX "+this+";  time now is: "+TimeNow);

            SingletonLogger.Instance().DebugLog(typeof(TrajectoryFactory_Price), "SimulationEndNotification");
            MyTrajectory.add(TimeNow, Orderbook.getNumBids());
        }
Ejemplo n.º 8
0
 public override void FilledOrderNotification(IOrder filledOrder, double price, int volume)
 {
     if (Orderbook.isNonDegenerate())
     {
         MyTrajectory.add(TimeNow, Orderbook.getNumBids() + Orderbook.getNumAsks());
     }
 }
Ejemplo n.º 9
0
 public override void CancelOrderNotification(IOrder cancelledOrder)
 {
     SingletonLogger.Instance().DebugLog(typeof(TrajectoryFactory_Price), "CancelOrderNotification");
     if (Orderbook.isNonDegenerate())
     {
         MyTrajectory.add(TimeNow, Orderbook.getNumBids());
     }
 }
Ejemplo n.º 10
0
 public override void PartialFilledOrderNotification(IOrder partialOrder, double price, int volume)
 {
     SingletonLogger.Instance().DebugLog(typeof(TrajectoryFactory_Price), "PartialFilledOrderNotification");
     if (Orderbook.isNonDegenerate())
     {
         MyTrajectory.add(TimeNow, Orderbook.getNumBids());
     }
 }
Ejemplo n.º 11
0
 public override void CancelOrderNotification(IOrder cancelledOrder)
 {
     if (Orderbook.isNonDegenerate())
     {
         if (Orderbook.getSpread() >= 0.0)
         {
             MyTrajectory.add(TimeNow, Orderbook.getSpread());
         }
     }
 }
Ejemplo n.º 12
0
 public override void FilledOrderNotification(IOrder filledOrder, double price, int volume)
 {
     if (Orderbook.isNonDegenerate())
     {
         if (Orderbook.getSpread() >= 0.0)
         {
             MyTrajectory.add(TimeNow, Orderbook.getSpread());
         }
     }
 }
        public override void FilledOrderNotification(IOrder filledOrder, double price, int volume)
        {
            if (Orderbook.getSpread() <= 0.0)
            {
                return;
            }

            SingletonLogger.Instance().DebugLog(typeof(TrajectoryFactory_Price), "FilledOrderNotification");
            if (Orderbook.isNonDegenerate() && MyTrajectory.ThresholdTimePassed(TimeNow))
            {
                MyTrajectory.add(TimeNow, GetPriceNormalizedAlphaSpread());
            }
        }
 public override void SimulationEndNotification()
 {
     SingletonLogger.Instance().DebugLog(typeof(TrajectoryFactory_Price), "SimulationEndNotification");
     MyTrajectory.add(TimeNow, GetPriceNormalizedAlphaSpread());
 }
Ejemplo n.º 15
0
 public override void SimulationEndNotification()
 {
     MyTrajectory.add(TimeNow, Orderbook.getSpread());
 }
Ejemplo n.º 16
0
 public override void SimulationEndNotification()
 {
     MyTrajectory.add(TimeNow, Orderbook.getNumBids() + Orderbook.getNumAsks());
 }
 public override void SimulationEndNotification()
 {
     MyTrajectory.add(TimeNow, (Orderbook.getMatcher().NumFillsSent + Orderbook.getMatcher().NumPartialFillsSent) / 2.0);
 }
 public override void PartialFilledOrderNotification(IOrder partialOrder, double price, int volume)
 {
     MyTrajectory.add(TimeNow, (Orderbook.getMatcher().NumFillsSent + Orderbook.getMatcher().NumPartialFillsSent) / 2.0);
 }
 public override void SimulationEndNotification()
 {
     MyTrajectory.add(TimeNow, _agent.NumAsks);
 }
 public override void SimulationEndNotification()
 {
     MyTrajectory.add(TimeNow, _agent.GetMetricValue(_metricName));
 }