• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

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 bosajin, Yesterday, 06:27 PM
            1 response
            7 views
            0 likes
            Last Post NinjaTrader_Jim  
            Started by stefanrvc, Today, 04:59 AM
            1 response
            14 views
            0 likes
            Last Post NinjaTrader_Marco  
            Started by 7robert, Yesterday, 08:30 PM
            2 responses
            16 views
            0 likes
            Last Post NinjaTrader_Marco  
            Started by pjsmith, Today, 01:13 AM
            1 response
            16 views
            0 likes
            Last Post NinjaTrader_ChrisSch  
            Started by yukashg, Yesterday, 09:56 PM
            1 response
            16 views
            0 likes
            Last Post NinjaTrader_ChrisSch  
            Working...
            X