Draw a line at the maximum volume of last 35 bars

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #160555 quote
    freecat1899
    Participant
    Junior

    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?

    #160559 quote
    robertogozzi
    Moderator
    Master

    There you go:

    HighVolume = highest[35](Volume)
    Drawhline(HighVolume)
    Return
    #162590 quote
    freecat1899
    Participant
    Junior

    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?

    #162591 quote
    robertogozzi
    Moderator
    Master

    Add this line at the beginning, as line 1:

    Defparam DrawOnLastBarOnly = True
    #162592 quote
    freecat1899
    Participant
    Junior

    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.

    #162600 quote
    robertogozzi
    Moderator
    Master

    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.

    #162601 quote
    freecat1899
    Participant
    Junior

    Thank you as always roberto 🙂

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.

Draw a line at the maximum volume of last 35 bars


ProBuilder: Indicators & Custom Tools

New Reply
Author
Summary

This topic contains 6 replies,
has 2 voices, and was last updated by freecat1899
4 years, 11 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 02/06/2021
Status: Active
Attachments: No files
Logo Logo
Loading...