Login Page - Create Account

Support Board


Date/Time: Wed, 08 May 2024 02:15:11 +0000



Post From: ACSIL study won't use Trade Window attached orders

[2023-03-10 18:57:29]
tecman240 - Posts: 15
Hi,
I'm creating an ACSIL study that creates a Stop-Limit entry order. The study will create the entry order, but I can't get it to include the attached orders defined in the Trade Window.
My study has the following set:

    sc.AllowOnlyOneTradePerBar = 1;
   sc.SupportAttachedOrdersForTrading = 1;
    sc.MaintainTradeStatisticsAndTradesData = true;
    sc.ReceivePointerEvents = ACS_RECEIVE_POINTER_EVENTS_WHEN_ACS_BUTTON_ENABLED;
    sc.AllowMultipleEntriesInSameDirection = true;
    sc.MaximumPositionAllowed = 3;

I've also tried setting sc.TradeWindowConfigFileName but that doesn't work either.
I must be missing something.
thanks,