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