Obsolete API

Created at 31 Aug 2018, 06:07
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!
TH

thongbaogiaodich

Joined 19.05.2018

Obsolete API
31 Aug 2018, 06:07


Dear cTrader,

I have this code

ChartObjects.DrawText("pipsaway", PipsAway, StaticPosition.TopRight);

When I compile in cTrader beta, it show error:

Error CS0612: 'cAlgo.API.StaticPosition' is obsolete
Error CS1501: No overload for method 'DrawText' takes 3 arguments

How can I modify my code for new API?

Thanks!


@thongbaogiaodich