Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

File I/O error message

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

    File I/O error message

    Hi

    I keep getting a file i/o error message in my output window even though I have no indicator or strategy attached that uses File I/O.

    I believe it is a legacy from when I did do some simple file I/O work but cannot now seem to stop it appearing even when I create new Indicators.

    Is there anything I can do to stop this error message, see below;
    "Indicator 'Sample file read write': Error on calling 'OnStateChange' method: Object reference not set to an instance of an object.
    Indicator 'Sample file read write': Error on calling 'OnStateChange' method: Object reference not set to an instance of an object."


    from appearing in my output window?

    Thanks

    #2
    Hello fishbed,

    Thank you for your post.

    Do you have an indicator named Sample File Read Write in your installation?
    If so, you can remove it by going to New > NinjaScript Editor > Indicators > select the indicator > right click and select Remove.

    Please let me know if you have any questions.

    Comment


      #3
      indicator File I/O error message

      Hi,

      I did have a file called "Sample File Read Write" that was used as an example for using File i/o, but it has since been deleted.

      I will go through any files with File I/O and remove them to see if it clears the problem and then reload one at a time to see which may be causing the issue.

      But if you can think of anything else please let me know.

      I will also let you know the outcome.

      Cheers

      Comment


        #4
        Hello fishbed,

        Thank you for your response.

        You should not see messages on indicators that are no longer in your installation. Please let me know if the errors continue.

        Comment


          #5
          File IO error message

          Hi Patrick

          The error message appears as soon as the indicator selection box opens, see attached image.
          Attached Files

          Comment


            #6
            Hello fishbed,

            Thank you for your response.

            Do you by chance have a copy of the Sample that was named differently? If so, please remove that file.

            If not or if the error continues please write to me at platformsupport[at]ninjatrader[dot]com with 'ATTN: Patrick H' in the subject line and a reference to this thread in the body of the email so that we may schedule a remote session to look into this on your PC.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by CarlTrading, 03-31-2026, 09:41 PM
            1 response
            41 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 04-01-2026, 02:41 AM
            0 responses
            20 views
            0 likes
            Last Post CarlTrading  
            Started by CaptainJack, 03-31-2026, 11:44 PM
            0 responses
            27 views
            1 like
            Last Post CaptainJack  
            Started by CarlTrading, 03-30-2026, 11:51 AM
            0 responses
            45 views
            0 likes
            Last Post CarlTrading  
            Started by CarlTrading, 03-30-2026, 11:48 AM
            0 responses
            37 views
            0 likes
            Last Post CarlTrading  
            Working...
            X