Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

RSI condition

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

    RSI condition

    Hello, I wanted to ask that how do I put a condition that is, RSI has been less than 45 in the last 5 bars
    In the StrategyBuilder

    #2
    Hello pedro132,

    Thanks for your post.

    In the conditions builder, you would need to create 5 lines where you check that the RSI is less than 45 for bars ago 0, bars ago 1, bars ago 2, bars ago 3, bars ago 4.

    Here is an example:

    Click image for larger version

Name:	pedro132-1.PNG
Views:	652
Size:	66.7 KB
ID:	1183371

    Please note that in the RSI indicator, you need to select the Value plot of RSI as the default is the Avg line.

    In case you have not reviewed the strategy builder references:
    Free live webinar every other Thursday at 4:00 PM EST, through this link to all webinars: https://ninjatrader.com/PlatformTraining
    Previous recording of the Strategy Builder 301 webinar: https://youtu.be/HCyt90GAs9k?list=PL...auWXkWe0Nf&t=2
    Help guide for the strategy builder: https://ninjatrader.com/support/help...gy_builder.htm
    Tutorial using the Strategy Builder (Titled "Creating the Strategy by the Wizard): https://ninjatrader.com/support/help..._cross_ove.htm

    Comment


      #3
      But I mean that if it has been less than 45 at some time, not in the last 5, in plan if it was 4 bars ago it was RSI = 44, but it went up, there it is good

      Comment


        #4
        Hello pedro132,

        Thanks for your reply.

        I'm not sure I understand your reply.

        In your initial post, you asked a specific question and my reply addressed that specific question. RSI is less than 45 for the last 5 bars.

        If my initial reply does not answer the question you have, please clarify what you need.

        If it helps, please post a screenshot that illustrates the chart conditions you wish to use in the Strategy Builder.

        Comment


          #5
          My strategy is based on MACD and RSI, there for example MACD crosses up and RSI has been less than 45 in some of the last 5 bars, there I would have bought, not in all the last 5 bars

          Comment


            #6
            Hello pedro132,

            Thanks for your reply.

            if I understand correctly now you are saying that you don't care if the RSI is less than 45 for the last 5 bars.

            You will have to decide for yourself what the minimum requirements need to be for your conditions to enter a trade.

            Comment


              #7
              No, I mean that if RSI has been less than 45 in any of the last 5 bars, if it has not been less than 45 in none, do not buy

              Comment


                #8
                Hello pedro132,

                Thanks for your reply.

                What you can do then is to use the Indicator MIN which returned the minimum value of its input over a specified period. In this case, you want to look to see if the minimum of the RSI has been less than 45 in any of the last 5 bars, if I am understanding correctly.

                Here is a screenshot of what that would look like where the yellow rectangles show the selections made in the condition builder.


                Click image for larger version

Name:	pedro132-2.PNG
Views:	534
Size:	60.0 KB
ID:	1183421

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Mindset, 04-21-2026, 06:46 AM
                0 responses
                88 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Started by M4ndoo, 04-20-2026, 05:21 PM
                0 responses
                135 views
                0 likes
                Last Post M4ndoo
                by M4ndoo
                 
                Started by M4ndoo, 04-19-2026, 05:54 PM
                0 responses
                68 views
                0 likes
                Last Post M4ndoo
                by M4ndoo
                 
                Started by cmoran13, 04-16-2026, 01:02 PM
                0 responses
                119 views
                0 likes
                Last Post cmoran13  
                Started by PaulMohn, 04-10-2026, 11:11 AM
                0 responses
                69 views
                0 likes
                Last Post PaulMohn  
                Working...
                X