mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-22 04:28:04 +00:00
adding .NET 4 Framework compile to Nuget
This commit is contained in:
@@ -21,6 +21,7 @@
|
|||||||
<CheckForOverflowUnderflow>True</CheckForOverflowUnderflow>
|
<CheckForOverflowUnderflow>True</CheckForOverflowUnderflow>
|
||||||
<PlatformTarget>anycpu</PlatformTarget>
|
<PlatformTarget>anycpu</PlatformTarget>
|
||||||
<DebugType>full</DebugType>
|
<DebugType>full</DebugType>
|
||||||
|
<OutputPath>C:\Quantower\TradingPlatform\v1.129.11\..\..\Settings\Scripts\Indicators\Quantower</OutputPath>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
|
||||||
<DebugType>embedded</DebugType>
|
<DebugType>embedded</DebugType>
|
||||||
@@ -28,6 +29,7 @@
|
|||||||
<WarningLevel>3</WarningLevel>
|
<WarningLevel>3</WarningLevel>
|
||||||
<CheckForOverflowUnderflow>True</CheckForOverflowUnderflow>
|
<CheckForOverflowUnderflow>True</CheckForOverflowUnderflow>
|
||||||
<PlatformTarget>anycpu</PlatformTarget>
|
<PlatformTarget>anycpu</PlatformTarget>
|
||||||
|
<OutputPath>C:\Quantower\TradingPlatform\v1.129.11\..\..\Settings\Scripts\Indicators\Quantower</OutputPath>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="..\Source\**\*.cs" Exclude="..\Source\obj\**;..\Source\Feeds\**">
|
<Compile Include="..\Source\**\*.cs" Exclude="..\Source\obj\**;..\Source\Feeds\**">
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ Alphavantage - Free API to collect 100 recent daily quotes. It requires a (free)
|
|||||||
Symbol: stock ("AAPL"),
|
Symbol: stock ("AAPL"),
|
||||||
APIkey: unique Alphavantage API key
|
APIkey: unique Alphavantage API key
|
||||||
|
|
||||||
</summary> */
|
</summary>
|
||||||
|
|
||||||
public class Alphavantage_Feed : TBars
|
public class Alphavantage_Feed : TBars
|
||||||
{
|
{
|
||||||
@@ -53,3 +53,4 @@ public class Alphavantage_Feed : TBars
|
|||||||
return (date, o, h, l, c, v);
|
return (date, o, h, l, c, v);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
@@ -10,7 +10,7 @@ Yahoo Finance - Free API feed to collect daily market quotes
|
|||||||
Usage:
|
Usage:
|
||||||
Yahoo_Feed ticker = new("MSFT", 20)
|
Yahoo_Feed ticker = new("MSFT", 20)
|
||||||
|
|
||||||
</summary> */
|
</summary>
|
||||||
|
|
||||||
public class Yahoo_Feed : TBars
|
public class Yahoo_Feed : TBars
|
||||||
{
|
{
|
||||||
@@ -45,4 +45,5 @@ public class Yahoo_Feed : TBars
|
|||||||
base.Add(d, o, h, l, c, v);
|
base.Add(d, o, h, l, c, v);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
@@ -11,7 +11,7 @@
|
|||||||
<Authors>Miha Kralj</Authors>
|
<Authors>Miha Kralj</Authors>
|
||||||
<Copyright>Miha Kralj</Copyright>
|
<Copyright>Miha Kralj</Copyright>
|
||||||
<PackageReadmeFile>readme.md</PackageReadmeFile>
|
<PackageReadmeFile>readme.md</PackageReadmeFile>
|
||||||
<TargetFrameworks>net7.0;net6.0;netstandard2.1</TargetFrameworks>
|
<TargetFrameworks>net7.0;net6.0;netstandard2.1;net48</TargetFrameworks>
|
||||||
<ImplicitUsings>disable</ImplicitUsings>
|
<ImplicitUsings>disable</ImplicitUsings>
|
||||||
<LangVersion>preview</LangVersion>
|
<LangVersion>preview</LangVersion>
|
||||||
<Nullable>disable</Nullable>
|
<Nullable>disable</Nullable>
|
||||||
|
|||||||
@@ -18,11 +18,11 @@ Remark:
|
|||||||
|
|
||||||
public class SMA_Series : Single_TSeries_Indicator {
|
public class SMA_Series : Single_TSeries_Indicator {
|
||||||
private double _sum, _oldsum;
|
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) {
|
public SMA_Series(TSeries source, int period = 0, bool useNaN = false) : base(source, period, false) {
|
||||||
_sum = _oldsum = 0;
|
_sum = _oldsum = 0;
|
||||||
_len = _oldlen = 0;
|
_len = 0;
|
||||||
if (this._data.Count > 0) { base.Add(this._data); }
|
if (this._data.Count > 0) { base.Add(this._data); }
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -39,6 +39,6 @@ public class SMA_Series : Single_TSeries_Indicator {
|
|||||||
}
|
}
|
||||||
public void Reset() {
|
public void Reset() {
|
||||||
_sum = _oldsum = 0;
|
_sum = _oldsum = 0;
|
||||||
_len = _oldlen = 0;
|
_len = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user