Announcement

Collapse
No announcement yet.

RSI with 2 Upper bands and 2 Lower bands. How to?

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

  • RSI with 2 Upper bands and 2 Lower bands. How to?

    I want to put one upper band of 80 and one lower band of 30 on RSI (14,C). That's easy...
    But I want to add 2 MORE bands: One upper at 65 and one lower at 40. That's difficult...for me

    How to do this?

    Thank you in advance

  • #2
    Hi,

    What you want to do it create an EFS to display the two other bars you want on the RSI. Here is a modified example from Alexis' original.

    You can open the EFS editor from the file menu and enter the following. Once you save it you just need to load it onto the chart and you will have to two other bars at 65 and 40.



    /************************************************** *******
    By Alexis C. Montenegro for eSignal © December 2004
    Use and/or modify this code freely. If you redistribute it
    please include this and/or any other comment blocks and a
    description of any changes you make.
    ************************************************** ********/

    function preMain() {

    setPriceStudy(false);
    setStudyTitle("RSI");
    setCursorLabelName("RSI", 0);
    setDefaultBarFgColor(Color.blue, 0);
    setPlotType(PLOTTYPE_LINE,0);
    setDefaultBarThickness(1,0);
    setStudyMin(0);
    setStudyMax(100);
    addBand(65,PS_SOLID,1,Color.black,"Upper1");
    addBand(80,PS_SOLID,1,Color.black,"Upper2");
    addBand(40,PS_SOLID,1,Color.black,"Lower1");
    addBand(30,PS_SOLID,1,Color.black,"Lower2");
    }

    function main() {

    return rsi(14);
    }
    Last edited by MitchellB; 09-01-2008, 11:01 PM.

    Comment


    • #3
      Great!

      Thank you

      Comment

      Working...
      X