Announcement

Collapse
No announcement yet.

RSI Histogram

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

  • RSI Histogram

    I like to be able to create an RSI displayed as follows:

    1. as a Histogram
    2. based upon a 6 period
    3. and based upon the Highs
    4. and with a 0 base (bars above the base line)

    I'd also like to have the same thing done....
    based upon the Lows (but bars below the base line).

    If possible could I have one done with both in the same indicator with the highs above the base line and the lows below the base line (reversed).

    Any help would be appreciated.

    Bruce

  • #2
    Bruce
    Attached is the efs for the RSI based on the High. This is nothing else but one of the basic efs mentioned in this thread modified for the purpose.
    To do the one based on the Low open the efs with the Editor and simply change the default Source and set 100 as the base for the histogram
    Hope this helps
    Alex

    Attached Files

    Comment


    • #3
      Alex:

      Thanks for the file it worked great.

      But I have a few questions, if you don't mind.

      When I change the Low's to 100 the bars are backwards.....an 85 rsi is a little bar and a 25 rsi is a big bar. I assume this is because the base is now set at 100 and 85 is very close to 100...thus the little bar.

      Is there any way to get the bars back to normal size and still have them go downwards for the lows?

      I'd also like to combine the indicators so everything above 0 is rsi highs and below 0 is rsi lows.

      Thanks again.

      Bruce

      Comment


      • #4
        Bruce
        Yes with the base of the histogram being 100 the 85 is the short bar.
        The solution could be the attached efs where you multiply the RSI return by (-1). This way the -85 is the long bar.
        As to building the combined High/Low RSI I leave that fun to you. Essentially you have all the building blocks. All you need to do is to join them giving one RSI variable a name that is different from the other. You will also need to duplicate the plot commands in preMain() and the FunctionParameters or at the least create a new one for the Source of the second RSI if all the other parameters are going to be shared. Lastly you will need to set an array for the return of both RSIs.
        However it may end up being easier to create a study from scratch with the Formula Wizard and then just slightly modify that with the Editor.
        Alex
        Attached Files
        Last edited by ACM; 08-09-2003, 01:55 PM.

        Comment


        • #5
          Alex:

          Thanks again for your help.

          Bruce

          Comment


          • #6
            Alex:

            One last thing: is it possible to create more space between the Histogram biggest bar and the default (0 or 100)?

            i.e., if the Histogram is at 85 it seems to be all the way up in the indicator box....can I have some space lets say equal to where the 100 would be (so I can draw trend lines).

            or: just display from 0-100 and 100-0...like a normal RSI indicator

            Comment


            • #7
              Add these two lines and you should get better scaling

              addBand(100,PS_SOLID,1,Color.black,3);
              addBand(-100,PS_SOLID,1,Color.black,4);

              Comment


              • #8
                I would love to have a copy of the final .efs

                Thanking You in Advance

                Comment


                • #9
                  Here you go and thanks need to go to ALex and Dloomis.

                  Bruce

                  Comment


                  • #10
                    I don't think the file showed up.

                    Bruce

                    P.S. one attached
                    Attached Files

                    Comment


                    • #11
                      Here is the other one.

                      Bruce
                      Attached Files

                      Comment


                      • #12
                        Bruce
                        Here is the basicrsi(modified-high)3.efs slightly modified to provide you with more room in the indicator panel.
                        If you open the formula with Editor you will notice that in Line 17 I have un-commented setStudyMax(100) which will now force the panel to display up to 100.
                        In the next message I will also post the modified efs for the Lows.
                        Alex
                        Attached Files

                        Comment


                        • #13
                          Bruce
                          And here is the modified version of basicrsi(modified-low)3.efs.
                          Here I have applied a few more changes.
                          In Line 15 I have changed the setHistogramBase from 100 to 0 and in Line 16 I have un-commented setStudyMin and set it to -100 again to force the panel to display down to that value.
                          Also in Lines 36 and 40 I have changed setLowerLimit to setUpperLimit using 0 as the value.
                          Lastly in Lines 37 and 41 I have changed your values to a negative number.
                          I think this is what you were asking.
                          Alex
                          Attached Files

                          Comment


                          • #14
                            Bruce
                            With the changes applied to the two efs you can now create the single pane indicator you wanted without having to write one line of code.
                            Click and drag one of the indicators over the other while keeping the <Ctrl> key pressed. When you see a grey frame surrounding the target pane release the mouse button.
                            You should have the two indicators overlayed as in the image below.
                            Alex

                            Comment


                            • #15
                              Alex:

                              Thanks again.

                              But I think I messed up and sent the wrong files for the low.

                              The lows of the RSI should be going in the other direction.

                              I've attached a chart file.

                              I'll post the new RSI's files in the next post.

                              Bruce
                              Attached Files

                              Comment

                              Working...
                              X