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 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
EN English
EN English (UK)
EN English (IN)
DE Deutsch
FR Français
ES Español
IT Italiano
PL Polski
TR Türkçe
RU Русский
PT Português
ID Bahasa Indonesia
MS Bahasa Melayu
TH ภาษาไทย
VI Tiếng Việt
JA 日本語
KO 한국어
ZH 简体中文
ZH 繁體中文
AR العربية
Home Stock Screener Forex Signal Finder Cryptocurrency Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators Website & Broker Solutions Widgets Stock Charting Library Feature Request Blog & News FAQ Help & Wiki Twitter
Profile Profile Settings Account and Billing My Support Tickets Contact Support Ideas Published Followers Following Private Messages Chat Sign Out