Skip to content

Commit 9ef374a

Browse files
committed
Added dotnet SDK build workflow
1 parent 4d8603f commit 9ef374a

19 files changed

+217
-228
lines changed

.editorconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dotnet_diagnostic.CS0436.severity = none
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Build and Release Nightly
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build-and-release:
10+
uses: ./.github/workflows/build-and-release.yml
11+
secrets: inherit
12+
with:
13+
build-configuration: Release
14+
prerelease: true
15+
tagname: nightly
16+
release-name: Nightly build
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Build and Release version tag
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
build-and-release-tag:
10+
uses: ./.github/workflows/build-and-release.yml
11+
secrets: inherit
12+
with:
13+
build-configuration: Release
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Build and Release
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
build-configuration:
7+
required: true
8+
type: string
9+
tagname:
10+
required: false
11+
type: string
12+
release-name:
13+
required: false
14+
type: string
15+
prerelease:
16+
required: false
17+
type: boolean
18+
19+
jobs:
20+
build-and-release:
21+
runs-on: windows-latest
22+
23+
steps:
24+
- name: Checkout Repository
25+
uses: actions/checkout@v2
26+
27+
- name: Setup MSBuild
28+
uses: actions/setup-dotnet@v1
29+
30+
- name: Install deps
31+
run: dotnet restore FreeOrderFlow.sln
32+
33+
- name: Build
34+
run: dotnet build -c ${{ inputs.build-configuration }} FreeOrderFlow.sln
35+
36+
- name: Copy from Debug to publish folder
37+
if: inputs.build-configuration == 'Debug'
38+
run: |
39+
cp bin/Debug/FreeOrderFlow.dll .\publish
40+
41+
- name: Copy from Release to publish folder
42+
if: inputs.build-configuration != 'Debug'
43+
run: |
44+
cp bin/Release/FreeOrderFlow.dll .\publish
45+
46+
- name: Create Archive
47+
run: Compress-Archive -Path .\publish\* -DestinationPath FreeOrderFlow-NT.zip -Force
48+
49+
- name: Release
50+
uses: softprops/action-gh-release@v1
51+
with:
52+
token: ${{ secrets.GH_RELEASE_TOKEN }}
53+
files: FreeOrderFlow-NT.zip
54+
tag_name: ${{ inputs.tagname }}
55+
name: ${{ inputs.release-name }}
56+
prerelease: ${{ inputs.prerelease }}

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/bin/
2+
/obj/
3+
/.vs/
4+
/LEIAME.tt
5+
/publish/

FreeOrderFlow.csproj

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
<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" />
48+
<Reference Include="System.ComponentModel.DataAnnotations" />
49+
<Reference Include="System.Core" />
50+
<Reference Include="System.Net.Http" />
51+
<Reference Include="System.Web.Extensions" />
52+
<Reference Include="System.Xaml" />
53+
<Reference Include="System.Xml" />
54+
<Reference Include="System.Xml.Linq" />
55+
<Reference Include="Microsoft.CSharp" />
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+
</ItemGroup>
101+
</Project>

FreeOrderFlow.sln

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.10.35201.131
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FreeOrderFlow", "FreeOrderFlow.csproj", "{3B4BA206-B39E-408A-B464-5904D7B688B3}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|x64 = Debug|x64
11+
Release|x64 = Release|x64
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{3B4BA206-B39E-408A-B464-5904D7B688B3}.Debug|x64.ActiveCfg = Debug|x64
15+
{3B4BA206-B39E-408A-B464-5904D7B688B3}.Debug|x64.Build.0 = Debug|x64
16+
{3B4BA206-B39E-408A-B464-5904D7B688B3}.Release|x64.ActiveCfg = Release|x64
17+
{3B4BA206-B39E-408A-B464-5904D7B688B3}.Release|x64.Build.0 = Release|x64
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {27124D31-70AC-4ACE-88B8-11A416A96388}
24+
EndGlobalSection
25+
EndGlobal

Indicators/FreeOrderFlow/FofCumulativeDelta.cs

Lines changed: 0 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -121,60 +121,3 @@ public string NegativeBrushSerializable
121121
#endregion
122122
}
123123
}
124-
125-
#region NinjaScript generated code. Neither change nor remove.
126-
127-
namespace NinjaTrader.NinjaScript.Indicators
128-
{
129-
public partial class Indicator : NinjaTrader.Gui.NinjaScript.IndicatorRenderBase
130-
{
131-
private FreeOrderFlow.FofCumulativeDelta[] cacheFofCumulativeDelta;
132-
public FreeOrderFlow.FofCumulativeDelta FofCumulativeDelta()
133-
{
134-
return FofCumulativeDelta(Input);
135-
}
136-
137-
public FreeOrderFlow.FofCumulativeDelta FofCumulativeDelta(ISeries<double> input)
138-
{
139-
if (cacheFofCumulativeDelta != null)
140-
for (int idx = 0; idx < cacheFofCumulativeDelta.Length; idx++)
141-
if (cacheFofCumulativeDelta[idx] != null && cacheFofCumulativeDelta[idx].EqualsInput(input))
142-
return cacheFofCumulativeDelta[idx];
143-
return CacheIndicator<FreeOrderFlow.FofCumulativeDelta>(new FreeOrderFlow.FofCumulativeDelta(), input, ref cacheFofCumulativeDelta);
144-
}
145-
}
146-
}
147-
148-
namespace NinjaTrader.NinjaScript.MarketAnalyzerColumns
149-
{
150-
public partial class MarketAnalyzerColumn : MarketAnalyzerColumnBase
151-
{
152-
public Indicators.FreeOrderFlow.FofCumulativeDelta FofCumulativeDelta()
153-
{
154-
return indicator.FofCumulativeDelta(Input);
155-
}
156-
157-
public Indicators.FreeOrderFlow.FofCumulativeDelta FofCumulativeDelta(ISeries<double> input )
158-
{
159-
return indicator.FofCumulativeDelta(input);
160-
}
161-
}
162-
}
163-
164-
namespace NinjaTrader.NinjaScript.Strategies
165-
{
166-
public partial class Strategy : NinjaTrader.Gui.NinjaScript.StrategyRenderBase
167-
{
168-
public Indicators.FreeOrderFlow.FofCumulativeDelta FofCumulativeDelta()
169-
{
170-
return indicator.FofCumulativeDelta(Input);
171-
}
172-
173-
public Indicators.FreeOrderFlow.FofCumulativeDelta FofCumulativeDelta(ISeries<double> input )
174-
{
175-
return indicator.FofCumulativeDelta(input);
176-
}
177-
}
178-
}
179-
180-
#endregion

Indicators/FreeOrderFlow/FofMarketDepth.cs

Lines changed: 0 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -168,60 +168,3 @@ public string BidColorSerializable
168168
#endregion
169169
}
170170
}
171-
172-
#region NinjaScript generated code. Neither change nor remove.
173-
174-
namespace NinjaTrader.NinjaScript.Indicators
175-
{
176-
public partial class Indicator : NinjaTrader.Gui.NinjaScript.IndicatorRenderBase
177-
{
178-
private FreeOrderFlow.FofMarketDepth[] cacheFofMarketDepth;
179-
public FreeOrderFlow.FofMarketDepth FofMarketDepth()
180-
{
181-
return FofMarketDepth(Input);
182-
}
183-
184-
public FreeOrderFlow.FofMarketDepth FofMarketDepth(ISeries<double> input)
185-
{
186-
if (cacheFofMarketDepth != null)
187-
for (int idx = 0; idx < cacheFofMarketDepth.Length; idx++)
188-
if (cacheFofMarketDepth[idx] != null && cacheFofMarketDepth[idx].EqualsInput(input))
189-
return cacheFofMarketDepth[idx];
190-
return CacheIndicator<FreeOrderFlow.FofMarketDepth>(new FreeOrderFlow.FofMarketDepth(), input, ref cacheFofMarketDepth);
191-
}
192-
}
193-
}
194-
195-
namespace NinjaTrader.NinjaScript.MarketAnalyzerColumns
196-
{
197-
public partial class MarketAnalyzerColumn : MarketAnalyzerColumnBase
198-
{
199-
public Indicators.FreeOrderFlow.FofMarketDepth FofMarketDepth()
200-
{
201-
return indicator.FofMarketDepth(Input);
202-
}
203-
204-
public Indicators.FreeOrderFlow.FofMarketDepth FofMarketDepth(ISeries<double> input )
205-
{
206-
return indicator.FofMarketDepth(input);
207-
}
208-
}
209-
}
210-
211-
namespace NinjaTrader.NinjaScript.Strategies
212-
{
213-
public partial class Strategy : NinjaTrader.Gui.NinjaScript.StrategyRenderBase
214-
{
215-
public Indicators.FreeOrderFlow.FofMarketDepth FofMarketDepth()
216-
{
217-
return indicator.FofMarketDepth(Input);
218-
}
219-
220-
public Indicators.FreeOrderFlow.FofMarketDepth FofMarketDepth(ISeries<double> input )
221-
{
222-
return indicator.FofMarketDepth(input);
223-
}
224-
}
225-
}
226-
227-
#endregion

0 commit comments

Comments
 (0)