Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Problem with Entries per direction

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

    Problem with Entries per direction

    Hi
    Before backtesting a very simple system I've set Entries per direction to "1" and Entry Handling to "AllEntries". Besides this, there is only one Entry rule "EnterShortLimit". But sometimes there are 2 Short positions entered.
    How can this be possible?

    #2
    We will need to see exact code and exactly what you see on your end. Please provide a screenshot of the results. Thank you.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      I modified the code and could solve this problem, but don't know exactly why...

      But when I modify the order type to "EnterShortLimit" and add another order "EnterLongLimit" for long positions, only short positions are entered, no any long position.

      The complete code is attached.

      Please could you tell me, what's wrong with this code??
      Thank you in advance
      Attached Files

      Comment


        #4
        You're likely running into the Internal Order Handling Rules with the approach - http://www.ninjatrader-support.com/H...verview36.html

        I would suggest you add TraceOrders = true in the Initialize() and then open the output window while running your strategy to debug the order behavior you expierence.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        105 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        145 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        71 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        125 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        79 views
        0 likes
        Last Post PaulMohn  
        Working...
        X