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:	628
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:	506
Size:	60.0 KB
ID:	1183421

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by NullPointStrategies, Yesterday, 05:17 AM
                0 responses
                65 views
                0 likes
                Last Post NullPointStrategies  
                Started by argusthome, 03-08-2026, 10:06 AM
                0 responses
                139 views
                0 likes
                Last Post argusthome  
                Started by NabilKhattabi, 03-06-2026, 11:18 AM
                0 responses
                75 views
                0 likes
                Last Post NabilKhattabi  
                Started by Deep42, 03-06-2026, 12:28 AM
                0 responses
                45 views
                0 likes
                Last Post Deep42
                by Deep42
                 
                Started by TheRealMorford, 03-05-2026, 06:15 PM
                0 responses
                50 views
                0 likes
                Last Post TheRealMorford  
                Working...
                X