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

Error Failed to call method Initialize for indicator MTF TickSize property ca

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

    Error Failed to call method Initialize for indicator MTF TickSize property ca

    Hi.
    Does anyone know why I am getting this error and what is the fix "Failed to call method 'Initialize' for indicator 'MTF': 'TickSize' property can't be accessed from within 'Initialize' method"

    Thanks
    Bill

    #2
    In order to get a reply, you need to post the Initialize() section of your indicator.

    As far as I know, the initialize section of the indicator is executed when NinjaTrader is compiled. At this stage no instrument or bars have been added. Therefore TickSize is not yet known. Depending on what your code in the Initialize section() you may need to shift parts of it to OnStartUp().

    Comment


      #3
      MTF.cs is not my indicator. no matter what indicator I use. It always gives me this error. Seem like NT problem..

      Comment


        #4
        It is not a NinjaTrader problem. The Initialize() section of all indicators is compiled with NinjaTrader, whether you apply them to a chart or not.

        You have a multitimeframe (MTF) indicator installed on your PC that causes the error message.

        You need to remove this indicator and the error will be gone.

        If you need further assistance, please post the error message.

        Comment


          #5
          Thanks Harry, here is the error message.
          Attached Files

          Comment


            #6
            Also I have rename the MTS.CS to MTS1.CS.old error still there.
            Attached Files

            Comment


              #7
              Originally posted by billsingh View Post
              Also I have rename the MTS.CS to MTS1.CS.old error still there.
              Renaming does not help. You need to delete or remove that indicator.

              Afterwards you need to recompile. Please open any indicator via Tools -> Edit NinjaScript -> Indicator and then recompile via F5. It is sufficient, if you do this with one indicator, as all indicators will be compiled at the same time.
              Last edited by Harry; 11-16-2014, 02:55 AM.

              Comment


                #8
                Thanks Harry. I deleted it and so far no errors. Thank you very much for resolving that problem. It was pretty frustrated.

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by popecapllc, 08-09-2023, 07:42 PM
                8 responses
                1,338 views
                0 likes
                Last Post Johng22
                by Johng22
                 
                Started by ETFVoyageur, 04-30-2024, 02:04 PM
                11 responses
                98 views
                0 likes
                Last Post ETFVoyageur  
                Started by bubblegum, 03-18-2024, 10:41 AM
                3 responses
                44 views
                0 likes
                Last Post vjsworld  
                Started by JamesK1, Today, 02:48 PM
                1 response
                12 views
                0 likes
                Last Post JamesK1
                by JamesK1
                 
                Started by llanqui, Today, 03:51 PM
                0 responses
                10 views
                0 likes
                Last Post llanqui
                by llanqui
                 
                Working...
                X