//version=5
indicator("PVSRA", overlay=true)

// Definir variáveis
bullCandle = close > open
bearCandle = close < open

// Verificar se a vela é de alta ou de baixa
isBullish = close > open
isBearish = close < open

// Calcular volume relativo
bullVolume = volume * isBullish
bearVolume = volume * isBearish

// Plotar volumes
plot(bullVolume, color=color.green, style=plot.style_histogram, title="Bull Volume")
plot(bearVolume, color=color.red, style=plot.style_histogram, title="Bear Volume")
Beyond Technical Analysis

Pernyataan Penyangkalan