Error CS0612: 'cAlgo.API.StaticPosition' is obsolete

Created at 29 Mar 2019, 03:33
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!
swingfish's avatar

swingfish

Joined 25.06.2016

Error CS0612: 'cAlgo.API.StaticPosition' is obsolete
29 Mar 2019, 03:33


is there any reference on what to replace the old version code with? 

        public StaticPosition InfoLocation;

... 

                if (rsi.Result.LastValue < 50)
                {
                    InfoLocation = StaticPosition.TopRight;
                }
                else
                {
                    InfoLocation = StaticPosition.BottomRight;
                }


... 

                ChartObjects.DrawText(Symbol.Code + "_SymbolPnL", symbolTextDisplayed, InfoLocation, Colors.White);

 


@swingfish
Replies