Please correct my EMA crossover screener code
Forums › ProRealTime English forum › ProScreener support › Please correct my EMA crossover screener code
- This topic has 9 replies, 3 voices, and was last updated 6 years ago by crolakstrading.
-
-
06/29/2017 at 4:22 PM #39421
Hello Nic and all,
I am trying to create a Proscreener for EMA 4 (CLOSE) crosses EMA 10 (CLOSE) and vice versa but my screener seems to be not working as it is showing results for all pairs.
Could someone help me correct it please?
EMA Cross Screener123456indicator1 = ExponentialAverage[4](close)indicator2 = ExponentialAverage[10](close)c1 = summation [100] (indicator1 CROSSES OVER indicator2)SCREENER[c1]06/30/2017 at 1:37 PM #3949106/30/2017 at 1:41 PM #3949206/30/2017 at 1:43 PM #3949306/30/2017 at 1:49 PM #3949706/30/2017 at 2:13 PM #39499No, you’ll have to change the c1 condition:
12345indicator1 = ExponentialAverage[4](close)indicator2 = ExponentialAverage[10](close)c1 = indicator1 CROSSES OVER indicator2 OR indicator1 CROSSES UNDER indicator2SCREENER[c1]1 user thanked author for this post.
06/30/2017 at 2:50 PM #39504No, you’ll have to change the c1 condition:
12345indicator1 = ExponentialAverage[4](close)indicator2 = ExponentialAverage[10](close)c1 = indicator1 CROSSES OVER indicator2 OR indicator1 CROSSES UNDER indicator2SCREENER[c1]Thanks Nic, that’s perfect now. Got it!
12/27/2017 at 12:13 AM #56595how can i add past x bars to show on the screener? please help..
Let’s say if I want the screener show the resutls of past 10 bars after the crossover?
12/27/2017 at 8:50 AM #56606You can change the screener condition this way, to get the last 10 bars results (if at least 1 crossover has occurred, the screener should give you this information)
12345indicator1 = ExponentialAverage[4](close)indicator2 = ExponentialAverage[10](close)c1 = indicator1 CROSSES OVER indicator2 OR indicator1 CROSSES UNDER indicator2SCREENER[summation[10](c1)>0]12/28/2017 at 11:20 PM #56773Hi Nicolas.. Thank you very much for your reply! it works!! 🙂
-
AuthorPosts
Find exclusive trading pro-tools on