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 argusthome, 03-08-2026, 10:06 AM
      0 responses
      60 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      39 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      21 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      23 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      51 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X