Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

RSI Upper/Lower Lines

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

    RSI Upper/Lower Lines

    I'm trying to create a condition where the RSI crosses above the upper line in Strategy Builder. However, when I select the RSI indicator, those plots are not listed. How do I add those plots so that I can create this condition? Thank you.

    #2
    Hi Fran888

    You just have to create a condition (in Strategy Builder) checking when RSI > 70 or RSI < 30.
    You don't need a specific plot for that, although the RSI indicator graph on a chart usually has those levels as horizontal lines.
    The first condition is believed to represent "overbought" price levels, while the second one represents "oversold" levels.

    Comment


      #3
      Thanks. I tried that but it didn't work. The strategy would not compile.

      Comment


        #4
        Fran888,
        you just have to press "add" to a Strategy Builder Set.
        Then, in the dialog shown, chose from the left panel: --> Indicators --> RSI and from the right panel: --> Misc --> Numerical Value ---> 70
        In the center of the dialog you can chose: greater, less, etc.

        Comment


          #5
          Yes, that's exactly what I did and it did not work. Would not compile.

          Comment


            #6
            Fran888, you can upload screenshots of your Strategy Sets, so I would try to provide more help.

            Comment


              #7
              Here's the screenshot. Thanks for helping.
              Attached Files

              Comment


                #8
                Hello Fran888,

                From the image that appears that is valid, I just tried what KonstantinosNT suggested in post 4 and that compiles for me. A condition to check this indicator needs the Misc -> Numeric value which it looks like you selected based on the string generated in the image.

                Please try closing that builder window and open a new one, then try just the condition again. It should be:

                Left: Indicators -> Rsi
                Center: Greater
                Right: Misc -> numeric value -> 60

                Comment


                  #9
                  I've tried several times - closed the strategy and rewrote it. Still doesn't work. I changed the condition to "cross above" to see if that would work - would not compile. See attached.
                  Thanks for the help.
                  Attached Files

                  Comment


                    #10
                    Is there any way to know what the error is?

                    Comment


                      #11
                      Hello Fran888,

                      In the image you have some kind of problem in that condition. Please try doing the following exactly as described, do not change any other settings.


                      Left: Indicators -> Rsi // don't change anything here just select RSI
                      Center: Greater
                      Right: Misc -> numeric value -> 60

                      For this you should see:
                      RSI(14, 3).Avg[0] > 60


                      For a crossabove:

                      Left: Indicators -> Rsi // don't change anything here just select RSI
                      Center: CrossAbove
                      Right: Misc -> numeric value -> 60

                      For this you should see: ​
                      CrossAbove(RSI(Close, 14, 3).Avg, 60, 1)

                      Both of these compile for me ​

                      Comment


                        #12
                        That worked. However, I want to use "user input" to change the values of the RSI. I labeled it "RSI1" in the Inputs and Variable section. When I removed it from Inputs and Variables, then it would compile. Not sure why it won't accept the user input. I do that all the time when creating strategies. Any ideas?

                        Comment


                          #13
                          I just figured out what the problem is - there are two inputs for the RSI indicator - the AVG and the SMOOTH. I failed to change Smooth to the user input label. Just fixed it. Stupid me.
                          Thanks for the help!!

                          Comment


                            #14
                            Hello Fran888,

                            For user inputs you want to make sure to name them something other than the indicators name, RSI1 is specifically going to be used because you used an RSI indicator and that will be its variable name in code. That's what was generating the error because it was a naming conflict.

                            Comment


                              #15
                              Thank you so much for the help. I corrected everything and working fine now.

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by NullPointStrategies, Yesterday, 05:17 AM
                              0 responses
                              56 views
                              0 likes
                              Last Post NullPointStrategies  
                              Started by argusthome, 03-08-2026, 10:06 AM
                              0 responses
                              133 views
                              0 likes
                              Last Post argusthome  
                              Started by NabilKhattabi, 03-06-2026, 11:18 AM
                              0 responses
                              73 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
                              49 views
                              0 likes
                              Last Post TheRealMorford  
                              Working...
                              X