Draw text and a icon

Created at 25 Apr 2023, 00: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!
CT

ctid6017631

Joined 25.04.2023

Draw text and a icon
25 Apr 2023, 00:33


How can i draw a icon and text in the same bar?
 Chart.DrawArrow(index.ToString(),index,priceclose,(index+2),priceclose-15,Color.Yellow,1,LineStyle.LinesDots);
    ChartObjects.DrawText(index.ToString(), text.ToString(), index, _supert2.DownTrend.Last(0), VerticalAlignment.Top, HorizontalAlignment.Center);

This only draw text.
Thank you


     
    
 


@ctid6017631
Replies

PanagiotisChar
25 Apr 2023, 09:29

Hi there,

Try giving a different name to each object.

Aieden Technologies

Need help? Join us on Telegram

Need premium support? Trade with us

 


@PanagiotisChar

ctid6017631
25 Apr 2023, 16:14

 

Thank You!

var a=1;

Chart.DrawArrow(index.ToString(),index,priceclose,(index+2),priceclose-15,Color.Yellow,1,LineStyle.LinesDots);
    ChartObjects.DrawText(index.ToString()+a, text.ToString(), index, _supert2.DownTrend.Last(0), VerticalAlignment.Top, HorizontalAlignment.Center);


@ctid6017631