From 379e2d3405f5f748260a2a1d9d4396541599bfe0 Mon Sep 17 00:00:00 2001 From: Martin-Molinero Date: Tue, 6 Feb 2024 16:08:24 -0300 Subject: [PATCH] Add optional PositionSide for TerminalLink (#7762) * Add optional PositionSide for TerminalLink * Minor rename --- Common/Orders/TerminalLinkOrderProperties.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Common/Orders/TerminalLinkOrderProperties.cs b/Common/Orders/TerminalLinkOrderProperties.cs index 083dd7b44586..0970bb16f893 100644 --- a/Common/Orders/TerminalLinkOrderProperties.cs +++ b/Common/Orders/TerminalLinkOrderProperties.cs @@ -76,9 +76,15 @@ public class TerminalLinkOrderProperties : OrderProperties public StrategyParameters Strategy { get; set; } /// - /// Whether to include the position side in the order direction (buy-to-open, sell-to-close, etc.) instead of the default (buy, sell) + /// Whether to automatically include the position side in the order direction (buy-to-open, sell-to-close, etc.) instead of the default (buy, sell) /// - public bool EnablePositionSide { get; set; } + public bool AutomaticPositionSides { get; set; } + + /// + /// Can optionally specify the position side in the order direction (buy-to-open, sell-to-close, etc.) instead of the default (buy, sell) + /// + /// Has precedence over + public OrderPosition? PositionSide { get; set; } /// /// Models an EMSX order strategy parameter