adding .NET 4 Framework compile to Nuget

This commit is contained in:
Miha Kralj
2023-03-20 07:12:34 -07:00
parent 9aab62fbea
commit f898407e73
5 changed files with 11 additions and 7 deletions
+2
View File
@@ -21,6 +21,7 @@
<CheckForOverflowUnderflow>True</CheckForOverflowUnderflow>
<PlatformTarget>anycpu</PlatformTarget>
<DebugType>full</DebugType>
<OutputPath>C:\Quantower\TradingPlatform\v1.129.11\..\..\Settings\Scripts\Indicators\Quantower</OutputPath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<DebugType>embedded</DebugType>
@@ -28,6 +29,7 @@
<WarningLevel>3</WarningLevel>
<CheckForOverflowUnderflow>True</CheckForOverflowUnderflow>
<PlatformTarget>anycpu</PlatformTarget>
<OutputPath>C:\Quantower\TradingPlatform\v1.129.11\..\..\Settings\Scripts\Indicators\Quantower</OutputPath>
</PropertyGroup>
<ItemGroup>
<Compile Include="..\Source\**\*.cs" Exclude="..\Source\obj\**;..\Source\Feeds\**">
+2 -1
View File
@@ -9,7 +9,7 @@ Alphavantage - Free API to collect 100 recent daily quotes. It requires a (free)
Symbol: stock ("AAPL"),
APIkey: unique Alphavantage API key
</summary> */
</summary>
public class Alphavantage_Feed : TBars
{
@@ -53,3 +53,4 @@ public class Alphavantage_Feed : TBars
return (date, o, h, l, c, v);
}
}
*/
+3 -2
View File
@@ -10,7 +10,7 @@ Yahoo Finance - Free API feed to collect daily market quotes
Usage:
Yahoo_Feed ticker = new("MSFT", 20)
</summary> */
</summary>
public class Yahoo_Feed : TBars
{
@@ -45,4 +45,5 @@ public class Yahoo_Feed : TBars
base.Add(d, o, h, l, c, v);
}
}
}
}
*/
+1 -1
View File
@@ -11,7 +11,7 @@
<Authors>Miha Kralj</Authors>
<Copyright>Miha Kralj</Copyright>
<PackageReadmeFile>readme.md</PackageReadmeFile>
<TargetFrameworks>net7.0;net6.0;netstandard2.1</TargetFrameworks>
<TargetFrameworks>net7.0;net6.0;netstandard2.1;net48</TargetFrameworks>
<ImplicitUsings>disable</ImplicitUsings>
<LangVersion>preview</LangVersion>
<Nullable>disable</Nullable>
+3 -3
View File
@@ -18,11 +18,11 @@ Remark:
public class SMA_Series : Single_TSeries_Indicator {
private double _sum, _oldsum;
private int _len, _oldlen;
private int _len;
public SMA_Series(TSeries source, int period = 0, bool useNaN = false) : base(source, period, false) {
_sum = _oldsum = 0;
_len = _oldlen = 0;
_len = 0;
if (this._data.Count > 0) { base.Add(this._data); }
}
@@ -39,6 +39,6 @@ public class SMA_Series : Single_TSeries_Indicator {
}
public void Reset() {
_sum = _oldsum = 0;
_len = _oldlen = 0;
_len = 0;
}
}