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 helpwanted, Today, 03:06 AM
                1 response
                14 views
                0 likes
                Last Post sarafuenonly123  
                Started by Brevo, Today, 01:45 AM
                0 responses
                11 views
                0 likes
                Last Post Brevo
                by Brevo
                 
                Started by aussugardefender, Today, 01:07 AM
                0 responses
                6 views
                0 likes
                Last Post aussugardefender  
                Started by pvincent, 06-23-2022, 12:53 PM
                14 responses
                244 views
                0 likes
                Last Post Nyman
                by Nyman
                 
                Started by TraderG23, 12-08-2023, 07:56 AM
                9 responses
                387 views
                1 like
                Last Post Gavini
                by Gavini
                 
                Working...
                X