#!meta

{"kernelInfo":{"defaultKernelName":"csharp","items":[{"aliases":[],"name":"csharp"}]}}

#!csharp

#r "..\lib\obj\Debug\QuanTAlib.dll"
using QuanTAlib;
QuanTAlib.Formatters.Initialize();

#!csharp

TSeries input = new();
Sma ma1 = new (6);
Sma ma2 = new (input, 6);

Random random = new Random();

for (int i = 0; i < 100; i++) {
    double randomValue = random.NextDouble() * 100;
    input.Add(randomValue);
    ma1.Calc(randomValue);
}

#!csharp

display(ma1);
display(ma2);
