Skip to content

Commit 837ad4b

Browse files
committed
fix indicator build
1 parent 495904a commit 837ad4b

File tree

3 files changed

+184
-100
lines changed

3 files changed

+184
-100
lines changed

FreeOrderFlow.csproj

Lines changed: 102 additions & 100 deletions
Original file line numberDiff line numberDiff line change
@@ -1,102 +1,104 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2-
<PropertyGroup>
3-
<ProjectGuid>{3b4ba206-b39e-408a-b464-5904d7b688b3}</ProjectGuid>
4-
<AppDesignerFolder>Properties</AppDesignerFolder>
5-
<RootNamespace>InvestiSoft.NinjaTrader</RootNamespace>
6-
<AssemblyName>FreeOrderFlow</AssemblyName>
7-
<LangVersion>8.0</LangVersion>
8-
<OutputPath>bin\$(Configuration)\</OutputPath>
9-
<OutputType>Library</OutputType>
10-
<Platforms>x64</Platforms>
11-
<TargetFramework>net48</TargetFramework>
12-
<TargetFrameworkVersion>4.8</TargetFrameworkVersion>
13-
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
14-
<FileAlignment>512</FileAlignment>
15-
<DefineConstants>$(DefineConstants);$(CiConstants)</DefineConstants>
16-
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
17-
<ImportWindowsDesktopTargets>true</ImportWindowsDesktopTargets>
18-
<UseWPF>true</UseWPF>
19-
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
20-
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
21-
<NoWarn>1591</NoWarn>
22-
<CodeAnalysisRuleSet>ManagedMinimumRules.ruleset</CodeAnalysisRuleSet>
23-
<Configurations>Debug;Release</Configurations>
24-
</PropertyGroup>
25-
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
26-
<DebugSymbols>true</DebugSymbols>
27-
<DebugType>full</DebugType>
28-
<Optimize>false</Optimize>
29-
<DefineConstants>TRACE;DEBUG;unmanaged</DefineConstants>
30-
<PlatformTarget>x64</PlatformTarget>
31-
<OutputPath>bin\Debug\</OutputPath>
32-
<BaseOutputPath>bin\Debug\</BaseOutputPath>
33-
</PropertyGroup>
34-
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
35-
<DebugType>full</DebugType>
36-
<Optimize>true</Optimize>
37-
<DefineConstants>CODE_ANALYSIS,unmanaged</DefineConstants>
38-
<PlatformTarget>x64</PlatformTarget>
39-
</PropertyGroup>
40-
<PropertyGroup>
41-
<TransformOnBuild>false</TransformOnBuild>
42-
<TransformOutOfDateOnly>false</TransformOutOfDateOnly>
43-
<OverwriteReadOnlyOutputFiles>true</OverwriteReadOnlyOutputFiles>
44-
<AutoGenerateBindingRedirects>false</AutoGenerateBindingRedirects>
45-
</PropertyGroup>
46-
<ItemGroup>
47-
<Reference Include="System"></Reference>
48-
<Reference Include="System.ComponentModel.DataAnnotations"></Reference>
49-
<Reference Include="System.Core"></Reference>
50-
<Reference Include="System.Net.Http"></Reference>
51-
<Reference Include="System.Web.Extensions"></Reference>
52-
<Reference Include="System.Xaml"></Reference>
53-
<Reference Include="System.Xml"></Reference>
54-
<Reference Include="System.Xml.Linq"></Reference>
55-
<Reference Include="Microsoft.CSharp"></Reference>
56-
<Reference Include="InfragisticsWPF4.DataPresenter.v15.1">
57-
<HintPath>deps\InfragisticsWPF4.DataPresenter.v15.1.dll</HintPath>
58-
</Reference>
59-
<Reference Include="Infralution.Localization.Wpf">
60-
<HintPath>deps\Infralution.Localization.Wpf.dll</HintPath>
61-
</Reference>
62-
<Reference Include="NinjaTrader.Core">
63-
<HintPath>deps\NinjaTrader.Core.dll</HintPath>
64-
</Reference>
65-
<Reference Include="NinjaTrader.Gui">
66-
<HintPath>deps\NinjaTrader.Gui.dll</HintPath>
67-
</Reference>
68-
<Reference Include="SharpDX">
69-
<HintPath>deps\SharpDX.dll</HintPath>
70-
</Reference>
71-
<Reference Include="SharpDX.Direct2D1">
72-
<HintPath>deps\SharpDX.Direct2D1.dll</HintPath>
73-
</Reference>
74-
<Reference Include="NinjaTrader.Custom">
75-
<HintPath>deps\NinjaTrader.Custom.dll</HintPath>
76-
</Reference>
77-
<Reference Include="mscorlib">
78-
<HintPath>C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscorlib.dll</HintPath>
79-
</Reference>
80-
<Reference Include="WindowsBase">
81-
<HintPath>C:\Windows\Microsoft.NET\Framework\v4.0.30319\WPF\WindowsBase.dll</HintPath>
82-
</Reference>
83-
<Reference Include="PresentationCore">
84-
<HintPath>C:\Windows\Microsoft.NET\Framework\v4.0.30319\WPF\PresentationCore.dll</HintPath>
85-
</Reference>
86-
<Reference Include="PresentationFramework">
87-
<HintPath>C:\Windows\Microsoft.NET\Framework\v4.0.30319\WPF\PresentationFramework.dll</HintPath>
88-
</Reference>
89-
<Reference Include="UIAutomationProvider">
90-
<HintPath>C:\Windows\Microsoft.NET\Framework\v4.0.30319\WPF\UIAutomationProvider.dll</HintPath>
91-
</Reference>
92-
</ItemGroup>
93-
<ItemGroup>
94-
<Compile Include="DrawingTools\FreeOrderFlow\FofAnchoredVwap.cs" />
95-
<Compile Include="DrawingTools\FreeOrderFlow\FofRangeVolumeProfile.cs" />
96-
<Compile Include="Indicators\FreeOrderFlow\FofCumulativeDelta.cs" />
97-
<Compile Include="Indicators\FreeOrderFlow\FofMarketDepth.cs" />
98-
<Compile Include="Indicators\FreeOrderFlow\FofVolumeProfile.cs" />
99-
<Compile Include="Indicators\FreeOrderFlow\FofVWAP.cs" />
100-
<Compile Include="InvestiSoft\FofVolumeProfile.cs" />
101-
</ItemGroup>
2+
<PropertyGroup>
3+
<ProjectGuid>{3b4ba206-b39e-408a-b464-5904d7b688b3}</ProjectGuid>
4+
<AppDesignerFolder>Properties</AppDesignerFolder>
5+
<RootNamespace>InvestiSoft.NinjaTrader</RootNamespace>
6+
<AssemblyName>FreeOrderFlow</AssemblyName>
7+
<LangVersion>8.0</LangVersion>
8+
<OutputPath>bin\$(Configuration)\</OutputPath>
9+
<OutputType>Library</OutputType>
10+
<Platforms>x64</Platforms>
11+
<TargetFramework>net48</TargetFramework>
12+
<TargetFrameworkVersion>4.8</TargetFrameworkVersion>
13+
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
14+
<FileAlignment>512</FileAlignment>
15+
<DefineConstants>$(DefineConstants);$(CiConstants)</DefineConstants>
16+
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
17+
<ImportWindowsDesktopTargets>true</ImportWindowsDesktopTargets>
18+
<UseWPF>true</UseWPF>
19+
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
20+
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
21+
<NoWarn>1591</NoWarn>
22+
<CodeAnalysisRuleSet>ManagedMinimumRules.ruleset</CodeAnalysisRuleSet>
23+
<Configurations>Debug;Release</Configurations>
24+
</PropertyGroup>
25+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
26+
<DebugSymbols>true</DebugSymbols>
27+
<DebugType>full</DebugType>
28+
<Optimize>false</Optimize>
29+
<DefineConstants>TRACE;DEBUG;unmanaged</DefineConstants>
30+
<PlatformTarget>x64</PlatformTarget>
31+
<OutputPath>bin\Debug\</OutputPath>
32+
<BaseOutputPath>bin\Debug\</BaseOutputPath>
33+
</PropertyGroup>
34+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
35+
<DebugType>full</DebugType>
36+
<Optimize>true</Optimize>
37+
<DefineConstants>CODE_ANALYSIS,unmanaged</DefineConstants>
38+
<PlatformTarget>x64</PlatformTarget>
39+
</PropertyGroup>
40+
<PropertyGroup>
41+
<TransformOnBuild>false</TransformOnBuild>
42+
<TransformOutOfDateOnly>false</TransformOutOfDateOnly>
43+
<OverwriteReadOnlyOutputFiles>true</OverwriteReadOnlyOutputFiles>
44+
<AutoGenerateBindingRedirects>false</AutoGenerateBindingRedirects>
45+
</PropertyGroup>
46+
<ItemGroup>
47+
<Reference Include="System"></Reference>
48+
<Reference Include="System.ComponentModel.DataAnnotations"></Reference>
49+
<Reference Include="System.Core"></Reference>
50+
<Reference Include="System.Net.Http"></Reference>
51+
<Reference Include="System.Web.Extensions"></Reference>
52+
<Reference Include="System.Xaml"></Reference>
53+
<Reference Include="System.Xml"></Reference>
54+
<Reference Include="System.Xml.Linq"></Reference>
55+
<Reference Include="Microsoft.CSharp"></Reference>
56+
<Reference Include="InfragisticsWPF4.DataPresenter.v15.1">
57+
<HintPath>deps\InfragisticsWPF4.DataPresenter.v15.1.dll</HintPath>
58+
</Reference>
59+
<Reference Include="Infralution.Localization.Wpf">
60+
<HintPath>deps\Infralution.Localization.Wpf.dll</HintPath>
61+
</Reference>
62+
<Reference Include="NinjaTrader.Core">
63+
<HintPath>deps\NinjaTrader.Core.dll</HintPath>
64+
</Reference>
65+
<Reference Include="NinjaTrader.Gui">
66+
<HintPath>deps\NinjaTrader.Gui.dll</HintPath>
67+
</Reference>
68+
<Reference Include="SharpDX">
69+
<HintPath>deps\SharpDX.dll</HintPath>
70+
</Reference>
71+
<Reference Include="SharpDX.Direct2D1">
72+
<HintPath>deps\SharpDX.Direct2D1.dll</HintPath>
73+
</Reference>
74+
<Reference Include="NinjaTrader.Custom">
75+
<HintPath>deps\NinjaTrader.Custom.dll</HintPath>
76+
</Reference>
77+
<Reference Include="mscorlib">
78+
<HintPath>C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscorlib.dll</HintPath>
79+
</Reference>
80+
<Reference Include="WindowsBase">
81+
<HintPath>C:\Windows\Microsoft.NET\Framework\v4.0.30319\WPF\WindowsBase.dll</HintPath>
82+
</Reference>
83+
<Reference Include="PresentationCore">
84+
<HintPath>C:\Windows\Microsoft.NET\Framework\v4.0.30319\WPF\PresentationCore.dll</HintPath>
85+
</Reference>
86+
<Reference Include="PresentationFramework">
87+
<HintPath>C:\Windows\Microsoft.NET\Framework\v4.0.30319\WPF\PresentationFramework.dll</HintPath>
88+
</Reference>
89+
<Reference Include="UIAutomationProvider">
90+
<HintPath>C:\Windows\Microsoft.NET\Framework\v4.0.30319\WPF\UIAutomationProvider.dll</HintPath>
91+
</Reference>
92+
</ItemGroup>
93+
<ItemGroup>
94+
<Compile Include="MarketAnalyzerColumns\%40MarketAnalyzerColumn.cs" />
95+
<Compile Include="Strategies\%40Strategy.cs" />
96+
<Compile Include="DrawingTools\FreeOrderFlow\FofAnchoredVwap.cs" />
97+
<Compile Include="DrawingTools\FreeOrderFlow\FofRangeVolumeProfile.cs" />
98+
<Compile Include="Indicators\FreeOrderFlow\FofCumulativeDelta.cs" />
99+
<Compile Include="Indicators\FreeOrderFlow\FofMarketDepth.cs" />
100+
<Compile Include="Indicators\FreeOrderFlow\FofVolumeProfile.cs" />
101+
<Compile Include="Indicators\FreeOrderFlow\FofVWAP.cs" />
102+
<Compile Include="InvestiSoft\FofVolumeProfile.cs" />
103+
</ItemGroup>
102104
</Project>
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
//
2+
// Copyright (C) 2023, NinjaTrader LLC <www.ninjatrader.com>.
3+
// NinjaTrader reserves the right to modify or overwrite this NinjaScript component with each release.
4+
//
5+
#region Using declarations
6+
using System;
7+
using System.Collections.Generic;
8+
using System.ComponentModel;
9+
using System.ComponentModel.DataAnnotations;
10+
using System.Linq;
11+
using System.Text;
12+
using System.Threading.Tasks;
13+
using System.Windows;
14+
using System.Windows.Input;
15+
using System.Windows.Media;
16+
using System.Xml.Serialization;
17+
using NinjaTrader.Cbi;
18+
using NinjaTrader.Gui;
19+
using NinjaTrader.Gui.Chart;
20+
using NinjaTrader.Gui.SuperDom;
21+
using NinjaTrader.Data;
22+
using NinjaTrader.NinjaScript;
23+
using NinjaTrader.Core.FloatingPoint;
24+
#endregion
25+
26+
//This namespace holds Market Analyzer columns in this folder and is required. Do not change it.
27+
namespace NinjaTrader.NinjaScript.MarketAnalyzerColumns
28+
{
29+
public partial class MarketAnalyzerColumn : MarketAnalyzerColumnBase
30+
{
31+
private Indicators.Indicator indicator;
32+
33+
public MarketAnalyzerColumn()
34+
{
35+
lock (NinjaScripts)
36+
NinjaScripts.Add(indicator = new Indicators.Indicator() { IsDataSeriesRequired = this.IsDataSeriesRequired, Parent = this });
37+
}
38+
39+
[Browsable(false)]
40+
public new bool IsDataSeriesRequired
41+
{
42+
get { return base.IsDataSeriesRequired; }
43+
set
44+
{
45+
base.IsDataSeriesRequired = value;
46+
if (indicator != null)
47+
indicator.IsDataSeriesRequired = value;
48+
}
49+
}
50+
}
51+
}

Strategies/@Strategy.cs

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
//
2+
// Copyright (C) 2024, NinjaTrader LLC <www.ninjatrader.com>.
3+
// NinjaTrader reserves the right to modify or overwrite this NinjaScript component with each release.
4+
//
5+
6+
#region Using declarations
7+
using System;
8+
using System.Collections.Generic;
9+
using System.ComponentModel;
10+
using System.ComponentModel.DataAnnotations;
11+
using System.Linq;
12+
using System.Text;
13+
using System.Windows.Media;
14+
using System.Xml.Serialization;
15+
using NinjaTrader.NinjaScript.Indicators;
16+
#endregion
17+
18+
//This namespace holds strategies in this folder and is required. Do not change it.
19+
namespace NinjaTrader.NinjaScript.Strategies
20+
{
21+
public partial class Strategy : NinjaTrader.Gui.NinjaScript.StrategyRenderBase
22+
{
23+
private Indicator indicator;
24+
25+
public Strategy()
26+
{
27+
lock (NinjaScripts)
28+
NinjaScripts.Add(indicator = new Indicator { Parent = this });
29+
}
30+
}
31+
}

0 commit comments

Comments
 (0)