Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Calculating RSI

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

    Calculating RSI

    I have a python script and I have an RSI configured. It works but the RSI values do not match the Ninja Trader chart and they differ greatly at times. I'm pulling in live data with NinjaTrader.Client.dll. I think because the data is coming in per tick, this may be the reason but I'm not sure. I used the source code from NinjaTrader for the RSI. I've tried back filling for a period with my historical data, changing look back periods, collecting data for 1 minute before updating, and nothing gets me close to the RSI. Has anyone experienced this?

    #2
    Hello Tony79,

    Thank you for your post.

    I recommend taking a look at the code for the RSI indicator in the NinjaScript Editor and comparing your Python code to that.

    Support for the API and external programming languages is limited from NinjaTrader Support. We are not able to assist with any code in an application external to NinjaTrader, however, this thread will remain open for any members of the community who may want to assist you with your Python script.

    Comment


      #3
      Thank you for your response. I used the same code from NinjaScript and converted it. I'm pretty sure it's because I'm receiving tick data. Hopefully, someone has experience with his.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      157 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Started by CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      307 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      244 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      346 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      176 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Working...
      X