Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

System.ArgumentException: ChartStyleType 1 not supported

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

    System.ArgumentException: ChartStyleType 1 not supported

    Hello,

    have a big problem. During an indicator development I reached an error free compilation. But the attempt to load the concerning indicator to a chart caused NT7 version 22 to shut down and since then I cannot start it anymore, means I cannot even try to debug something.

    Attached you can find the trace file.
    In line: "2010-10-26 16:22:30:595" you find the compiler error message.
    In line: "2010-10-26 16:22:41:156" you find the the exception handling when re-invoking NT.

    Please have a look at this issue.

    Regards
    Ralph
    Attached Files

    #2
    Hello Ralph,

    Likely you will need to delete your workspace files so that you can start NinjaTrader.

    To delete your workspaces:
    • Please close NinjaTrader and go to your desktop Start menu
    • Open My Documents
    • Go to the NinjaTrader 7 folder
    • Go to the Workspaces folder
    • Right click on all XML documents and select Delete
    • Now restart the application and it should start up normally

    Alternatively you can move these files outside of this directory temporarily, so that they are preserved while you sort out the indicator issue.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Hello Ryan,

      Thanks for the fast response.
      No success so far. Directory 'Workspaces' is empty now. During startup, NT recreated the files '_Workspaces' and 'Untitled1' and then crashed again with the same error reports in the trace file I attached.

      The problem is that NT compiled my indicators successfully without any error messages but something "unusual" happens during runtime.

      In the moment I am still not able to start.

      Regards
      Ralph

      Comment


        #4
        In this case your assembly is likely corrupted. You can delete the file:
        My Documents\NinjaTrader 7\bin\custom\NinjaTrader.Custom.dll as well as the offending indicator in My Documents\NinjaTrader\bin\custom\indicator.

        Once you get it started, can you please let us know the code that caused this?
        Ryan M.NinjaTrader Customer Service

        Comment


          #5
          Thanks for the hint, Ryan.
          I should know that myself, it is not my day today, obviously.
          Once I have localised the issue, I will create a little testcase for you.

          Regards
          Ralph

          Comment


            #6
            Hello Ryan,

            I solved the issue, I did something illegal when defining a C-style union.

            UnionTestPassed:
            This test indicator compiles and executes without issues. I up-loaded it as a reference example.

            UnionTestFailed:
            This one compiles but corrupts NinjaTrader.Custom.dll. You would not be able to invoke NT anymore. The problem is caused by a point-array used as member of the union class, that does not work.
            WARNING TO EVERYONE: COMPILING "UnionTestFailed" CORRUPTS YOUR NT-COMPILATION: YOU WOULD NOT BE ABLE TO INVOKE NT ANYMORE.

            Regards
            Ralph
            Attached Files

            Comment


              #7
              Thanks for the follow-up here, Ralph.
              Ryan M.NinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Haiasi, 04-25-2024, 06:53 PM
              2 responses
              16 views
              0 likes
              Last Post Massinisa  
              Started by Creamers, Today, 05:32 AM
              0 responses
              4 views
              0 likes
              Last Post Creamers  
              Started by Segwin, 05-07-2018, 02:15 PM
              12 responses
              1,785 views
              0 likes
              Last Post Leafcutter  
              Started by poplagelu, Today, 05:00 AM
              0 responses
              3 views
              0 likes
              Last Post poplagelu  
              Started by fx.practic, 10-15-2013, 12:53 AM
              5 responses
              5,407 views
              0 likes
              Last Post Bidder
              by Bidder
               
              Working...
              X