public FirstOrderRunningManager(Order runningOrder, Order pendingOrder, HappyDayEA happyDayEA)
 {
     _runningOrder = runningOrder;
     _pendingOrder = pendingOrder;
     _ea = happyDayEA;
     _profitProtector = new ThreeLevelProfitProtector(_runningOrder);
 }
Beispiel #2
0
 public FirstOrderRunningManager(Order runningOrder, Order pendingOrder, HappyDayEA happyDayEA)
 {
     _runningOrder = runningOrder;
     _pendingOrder = pendingOrder;
     _ea = happyDayEA;
     _profitProtector = new ThreeLevelProfitProtector(_runningOrder);
 }
 public SecondOrderRunningManager(Order runningOrder, HappyDayEA happyDayEA)
 {
     _runningOrder    = runningOrder;
     _ea              = happyDayEA;
     _profitProtector = new ThreeLevelProfitProtector(_runningOrder);
 }
 public OrderRunningManager(PinBarEA pinBarEA, Order order)
 {
     _ea              = pinBarEA;
     _order           = order;
     _profitProtector = new ThreeLevelProfitProtector(order);
 }
Beispiel #5
0
 public SecondOrderPendingManager(Order pendingOrder, HappyDayEA happyDayEA)
 {
     _pendingOrder    = pendingOrder;
     _ea              = happyDayEA;
     _profitProtector = new ThreeLevelProfitProtector(pendingOrder);
 }
 public SecondOrderRunningManager(Order runningOrder, HappyDayEA happyDayEA)
 {
     _runningOrder = runningOrder;
     _ea = happyDayEA;
     _profitProtector = new ThreeLevelProfitProtector(_runningOrder);
 }
 public OrderAlreadyRunning(OrderWatcher orderManager, Order order, IProfitProtector trailing)
 {
     this.orderManager = orderManager;
     this.order = order;
     this.trailing = trailing;
 }
Beispiel #8
0
        // we should use event based for this
        internal void OrderRunning(Order order, IProfitProtector trailing)
        {
            ResetExpiracy();

            state = new OrderAlreadyRunning(this, order, trailing);
        }
Beispiel #9
0
        // we should use event based for this
        internal void OrderRunning(Order order, IProfitProtector trailing)
        {
            ResetExpiracy();

            state = new OrderAlreadyRunning(this, order, trailing);
        }
Beispiel #10
0
 public OrderAlreadyRunning(OrderWatcher orderManager, Order order, IProfitProtector trailing)
 {
     this.orderManager = orderManager;
     this.order        = order;
     this.trailing     = trailing;
 }
 public SecondOrderPendingManager(Order pendingOrder, HappyDayEA happyDayEA)
 {
     _pendingOrder = pendingOrder;
     _ea = happyDayEA;
     _profitProtector = new ThreeLevelProfitProtector(pendingOrder);
 }
 public OrderRunningManager(PinBarEA pinBarEA, Order order)
 {
     _ea = pinBarEA;
     _order = order;
     _profitProtector = new ThreeLevelProfitProtector(order);
 }