Hi, I would like to draw a line at the volume indicator panel, showing the highes volume in the last 35 bars. That would be quite feasible if I was doing it for price ( I found a couple of those in the library), since i know the command high, but I can’t seem to find any command for the volume. Can someone help me out?
There you go:
HighVolume = highest[35](Volume)
Drawhline(HighVolume)
Return
Thank you Roberto, this code returned many lines, one for every high of every bar of the last 35. But it’s close. Any idea how to select just the highes high?
Add this line at the beginning, as line 1:
Defparam DrawOnLastBarOnly = True
Thanks, that works!
HOweve, the line appearing is in gray and very thing. Even if I change the color or thickness is barely visible. Anyway to make it more black? If not that will have to do.
Thanks Roberto, you da man.
There you go:
Defparam DrawOnLastBarOnly = True
HighVolume = highest[35](Volume)
Drawhline(HighVolume) coloured(0,128,0,255) style(line,3)
Return
thickness’ range is 1 to 5.
Colours http://cloford.com/resources/colours/500col.htm.
Thank you as always roberto 🙂