mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-19 19:18:05 +00:00
Refactor TBar struct for improved equality comparison and string representation; update Benchmark program structure for better organization; modify Averages project file to include specific source files; add Directory.Build.props for common project settings; implement comprehensive tests for Ema, Sma, and Wma indicators; create mock classes for TradingPlatform.BusinessLayer to facilitate testing; enhance Quantower test project configuration for better test management.
This commit is contained in:
+16
-10
@@ -10,18 +10,24 @@ using Skender.Stock.Indicators;
|
||||
using TALib;
|
||||
using Tulip;
|
||||
|
||||
var config = ManualConfig.Create(DefaultConfig.Instance)
|
||||
.AddJob(Job.ShortRun
|
||||
.WithToolchain(InProcessNoEmitToolchain.Instance)
|
||||
.WithId(".NET 10.0"))
|
||||
.AddColumn(StatisticColumn.Mean)
|
||||
.AddColumn(StatisticColumn.StdDev)
|
||||
.HideColumns(Column.Job, Column.Error, Column.RatioSD);
|
||||
|
||||
BenchmarkRunner.Run<IndicatorBenchmarks>(config);
|
||||
|
||||
namespace QuanTAlib.Benchmarks;
|
||||
|
||||
public static class Program
|
||||
{
|
||||
public static void Main()
|
||||
{
|
||||
var config = ManualConfig.Create(DefaultConfig.Instance)
|
||||
.AddJob(Job.ShortRun
|
||||
.WithToolchain(InProcessNoEmitToolchain.Instance)
|
||||
.WithId(".NET 10.0"))
|
||||
.AddColumn(StatisticColumn.Mean)
|
||||
.AddColumn(StatisticColumn.StdDev)
|
||||
.HideColumns(Column.Job, Column.Error, Column.RatioSD);
|
||||
|
||||
BenchmarkRunner.Run<IndicatorBenchmarks>(config);
|
||||
}
|
||||
}
|
||||
|
||||
[MemoryDiagnoser]
|
||||
[MarkdownExporter, HtmlExporter]
|
||||
public class IndicatorBenchmarks
|
||||
|
||||
Reference in New Issue
Block a user