Welcome to the BEST forum for traders

Did you know we're sharing tons of exclusive content here?
Our community is growing quickly. Take a look around and say "Hello".

Creating Volum inddictor with volume bars in 3 colours

Mar 23, 2021 - 8:56 AM

Viewed 820 times

https://best-trading-indicator.com/community/bti/forums/4180/topics/23320 COPY
  • I think about very simple Volume indicator for TradingView with 3 colour bars?: For Standard Volume it would be 3 bars: bullish, bearish and third pink volume bar lower than n previous volume bars. Can someone help me with that?

    0
  • Hi

    You might want to use the barcolor function

    https://www.tradingview.com/pine-script-reference/v4/#fun_barcolor

    Example:

    barcolor(bullish_condition ? color.green : bearish_condition ? color.red : volume_lower_than_n_previous_bars ? color.pink : color.na, title="Bar Color")
    
    This post was edited Mar 23, 2021 10:12AM
    0
CONTENTS