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

Removed Properties Still Showing Up

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

    Removed Properties Still Showing Up

    I am in the process of developing an indicator. I have added and removed a few properties since I first compiled and tested the indicator on a chart. The problem is that the old properties are still showing up as indicator parameters when I add the new indicator to a chart. I assume they are being cached somewhere but can't find where that is.

    How do I do a total refresh on the indicator so that only the current properties in my .cs file show up?

    #2
    nedrob519,

    Thank you for your post.

    There is a section in the bottom of the indicator labeled "NinjaScript Generated Code". This is where the different methods are created for calling the class and also the properties.
    You would need to go through here and remove the old properties, however this is not supported programming with NinjaTrader.

    The other work around is to take the logic you have now and create a new Indicator and copy and paste that logic over.

    Out of curiosity, at the top of the class call for the indicator, is there a [Description()] syntax?

    Let me know if I can be of further assistance.
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      Yes, there is a description there:

      [Description("Plots the open, high, low, halfback and prior session high and low values from the session starting on the current day.")]
      public class aNedHalfBack : Indicator

      Could this be an issue? I did update it during compiles.

      I will also look at the ninja generated code as you suggested.

      Comment


        #4
        nedrob519,

        I was just making sure that was there.

        If that is missing it is known to cause some issues with the caching updates for the generated code portion and potentially run time errors.
        Cal H.NinjaTrader Customer Service

        Comment


          #5
          Could changing it also cause a problem?

          Comment


            #6
            nedrob519,

            I haven't run into that issue before.

            I wouldn't expect it to be the cause either.

            My suggestion would be to create a new indicator and transfer the logic over and re-compile the new one.

            The generated code can be played with but also easily corruptible when changing items in it
            Cal H.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by jaybedreamin, Today, 05:56 PM
            0 responses
            3 views
            0 likes
            Last Post jaybedreamin  
            Started by DJ888, 04-16-2024, 06:09 PM
            6 responses
            18 views
            0 likes
            Last Post DJ888
            by DJ888
             
            Started by Jon17, Today, 04:33 PM
            0 responses
            1 view
            0 likes
            Last Post Jon17
            by Jon17
             
            Started by Javierw.ok, Today, 04:12 PM
            0 responses
            6 views
            0 likes
            Last Post Javierw.ok  
            Started by timmbbo, Today, 08:59 AM
            2 responses
            10 views
            0 likes
            Last Post bltdavid  
            Working...
            X