Bug when drawing an object (Property IsHidden) doesn't work

Created at 08 Jun 2023, 09:44
AlgoCorner's avatar

AlgoCorner

Joined 12.05.2015

Bug when drawing an object (Property IsHidden) doesn't work
08 Jun 2023, 09:44


Hello Spotware,
I'm having this issue on cTrader where If I declare an object and set its property to Hidden at start, it doesn't work.

I'm using Spotware 4.7.9

Please fix.

Thanks for your support.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using cAlgo.API;
using cAlgo.API.Collections;
using cAlgo.API.Indicators;
using cAlgo.API.Internals;

namespace cAlgo;

[Indicator(IsOverlay = true, AccessRights = AccessRights.None)]
public class TestHiding : Indicator
{
    protected override void Initialize()
    {
        var line = Chart.DrawHorizontalLine("Line", Ask, Color.Yellow);
        line.IsHidden = true;
    }

    public override void Calculate(int index)
    {
    }
}

 


@AlgoCorner
Replies

Spotware
08 Jun 2023, 10:53

Dear Waxy,

Thank you for reporting this issue. We managed to reproduce it and we will fix it in an upcoming update.

Best regards,

cTrader Team


@Spotware