Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

VisualStudio References

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

    VisualStudio References

    Using VisualStudio as text editor and compiling with NinjaTrader.
    I have a class derived from indicator, I am using the namespace using NinjaTrader.NinjaScript.Indicators;
    I added the NinjaTrader.Core.dll reference.
    I still see many words underlined in red. Which reference am I missing? I couldn't find the answer anywhere.
    Thank you.
    Gio

    Click image for larger version

Name:	2025-01-03 20_54_32-NT8current - Microsoft Visual Studio.jpg
Views:	163
Size:	20.4 KB
ID:	1329777



    #2
    Using VisualStudio as text editor and compiling with NinjaTrader.
    I have a class derived from indicator, I am using the namespace using NinjaTrader.NinjaScript.Indicators;
    I added the NinjaTrader.Core.dll reference.
    I still see many words underlined in red. Which reference am I missing? I couldn't find the answer anywhere.
    Thank you.
    Gio

    Click image for larger version

Name:	2025-01-03 20_54_32-NT8current - Microsoft Visual Studio.jpg
Views:	201
Size:	20.4 KB
ID:	1329779

    Comment


      #3
      Hello giogio1,

      Did you click the visual studio button from the NinjaScript editor? You won't need to manually add any references, if you did not click the visual studio button that would be the reason for the red error lines. To correctly use the project you need to compile at least one time from the editor and then press the visual studio button to open the visual studio project. Beyond that you do need to still use the NinjaScript editor to create files, that will create the correct structure and using statements to get you started.

      Comment


        #4
        Beautiful !
        At first it didn't work because somehow I must have deleted the NinjaTrader.Custom.csproj. I copied it from an old backup and certainly it is not the correct way to go so the visual studio csproj is not up to date with my NinjaTrader Porject thus I don't have the correct matching of all indicators/stratecies on the VisualStudio side. Other than that everything works flawlessly.
        What's the correct procedure to regenerate it correctly?
        Thank you

        Comment


          #5
          Hello giogio1,

          As far as I am aware that will only happen when you install the platform, you should never manually manage or remove the .csproj file as that relates to how the custom dll is made. That file gets auto updated based on the events in the NinjaScript editor so all changes need to be made through the editor.

          Comment


            #6
            Thank you Jesse.
            To fix it I reinstalled NinjaTrader from scratch and then I recreated by hand the folders I had using the NinjaTrader Editor. After that I manually copied over my indicators files. It works well now.
            Last edited by giogio1; 01-08-2025, 03:01 AM.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by sjsj2732, 03-23-2026, 04:31 AM
            0 responses
            150 views
            0 likes
            Last Post sjsj2732  
            Started by NullPointStrategies, 03-13-2026, 05:17 AM
            0 responses
            353 views
            0 likes
            Last Post NullPointStrategies  
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            391 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            182 views
            1 like
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            137 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Working...
            X