Support Board
Date/Time: Tue, 11 Mar 2025 17:25:43 +0000
Post From: Issue with sc.BuyOrder/sc.SellOrder when opening orders on other accounts/symbol
[2022-04-22 15:24:28] |
User99735 - Posts: 234 |
When trying to scaleout from an existing position sc.BuyOrder/sc.SellOrder work fine if the position is on the chart symbol / sc.Symbol, and account is not sc.SelectedTradeAccount. However the scaleout fails if the position is not on chart symbol / sc.Symbol. The position is closed and and an opposite position opened. Trade log has the following message "Buy Entry reversal order processed. Flatten quantity: 4. New order quantity: 2" Other settings in sc.Default block are: sc.AllowEntryWithWorkingOrders = true; sc.AllowMultipleEntriesInSameDirection = true; sc.AllowOnlyOneTradePerBar = false; sc.AllowOppositeEntryWithOpposingPositionOrOrders = true; sc.CancelAllOrdersOnEntries = false; sc.CancelAllOrdersOnReversals = false; sc.CancelAllOrdersOnEntriesAndReversals = false; sc.CancelAllWorkingOrdersOnExit = false; sc.MaintainTradeStatisticsAndTradesData = true; sc.MaximumPositionAllowed = MAXINT; sc.ReceiveNotificationsForChangesToOrdersPositionsForAnySymbol = true; sc.UseGUIAttachedOrderSetting = false; sc.SupportAttachedOrdersForTrading = false; sc.SupportReversals = true; and outside the default block sc.SupportTradingScaleIn = true; sc.SupportTradingScaleOut = true; |