Any suggestions about a momentum and volume indicator?
Forums › ProRealTime English forum › ProBuilder support › Any suggestions about a momentum and volume indicator?
- This topic has 23 replies, 3 voices, and was last updated 7 years ago by Marcel van Vliet.
-
-
06/03/2017 at 5:47 PM #37352
The indicator on this screenshot approaches the effect where I am looking for the best.
Instead of the colored zones It would make the indicator more clear when the zones are replaced for historgrams.
06/05/2017 at 10:27 PM #3752706/06/2017 at 7:43 AM #37532Yes, exactly.
06/06/2017 at 2:11 PM #37637This is the code of the indicator you described. Are you using it in a mean reversion theory? Or sign of exhaustion of the price in a trend following strategy? I may put this one into the library for the benefit of everyone.
123456789101112period=20c=Chandle[period](close)avg=average[period](c)osc=c-avgmiddle=average[period](osc)dev=std[period](osc)up=middle+dev*2dn=middle-dev*2return osc coloured(200,0,0) style(histogram),up style(dottedline),dn style(dottedline), middle style(line)06/06/2017 at 3:14 PM #37645Thanks a lot.
But unfortunately in your picture the histogram is not build from the (dynamic) BB midline like the colored zone on my picture.
I use this indicator as a sign of exhaustion of the price in a trend following strategy.
By the way I named the indicator ‘Pressure Gage’
06/06/2017 at 5:53 PM #37654To get the middle of your bollinger band at the zero level, you only need to substract an SMA20 to CMO, and that’s what the indicator did. But I made wrong bollinger up and down in my first code sorry, so this is the correct code:
123456789101112131415period=20c=Chandle[period](close)avg=average[period](c)dev=std[period](c)upper=avg+dev*2lower=avg-dev*2osc=c-avgup=upper-avgdn=lower-avgreturn osc coloured(200,0,0) style(histogram),up style(dottedline),dn style(dottedline)Please find attached comparison of the 2 indicators.
1 user thanked author for this post.
06/06/2017 at 9:58 PM #37665Great work, Thanks a lot!
06/06/2017 at 10:18 PM #3766607/12/2017 at 8:30 AM #40411Hi Grahal,
My excuses for my late reaction, I was on a holliday in the sun for a while.
I have tweaked the pressure Gage indicator a little . I encluded the code of the indicator as I am using it now.
Pressure Gage indicator12345678910111213141516171819202122232425period=20c=Chandle[period](close)avg=average[period](c)dev=std[period](c)upper=avg+dev*2lower=avg-dev*2osc=c-avgup=upper-avgdn=lower-avgif osc>0 thenr=0g=0b=102endifif osc<0 thenr=255g=102b=102endifreturn osc coloured(r,g,b) style(histogram),up style(dottedline),dn style(dottedline)1 user thanked author for this post.
-
AuthorPosts
Find exclusive trading pro-tools on