Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Unable to import

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

    Unable to import

    Hi,

    my programmeur send me a file ( strategy update ) which i was unable to import. I clicked yes a few times to overwrite the indicators but in the end NT7 warned me it was unable to import it.

    When i delete the newly imported version and after re-start tried to import it again, it still gives me a message; "You have custos Ninjascriptfiles on your PC that have programming orders. these errors must.... etc.

    See pictures.

    Please assist.

    Regards,

    Rob
    Attached Files
    Last edited by robje737; 01-13-2017, 12:59 PM.

    #2
    Hello robje737,


    Thank you for your post.


    Please follow the instructions below to see where the errors are coming from after compiling the indicator. This will allow you to debug the indicator/strategy or remove it from your PC. If you are wondering why you receive an error when compiling only one indicator, it is because NinjaTrader always compiles all indicators and strategies - not just one. This is done to give you the highest runtime performance possible.
    • Open NinjaTrader
    • From the Control Center select the Tools menu--> select the Edit NinjaScript menu item--> select Indicator
    • Select any indicator and double click on it (we need only to open and compile one script to see all compile errors for all files).
    • A new window will appear and you will need to right click in the window and select Compile to compile the indicators.
    • At the bottom of the window a new section will appear where you can find the error locations.
    • From there you have the option to comment out offending code sections, remove the complete indicator or debug it to be able to compile again.


    If the errors messages refer to certain indicators, you could remove the indicators in question by going to the following directory:



    Documents\NinjaTrader 7\bin\Custom\ folder

    or

    Documents\NinjaTrader 7\bin\Custom\indicators\ folder


    Finding the indicator and deleting it from the folder will remove the indicator from NinjaTrader. After removing the indicator, you can compile to see if the errors are resolved.


    If the error messages refer to a reference .dll file. This indicates you are missing some required reference DLL's or have corrupted ones listed - please follow the steps below to rectify the errors.
    To resolve reference errors:

    • Right click in the code section of the NinjaScript editor.
    • In the context menu click on 'References'
    • In the Reference dialog, if a reference to the noted DLL files exists already then select the DLL's which are giving errors one by one and click on the 'Remove' button.

    After removing, add back the reference with the right path :
    • In the Reference dialog, Click on the 'Add' button.
    • Select all the missing DLL's (located in the Documents\NinjaTrader 7\bin\Custom\ folder or in the NinjaTrader installation folder, typically C:\Program Files (x86)\NinjaTrader 7\bin64) one by one and then click 'Ok'. [Please adjust if needed for 32 bit setup]
    • Compile the indicator now by pressing F5.
    • The issues should be resolved and your NT should be again in properly compiled state

    Please also see the section "How to add a reference" from our help guide




    We have also collected more comprehensive steps for resolving NinjaScript programming errors in this tip on our forums - http://www.ninjatrader.com/support/f...ead.php?t=4678

    Please let me know if you have any questions.
    Shawn B.NinjaTrader Customer Service

    Comment


      #3
      Hi Shawn,

      i don't get passed the initial stage of compiling an indicator;

      After double clicking any indicator i do get the message as attached. Thereafter NT closes.

      Rob
      Attached Files

      Comment


        #4
        Hello robje737,

        Thanks for your reply.

        Please send an email to platformsupport [at] ninjatrader [dot] com with your log and trace files included as an attachment to the email, so I may investigate this matter further.


        • Open your NinjaTrader folder under Documents.
        • Right click on the 'log' and 'trace' folders and select Send To> Compressed (zipped) Folder.
        • Send the 2 compressed folders as attachments to this email.
        • Once complete, you can delete these compressed folders.



        Put 'Att Shawn', in the subject field and enable 'Log and trace files'. Also, give a reference of this thread in the body of the email.

        Please let me know if you have any questions.
        Shawn B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by PaulMohn, Today, 12:36 PM
        1 response
        12 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by yertle, Yesterday, 08:38 AM
        8 responses
        36 views
        0 likes
        Last Post ryjoga
        by ryjoga
         
        Started by rdtdale, Today, 01:02 PM
        1 response
        5 views
        0 likes
        Last Post NinjaTrader_LuisH  
        Started by alifarahani, Today, 09:40 AM
        3 responses
        16 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by RookieTrader, Today, 09:37 AM
        4 responses
        19 views
        0 likes
        Last Post RookieTrader  
        Working...
        X