Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Builder - Previous bar crosses below an Input price

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

    Strategy Builder - Previous bar crosses below an Input price

    Hi ,
    I am trying to build a new Strategy, but could not find how to do it. would you please help.

    Condition:
    Previous bar crosses below an Input price and current bar closed less than the previous bar.

    #2
    if (Close[0] > Input_Price)
    --> Do the thing you like


    and

    if (Close[0] < Input_Price)
    -- > Do the thing you like.

    Comment


      #3
      Hello cincai,

      Thank you for your post.

      You can check for either a CrossAbove or CrossBelow condition with a user defined look back period in the Strategy Builder. The look back period sets the number of bars to look back to check for the cross over condition. When creating a condition you would use the middle drop-down menu in the Condition Builder to set the condition to CrossAbove or CrossBelow.

      Please review this help guide documentation about creating crossover conditions using the Strategy Builder - https://ninjatrader.com/support/help...sOverCondition

      User inputs are simply variables that can be used in place of absolute values. User variables (not to be confused with inputs) behave in the same manner with the exception that they can not be configured when starting a strategy but can only be set programmatically during run time. User variables would be set in the strategy logic through the Condition Builder.

      See this help guide documentation for more information about using user inputs and variables in the Condition Builder - https://ninjatrader.com/support/help...tsAndVariables

      Also, see out publicly available training video, Strategy Builder 301, for more information about using the Strategy Builder - https://www.youtube.com/watch?v=_KQF2Sv27oE&t=13s

      Let us know if we may assist further.
      <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      566 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      330 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      101 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      547 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      548 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X