API 3.8 Problem - Cross-Symbols, Drawings(Object) objectname.CrossSymbol = true; its Missing - Objects Deleting

Created at 13 Aug 2020, 16:00
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!
PA

paul.williams125

Joined 03.12.2019

API 3.8 Problem - Cross-Symbols, Drawings(Object) objectname.CrossSymbol = true; its Missing - Objects Deleting
13 Aug 2020, 16:00


 I would like to say that, in my opinion, your platform is much better than mt4 or mt5,  they crash alot.

 so thanks very much its really appreciated.

O.K regarding the problem

           var rectangle = Chart.DrawRectangle(name , x1, y1, x2, y2, color);
            rectangle.IsFilled = true;
            rectangle.IsInteractive = true;
            rectangle.IsLocked = true;

            rectangle.CrossSymbol = true;     is missing

This, now - since new API -  has cause a problem for

        private void OnChartObjectRemoved(ChartObjectRemovedEventArgs args)
        {

        }

It now deletes the objects when the symbol changes,   its ok if you change timeframes.

perhaps there is another way to stop it?

thanking you

kind regards

Paul Williams

 

 

 


@paul.williams125
Replies

paul.williams125
13 Aug 2020, 16:28

I mean, it deletes the object,

which automatically calls this :-

        private void OnChartObjectRemoved(ChartObjectRemovedEventArgs args)
        {

         my code

        }

this effects my program


@paul.williams125