Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

RSI above 70 or below 30 background

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

    RSI above 70 or below 30 background

    Hello, I'm looking for help on a simple Indicator with RSI.
    All I am looking for is for the RSI line to color the area above the upper level of 70 while its above the 70 line. And/or color the area below the lower level of 30 while below the 30.
    I haven't "coded" since NT7 years ago and I'm quite rusty. Here is what I have...

    //Add your custom indicator logic here.
    RSI1 = RSI(Close, 14, 3);
    }
    }
    Protected Override OnBarUpdate()
    {
    if (BarsInProgress != 0)
    return;

    if (CurrentBars[0] < 0)
    return;

    // Set 1
    if ((RSI1.Default[0] > (RSI1.Default[0] * 70) )
    || (RSI1.Default[0] < (RSI1.Default[0] * 30) ))
    {
    BackBrush = Brushes.Green;
    }

    }
    }
    }
    }
    }
    }


    #2
    Hello Joshua,
    Here you get it.
    SampleRSIbackground.zip

    Comment


      #3
      Thank you S. Kinra

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      581 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      338 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      103 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      554 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      552 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X