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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    43 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    20 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    29 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    46 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    38 views
    0 likes
    Last Post CarlTrading  
    Working...
    X