Login Page - Create Account

Support Board


Date/Time: Fri, 14 Mar 2025 14:20:25 +0000



Post From: Entry order submission failed. BuyEntry returned: -1

[2024-12-27 18:39:33]
User425576 - Posts: 16
@User431178,

I am not getting executions in sim mode either, this is why I asked the question. I did have it working in sim mode but now it has halted.

// Trade Management Settings
sc.AllowMultipleEntriesInSameDirection = false;
sc.MaximumPositionAllowed = 1; // Only one position at a time
sc.SupportReversals = true;

sc.SendOrdersToTradeService = false; // Use simulation system
sc.AllowOppositeEntryWithOpposingPositionOrOrders = false;
sc.SupportAttachedOrdersForTrading = true; // Enable attached orders

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

sc.MaintainTradeStatisticsAndTradesData = true;
return;

This is what I am using currently and I also uploaded the cpp file for any interested in taking a look.
attachmentHMACross_2_1ChartTrader.cpp - Attached On 2024-12-27 18:37:39 UTC - Size: 17.51 KB - 89 views