Outside day and inside day scan

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

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:

markm

New member
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!
 

airsakuragi

New member
Could you help me how to write a script for Inside bar? It doesn't matter on the color of the 1st bar and the 2nd bar...

Hi @BenTen , how do I put it on my scanner? I kind of forget how to put into a candle stick pattern first.

Thanks in advance
 

BenTen

Administrative
Staff
VIP
@airsakuragi Here is the code to put it into your scanner:

Code:
# Inside and Outside Bar
# Mobius
# 8.7.2017

def inside = high < high[1] and low > low[1];
plot signal = inside within 1 bars;

FQxw9PP.png
 

Similar threads

Top