try thisI am new to this so I would say within .10 -.30 cents if that makes sense
input length = 8;
input delta = 0.10;
def avg = MovAvgExponential(close, length);
plot belowAlert = Between(close, avg, avg-delta);
belowAlert.SetPaintingStrategy(PaintingStrategy.ARROW_UP);
plot aboveAlert = Between(close, avg, avg+delta);
aboveAlert.SetPaintingStrategy(PaintingStrategy.ARROW_DOWN);
You will need to define "near" a little bit more. Price closing on an EMA will be super rare.Is there a way to develop a scanner to show when a stock candlestick closed on or near the 8 EMA on the 5 min chart? Also to put it in a watchlist?
I am new to this so I would say within .10 -.30 cents if that makes senseYou will need to define "near" a little bit more. Price closing on an EMA will be super rare.
try thisI am new to this so I would say within .10 -.30 cents if that makes sense
input length = 8;
input delta = 0.10;
def avg = MovAvgExponential(close, length);
plot belowAlert = Between(close, avg, avg-delta);
belowAlert.SetPaintingStrategy(PaintingStrategy.ARROW_UP);
plot aboveAlert = Between(close, avg, avg+delta);
aboveAlert.SetPaintingStrategy(PaintingStrategy.ARROW_DOWN);
ok would I add this as an Indicator first then set it up as a scanner?try this
Code:input length = 8; input delta = 0.10; def avg = MovAvgExponential(close, length); plot belowAlert = Between(close, avg, avg-delta); belowAlert.SetPaintingStrategy(PaintingStrategy.ARROW_UP); plot aboveAlert = Between(close, avg, avg+delta); aboveAlert.SetPaintingStrategy(PaintingStrategy.ARROW_DOWN);