Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 bill2023, Yesterday, 08:51 AM
          8 responses
          43 views
          0 likes
          Last Post bill2023  
          Started by yertle, Today, 08:38 AM
          6 responses
          25 views
          0 likes
          Last Post ryjoga
          by ryjoga
           
          Started by algospoke, Yesterday, 06:40 PM
          2 responses
          24 views
          0 likes
          Last Post algospoke  
          Started by ghoul, Today, 06:02 PM
          3 responses
          16 views
          0 likes
          Last Post NinjaTrader_Manfred  
          Started by jeronymite, 04-12-2024, 04:26 PM
          3 responses
          46 views
          0 likes
          Last Post jeronymite  
          Working...
          X