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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      156 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      90 views
      1 like
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      140 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      130 views
      1 like
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      107 views
      0 likes
      Last Post CarlTrading  
      Working...
      X