Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Uncompilable NinjaScript

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

    Uncompilable NinjaScript

    Hello,

    I receive the following error when launching strategy builder:

    NinjaScript must be in a compilable state to create or edit strategies. Please use the NinjaScript Editor to resolve compilation issues

    Any guidance would be appreciated.

    Thanks

    #2
    Hello Vozdovac,
    Thanks 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 New menu--> select NinjaScript Editor
    • Double click on the Indicators folder--> then double click on any of the indicators
    • Once the indicator code is in view right click in the window and select Compile to compile all NinjaScript objects
    • At the bottom of the NinjaScript Editor window, a new section will appear where you can find the error locations
    • You can exclude the file referenced in the editor by double clicking on the appropriate object type on the right of the NinjaScript Editor window. This will expand the object type folder. You can then select the file with a left click--> right click on the object--> then select Open to begin debugging the file, Exclude From Compilation, or Remove to delete the file.
    If you are unsure as to what the error is indicating, please send me a screenshot of the NinjaScript File column and Error column fully visible (not to be confused with the Code column)

    To send a screenshot with Windows 7 or newer I would recommend using Window's, Snipping Tool.

    Click here for instructions

    Alternatively to send a screenshot press Alt + PRINT SCREEN to take a screen shot of the selected window. Then go to Start--> Accessories--> Paint, and press CTRL + V to paste the image. Lastly, save as a jpeg file and send the file as an attachment.

    Click here for detailed instruction

    We have also collected more comprehensive steps for resolving NinjaScript programming errors in this tip in our Help Guide:
    Josh G.NinjaTrader Customer Service

    Comment


      #3
      When I right click, I only see the compile option.I choose compile and it shoes the errors for the indicator I chose. Compile all is not an option.

      Thanks

      Comment


        #4
        Vozdovac,

        If you are unsure as to what the error is indicating, please post a screenshot of the NinjaScript File column and Error column fully visible (not to be confused with the Code column)

        To post a screenshot with Windows 7 or newer I would recommend using Window's, Snipping Tool.

        Click here for instructions

        Alternatively to post a screenshot press Alt + PRINT SCREEN to take a screen shot of the selected window. Then go to Start--> Accessories--> Paint, and press CTRL + V to paste the image. Lastly, save as a jpeg file and post the file as an attachment.

        Click here for detailed instruction
        Last edited by NinjaTrader_JoshG; 12-10-2018, 12:58 PM.
        Josh G.NinjaTrader Customer Service

        Comment


          #5
          Hello Josh
          I have exact the same error, i followed procedure you mentioned before, but when trying to remove that indicator it says "You cannot delete a system indicator"

          Comment


            #6
            Hello ccerecermxl,

            Thanks for posting!


            If you navigate to this indicator's folder, do you see a duplicate copy of this indicator? If so, can you manually remove the file with the extra word and numbers at the end of it? I suspect the file name will be similar to "@EaseOfMovement-DESKTOP-O4QCBUU" or "@EaseOfMovement-DESKTOP-O4QCBUU.cs".

            Once the file has been manually removed, please compile the indicators once again.
            Drew O.NinjaTrader Customer Service

            Comment


              #7
              hello Drew
              when trying to remove it shows "You cannot delete a system indicator" is there another way to remove it???

              Comment


                #8
                Hi ccerecermxl,

                Thanks for getting back to me.


                My apologies for not being clear enough, it slipped my mind to specify where the Indicators folder is. Please navigate on your PC to Documents -> NinjaTrader 8 -> bin -> Custom -> Indicator. Search for a file with a name similar to "@EaseOfMovement-DESKTOP-O4QCBUU" or "@EaseOfMovement-DESKTOP-O4QCBUU.cs".Delete this file, then restart the platform and recompile the indicators.
                Drew O.NinjaTrader Customer Service

                Comment


                  #9
                  it worked !!

                  thanks...

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by bmartz, 03-12-2024, 06:12 AM
                  4 responses
                  31 views
                  0 likes
                  Last Post bmartz
                  by bmartz
                   
                  Started by Aviram Y, Today, 05:29 AM
                  4 responses
                  11 views
                  0 likes
                  Last Post Aviram Y  
                  Started by algospoke, 04-17-2024, 06:40 PM
                  3 responses
                  28 views
                  0 likes
                  Last Post NinjaTrader_Jesse  
                  Started by gentlebenthebear, Today, 01:30 AM
                  1 response
                  8 views
                  0 likes
                  Last Post NinjaTrader_Jesse  
                  Started by cls71, Today, 04:45 AM
                  1 response
                  7 views
                  0 likes
                  Last Post NinjaTrader_ChelseaB  
                  Working...
                  X