{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Quick Start\n", "\n", "In order to use this .NET Interactive Notebook and play along with QuanTAlib (outside of making your own app or plugging QuanTAlib into Quantower platform), you will need:\n", "\n", "- Installed Visual Studio Code\n", "- Installed .NET 6 SDK\n", "- Installed .NET Interactive Notebooks extension\n", "\n", "**For impatient**, here is a simple example of calculating three moving averages - SMA(data), EMA(SMA(data)) and WMA(EMA(SMA(data))) from 10 days of AAPL stock data using QuanTAlib:" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "dotnet_interactive": { "language": "csharp" }, "vscode": { "languageId": "dotnet-interactive.csharp" } }, "outputs": [ { "data": { "text/html": [ "
| index | value |
|---|---|
| 0 | 105.3 |
| 1 | 293.1 |
| 2 | 0 |
| 3 | 10 |
| index | value |
|---|---|
| 0 | Infinity |
| 1 | 0.6666666666666666 |
| 2 | 0.3076923076923077 |
| 3 | 0.1951219512195122 |
| 4 | 0.1415929203539823 |
| 5 | 0.11072664359861592 |
| 6 | 0.09078014184397164 |
| 7 | 0.07687687687687687 |
| 8 | 0.06664931007550118 |
| 9 | 0.05881677197013211 |
| 10 | 0.2499389797412741 |
| index | value |
|---|---|
| 0 | 0 |
| 1 | 0.08934530370370339 |
| 2 | 0.3599908358509947 |
| 3 | 0.5984373224068585 |
| 4 | 0.9604679820661939 |
| 5 | 1.17393637722238 |
| 6 | 1.295101583309171 |
| 7 | 1.5073770108948183 |
| 8 | 1.4718244887751928 |
| 9 | 1.1537265475126177 |
| 10 | 0.8550987734004014 |
| 11 | 0.8650928385987653 |
| 12 | 0.5867583008849087 |
| 13 | 0.15053155636913873 |
| 14 | -0.13622024638714825 |