Prorealtime adaptation of the Standard Deviation 2 Colors indicator appeared on the Tradingview platform.
It shows the standard deviation of a period (default 20, although it is configurable) in the form of histogram to which we can add 2 colors, one for the increase of the deviation and another for its decrease.
REM STANDARD DEVIATION 2 COLORS
//publicado en la plataforma Tradingview por Polar Solar
//adaptación para la plataforma Prorealtime
//periodo=20 por defecto
stdev=STD[periodo](close)
if stdev < stdev[1] then
color=-1
else
if stdev > stdev[1] then
color=1
endif
endif
RETURN stdev COLOURED by color STYLE (histogram)as "standar desviation 2 colors"