public void OnTick() { if (_runningOrder.IsRunning && _runningOrder.IsOpen) { //_profitProtector.TryProtectProfit(); } else { _ea.OrderCompleted(); } }
public void OnNewYorkClose() { DeletePreviousMagicBox(); _ea.OrderCompleted(); //_ea.CreatedMagicBoxFromPreviousCandle(); //_ea.ChangeStateToBoxAlreadyCreated(); }
public void OnNewYorkClose() { _runningOrder.Close(); _pendingOrder.Close(); _ea.OrderCompleted(); //CloseRunningOrder(); //_ea.CreatedMagicBoxFromPreviousCandle(); //_ea.ChangeStateToBoxAlreadyCreated(); }
public void OnNewYorkClose() { CloseRunningOrder(); _ea.OrderCompleted(); }