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 NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    54 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    130 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    72 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    44 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    49 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X