– Position.CancelClose() can cancel manually placed limit orders or close manually opened entries. Use it from UI (MZpack Control panel) to manage position without disabling of the strategy.
public void cancelCloseButton_Click(object sender, RoutedEventArgs e)
{
Strategy.Position.CancelClose("UI Cancel/Close", DateTime.Now);
(sender as Button).Content = getCancelCloseButtonText(); // Update button text
}
– MZpackStrategyBase.WorkingDataSeriesIdx is 0 (not a multi-timeframe strategy) by default
– Fix. Cancelling pending/working orders
– Fix. MZpackStrategyBase.GetCandle() method returns wrong candle metrics if ago value > 1