Crosses multiple indicators over 10 periods
Forums › ProRealTime English forum › ProScreener support › Crosses multiple indicators over 10 periods
- This topic has 5 replies, 2 voices, and was last updated 4 years ago by
robertogozzi.
-
-
04/21/2020 at 10:50 PM #127346
Hi,
Im looking to create a screener than gives me results when the upper BolBand, Lower BolBand and Moving Average have been crossed in that order over the last 10 bars.
The result doesnt seem to want to execute. Thanks. I have just put in the // so the code can been seen.
Bol Band trigger1234567891011timeframe(30mn)Bol5 = (BollingerUp[15](close))boldown = (BollingerDown[15](close))movingA = average[15]c1= high crosses over bol5c2= low crosses under boldownc3= close crosses over movingA//result= summation[10](c1 then c2 then c3)screener [result]04/21/2020 at 11:57 PM #127355Try this (not tested):
123456789101112131415161718192021timeframe(30mn)Bol5 = (BollingerUp[15](close))boldown = (BollingerDown[15](close))movingA = average[15]c1= high crosses over bol5if c1 thenbar1 = barindex //it must have the lowest barindexendifc2= low crosses under boldownif c2 thenbar2 = barindexendifc3= close crosses over movingAif c3 thenbar3 = barindex //it must have the highest barindexendif//MaxBar = (c3 = max(bar1,max(bar2,bar3)))MinBar = (c1 = min(bar1,min(bar2,bar3)))result = MaxBar AND MinBar AND ((BarIndex - bar1) <= 10)screener [result]04/21/2020 at 11:59 PM #127356Do 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.
Thank you 🙂
I deleted the other topic.
1 user thanked author for this post.
04/22/2020 at 4:39 AM #127379I dont seem to be getting any hits with the above code on Australian stocks considering i can see there are a few companies in their last 10 (30min) bars have all 3 definitions meet. I even tried to stretch it further (15 bars) out to have a bigger possible pool and no luck.
04/22/2020 at 7:35 AM #127388Try writing (30 minute) at line 1.
04/22/2020 at 10:35 AM #127424Sorry, my fault, lines 18 and 19 are wrong. This is correct:
123456789101112131415161718192021timeframe(30mn)Bol5 = (BollingerUp[15](close))boldown = (BollingerDown[15](close))movingA = average[15]c1= high crosses over bol5if c1 thenbar1 = barindex //it must have the lowest barindexendifc2= low crosses under boldownif c2 thenbar2 = barindexendifc3= close crosses over movingAif c3 thenbar3 = barindex //it must have the highest barindexendif//MaxBar = (bar3 = max(bar1,max(bar2,bar3)))MinBar = (bar1 = min(bar1,min(bar2,bar3)))result = MaxBar AND MinBar AND ((BarIndex - bar1) <= 10)screener [result] -
AuthorPosts
Find exclusive trading pro-tools on