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 charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      46 views
      0 likes
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      141 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      160 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 05-10-2026, 08:12 PM
      0 responses
      96 views
      0 likes
      Last Post CarlTrading  
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      275 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Working...
      X