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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    90 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    137 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    120 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    71 views
    0 likes
    Last Post PaulMohn  
    Working...
    X