Highlight current day volume bar on the daily chart


Category:
0
0

Hello Pete,

For those using the daily chart and the default volume settings and style. How can we create an indicator that highlights the current day (today) volume bar yellow.

 

Best

Marked as spam
Posted by (Questions: 22, Answers: 63)
Asked on December 9, 2018 7:51 am
74 views
0
Private answer

From what I find you cannot modify the “default volume subgraph”. So you have to create your own and set the color there:

declare lower;
plot vol = volume;
vol.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);
vol.AssignValueColor(if IsNaN(vol[-1]) then Color.YELLOW else Color.CURRENT);

Marked as spam
Posted by (Questions: 37, Answers: 4079)
Answered on December 9, 2018 9:13 am