Adaptation for Prorealtime V10.3 of the Weis Wave Volume indicator created by Lazy Bear for the Tradingview platform.
This indicator takes the volume and organizes it in waves, highlighting the inflection points as well as the supply / demand.
Adaptación para Prorealtime V10.3 del indicador Weis Wave Volume creado por Lazy Bear para la plataforma Tradingview.
Este indicador toma el volumen y lo organiza en ondas , destacando los puntos de inflexión así como la oferta/demanda.
REM WEIS WAVE VOLUME
// @author LazyBear
// List of all indicators Lazy Bear: https://www.tradingview.com/v/4IneGo8h/
//adaptación para Prorealtime por bolsatrilera
trendDetectionLength=2
if close>close[1] then
mov=1
elsif close<close[1] then
mov=-1
else
mov=0
endif
if mov <>0 and mov <> mov[1] then
trend=mov
else
trend=trend[0]
endif
rising=abs(close-close[1])>abs(close-close[trendDetectionLength])
falling=abs(close-close[1]<abs(close-close[trendDetectionLength]))
if rising or falling then
isTrending= rising or falling
endif
if trend <> wave[1] and isTrending then
wave=trend
else
wave=wave[0]
endif
if wave=wave[1] then
vol=vol[0]+volume
else
vol=volume
endif
if wave=1 then
up=vol
else
up=0
endif
if 0 then
if wave=1 then
dn=0
endif
endif
if wave=-1 then
dn=-vol
else
dn=vol
endif
if wave=1 then
dn=0
else
dn=vol
endif
return up coloured (0,128,0)style(histogram)as "up",dn coloured(255,0,0)style(histogram)as "dn"