HPotter

Dunnigan Bars

1793 views
169
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)

Comments

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...
+1 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
cooney_s cooney_s
Actually, scratch that last post, must have been a coincidence. I'll fix that.
Reply
Useful indicator, thanks!

sjc
Reply
HPotter cooney_s
You are welcome
Reply
Do you have anymore of these chart indicators with candlesticks?
Reply
Home Stock Screener Forex Screener Crypto Screener Economic Calendar How It Works Chart Features Pricing Refer a friend House Rules Help Center Website & Broker Solutions Widgets Charting Solutions Lightweight Charting Library Blog & News Twitter
Profile Profile Settings Account and Billing Refer a friend My Support Tickets Help Center Ideas Published Followers Following Private Messages Chat Sign Out