HPotter

Bearish Engulfing automatic finding script

Hi
Let me introduce my Bearish Engulfing automatic finding script.
This is a bearish candlestick reversal pattern formed by two candlesticks .
Following an uptrend, the first candlestick is a up candlestick which is
followed by a down candlestick which has a long real body that engulfs or
contains the real body of the prior bar. The Engulfing pattern is the reverse
of the Harami pattern.
Remove from Favorite Scripts Add to Favorite Scripts
////////////////////////////////////////////////////////////
//  Copyright by HPotter v1.0 01/04/2014
//
//    This is a bearish candlestick reversal pattern formed by two candlesticks. 
//    Following an uptrend, the first candlestick is a up candlestick which is 
//    followed by a down candlestick which has a long real body that engulfs or 
//    contains  the real body of the prior bar. The Engulfing pattern is the reverse 
//    of the Harami pattern. 
////////////////////////////////////////////////////////////

study(title = "Bearish Engulfing", overlay = true)
barcolor(close[1] > open[1] ? open > close ? open >= close[1] ? open[1] >= close ? open - close > close[1] - open[1] ? yellow :na :na : na : na : na)
DONATE/TIP

BTC: 1Lo1GoTNsPbrjGAgPgF4MYZPhBFdoVHaTm
IS it possible to code this for a total engulfing script? I mean for a candle that totally engulfs the previous day not just the body?
Reply
nick.osborn.71 nick.osborn.71
Here is an example of what I mean http://screencast.com/t/2riRh43vHd
Reply
HPotter nick.osborn.71
I think it work the same.
Reply
Nice job Harry thanks for the help
Reply
HPotter TraderBoo
You are welcome.
Reply
is there a scripting community on Tradingview??
Reply
HPotter TraderBoo
I don`t know. I just started write the scripts.
Reply
Sure, click make it main and then open code from the chart and click Save. Then this script will be in your Indicators -> Customs Scripts.

Yes, pattern is yellow

Reply
HPotter HPotter
Right corner icon, Make it mine.
Reply
so the candles in yellow Bearish Engulfing
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