Support Board
Date/Time: Sat, 22 Feb 2025 09:11:32 +0000
Post From: ASCIL strategy trades will not reverse positions
[2020-12-19 17:15:18] |
User566913 - Posts: 39 |
This is my current set up for trade parameters: .... /*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++* /* Trade Parameters */ /*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ sc.AllowMultipleEntriesInSameDirection = false; sc.MaximumPositionAllowed = 25; sc.SupportReversals = true; // This is false by default. Orders will go to the simulation system always. sc.SendOrdersToTradeService = false; sc.AllowOppositeEntryWithOpposingPositionOrOrders = false; // This can be false in this function because we specify Attached Orders directly with the order which causes this to be considered true when submitting an order. //sc.SupportAttachedOrdersForTrading = false; sc.CancelAllOrdersOnEntriesAndReversals= true; sc.AllowEntryWithWorkingOrders = true; sc.CancelAllWorkingOrdersOnExit = true; // Only 1 trade for each Order Action type is allowed per bar. sc.AllowOnlyOneTradePerBar = false; //This needs to be set to true when a trading study uses trading functions. sc.MaintainTradeStatisticsAndTradesData = true; .... I've been trying to solve this a long time. Thanks for your time and help... |