OPEN-SOURCE SCRIPT
Atualizado Price Stats

Introduction
Price Stats is an indicator based on the statistics shown in MarketSmith charting software when viewing the Track Price information, also known as the "yellow box."
The following stats are available for the most recent price bar:
■ High price
■ Low price
■ Last price
■ Percent change in price from prior bar
■ Closing range within the bar
■ Current volume
■ Volume % change relative to the 50-day moving average volume
For daily charts:
■ 21-day EMA and % offset of price
■ 50-day SMA and % offset of price
■ 200-day SMA and % offset of price
Here's how to interpret the moving averages:
In the image below the 50-day SMA is 74.58 (8.04%). 74.58 represents the value of the 50-day SMA. 8.04% indicates that the current price is 8.04% above the SMA. A negative % would indicate the current price is the specified % below the SMA.

Price Stats is an indicator based on the statistics shown in MarketSmith charting software when viewing the Track Price information, also known as the "yellow box."
The following stats are available for the most recent price bar:
■ High price
■ Low price
■ Last price
■ Percent change in price from prior bar
■ Closing range within the bar
■ Current volume
■ Volume % change relative to the 50-day moving average volume
For daily charts:
■ 21-day EMA and % offset of price
■ 50-day SMA and % offset of price
■ 200-day SMA and % offset of price
Here's how to interpret the moving averages:
In the image below the 50-day SMA is 74.58 (8.04%). 74.58 represents the value of the 50-day SMA. 8.04% indicates that the current price is 8.04% above the SMA. A negative % would indicate the current price is the specified % below the SMA.
Notas de Lançamento
version 3.0Updates:
■ Left/right offset of the Price Stats dialog can now be configured.
■ Minor changes to how the offset is calculated based on the day of the week.
Notas de Lançamento
version 4.0Update:
■ Choose your preferred font size for the text.
Notas de Lançamento
version 5.0Update:
■ Update formatting of the volume to make it easier to read.
Notas de Lançamento
version 6.0Update:
■ Add "Distance to Low" option
Knowing the distance to the low can help when setting a stop. For example, if buying an upside reversal, a logical stop could be set at the low of the bar. At a glance, you can now see the percentage and distance in points from the current price to the low. This allows for a quick determination if low is within your preferred stop range.
Notas de Lançamento
version 7.0Update:
■ Duplicate labels no longer appear when using the Bar Replay option
■ Code cleanup
Notas de Lançamento
version 8.0Updates:
■ Vertical and horizontal placement of the Price Stats are now configurable.
■ Add 'High to Low' which shows range in price as points and percentage.
The 'High to Low' value may be helpful if you plan to buy on a breakout to a new high. At a glance, you'll know the percentage and distance in points if you opt to use the low of the bar as a stop.
Notas de Lançamento
version 9.0What's new:
■ Add 20-week simple moving average to the weekly chart.
Notas de Lançamento
version 10.0What's New:
■ Price Stats can be shown in a table with a configurable location.
Notas de Lançamento
version 11.0What's New:
■ Computations that return NaN (Not a Number) will now return 0.
Notas de Lançamento
version 12.0What's New:
■ Minor updates to the display of 52-week highs and lows.
Script de código aberto
No verdadeiro espirito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam entendê-lo e verificá-lo. Parabéns ao autor Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações e regida pelas Regras da Casa.
Para acesso rápido no gráfico, adicione esse script para seus favoritos — saiba mais aqui.
LevelUp Your Trading ~ TradingView® Indicators & Screeners: LevelUpTools.net
Buy Me A Beer: LevelUpTools.gumroad.com/coffee
Thank you for your support! 🍻
Buy Me A Beer: LevelUpTools.gumroad.com/coffee
Thank you for your support! 🍻
Aviso legal
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.
Script de código aberto
No verdadeiro espirito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam entendê-lo e verificá-lo. Parabéns ao autor Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações e regida pelas Regras da Casa.
Para acesso rápido no gráfico, adicione esse script para seus favoritos — saiba mais aqui.
LevelUp Your Trading ~ TradingView® Indicators & Screeners: LevelUpTools.net
Buy Me A Beer: LevelUpTools.gumroad.com/coffee
Thank you for your support! 🍻
Buy Me A Beer: LevelUpTools.gumroad.com/coffee
Thank you for your support! 🍻
Aviso legal
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.