Draw text and a icon
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
Replies
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
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