Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Order Entry Methods Not Working in Simple Strategy

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

    Order Entry Methods Not Working in Simple Strategy

    I'm at a loss here folks. I have tried to implement the most basic of Strategies via the NT Strategy Wizard, albeit unsuccessfully.

    I have been trying to use the NT Strategy Wizard to enter a very simple strategy. Essentially, what I want to do is submit an order to buy (using EnterLong()) when the previous bars high (High[1]) is exceeded by the current bar (Close[0]). I am also drawing a red diamond above the previous bars high when this happens. So, far I have been able to get all of the drawing tools to work, BUT I cannot for the life of me get an order to fire. So, the strategy is running and working, but the EnterLong() command is not working. Four hours into this I'm becoming exasperated.

    Help.

    #2
    Hello,

    I gave you a call on your original note and got you taken care of. We found that you had a strategy that ran on historical data and had a strategy position. Consequently you never coded in an exit strategy therefor the strategy never generated another entry signal and you never got another order. We also explained how the NinjaScript option Wait until flat before executing live worked.

    Let me know if I can be of further assistance.
    BrettNinjaTrader Product Management

    Comment


      #3
      Yes, Brett. You are correct.

      And thanks for your help. With the addition of the if (historical) return; code to the OnBarUpdarte(), my strategy is behaving well now. Thanks for your patience.

      Joe

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      633 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      364 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      105 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      567 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      568 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X