HPotter

Dunnigan Bars

844 6 93
This displays "Dunnigan Bars," which is defined as:
Higher High and High Low = Green Color
Lower High and Lower Low = Red Color
Inside Bar = Black Color
Outside Bar = Yellow Color
Remove from Favorite Scripts Add to Favorite Scripts
////////////////////////////////////////////////////////////
//  Copyright by HPotter v1.0 20/08/2014
// This displays "Dunnigan Bars," which is defined as:
// Higher High and High Low = Green Color
// Lower High and Lower Low = Red Color
// Inside Bar = Black Color
// Outside Bar = Yellow Color
////////////////////////////////////////////////////////////
study(title = "Dunnigan Bars", overlay = true)
colr =	iff(high > high[1] and low > low[1], green,
	        iff(high < high[1] and low < low[1], red, 
	            iff(high < high[1] and low > low[1], black,
	                iff(high > high[1] and low < low[1], yellow, na))))
barcolor(colr)
DONATE/TIP

BTC: 1Lo1GoTNsPbrjGAgPgF4MYZPhBFdoVHaTm
hi,
found a little bug in that... for inside candles, when same high/low and LL/HH it has still black colour, it could be red/green also... with some dot above/below...
Reply

Users can change line 13 "1"'s to a number of their choosing to add a highlight feature to this indicator. Meaning this: if on an hourly chart you change line numerical values to 24 then you have an indicator which will look back for a bar where there was heavy activity. Thanks HPotter!

sjc

Reply
coondawg71 PRO coondawg71
Actually, scratch that last post, must have been a coincidence. I'll fix that.
Reply
Useful indicator, thanks!

sjc
Reply
HPotter PRO coondawg71
You are welcome
Reply
Do you have anymore of these chart indicators with candlesticks?
Reply
United States
United Kingdom
India
Deutschland
France
España
Italia
Polska
Türkiye
Россия
Brasil
Indonesia
Malaysia
Việt Nam
日本
한국
简体
繁體
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 Priority Support Contact Support Ideas Published Followers Following Private Messages Chat Sign Out