I've noticed a pattern that I really want to be able to set a scan criteria for.
I'm working with this piece of code, and it gets the results I'm looking for, but only
for the current candle. I'm trying to add a "time" function to it so it looks for specific
behavior that say the last X candles exhibited.
def EMA = ExpAverage(low, 9);
plot scan = Between(low, EMA - (.03 * EMA), EMA + (.03 * EMA));
As a logical statement, it will look something like this:
"The (low/high) of the last ( ) consecutive candles has occurred within ( )% of the ( )EMA"
I realize this may not be possible due to the limitations of TOS, but I'm hoping you guys
(and gals) can deliver the way you always have.
Much thanks!
I'm working with this piece of code, and it gets the results I'm looking for, but only
for the current candle. I'm trying to add a "time" function to it so it looks for specific
behavior that say the last X candles exhibited.
def EMA = ExpAverage(low, 9);
plot scan = Between(low, EMA - (.03 * EMA), EMA + (.03 * EMA));
As a logical statement, it will look something like this:
"The (low/high) of the last ( ) consecutive candles has occurred within ( )% of the ( )EMA"
I realize this may not be possible due to the limitations of TOS, but I'm hoping you guys
(and gals) can deliver the way you always have.
Much thanks!