Support Board
Date/Time: Mon, 03 Feb 2025 02:19:33 +0000
Post From: Stop orders in opposite directions flashing
[2019-10-16 07:59:04] |
User558609 - Posts: 3 |
Hello, I am trying to create an ACSIL system that will send at the same time a long stop and a short stop order, each one at a distance from the current price and with their own child orders. The system is working well and no errors appear in the Trade Service log, but the orders are flashing. It seems both can't be open at the same time, so with each tick one cancels and the other one is issued. The programming is straightforward so I am wondering if there is some setting that could be causing this. My initial setup of sc variables is like this: sc.AllowMultipleEntriesInSameDirection = true; sc.AllowOppositeEntryWithOpposingPositionOrOrders = true; sc.AllowEntryWithWorkingOrders = true; sc.AllowOnlyOneTradePerBar = false; sc.CancelAllOrdersOnEntriesAndReversals = false; sc.CancelAllOrdersOnReversals = false; sc.CancelAllWorkingOrdersOnExit = false; sc.MaximumPositionAllowed = 100; sc.MaintainTradeStatisticsAndTradesData = true; sc.ReceiveNotificationsForChangesToOrdersPositionsForAnySymbol = true; sc.SupportReversals = true; sc.SupportAttachedOrdersForTrading = false; Attached orders are defined anyway, so that's why I think I can leave sc.SupportAttachedOrdersForTrading = false;
Thanks in advance. Jesús |