Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.
      Brandon H.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by AaronKoRn, Today, 09:49 PM
      0 responses
      6 views
      0 likes
      Last Post AaronKoRn  
      Started by carnitron, Today, 08:42 PM
      0 responses
      8 views
      0 likes
      Last Post carnitron  
      Started by strategist007, Today, 07:51 PM
      0 responses
      9 views
      0 likes
      Last Post strategist007  
      Started by StockTrader88, 03-06-2021, 08:58 AM
      44 responses
      3,975 views
      3 likes
      Last Post jhudas88  
      Started by rbeckmann05, Today, 06:48 PM
      0 responses
      9 views
      0 likes
      Last Post rbeckmann05  
      Working...
      X