mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-07-29 18:17:43 +00:00
44 lines
845 B
Plaintext
44 lines
845 B
Plaintext
#!meta
|
|
|
|
{"kernelInfo":{"defaultKernelName":"csharp","items":[{"aliases":[],"name":"csharp"}]}}
|
|
|
|
#!csharp
|
|
|
|
#r "../lib/obj/Debug/QuanTAlib.dll"
|
|
using QuanTAlib;
|
|
QuanTAlib.Formatters.Initialize();
|
|
|
|
#!csharp
|
|
|
|
#r "nuget: ScottPlot"
|
|
|
|
using ScottPlot;
|
|
using Microsoft.DotNet.Interactive.Formatting;
|
|
Formatter.Register(typeof(ScottPlot.Plot), (p, w) =>
|
|
w.Write(((ScottPlot.Plot)p).GetSvgXml(600, 300)), HtmlFormatter.MimeType);
|
|
|
|
#!csharp
|
|
|
|
GbmFeed feed = new();
|
|
TSeries data = new(feed.Close);
|
|
Ccv ma = new(feed,5);
|
|
TSeries result = new(ma);
|
|
feed.Add(12);
|
|
display(result);
|
|
|
|
#!markdown
|
|
|
|
```mermaid
|
|
graph TD
|
|
A[QuanTAlib] --> B[lib]
|
|
B --> C[core]
|
|
B --> D[averages]
|
|
B --> E[momentum]
|
|
B --> F[oscillators]
|
|
B --> G[errors]
|
|
B --> H[feeds]
|
|
B --> I[patterns]
|
|
B --> J[statistics]
|
|
B --> K[volatility]
|
|
B --> L[volume]
|