TradingView
cma
27 jul 2016 23:43

Inside Bar 

Euro Fx/U.S. DollarFXCM

Beskrivning

Source code that allows to find inside bars in any asset.

Versionsinformation

Update code to Pine Ver. 4, set a red color to bullish and green color to bearish bars and plot the position where they come up.

Versionsinformation

Enable alert option

Versionsinformation

Plotting the indicator overlay and put arrows when the inside bar appear, green bullish and red bearish!
Kommentarer
DariusTrabalza
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
cma
@cryptowasteman, the orange bars mean that the last bar is bigger than the current bar so that is the definition the inside bar
MarcoValente
I think have to change line 2 in this one: study("Inside Bar",overlay=true)
then plot it and can use
cma
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
cma
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*
MarcoValente
good idea
surge_m
Hey, nice work! The only thing is, it alerts as soon as new candle opens inside the previous candle instead of alerting once an inside bar is closed. Can this be tweaked?
foreignDealer29630
Yes
gshrinivaspatgar988
This indicator is super.
hs174765
It's not enough good inside candle indicator, It can be better when code chaged by = Inside candle low should above the 50 % of the previous mother candle and mother candle should 80% of entire rage.
Mer