cma

Inside Bar

291 4 59
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)
I think have to change line 2 in this one: study("Inside Bar",overlay=true)
then plot it and can use
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
Ideas Scripts Chart
United States
United Kingdom
India
España
France
Italia
Polska
Brasil
Россия
Türkiye
Indonesia
日本
한국
Home Stock Screener Forex Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators For the WEB Widgets Stock Charting Library Priority Support Feature Request Blog & News FAQ Help & Wiki Twitter
Private Messages Chat Ideas Published Followers Following Priority Support Public Profile Profile Settings Account and Billing Sign Out