Login Page - Create Account

Support Board


Date/Time: Fri, 18 Apr 2025 04:40:39 +0000



Post From: [ACSIL] - Max allowed Position size question

[2025-03-29 16:40:26]
backinblack - Posts: 40
Thank you. I tried to submit the orders in loop. on reply, it opened the first 5 positions with SL and Targets as expected on the first loop invocation but it returned a -1 for the 2nd iteration. Got following message in the trade service log:

SellEntry | Bar start date-time: 2025-03-28 14:06:46.000 | SellEntry signal is ignored because working orders exist.

My settings in the code:


sc.AllowMultipleEntriesInSameDirection = true;
sc.MaximumPositionAllowed = 10;

sc.SupportReversals = false;

sc.AllowOppositeEntryWithOpposingPositionOrOrders = true;
sc.SupportAttachedOrdersForTrading = true;

sc.CancelAllOrdersOnEntriesAndReversals = true;
sc.AllowEntryWithWorkingOrders = false;
sc.CancelAllWorkingOrdersOnExit = true;

sc.AllowOnlyOneTradePerBar = false;

sc.MaintainTradeStatisticsAndTradesData = true;

sc.SupportTradingScaleIn = true;
sc.SupportTradingScaleOut = true;    



I tried to follow the below advice but 1) I am not sure I understand the settings fully 2) ramifications of these settings fully

BuyEntry signal is ignored because working orders exists


Thanks
Date Time Of Last Edit: 2025-03-29 16:46:12