Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

MIN function unknow in Visual StudioCode.

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

    MIN function unknow in Visual StudioCode.

    Hello,

    why is function undefined but compilation of script is ok? what namespace should i import

    Click image for larger version

Name:	image.png
Views:	86
Size:	268.1 KB
ID:	1268371

    #2
    Hello kujista,

    Thank you for your post.

    Some errors are expected when viewing NinjaScript files in Visual Studio. Sometimes Visual Studio does not have intelliprompt for scripts. The code will still compile, but Visual Studio is not able to pull the needed info from the NinjaTrader Custom project. You could manually include NinjaTrader.Vendor.cs in your Visual Studio solution, though it will be removed every time you make a change in the NinjaScript project.

    Please also note that Visual Studio may be used for debugging and as a text editor, though you should never run or build the solution within Visual Studio and you should only save the file (Ctrl + S). As long as you also have a NinjaScript Editor window open in addition to Visual Studio, every time you save a change the NinjaScript Editor will auto-compile the changes as they are saved. This is noted on the following help guide page:Please let us know if we may be of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    599 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    344 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    103 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    558 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    557 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X