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

Experiment

Zigzag Array ExperimentalThis is experimental script for zigzag which uses type, method and array. Not recommend for actual usage, for pine script study maybe useful. In this experiment, I use type as coded below. It seems have limitation as specially when push as array. As Trading View recommendation, pushing float and int into array especially for type not guarantee to work. I agree with that. Preferred to push array as line or label especially for types. // @type Used for point especially for array // @field x int value for bar_index // @field y float value for price // @field sty label style // @field col color for text label // @field str high or low string type point int x = na float y = na string sty = na color col = na string str = na I simulate the arrays as below. var dirLine = array.new() var dirLabel = array.new() var dirPoint = array.new() .... dirPoint.unshift(zigzag.createPoint(0)) dirLabel.unshift(zigzag.createLabel(fontSize, 0, true)) dirLine.unshift(zigzag.createLine(width, switchLine, 0, true)) Here are some results.
Indicador Pine Script®
por RozaniGhani-RG
Аbr 9, 2023
1313
Running Average [EXPERIMENT]Predicting the future has nothing to do with trading, understanding your indicator and knowing how to use it does. Probably not the most efficient code, oh well.. Let me know if it's useful :)
Indicador Pine Script®
por EvoCrypto
Atualizado Jun 12, 2020
1010

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