Volume Separator (help needed)

Viewing 15 posts - 1 through 15 (of 27 total)
  • Author
    Posts
  • #121395 quote
    mattmckoen
    Participant
    New

    I would really like some help getting an indicator i’d like to use working in probuilder.

    I watched a youtube video where SMB capital have a volume indicator that seperates the buying and selling volume in the volume sticks.
    For instance; if 100 shares are traded in a 5 minute period, and 25 of them are on sell side (red), 65 on buy side (green) and 10 are flat (black), the volume will go to 100 on y axis, and the volume stick will comprise the the afforementioned figures as seperate colours rather than one block colour of green or red or black.

    SMB gave me the code which they use on their platform (I think they use TOS) but this code doesn’t run in Probuilder (It won’t let me add indicator to chart).
    As i’m sure is obvious i have no coding experience in the Probuilder and I doubt I’d use it for anything but this indicator so I’m stuck and would really appreciate some help.

    Screenshot-2020-03-06-17.08.49.jpg Screenshot-2020-03-06-17.08.49.jpg
    #121534 quote
    Nicolas
    Keymaster
    Master

    Would you mind posting screenshots of the indicator applied to a chart, in order to make it looks the same? Thank you.

    #121538 quote
    mattmckoen
    Participant
    New
    #121553 quote
    robert123
    Participant
    Master
    //o=open
    hi=high
    l=low
    c=close
    v=volume
    
    buying=v*(c-l)/(hi-l)
    selling=v*(hi-c)/(hi-l)
    
    sv=selling
    bv=buying
    
    return bv ,sv , summation[14](bv-sv)
    
    Nicolas thanked this post
    #121555 quote
    mattmckoen
    Participant
    New

    @robert123,

    Thanks for your post but unfortunately this isn’t the indicator I’ve seen.

    Screenshot-2020-03-09-11.13.49.png Screenshot-2020-03-09-11.13.49.png
    #121557 quote
    robert123
    Participant
    Master

    looks pretty close to above- you will need to turn the lines into ‘histogram’ and then remove the summation if it not needed.

    R

    #121573 quote
    Nicolas
    Keymaster
    Master

    Thank you Robert.

    This version is with histograms:

    //o=open
    hi=high
    l=low
    c=close
    v=volume
    
    buying=v*(c-l)/(hi-l)
    selling=v*(hi-c)/(hi-l)
    
    sv=selling
    bv=buying
    
    return bv coloured(0,255,0) style(histogram) ,sv coloured(255,0,0) style(histogram)
    #121575 quote
    robert123
    Participant
    Master

    Thanks, Nicolas

    #121577 quote
    GraHal
    Participant
    Master

    Nicholas code added as Log 199 here …

    Snippet Link Library

    Nicolas thanked this post
    #121585 quote
    mattmckoen
    Participant
    New

    Just inputted the code and love the result!!! Thank you guys so much for your help! V happy with it

    Matt

    Screenshot-2020-03-09-15.32.56.png Screenshot-2020-03-09-15.32.56.png
    #121595 quote
    GraHal
    Participant
    Master

    Wow … yeah!!!

    I used to use same Indicator on another website … good to have it back again.

    Thank You Each

    Gh.jpg Gh.jpg
    #121604 quote
    mattmckoen
    Participant
    New

    So just realised the indicator works perfectly for green candles; but for some reason it doesn’t separate the green from the red when a red candle forms! Any idea how i can fix this?

    #121633 quote
    Nicolas
    Keymaster
    Master

    There is no difference between green and red candles, the formula is the same, therefore it should work the same in any case..

    #121639 quote
    robert123
    Participant
    Master

    It might be worth looking at the summation(s)-I think the difference between longer and shorter calculations, could shed some light. In any event, the summation [14] used with a moving average is useful.

    #121642 quote
    Nicolas
    Keymaster
    Master

    You are right robert123! Cumulative volumes on each side is a great indicator of the market strength, even if the formula used here is not so accurate as extracting the real bid:ask volumes.

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

Volume Separator (help needed)


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
mattmckoen @mattmckoen Participant
Summary

This topic contains 26 replies,
has 5 voices, and was last updated by robert123
5 years, 11 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 03/06/2020
Status: Active
Attachments: 8 files
Logo Logo
Loading...