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
Warehouse
@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:

Top