MarketDepth Bug makes it almost impossible to draw a rectangle/elips/triangle in the window.

Created at 14 Oct 2022, 11:14
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
SH

Shares4us

Joined 01.04.2020

MarketDepth Bug makes it almost impossible to draw a rectangle/elips/triangle in the window.
14 Oct 2022, 11:14


Dear Spotware,

Build this Code (on cTrader 4.4.13 running on a I9 + DDR)

using cAlgo.API;
 
namespace cAlgo
{
    [Indicator(IsOverlay = true, AccessRights = AccessRights.None)]
    public class TestMarketDepth : Indicator
    {
        MarketDepth MD;
        protected override void Initialize()
        {
            MD = MarketData.GetMarketDepth(SymbolName);
            MD.Updated += MD_Updated;
        }

        private void MD_Updated()
        {
        }
        public override void Calculate(int index)
        {
        }
    }
}

and run the indicator.

Draw an icon in the window. => OK
Draw a Rectangle in the window.=> Won't draw. (Gets worse if you have more symbols using the GetMarketDepth; using 5 or more in parrallel demonstrates the problem very well )


@Shares4us