Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Second action under same condition not working as intended

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

    Second action under same condition not working as intended

    I have some conditions to make a long position. Below that in the actions I have the first action set to "EnterLong(DefaultQuantity, @"long1")". This works as intended.

    When I enter a second action set to "EnterLong(DefaultQuantity, @"long2")" I expect this to open up two orders at the same time with different signal names but it doesnt.

    I have changed "Entried per direction" to 10. Tried both "entry handling" options of "all" or "unique" but this doesnt fix it.

    Am I misunderstanding this or doing something wrong? Im trying to open two contracts with same conditions and different take profits but can't get the second order to open wit the first.

    I attached a picture, only "Long1" shows up on the chart in the strat analyzer



    #2
    Hello steegee,

    From the image and other details I don't see what may be wrong. What you are trying to do is acceptable, that is how the sample scaling strategy in the help guide works: https://ninjatrader.com/support/help...a_position.htm

    For UniqueEntries that strategy uses two signal names and then the settings:
    EntriesPerDirection = 1;
    EntryHandling = EntryHandling.UniqueEntries;

    I would suggest to try to compile the strategy, close the analyzer and re open it and then test it again just to confirm that some old setting was not being used. You could additionally try the help guide sample to see if that somehow relates to the settings you used in the analyzer, applying the strategy to a chart would also be a good way to check it.

    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