Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

indicator syntax help

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

    indicator syntax help

    I'm very new to Ninja and am having problems creating an indicator. I have used the indicator wizard along with some copying / pasting from other indicators to create bollinger bands around rsi.

    In the "On bar update" section I am getting an error stating that the line is a property, but is being used as a method.

    I attached a text file (RelativeRSI.txt) of the code. Anyone who can shed some light on the subject would be greatly appreciated.

    Thanks,

    Safetrading
    Attached Files

    #2
    After a quick glance, you likely want to rename the RSI property since this is an internal class name for the RSI indicator.
    RayNinjaTrader Customer Service

    Comment


      #3
      Thanks a bunch! As soon as you mentioned it the light went on! That did the trick for that. Just one other question, probably easier than the last one, but I don't see it yet.

      I uploaded the revised code for the indicator. It now displays the upper & middle band, but the lower band displays at the same elevation as the middle band. I preceeded the standard deviation number with a minus sign, but that didn't do the trick. What did I miss?

      By the way, thanks for taking the time to respond. You saved me hours of scratching my head.

      Safetrading

      Originally posted by NinjaTrader_Ray View Post
      After a quick glance, you likely want to rename the RSI property since this is an internal class name for the RSI indicator.
      Attached Files

      Comment


        #4
        You will have to debug this one.
        RayNinjaTrader Customer Service

        Comment


          #5
          No problem. Thanks for your earlier assistance and have a great day.

          Originally posted by NinjaTrader_Ray View Post
          You will have to debug this one.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by cmoran13, 04-16-2026, 01:02 PM
          0 responses
          43 views
          0 likes
          Last Post cmoran13  
          Started by PaulMohn, 04-10-2026, 11:11 AM
          0 responses
          25 views
          0 likes
          Last Post PaulMohn  
          Started by CarlTrading, 03-31-2026, 09:41 PM
          1 response
          163 views
          1 like
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 04-01-2026, 02:41 AM
          0 responses
          98 views
          1 like
          Last Post CarlTrading  
          Started by CaptainJack, 03-31-2026, 11:44 PM
          0 responses
          158 views
          2 likes
          Last Post CaptainJack  
          Working...
          X