Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Split Order: Scalp and Runner

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

    Split Order: Scalp and Runner

    Hey!

    I'm trying to emulate a split order as I can set up an an ATM strategy. Can you let me know what's wrong with this code? It seems to only place one order when triggered.

    Thanks



    Code:
    if ((Position.MarketPosition == MarketPosition.Flat)
    && (Conditions == true))
    
    {
    
    SetProfitTarget(@"scalp", CalculationMode.Ticks, 7);
    SetStopLoss(@"scalp", CalculationMode.Ticks, 18, false);
    EnterShortStopMarket(currentStopLong - (TickSize * 7), @"scalp");
    
    SetProfitTarget(@"runner", CalculationMode.Ticks, 28);
    SetStopLoss(@"runner", CalculationMode.Ticks, 24, false);
    EnterShortStopMarket(currentStopLong - (TickSize * 8), @"runner");
    
    }
    Last edited by coopgrafik; 07-07-2021, 06:02 PM.

    #2
    Hello coopgrafik,

    Thanks for your post.

    I suspect that your entries per direction are set to a value of 1 with your entry handling set to "AllEntries", these are the strategy default settings and would allow for 1 entry only, per direction.

    As you are using signal names, all you need to do is set the "Entry Handling to "UniquesEntries". (The signal names differentiate the entries making them unique so both entries would be made).

    You can set this in the strategy itself or you can set this when you apply the strategy in the strategy parameters.

    Reference: https://ninjatrader.com/support/help...ryhandling.htm

    Comment


      #3
      Thanks Paul. That worked like a charm!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by NullPointStrategies, Yesterday, 05:17 AM
      0 responses
      61 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      134 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      75 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      45 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      50 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X