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

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 lightsun47, Today, 03:51 PM
                0 responses
                4 views
                0 likes
                Last Post lightsun47  
                Started by 00nevest, Today, 02:27 PM
                1 response
                8 views
                0 likes
                Last Post 00nevest  
                Started by futtrader, 04-21-2024, 01:50 AM
                4 responses
                44 views
                0 likes
                Last Post futtrader  
                Started by Option Whisperer, Today, 09:55 AM
                1 response
                13 views
                0 likes
                Last Post bltdavid  
                Started by port119, Today, 02:43 PM
                0 responses
                8 views
                0 likes
                Last Post port119
                by port119
                 
                Working...
                X