3.0.0-preview.1 #1292
DaveSkender
announced in
Release
3.0.0-preview.1
#1292
Replies: 1 comment
-
I'll follow-up soon with more examples. Here's a few quick examples: Streaming hubs// prerequisite: `quotes`
// setup quote provider
QuoteHub<Quote> provider = new();
// prefill quotes to provider
for (int i = 0; i < 20; i++)
{
provider.Add(quotes[i]);
}
// initialize observer to
// auto-generate real-time indicators
EmaHub<Quote> emaHub = provider.ToEma(14);
// adding more quotes to provider
for (int i = 20; i < length; i++)
{
provider.Add(quotesList[i]);
}
// indicator results
IReadOnlyList<EmaResult> emaResults = emaHub.Results;
// observer can be further chained
// to create other indicator hubs
var smaHub = emaHub.ToSma(3); Buffered listsvar emaList = new EmaList(14);
// add quotes
emaList.Add(quote[i]);
// the list itself is the results
var results = emaList; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We’ve released a new partial preview release Stock Indicators for .NET NuGet package.
See Skender.Stock.Indicators @ NuGet.org for more information.
Warning
Preview releases are experimental and volatile with breaking changes and conventions.
Note
There will be a series of preview releases that implement streaming use cases. We expect possibly 2-3 additional preview pre-releases before we make an official stable v3 package.
What's Changed
Hub
base approach that is a fully chainable observable/observer.QuoteHub
(base provider)AdlHub
AtrHub
AtrStop
EmaHub
SmaHub
AlligatorHub
RenkoHub
UseHub
(QuotePart
)EmaList
AdxList
StreamHub
by @DaveSkender in feat: Max cache size for StreamHub #1290Full Changelog: 2.6.0...3.0.0-preview.1
This discussion was created from the release 3.0.0-preview.1.
Beta Was this translation helpful? Give feedback.
All reactions