Volume up bars, down bars

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #244701 quote
    Ludde
    Participant
    New

    I need help with an indicator that meets the following conditions:

    The indicator should display the sum of the volume for all up bars over the past 15 bars.
    It should also display the sum of the volume for all down bars over the past 15 bars.
    The results should be shown in a line chart.

    Thankful for help

    #244702 quote
    JS
    Participant
    Senior
    Hereby the indicator:
    Period = 15
    
    UpVolume = 0
    DownVolume = 0
    
    For i = 0 to Period-1 do
    If Close[i] > Open[i] then
    UpVolume = UpVolume + Volume[i]
    ElsIf Close[i] < Open[i] then
    DownVolume = DownVolume + Volume[i]
    EndIf
    Next
    
    RETURN UpVolume as "UpVolume" Coloured("Green"), DownVolume as "DownVolume" Coloured("Red")
    Ludde, robertogozzi and Iván González thanked this post
    #244750 quote
    MaoRai54
    Participant
    Master
    Hello, it seems interesting but I cannot understand its purpose. Someone can tell me which is its practical use? Thanks in advance
    #244752 quote
    JS
    Participant
    Senior

    For example, you can use this indicator as an extra confirmation when you want to open a position:

    If myLongConditions and UpVolume>DownVolume then

    If myLongConditions and UpVolume>AvgVolume then

    If myShortConditions and DownVolume>10000 then

    MaoRai54 and robertogozzi thanked this post
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.

Volume up bars, down bars


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
Ludde @ludde Participant
Summary

This topic contains 3 replies,
has 3 voices, and was last updated by JS
11 months ago.

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