PRT Bands turning green
- This topic has 5 replies, 2 voices, and was last updated 1 year ago by .
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
Similar topics:
Forums › ProRealTime English forum › ProScreener support › PRT Bands turning green
here is one way to do it :
1 2 3 4 5 6 7 8 9 10 |
up = PRTBandsUp dn = PRTBandsDown if close crosses over up and trend<=0 then //le prix casse la bande supérieure trend=1 //tendance haussière elsif close crosses under dn and trend>=0 then //le prix casse la bande inférieure trend=-1 //tendance baissière endif screener[(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)) |
Hi,
I managed to get my screener working for the PRT bands, but I’m struggling with filtering on volumes.
here is the initial version :
1 2 3 4 5 6 7 8 9 10 |
up = PRTBandsUp dn = PRTBandsDown if close crosses over up and trend<=0 then //le prix casse la bande supérieure trend=1 //tendance haussière elsif close crosses under dn and trend>=0 then //le prix casse la bande inférieure trend=-1 //tendance baissière endif screener[(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:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
up = PRTBandsUp dn = PRTBandsDown if close crosses over up and trend<=0 then //le prix casse la bande supérieure trend=1 //tendance haussière elsif close crosses under dn and trend>=0 then //le prix casse la bande inférieure trend=-1 //tendance baissière endif // DEFAULT CONDITIONS v1 = Average[50](Volume) >= 50 v2 = Lowest[256](Volume) >= 15 defaultConditons = v1 AND v2 // DEFAULT CONDITIONS screener[((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 ?
thanks
Hi,
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?
Find exclusive trading pro-tools on