I am having issues with the correct coding of a scan i am trying to build. On a daily timeframe i am wanting to scan for inside days with closes above the 8ema, can someone please help? I found this for the inside day...
# Inside and Outside Bar
# Mobius
# 8.7.2017
def inside = high < high[1] and low > low[1];
plot signal = inside within 1 bars;
And this is what i am using for above the 8ema
input ema_length = 8;
def ema = ExpAverage(close[1], length=ema_length);
plot signal = close > ema && open < ema;
but its not providing the right results. Any help would be really appreciated..>This is my first attempt at writing a scan and has been really difficult so any help would be really appreciated!
# Inside and Outside Bar
# Mobius
# 8.7.2017
def inside = high < high[1] and low > low[1];
plot signal = inside within 1 bars;
And this is what i am using for above the 8ema
input ema_length = 8;
def ema = ExpAverage(close[1], length=ema_length);
plot signal = close > ema && open < ema;
but its not providing the right results. Any help would be really appreciated..>This is my first attempt at writing a scan and has been really difficult so any help would be really appreciated!