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 CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      63 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 05-10-2026, 08:12 PM
      0 responses
      35 views
      0 likes
      Last Post CarlTrading  
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      198 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Started by CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      364 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      283 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X