Chart.DrawText on each candle
Chart.DrawText on each candle
29 Jun 2019, 12:00
I am trying to get Chart.DrawText() to draw text under each candle.
but i only get text on the most recent candle [index]
in Calculate() i have
Chart.DrawText("UPDOWN", i.ToString(), i, MarketSeries.Low[i] - 5, "#8fb300");
how do i get it to work on each candle?
Replies
igorjrmedeiros
18 Jul 2019, 17:13
RE: RE:
stuart said:
stuart said:
I am trying to get Chart.DrawText() to draw text under each candle.
but i only get text on the most recent candle [index]
in Calculate() i have
Chart.DrawText("UPDOWN", i.ToString(), i, MarketSeries.Low[i] - 5, "#8fb300");
how do i get it to work on each candle?
I tried the Obsolete ChartObjects.DrawText and it works as expected.
so why does the new Chart.DrawText not work the same way?
i feel like we are in the dark with these updates.
Hi stuart,
Try to do it:
Chart.DrawText("UPDOWN" + i, i.ToString(), i, MarketSeries.Low[i] - 5, "#8FB300");
The first parameter is the name to your instance. Try it.
I am considering that your index is the "int i".
Best Regards,
@igorjrmedeiros
PanagiotisCharalampous
26 May 2020, 11:52
Hi john_7ko,
You can use this site to get color hex codes.
Best Regards,
Panagiotis
@PanagiotisCharalampous
stuart
29 Jun 2019, 12:53
RE:
stuart said:
I tried the Obsolete ChartObjects.DrawText and it works as expected.
so why does the new Chart.DrawText not work the same way?
i feel like we are in the dark with these updates.
@stuart