Hello Robert I am new to forum and thinkscript coding... I main focus on price action.. I want to scan a candle closing below 9ema also making sure the previous candle is red (close below open)... Also how the code works for identifying position of moving average? I mean ema 9 should be below ema20 Thanks Jackby Jackmantos - Trading Discussion