From f898407e73de02635b01a6fb00c7dfb1b1e8fe1e Mon Sep 17 00:00:00 2001 From: Miha Kralj Date: Mon, 20 Mar 2023 07:12:34 -0700 Subject: [PATCH] adding .NET 4 Framework compile to Nuget --- Quantower/Quantower.csproj | 2 ++ Source/Feeds/Alphavantage_Feed.cs | 3 ++- Source/Feeds/Yahoo_Feed.cs | 5 +++-- Source/QuanTAlib.csproj | 2 +- Source/Trends/SMA_Series.cs | 6 +++--- 5 files changed, 11 insertions(+), 7 deletions(-) diff --git a/Quantower/Quantower.csproj b/Quantower/Quantower.csproj index 8bc06984..c7a4148a 100644 --- a/Quantower/Quantower.csproj +++ b/Quantower/Quantower.csproj @@ -21,6 +21,7 @@ True anycpu full + C:\Quantower\TradingPlatform\v1.129.11\..\..\Settings\Scripts\Indicators\Quantower embedded @@ -28,6 +29,7 @@ 3 True anycpu + C:\Quantower\TradingPlatform\v1.129.11\..\..\Settings\Scripts\Indicators\Quantower diff --git a/Source/Feeds/Alphavantage_Feed.cs b/Source/Feeds/Alphavantage_Feed.cs index d4f76fc7..2f521ae2 100644 --- a/Source/Feeds/Alphavantage_Feed.cs +++ b/Source/Feeds/Alphavantage_Feed.cs @@ -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 - */ + public class Alphavantage_Feed : TBars { @@ -53,3 +53,4 @@ public class Alphavantage_Feed : TBars return (date, o, h, l, c, v); } } +*/ \ No newline at end of file diff --git a/Source/Feeds/Yahoo_Feed.cs b/Source/Feeds/Yahoo_Feed.cs index 4808d888..4df7d380 100644 --- a/Source/Feeds/Yahoo_Feed.cs +++ b/Source/Feeds/Yahoo_Feed.cs @@ -10,7 +10,7 @@ Yahoo Finance - Free API feed to collect daily market quotes Usage: Yahoo_Feed ticker = new("MSFT", 20) - */ + public class Yahoo_Feed : TBars { @@ -45,4 +45,5 @@ public class Yahoo_Feed : TBars base.Add(d, o, h, l, c, v); } } -} \ No newline at end of file +} +*/ \ No newline at end of file diff --git a/Source/QuanTAlib.csproj b/Source/QuanTAlib.csproj index 0958204d..5fdd2c23 100644 --- a/Source/QuanTAlib.csproj +++ b/Source/QuanTAlib.csproj @@ -11,7 +11,7 @@ Miha Kralj Miha Kralj readme.md - net7.0;net6.0;netstandard2.1 + net7.0;net6.0;netstandard2.1;net48 disable preview disable diff --git a/Source/Trends/SMA_Series.cs b/Source/Trends/SMA_Series.cs index 7b383961..9c23f298 100644 --- a/Source/Trends/SMA_Series.cs +++ b/Source/Trends/SMA_Series.cs @@ -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; } }