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 DannyP96, 05-18-2026, 02:38 PM
        1 response
        27 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        117 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        69 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        226 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        415 views
        0 likes
        Last Post CaptainJack  
        Working...
        X