Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Removing serialized values

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

    Removing serialized values

    I started with an indicator (RwbMA) and wanted to modify it for my purposes.

    In it, there are 3 types I wanted to comment out: KAMA, T3, VMA and the associated properties (AMA_Properties, all of them). I commented out the types and the properties, and the properties functions.

    However, the script won't compile because the "NinjaScript generated code. Neither change nor remove." has refernces to "KamaFast" in it. Since this is commented out, it fails.

    How do I get around this?
    Last edited by TiggerTrader; 11-01-2012, 01:26 PM.

    #2
    Hello TiggerTrader,

    I am not familiar with the RwbMA indicator, but is there a Reference that KAMA or KamaFast that is still be used?

    Also could, you take a screenshot of the error and post it?
    http://take-a-screenshot.org/

    Happy to be of further assistance.
    JCNinjaTrader Customer Service

    Comment


      #3
      I have commented it all out of my code, it IS in the NT genreated stuff still.
      Attached Files

      Comment


        #4
        This is frustrating also because I cannot work on ANYTHING ELSE while this error exists! Why can't I work on and compile a strategy that I'm working on? Grrrrrrr!

        Please help soon!

        Comment


          #5
          Hello TiggerTrader,

          Thanks for the screenshot.

          By the error there still is a reference to KamaFast, by the looks of where the code is at in the Previous Indicator had KamaFast a User Defined parameter so it is looking for KamaFast as a parameter.

          You may use the Find/Replace window to find the instances of KamaFast by holding down the Ctrl + 'F' key.
          JCNinjaTrader Customer Service

          Comment


            #6
            Yes, I've already done that. I know how to find replace. As I've stated earlier, "I have commented it all out of my code, it IS in the NT genreated stuff still." So how do I remove it from there?

            Attached it the code
            Attached Files

            Comment


              #7
              Hello TiggerTrader,

              Thanks for the file, and the clarification.

              Unfortunately, you will be unable to remove the code from that section as it will be regenerated by NinjaTrader.

              You may try to edit the file externally (i.e with Notepad or something like that) while you have a different NinjaScript file open in NinjaTrader and Compile.

              Alternatively, you can keep the variable declarations but not use the Indicator themselves.
              JCNinjaTrader Customer Service

              Comment


                #8
                OK thanks, that got me past the hump. I will create a new one from scratch later.

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                0 responses
                589 views
                0 likes
                Last Post Geovanny Suaza  
                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                0 responses
                342 views
                1 like
                Last Post Geovanny Suaza  
                Started by Mindset, 02-09-2026, 11:44 AM
                0 responses
                103 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                0 responses
                555 views
                1 like
                Last Post Geovanny Suaza  
                Started by RFrosty, 01-28-2026, 06:49 PM
                0 responses
                552 views
                1 like
                Last Post RFrosty
                by RFrosty
                 
                Working...
                X