HPotter

Dunnigan Bars

1036 6 110
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: 3FKWwtaYrf5NHZzaCi1fyAfQj7XSgtyCqe
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 coondawg71
Actually, scratch that last post, must have been a coincidence. I'll fix that.
Reply
Useful indicator, thanks!

sjc
Reply
HPotter coondawg71
You are welcome
Reply
Do you have anymore of these chart indicators with candlesticks?
Reply
EN English
EN English (UK)
EN English (IN)
DE Deutsch
FR Français
ES Español
IT Italiano
PL Polski
SV Svenska
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