Is it possible to debug indicators in AlgoStudio?
I've tested a very simple indicator showing the close value of each bar in AlgoStudio, but unfortunately I've been unable to debug it.
When triying to Debug the indicator, the breakpoints simply didn't work and the backtester showed a value of 0 for every value of the indicator:
This is the indicator code:
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using PTLRuntime.NETScript;
namespace Untitled1
{
public class Untitled1 : NETIndicator
{
public Untitled1()
: base()
{
base.SetIndicatorLine("line1", Color.Green, 3, LineStyle.SimpleChart);
base.SeparateWindow = false;
}
public override void OnQuote()
{
Print(PriceType.Close);
SetValue(0, CurrentData.GetPrice(PriceType.Close));
}
}
}
Am I doing something worng, or is it a functionality to be developed yet?