Help required designing Pocket Pivot Indicator
Forums › ProRealTime English forum › ProBuilder support › Help required designing Pocket Pivot Indicator
- This topic has 21 replies, 8 voices, and was last updated 6 years ago by Vonasi.
-
-
08/12/2018 at 12:34 PM #78043
Personal info and contacts cannot be posted!
Thanks,
08/12/2018 at 11:53 PM #78064Make sure you copy and paste exactly Man,
Make sure you are pasting the Screener as a Pro Screener, and the Indicator as an Indicator.
Delete what comes up at the start of making a new Screener first.
It’s normally a copy/ paste issue.08/13/2018 at 4:41 AM #78066And here’s the indicator;
Cheers,
Dale
What the chances of just posting the indicator in isolation , saves trying to solve the ” riddle “
08/13/2018 at 4:58 AM #780671234567891011121314151617181920212223242526272829303132333435363738394041424344// ----------------------------------// The Pocket Pivot Indicator//// ver 0.1// 0.2 - using the max volume of a down day in the past 10 days//// ----------------------------------// Basic criteriaminPrice = 0.0001minVol = 1000daysToConfirmUpTrend =9// Only scan leading stocks above minimal price and 40 day moving average of Volume is above 500000]cVol1 = (Close >= minPrice AND Average[50](Volume) >= minVol)// Trend is up and Today is an up daycPrc1 = (Close >= Average[daysToConfirmUpTrend](Close) AND Close >= Close[1] )// Today's volume should be larger than the volume of the highest down day over the last 10 daysmaxDay = 9maxDownDay = 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)// draw indicatorind1 = (cPrc1 AND cVol1 AND cVol2 )RETURN ind1 COLOURED(0, 0, 200) AS "Pocket Pivot Mod 9 Day "1 user thanked author for this post.
08/13/2018 at 5:31 AM #7806908/13/2018 at 6:19 AM #78071Pocket Pivot Indicator12345678910111213141516171819202122232425262728293031323334353637383940// ———————————-// The Pocket Pivot Indicator//// ver 0.1// 0.2 – using the max volume of a down day in the past 10 days//// ———————————-// Basic criteriaminPrice = 0.0001minVol = 1000daysToConfirmUpTrend =9// Only scan leading stocks above minimal price and 40 day moving average of Volume is above 500000]cVol1 = (Close >= minPrice AND Average[50](Volume) >= minVol)// Trend is up and Today is an up daycPrc1 = (Close >= Average[daysToConfirmUpTrend](Close) AND Close >= Close[1] )// Today’s volume should be larger than the volume of the highest down day over the last 10 daysmaxDay = 9maxDownDay = 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)// draw indicatorind1 = (cPrc1 AND cVol1 AND cVol2 )RETURN ind1 COLOURED(0, 0, 200) AS “Pocket Pivot Mod 9 Day “Hello @dazzle101, the button “Insert PRT code” is your friend 😉
08/13/2018 at 6:59 AM #78072Dazzle101 – As Swapping correctly points out the ‘Insert PRT Code’ button is your friend. Please use it to make your code more readable for others when posting code in the future. I have tidied up your original post for you. 🙂
-
AuthorPosts
Find exclusive trading pro-tools on