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 JonesJoker, 04-22-2024, 12:23 PM
      8 responses
      41 views
      0 likes
      Last Post JonesJoker  
      Started by timko, Today, 06:45 AM
      0 responses
      3 views
      0 likes
      Last Post timko
      by timko
       
      Started by Waxavi, 04-19-2024, 02:10 AM
      2 responses
      37 views
      0 likes
      Last Post poeds
      by poeds
       
      Started by chbruno, Yesterday, 04:10 PM
      1 response
      44 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by Max238, Today, 01:28 AM
      1 response
      25 views
      0 likes
      Last Post CactusMan  
      Working...
      X