Draw a line at the maximum volume of last 35 bars
- This topic has 6 replies, 2 voices, and was last updated 4 years ago by .
Viewing 7 posts - 1 through 7 (of 7 total)
Viewing 7 posts - 1 through 7 (of 7 total)
Similar topics:
Forums › ProRealTime English forum › ProBuilder support › Draw a line at the maximum volume of last 35 bars
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:
|
1 2 3 |
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:
|
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:
|
1 2 3 4 |
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 🙂
Find exclusive trading pro-tools on 