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:	154
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:	182
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 Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            556 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            324 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            101 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            545 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            547 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X