Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

i need help

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

    i need help

    Hi .....

    Sorry if my English Language is't good .

    How i can add 2 Lines values 40 & 60 to RSI in the ninjatraderScript editor ?

    Thanks

    #2
    Hello Legend,

    Thanks for your post.

    You could create a copy of the RSI indicator that comes default with NinjaTrader and then modify the copy of the script.

    To create a copy of the RSI indicator script, open a New > NinjaScript Editor window, open the Indicators folder, double-click on the RSI file, right-click in the code of the indicator, select 'Save as', name the copy of the script, and click OK. After making a copy of the script, you could modify the copy to include two lines with a value of 40 and a value of 60.

    The AddLine() method could be used in OnStateChange() when the State == State.SetDefaults to add two lines to the copy of the RSI indicator.

    See this help guide page for more information about the AddLine() method and sample code.

    AddLine(): https://ninjatrader.com/support/help...t8/addline.htm
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment


      #3
      Originally posted by NinjaTrader_BrandonH View Post
      Hello Legend,

      Thanks for your post.

      You could create a copy of the RSI indicator that comes default with NinjaTrader and then modify the copy of the script.

      To create a copy of the RSI indicator script, open a New > NinjaScript Editor window, open the Indicators folder, double-click on the RSI file, right-click in the code of the indicator, select 'Save as', name the copy of the script, and click OK. After making a copy of the script, you could modify the copy to include two lines with a value of 40 and a value of 60.

      The AddLine() method could be used in OnStateChange() when the State == State.SetDefaults to add two lines to the copy of the RSI indicator.

      See this help guide page for more information about the AddLine() method and sample code.

      AddLine(): https://ninjatrader.com/support/help...t8/addline.htm
      Thanks for you ..... done

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      651 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      370 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      109 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      574 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      577 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X