public void OnTick()
 {
     if (_runningOrder.IsRunning && _runningOrder.IsOpen)
     {
         //_profitProtector.TryProtectProfit();
     }
     else
     {
         _ea.OrderCompleted();
     }
 }
Пример #2
0
 public void OnNewYorkClose()
 {
     DeletePreviousMagicBox();
     _ea.OrderCompleted();
     //_ea.CreatedMagicBoxFromPreviousCandle();
     //_ea.ChangeStateToBoxAlreadyCreated();
 }
Пример #3
0
 public void OnNewYorkClose()
 {
     _runningOrder.Close();
     _pendingOrder.Close();
     _ea.OrderCompleted();
     //CloseRunningOrder();
     //_ea.CreatedMagicBoxFromPreviousCandle();
     //_ea.ChangeStateToBoxAlreadyCreated();
 }
Пример #4
0
 public void OnNewYorkClose()
 {
     CloseRunningOrder();
     _ea.OrderCompleted();
 }