Support Board
Date/Time: Mon, 12 May 2025 21:29:07 +0000
Post From: AutoTradeManagement question
[2014-12-14 18:27:24] |
onnb - Posts: 663 |
yes, meant flatten existing position. In replacy, I see that I am short one contract. I call BuyEntry with qty 1. I am now long one. In the trade activity log I can see that when the BuyEntry is submitted 1. OCO's are canceled 2. 1 buy market order is filled 3. New Limit order is placed to go long Using the settings below, does that make sense? sc.AllowMultipleEntriesInSameDirection = 0; sc.SupportReversals = 0; sc.AllowOnlyOneTradePerBar = 1; sc.SupportAttachedOrdersForTrading = 0; sc.AllowEntryWithWorkingOrders = 0; sc.MaintainTradeStatisticsAndTradesData = 1; sc.SendOrdersToTradeService = !sc.GlobalTradeSimulationIsOn; sc.CancelAllOrdersOnEntriesAndReversals = 1; sc.AllowOppositeEntryWithOpposingPositionOrOrders = 1; (btw, the settings above run outside the set defaults block (not sure if that makes a difference or not) |