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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      129 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      74 views
      1 like
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      117 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      111 views
      1 like
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      89 views
      0 likes
      Last Post CarlTrading  
      Working...
      X