Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy - RSI - Change lines

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

    Strategy - RSI - Change lines

    Hi,

    I'm working on a strategy to use RSI and I want to change the lines from 30-70 to 40-60.


    myRSI = RSI(14,3);

    myRSI.Lower? ??
    myRSI.Upper??

    I can't seem to find the way to change the default 30/70 lower/upper lines.



    How can i achieve this in code?



    #2
    Hello priceisking,

    Thanks for your post.

    If you are wanting to display the RSI when loading the strategy you would need to use AddChartIndicator(). Reference: https://ninjatrader.com/support/help...tindicator.htm

    For the purposes of display, you can change the upper and lower lines by changing the value of the lines, for example:

    myRSI.Lines[0].Value = 40; // Lines[0] is the first added line in the RSI and would be the lower line
    myRSI.Lines[1].Value = 80; // Lines[1] is the second added line in the RSI and would be the upper line.

    If you are wanting to determine when the RSI crosses a line/value , you need only specify a numeric value so modifying a line is not needed for this internal calculation.

    Comment


      #3
      Thank you Paul. This helped solve what I was looking for!!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by NullPointStrategies, Today, 05:17 AM
      0 responses
      51 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      127 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      69 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      42 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      46 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X