cma

Inside Bar

Source code that allows to find inside bars in any asset.
Remove from Favorite Scripts Add to Favorite Scripts
//@version=2
study("Inside Bar")

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

secLast = 1
barcolor(isInside(secLast)? #FF9800: na)

Comments

I think have to change line 2 in this one: study("Inside Bar",overlay=true)
then plot it and can use
+2 Reply
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
Reply
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*
Reply
good idea
Reply
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
Reply
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
Reply
Home Stock Screener Forex Screener Crypto Screener Economic Calendar How It Works Chart Features Pricing Refer a friend House Rules Help Center Website & Broker Solutions Widgets Charting Solutions Lightweight Charting Library Blog & News Twitter
Profile Profile Settings Account and Billing Refer a friend My Support Tickets Help Center Ideas Published Followers Following Private Messages Chat Sign Out