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)
ok cool can we get it??
Reply
so the candles in yellow Bearish Engulfing
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
Right corner icon, Make it mine.
Reply
is there a scripting community on Tradingview??
Reply
HPotter PRO TraderBoo
I don`t know. I just started write the scripts.
Reply
Nice job Harry thanks for the help
Reply
HPotter PRO TraderBoo
You are welcome.
Reply
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 PRO nick.osborn.71
I think it work the same.
Reply
Ideas Scripts Chart
United States
United Kingdom
India
España
France
Italia
Brasil
Россия
Türkiye
日本
한국
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