Thanks Quasi for your help!
I am also trying to figure out a way to identify B/O (break-out) using a combination of moving average and close for today.
For ex., EMA 50 is flat for the past 10 days, plus or minus 2%, AND today's close crosses yesterday's high.
I can figure out the later part, but I'm unable to figure a way to identify a plus/minus 2% on the EMA 50.
Any ideas?