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

Lists and VolumetricBars -> problems after reinstallation of NT

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

    Lists and VolumetricBars -> problems after reinstallation of NT

    Hi,

    Yesterday my computer crashed and started again.
    After that, I could not start NT, so I had to install it again.
    I copied my old files and moved to the new NT folder in order not to lose everything.
    I had to "import" some dll under Editor -> references.

    As far as I could, I managed to get everything running again.

    But I still have a problem with some indicators where I'm working with Lists and VolumetricBars.

    After compiling I get an error on all indicators which have the sentence:
    L = new List<NinjaTrader.NinjaScript.BarsTypes.VolumetricB arsType>​();

    All indicators with this sentenc have the same erro, which, of course, I didn't have before:
    A new expression requires an argument list or (), [], or {} after type
    After this error line there are some more:
    ; expected
    Unexpected character "
    Invalid expression term ')'


    Could you help me?
    Do I need to install anything else?

    Thanks!!

    #2
    Ok,

    I've tried to open the "UI.xml" file on NinjaTrader folder (which was not able to start NT after the crash) and this file is corrupted.
    Trying to open it with excel brings the error:

    "non valid character found".

    This is why after the crash, the NT was not able to start.

    Now, with the new installed NT I continue having the above problem with the List and VolumetricBars......

    Comment


      #3
      Hello artson,

      Thanks for your post.

      So we may accurately assist, please share a screenshot of the error message(s) so we can see the full error message(s) in question.

      Also, please send a screenshot of the line of code causing the error to be thrown.
      • To send a screenshot with Windows 10 or newer I would recommend using the Windows Snipping Tool.
      • Alternatively to send a screenshot press Alt + PRINT SCREEN to take a screenshot of the selected window. Then go to Start--> Accessories--> Paint, and press CTRL + V to paste the image. Lastly, save it as a jpeg file and send the file as an attachment.
      ​We look forward to assisting further.
      Brandon H.NinjaTrader Customer Service

      Comment


        #4
        Hi,

        Here it is

        Click image for larger version

Name:	imagen.png
Views:	39
Size:	35.0 KB
ID:	1290831​​
        Attached Files

        Comment


          #5
          Hello artson,

          Thanks for your notes.

          How exactly are you defining 'L' in your script?

          When creating a List at the class-level using the code below, I do not see any compile errors appearing and the script compiles successfully.

          Code:
          List <NinjaTrader.NinjaScript.BarsTypes.VolumetricBarsType> L = new List<NinjaTrader.NinjaScript.BarsTypes.VolumetricBarsType>();
          
          protected override void OnStateChange()
          {
          ......


          Please let us know if we may assist further.
          Brandon H.NinjaTrader Customer Service

          Comment


            #6
            Well, now it works!!!

            I wrote now this
            "List <NinjaTrader.NinjaScript.BarsTypes.VolumetricBarsT ype> L = new List<NinjaTrader.NinjaScript.BarsTypes.VolumetricB arsType>();"
            at the beginning, in the variable area and it works.

            Previous to the new NT installation, I had it splitted in 2 places:

            "List <NinjaTrader.NinjaScript.BarsTypes.VolumetricBarsT ype> L" in the area of variable definitions
            and
            "L = new List<NinjaTrader.NinjaScript.BarsTypes.VolumetricB arsType>();" in the State.Configure

            it worked perfectly in several indicators with the previous NT Version.....

            Now I have to modify all my indicators but at least it will work

            Thanks!!

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Jonker, Today, 01:19 PM
            0 responses
            1 view
            0 likes
            Last Post Jonker
            by Jonker
             
            Started by futtrader, Today, 01:16 PM
            0 responses
            5 views
            0 likes
            Last Post futtrader  
            Started by Segwin, 05-07-2018, 02:15 PM
            14 responses
            1,790 views
            0 likes
            Last Post aligator  
            Started by Jimmyk, 01-26-2018, 05:19 AM
            6 responses
            838 views
            0 likes
            Last Post emuns
            by emuns
             
            Started by jxs_xrj, 01-12-2020, 09:49 AM
            6 responses
            3,294 views
            1 like
            Last Post jgualdronc  
            Working...
            X