HPotter

Dunnigan Bars

683 6 78
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)
Useful indicator, thanks!

sjc
Reply
HPotter PRO coondawg71
2 years ago
You are welcome
Reply
FredRoberts HPotter
2 years ago
Do you have anymore of these chart indicators with candlesticks?
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
2 years ago
Actually, scratch that last post, must have been a coincidence. I'll fix that.
Reply
Deltas
4 months ago
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
Ideas Scripts Chart
United States
United Kingdom
India
España
Italia
Brasil
Россия
Türkiye
日本
한국
Home Stock Screener 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 Billing Sign Out