Dynamic horizontal line, flashing text .

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #161602 quote
    ThePenntChemist
    Participant
    Average

    Is it possible to set a dynamic horizontal line on the volume indicator and set a value, when the volume bar touch the horizontal line/preset value, the value text will start blink red/green font. To cancel user will need to delete the horizontal line.

    #161610 quote
    Nicolas
    Keymaster
    Master

    I think that we can probably code something like this, but why not using the alert tool instead? (no blinking, but sound alert with window opening).

    #161662 quote
    ThePenntChemist
    Participant
    Average

    Hi Nicolas, thank you for your reply.

    I do set alerts on vols indicator, its just when you have multiple alerts set up on charts day trades, swing trades, and vols indicators it get confused when too many alerts pop up.

    I have multi 1 min charts opened on screens, more of focus on visual and check for vols spike to get in early for the momentum.

    As per attached image currently have 2 dynamic horizontal lines on vol indicator with 2 values showing (1 on the Y axis and 1 beside the latest vol bar, of course both will move up and down when its live. Is there a code can be add into the existing Horizontal line for the black text to flash red/green for 20seconds then return to black color text?

    Vols.jpg Vols.jpg
    #161667 quote
    Nicolas
    Keymaster
    Master

    The code cannot use the “dynamic horizontal line” indicator. We’ll have to recode something from scratch, what are the criteria to flash an alert?

    #161673 quote
    ThePenntChemist
    Participant
    Average

    I assume this has to be an overlay indicator added onto the volume indicator. User can set the trigger volume manually like enter into an input box or drop/drag on horizontal of the volume indicator for trigger point.

    Criteria: For example, user set the vol of 450000 units as trigger. Live volume text to flash red/green for 20sec if the current 1 min volume bar is >= 450000 units. Hope that helps?

    #161744 quote
    ThePenntChemist
    Participant
    Average

    I’ve found this vol spike indicator shared by one of the PRT user, maybe it could be integrated with some sort of <blink> on vol label?

    Criteria to flash:
    -Vol label flash red and green for 20seconds when it hit the trigger then stop flashing.
    -User can set the trigger volume manually like enter into an input box OR if possible user can drop/drag on horizontal of the volume indicator for trigger point.-
    -Example, user set the vol of 450000 units as trigger. Live volume label to flash red and green for 20sec if the current 1 min volume bar is >= 450000 units.

    REM VOLUME SPIKES
    //código original de nboone para la plataforma Tradingview
    //los colores del histograma estan de acuerdo al cambio
    //relativo al anterior histograma
    //En otras palabras,el indicador dibuja un histograma verde
    //en incremento de volumen y un histograma rojo en decremento
    //adaptación para la plataforma Prorealtime v10.3
    //https://www.prorealcode.com/prorealtime-indicators/volume-spikes/
    
    if volume-volume[1] < 0 then
    r=255
    g=0
    B=0
    else
    r=0
    g=153
    b=0
    endif
    
    
    return volume coloured (r,g,b)style(histogram)as "Volume Spikes"
    
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.

Dynamic horizontal line, flashing text .


ProBuilder: Indicators & Custom Tools

New Reply
Author
Summary

This topic contains 5 replies,
has 2 voices, and was last updated by ThePenntChemist
4 years, 12 months ago.

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