public class Sample1 : Indicator
{
protected override void OnStateChange()
{
if (State == State.SetDefaults)
{
Name = "Sample1";
Calculate = Calculate.OnBarClose;
IsOverlay = false;
DrawOnPricePanel = false;
IsAutoScale = true;
IsSuspendedWhileInactive = true;
}
}
protected override void OnRender(ChartControl chartControl, ChartScale chartScale)
{
RenderTarget.DrawRectangle(new SharpDX.RectangleF(1, 1, 200, 200), Brushes.Black);
}
}
does not draw in the panel as expected, could the support tell me what's wrong? The DrawRectangle is actually using the price panel coordinates and not the current panel coordinates.
Thanks,
dotnet
Comment