Outside Day Failure

239 1 24
A Price Action pattern that fails! Should only be used on daily and weekly and as a bias.
Target can be used for intraday trading. Inspiration from Inside Day Failure pattern
Remove from Favorite Scripts Add to Favorite Scripts
study(title = "OF", overlay = true)
showlabel = input(title="Show label", type=bool, defval=true)

insidebar = (high <= high[1] and low >= low[1])
outsidebar = (high[1] > high[2] and low[1] < low[2]) and not (insidebar)

bearishobbf = (outsidebar and (high > high[1] and close < high[1]))
bullishobbf = (outsidebar and (low < low[1] and close > low[1]))

barcolor(bearishobbf ? white : na, 0, true, "OF")
plotshape(showlabel ? bearishobbf : na, title= "OF", location=location.abovebar, color=white, style=shape.arrowdown, text="OF")

barcolor(bullishobbf ? white : na, 0, true, "OF")
plotshape(showlabel ? bullishobbf : na, title= "OF", location=location.belowbar, color=white, style=shape.arrowup, text="OF")
Note: This has been updated! This is still usable but the new one has a great addition:
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 繁體中文
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