mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-07 13:37:44 +00:00
Merge branch 'dev' into main
This commit is contained in:
@@ -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\**">
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
*/
|
||||
@@ -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,8 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<Title>QuanTAlib</Title>
|
||||
<Version>0.1.28</Version>
|
||||
<Version>0.1.29</Version>
|
||||
<Product>Library of Technical Indicators for .NET</Product>
|
||||
<Description>Quantitative Technical Analysis library for real-time (streaming) data analysis</Description>
|
||||
<RepositoryType>git</RepositoryType>
|
||||
@@ -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>
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user