• Produtos
  • Comunidade
  • Mercados
  • Corretoras
  • Mais
Começar
  • Comunidade
  • /
  • /Roundingtop

Roundingtop

Pine Script Tutorial #4Welcome to Pine Script Tutorial #4 This is more complex than the previous 3 tutorials. This one builds upon the first 3 tutorials. What does this code do?: It plots on a histogram (at the bottom), the difference between closest round number and the close. So for example 84 -close = 16 pips. It shows the 16 pips on the histogram. First off, it is actually Two studies on this graph, not one. I wanted the histogram at the bottom and round number indicator to overlay on the graph. There is no code within Pine Script that lets you do that within one script. Secondly, there is no code that lets you spit out number on the graph, that is why I used histogram, initially I wanted it to tell me 16 pips in writing but no way of doing that. In order to replicate the graph you have to first plot the rounding formula as overlay. Thean take out the overlay and plot te histogram. I got the rounding formula from one of the coders here and simplified it. Just search round. Hope this helps, Feel free to comment.
Indicador Pine Script®
por MartinMystere
Мaio 12, 2017
22

Dados de mercado selecionados fornecidos pela ICE Data services. Dados de referência fornecidos pela FactSet. Copyright © 2025 FactSet Research Systems Inc.© 2025 TradingView, Inc.

Mais do que um produto
  • Supergráficos
Rastreadores
  • Ações
  • ETFs
  • Títulos
  • Criptomoedas
  • Pares de cripto
  • Pares CEX
  • Pares DEX
  • Pine
Mapas de Calor
  • Ações
  • ETFs
  • Cripto
Calendários
  • Economia
  • Resultados
  • Dividendos
Mais produtos
  • Curva de juros
  • Opções
  • News Flow
  • Pine Script®
  • Sparks
Apps
  • Dispositivo Móvel
  • Desktop
Ferramentas & assinaturas
  • Recursos
  • Preços
  • Dados de mercado
Ofertas especiais
  • Futuros do CME Group
  • Futuros Eurex
  • Conjunto de ações EUA
Sobre a empresa
  • Quem somos
  • Manifesto
  • Atletas
  • Blog
  • Carreiras
  • Media kit
Merchan
  • Loja TradingView
  • Cartas de Tarô para traders
Políticas & segurança
  • Termos de Uso
  • Aviso legal
  • Política de Privacidade
  • Política de Cookies
  • Declaração de Acessibilidade
  • Vulnerabilidade de segurança
  • Página de Status
Comunidade
  • Rede social
  • Mural do Amor
  • Indique um Amigo
  • Regras da Casa
  • Moderadores
Ideias
  • Trade
  • Educacional
  • Sugestão da Casa
Pine Script
  • Indicadores & estratégias
  • Wizards
  • Freelancers
Soluções para negócios
  • Widgets
  • Bibliotecas de gráficos
  • Lightweight Charts™
  • Gráficos Avançados
  • Plataforma de Negociação
Oportunidades de crescimento
  • Anúncios
  • Integração de Corretoras
  • Programa de Parceria
  • Programa educacional
Look FirstLook First