cma

Inside Bar

2635 vizualizações
603
2635 6
Source code that allows to find inside bars in any asset.
Remover dos scripts favoritos Adicionar aos scripts favoritos
//@version=2
study("Inside Bar")

isInside(position) =>
    high < high[position] and low > low[position]

secLast = 1
barcolor(isInside(secLast)? #FF9800: na)
Hey, this indicator is great. I'm looking to gain further insight into it. I was wondering why some bars are hollow and some bars are filled orange?

thanks
Resposta
cma cryptowasteman
@cryptowasteman, the orange bars mean that the last bar is bigger than the current bar so that is the definition the inside bar
Resposta
I think have to change line 2 in this one: study("Inside Bar",overlay=true)
then plot it and can use
+2 Resposta
cma MarcoValente
Thanks mate! I did and It doesn't show the indicator on the bottom of the graph! however to use that area I put plot(isPinBar()) to show when the pin bar happens
Resposta
cma MarcoValente
Thanks mate! I did and It doesn't show the indicator on the bottom of the graph! however to use that area I put plot(isInside(secLast)) to show when the pin bar happens*
Resposta
good idea
Resposta
Início Rastreador de Fundamentos Rastreador Forex Rastreador de criptomoedas Calendário econômico Shows Como Funciona Recursos gráficos Preços Regras da Casa Moderadores Soluções para sites e corretoras Widgets Soluções em Gráficos Biblioteca de Gráficos Lightweight Central de Ajuda Indique um amigo Solicitação de recurso Blog & Notícias FAQ Wiki Twitter
Perfil Configurações de perfil Conta e cobrança Indique um amigo Meus Tíquetes de Suporte Central de Ajuda Ideias Publicadas Seguidores Seguindo Mensagens Privadas Conversa Deslogar