Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by manueldecastro, Today, 01:16 PM
    3 responses
    11 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by tradingnasdaqprueba, Today, 03:42 AM
    9 responses
    35 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by llanqui, Yesterday, 03:51 PM
    6 responses
    27 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by AlgoDreamer, Today, 12:39 PM
    2 responses
    9 views
    0 likes
    Last Post AlgoDreamer  
    Started by ninza33, Today, 12:31 PM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_LuisH  
    Working...
    X