Screener Struggles!!
Forums › ProRealTime English forum › ProScreener support › Screener Struggles!!
- This topic has 5 replies, 3 voices, and was last updated 4 years ago by
telboy.
-
-
05/16/2020 at 7:08 PM #131883
Hi All
Im still very new to all of this and very much finding my feet (still enjoying the learning process though) – I just cant get this basic stock screener to work
I only want to return stocks where the MACD Line has crossed the MACD Signal line at some point over the past 5 days only AND all of my other conditions are also currently met TODAY.
At the moment it seems to be returning stocks where the MACD Line is above the MACD Signal line irrespective of when the crossover actually occurred.
1234567891011// screener codeTIMEFRAME(daily)vol=VolumeMline=MACDline[12,26,9](close)Msignal=MACD[12,26,9](close)EMA10=ExponentialAverage[10](close)EMA20=ExponentialAverage[20](close)Test1 = summation[5](Mline CROSSES OVER Msignal)Test2 = (EMA10 > EMA20) AND (EMA10 > EMA10[1]) AND (EMA10 > EMA10[2]) AND (EMA20 > EMA20[1]) AND (EMA20 > EMA20[2])screener[test1 AND test2] SORT BY (vol)Really sorry if I have presented this in the wrong way or not been clear about my issues but I really appreciate any comments/thoughts/suggestions??
Many thanks
05/16/2020 at 8:07 PM #131889Apology accepted but the few simple rules are not difficult to follow. Just read them and find the correct tools before posting so that we don’t have to waste time tidying up posts is all we ask.
The forum rules are as follows. I have highlighted in bold the rule/rules that you have not followed:
Post your topic in the correct forum.
ProRealTime Platform Support only platform related issues.
ProOrder only strategy topics.
ProBuilder only indicator topics.
ProScreener only screener topics
General Discussion any other topics.
Welcome New Members for new forum members to introduce themselves.Only post in the language of the forum that you are posting in. For example English only in the English speaking forums and French only in the French speaking forums.
Always use the ‘Insert PRT Code’ button when putting code in your posts to make it easier for others to read.
Do not double post. Ask your question only once and only in one forum. All double posts will be deleted anyway so posting the same question multiple times will just be wasting your own time and will not get you an answer any quicker. Double posting just creates confusion in the forums.
Be careful when quoting others in your posts. Only use the quote option when you need to highlight a particular bit of text that you are referring to or to highlight that you are replying to a particular member if there are several involved in a conversation. Do not include large amounts of code in your quotes. Just highlight the text you want to quote and then click on ‘Quote’.
Give your topic a meaningful title. Describe your question or your subject in your title. Do not use meaningless titles such as ‘Coding Help Needed’.
Do not include personal information such as email addresses or telephone numbers in your posts. If you would like to contact another forum member directly outside of the forums then contact the forums administrator via ‘Contact Us’ and they will pass your details on to the member that you wish to contact.
Always be polite and courteous to others.
Have fun.I have edited your post where required. Please ensure that your future posts meet these few simple forum rules. 🙂
05/16/2020 at 8:18 PM #131890I can’t see anything wrong. I would turn the screener into an indicator and then use GRAPH to show you what all the values are and then you might find the mistake. Have you found a stock where it should be true to test it on?
I would have written line 9 as:
1Test1 = summation[5](Mline CROSSES OVER Msignal) >= 1…but my platform is not open at the moment to check if both lines return the same result.
05/16/2020 at 10:46 PM #131893I think line 5 should read (v11.x)
1Msignal=MACDsignal[12,26,9](close)(v10.3):
1Msignal=ExponentialAverage[9](Mline)05/16/2020 at 11:13 PM #13189705/18/2020 at 7:55 PM #132207 -
AuthorPosts
Find exclusive trading pro-tools on