New Highs above EMA cross


Category:
0
0

Hello everyone! I am having trouble creating a scan that looks for stocks that are within 7% of the 20 day high but I also need the scan to look for stocks whose 10 EMA has been above it’s 25 EMA consecutively for the past 20 days. Thank you so much!

Marked as spam
Posted by (Questions: 34, Answers: 56)
Asked on May 12, 2017 1:27 pm
94 views
0

I’m going to need more detail on these specifications. A screenshot showing the pattern would be best. When you say ”within 7% of the 20 day high”. Does that mean less than 7% ABOVE the 20 day high? Or less than 7% BELOW the 20 day high?

( at May 12, 2017 1:48 pm)
0

Sounds good… 7% BELOW the 20 day high. I don’t have a screenshot of the pattern, sorry.

( at May 12, 2017 3:37 pm)
0

The main thing I need is a scan that the 10 EMA has been over the 25 EMA consecutively for the past 20 days.

( at May 13, 2017 3:23 pm)
0
Private answer

Ok, with that clarification let’s begin by solving for “the main thing”. Then you can run some scans and post a screenshot or two showing the other detail. I find it very difficult to comprehend a pattern in the price action that affords both conditions being true. So that’s why I need to see it with my own eyes.

def emaOne = ExpAverage(close, 10);
def emaTwo = ExpAverage(close, 25);
def conditionOne = emaOne > emaTwo;
def sumOfConditionOne = Sum(conditionOne, 20);
def signal = sumOfConditionOne >= 20;
plot scan = signal;

Marked as spam
Posted by (Questions: 37, Answers: 4087)
Answered on May 14, 2017 4:05 pm