Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

MT8 Indicator Build in VS Code

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

    MT8 Indicator Build in VS Code


    Hi,

    I've been building some indicators which are working well. Now I'm trying to move the code into a separate repo and build in them in isolation. I am getting the following error:

    C:\Users\xxxx\GitHub\NinjaTrader\Strategies\xxxx\M odelB.cs(25,22): error CS0234: The type or namespace name 'Forms' does not exist in the namespace 'System.Windows' (are you missing an assembly reference?)​
    C:\Users\xxxx\\GitHub\NinjaTrader\Indicators\xxxx\ ModelV.cs(723,16): error CS0246: The type or namespace name 'Brush' could not be found (are you missing a using directive or an assembly reference?)​


    I'm referencing the NinjaTrader Core dll in the csproj file as follows:

    <Project Sdk="Microsoft.NET.Sdk">
    <PropertyGroup>
    ​ <TargetFramework>net7.0</TargetFramework>
    <ImplicitUsings>enable</ImplicitUsings>
    <Nullable>enable</Nullable>
    </PropertyGroup>
    <ItemGroup>
    <Reference Include="NinjaTrader.Core">
    <HintPath>references\NinjaTrader.Core.dll</HintPath>
    </Reference>
    </ItemGroup>
    </Project>

    I'm just using a standard dotnet build command to build.

    I'd really like to get an automated build using GitHub actions.

    Please can you help?


    #2
    Hello, thanks for writing in. Unfortunately, this is not supported and we do not have any examples that I can provide. NinjaTrader uses the CodeDOM module in C# that builds the Custom.DLL file and compiles all the dlls into the Custom DLL file but none of this is described in the help guide, so unfortunately it goes beyond the scope of support I am able to provide.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    84 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    143 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    83 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    256 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    334 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X