The code bellow prints text on top center of the screen.
ChartObjects.DrawText("Buy", buy_score.ToString() + " ▲", StaticPosition.TopCenter, Colors.Green);
However I got some warings:
Error CS0618: 'cAlgo.API.Internals.Algo.ChartObjects' is obsolete: 'Use Chart instead.'
Error CS0618: 'cAlgo.API.Internals.ChartObjects.DrawText(string, string, cAlgo.API.StaticPosition, cAlgo.API.Colors?)' is obsolete: 'Use Chart.DrawStaticText instead.'
I am not sure what suggestions do you need. The warnings are clear. You shoud use Chart.DrawStaticText() instead.
oops, sorry about that, somehow I missed this "Use Chart.DrawStaticText"!
Panagiotis Charalampous said:
Hi Patrick,I am not sure what suggestions do you need. The warnings are clear. You shoud use Chart.DrawStaticText() instead.Best Regards,Panagiotis