Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Can't Create Multiple Orders in Strategy

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Can't Create Multiple Orders in Strategy

    I have a strategy that creates 3 orders when there is a trade signal. In SetDefaults, I have set UniqueEntries and I use a unique identifier in the EnterLong() functions. Code is below.

    EntriesPerDirection = 1;
    EntryHandling = EntryHandling.UniqueEntries;

    EnterLong("MA3L_A");
    SetStopLoss("MA3L_A", CalculationMode.Ticks, dPriorBarSize*.7, false);
    SetProfitTarget("MA3L_A", CalculationMode.Ticks, dPriorBarSize*.7);

    EnterLong("MA3L_B");
    SetStopLoss("MA3L_B", CalculationMode.Ticks, dPriorBarSize*1.2, false);
    SetProfitTarget("MA3L_B", CalculationMode.Ticks, dPriorBarSize*1.2);

    I am only getting a single order for MAS3L_A. The orders for MA3L_B never get executed.

    Is there something else I have to set? My strategy will have 3 different orders per signal.

    Thanks.

    #2
    Never mind, I figured it out. I'm running the strategy in the Strategy Analyzer and there's a separate property to set unique entries. I guess it ignores the code when testing in this mode. :-(

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    46 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    22 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    33 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    50 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    42 views
    0 likes
    Last Post CarlTrading  
    Working...
    X