How to Highest[10](volume) but only of down bars???
Forums › ProRealTime English forum › ProScreener support › How to Highest[10](volume) but only of down bars???
- This topic has 17 replies, 8 voices, and was last updated 5 years ago by Nicolas.
-
-
03/21/2017 at 2:36 AM #29251
Hey guys, new to the forum and relatively new to coding in general.
Hoping some of the seasons PRCode guys can help me out here please.
How would i code a screener for : Highest[10](volume) but only of down bars/red closes?
Im trying to write a modified pocket pivot type scan. basically a breakout from a short/medium term pullback or downtrend
Thanks
03/27/2017 at 2:26 PM #29989Highest[10](volume) but only of down bars/red closes?
It would mean that you only want to detect the highest value of the last 10 bearish bars, is this right?
03/29/2017 at 2:43 PM #30215Hi Nicolas, thanks for the reply and sorry for the delay in mine.
I actually worked it out with the help of a friend that is a programmer. I was aiming to find the highest volume of the past 10 trading setups but omitting any up bar days from the highest. I am trying to make a screen for a pocket pivot Setup.
Thanks
03/29/2017 at 3:22 PM #3021604/30/2017 at 3:34 PM #34034Hey FreeYourself… any chance I can get a copy of that code?
you can PM me on tw|tter with the same username. cheers.
04/30/2017 at 5:30 PM #3404705/14/2017 at 11:28 AM #3547905/15/2017 at 2:57 PM #35595123456789101112131415161718192021222324252627282930313233// Today's volume should be larger than the volume of the highest down day over the last 10 daysmaxDay = 11maxDownDay = 0maxDown = 0FOR d = 1 TO maxDay DOr = Close[d] - Open[d]IF r < 0 and Volume[d] > maxDown THENmaxDown = Volume[d]maxDownDay = dENDIFNEXTIF maxDownDay = 0 THENmaxDownDayVol = 0ELSEmaxDownDayVol = Volume[maxDownDay]ENDIFcVol2 = (Volume > maxDownDayVol)06/05/2017 at 7:28 AM #3741306/05/2017 at 8:57 AM #37421@crashman111 is above the full code? Needs below (or something) else it’s not a screener? 🙂 …
1Screener (Volume > maxDownDayVol)06/05/2017 at 11:10 AM #37468Thanks for the reply. It was the full code as copied from the original post. My screenshot did not show the entire picture.
I have added your line to the very top. I am now getting a different error message as per the screenshot attachment.
Once again, if anyone has any advice or suggestions it would be greatly appreciated. I have only just started using this.
06/05/2017 at 12:38 PM #37477Try below, it works / gives results on my Platform, check results are what you want …
123456789101112131415161718192021222324252627282930313233343536// https://www.prorealcode.com/topic/how-to-highest10volume-but-only-of-down-bars/// Today's volume should be larger than the volume of the highest down day over the last 10 daysmaxDay = 11maxDownDay = 0maxDown = 0FOR d = 1 TO maxDay DOr = Close[d] - Open[d]IF r < 0 and Volume[d] > maxDown THENmaxDown = Volume[d]maxDownDay = dENDIFNEXTIF maxDownDay = 0 THENmaxDownDayVol = 0ELSEmaxDownDayVol = Volume[maxDownDay]ENDIFcVol2 = (Volume > maxDownDayVol)// sample screener codeSCREENER(cvol2)06/05/2017 at 12:57 PM #3747906/10/2017 at 8:28 AM #37939This is the one I have for Pocket Pivots;
Cheers,
Dale 🙂
P.s. And as an Indicator
1 user thanked author for this post.
06/10/2017 at 8:45 AM #37948@dalo
>> Please update your country flag in your profile. Thank you 🙂 <<
Thanks for the submitted code, it would be valuable things to add into the library 😉
1 user thanked author for this post.
-
AuthorPosts
Find exclusive trading pro-tools on