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, 03-31-2026, 09:41 PM
      1 response
      47 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      23 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
      51 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