Outside day and inside day scan

T

Thepremier

New member
Can someone help me with a script for an outside day and and an inside day? I would like to create a scan for them.

 
Last edited:
BenTen

BenTen

Administrative
Staff
VIP
@Thepremier Here you go:

Rich (BB code):
# Inside and Outside Bar
# Mobius
# 8.7.2017

def inside = high < high[1] and low > low[1];
def outside = high > high[1] or low < low[1];
AssignPriceColor(if inside
				then color.cyan
				else if outside
					then color.yellow
				else color.current);
That indicator will plot outside and inside bars on your chart. Switch over to the Scan tab and use it as a scanner if you like. We also have Double Inside Day and Narrow Range Day as well.

 
Last edited:
M

markm

New member
Warehouse
VIP
Any way to put a number above or below each bar instead of having the bar be colored? For example an inside bar having "1" below it and an outside bar having "2" below it? I've searched for how to do this but not having any luck. Thanks!
 
S

Shirke

New member
Above Code
I copy and paste but it wont show up in my watch list column. I click gear icon and customize I couldn't find it
 

Top