PRT Bands turning green
Forums › ProRealTime English forum › ProScreener support › PRT Bands turning green
- This topic has 5 replies, 2 voices, and was last updated 6 months ago by benkunz.
-
-
10/09/2023 at 12:13 PM #22219410/09/2023 at 7:30 PM #222210
here is one way to do it :
12345678910up = PRTBandsUpdn = PRTBandsDownif close crosses over up and trend<=0 then //le prix casse la bande supérieuretrend=1 //tendance haussièreelsif close crosses under dn and trend>=0 then //le prix casse la bande inférieuretrend=-1 //tendance baissièreendifscreener[(trend=1 and trend[1]=-1) or (trend=1 and trend[1]=1 and trend[2]=-1) or (trend=1 and trend[1]=1 and trend[2]=1 and trend[3]=-1)] (Average[50](Volume))10/09/2023 at 7:37 PM #222211Hi,
I managed to get my screener working for the PRT bands, but I’m struggling with filtering on volumes.
here is the initial version :12345678910up = PRTBandsUpdn = PRTBandsDownif close crosses over up and trend<=0 then //le prix casse la bande supérieuretrend=1 //tendance haussièreelsif close crosses under dn and trend>=0 then //le prix casse la bande inférieuretrend=-1 //tendance baissièreendifscreener[(trend=1 and trend[1]=-1) or (trend=1 and trend[1]=1 and trend[2]=-1) or (trend=1 and trend[1]=1 and trend[2]=1 and trend[3]=-1)] (Average[50](Volume))This does the job and returns 144 results on Nasdaq.
Then I tried to add a filter on volumes to get rid of less liquid stocks by adding 2 conditions on average and lowest value:12345678910111213141516up = PRTBandsUpdn = PRTBandsDownif close crosses over up and trend<=0 then //le prix casse la bande supérieuretrend=1 //tendance haussièreelsif close crosses under dn and trend>=0 then //le prix casse la bande inférieuretrend=-1 //tendance baissièreendif// DEFAULT CONDITIONSv1 = Average[50](Volume) >= 50v2 = Lowest[256](Volume) >= 15defaultConditons = v1 AND v2// DEFAULT CONDITIONSscreener[((trend=1 and trend[1]=-1) or (trend=1 and trend[1]=1 and trend[2]=-1) or (trend=1 and trend[1]=1 and trend[2]=1 and trend[3]=-1)) and defaultConditons] (Average[50](Volume))Now the screener will only return 8 results. Apple will an average of 60.2M is excluded by this filter. Makes no sense to me. What did I do wrong/misundertand ?
thanks10/10/2023 at 5:34 AM #22221710/10/2023 at 6:23 AM #222218Hi,
When I use the “Default Conditions” in your screener, I get almost the same number of shares back as without the “Default Conditions”…
Be careful with the spelling of “Default Conditions (Conditons)”
I think you’re at the limit of your historical data usage…
How much historical data can/may you use 256 or 1024?
10/10/2023 at 9:51 AM #222225 -
AuthorPosts
Find exclusive trading pro-tools on