OPEN-SOURCE SCRIPT
Atualizado

Trading Ranges

223
I made this script to easily see how a instrument is trading compared to the previous larger timeframes trading ranges. I added 3 candles representing the larger timeframe eg: Daily on a 5 minute chart. The fill area is the range of the previous larger timeframe and there is a parameter to show the open and close lines, you can also set the gradient colors and transparency levels of the lines. I also added some basic alerts for breakout above and below the range. The code could be condensed into functions but I did it like this to get around some pinescript issues.
Notas de Lançamento
small code tidy up

Aviso legal

As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.