♥ 0 |
Pete, I was looking for a scan that will find stocks with an X number of consecutive 5 Min bars above the 9 EMA. I attached a screenshot as an example.
Marked as spam
|
Please log in to post questions.
Pete could you show me where I went wrong. I tried to create a scan to pick up consecutive closes below the 9SMA using this scan as a guide. Here is what I have
input consecutiveBars = 5;
input maLength = 9;
input averageType = AverageType.SIMPLE;
def avg = MovingAverage(averageType, close, maLength);
def belowAvg = close < avg; plot scan = Lowest(belowAvg, consecutiveBars) > 0;