Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Enter/Exit in Condition Builder

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

    Enter/Exit in Condition Builder

    Hello,

    I'm totally new to NinjaTrader and programming. I checked the threads, but my apologies if this question has been addressed a million times.

    How can I develop a strategy to Enter/Exit at the Open/Close (daily charts) using the Condition Builder? (I'm not quite to the point of writing code.)

    Thank you.

    #2
    Hello becky1,

    Welcome to the NinjaTrader forums!

    The timing of automated trading signals is based on bars and varies based on backtesting or real time conditions.

    In backtesting or when calculate on bar close is true: When the condition evaluates true, orders are submitted on the next bar following.

    In real time when calculate on bar close is false: Conditions are evaluated with every incoming tick, and orders are submitted immediately when the conditions are true.

    You can set exit on close to true, and all positions are closed at session close, defined by the session template selected.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Thanks Ryan -- So say I wanted to backtest a strategy whereby I Enter at the Open of the day after a condition is met (for ease of discussion, say the condition is something that will be met everyday, like price>0), and Exit at the Open of the following day, is there an easy way to do this using Condition Builder?

      Comment


        #4
        Yes, you don't have to specify a condition. You can evaluate the effect of order actions on a daily chart. Specify an entry order and exit order in the actions section in the strategy wizard, apply to chart to see how it works. Please see here for help defining actions in the strategy wizard:
        http://www.ninjatrader.com/support/h...gy_actions.htm

        On a daily chart this will have the effect of buying on the open and selling on the open of the next bar after the entry.
        Ryan M.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        647 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        367 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        108 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        571 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        573 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X