Smoothed Bollinger %b indicator

Smoothed Bollinger %b indicator

This is the modified % bollinger bands oscillator remade by Sylvain Vervoort. It’s using an Heiken Ashi closing price instead of the classic close value with TEMA average. This indicator tend to be more accurate and less choppy for intendifying turning points of the Dow theory by counting reverse oscillation of the curve.

Because of its bounded values, it can be used as an overbought and oversold classical oscillator.

Share this

Risk disclosure:

No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.

ProRealTime ITF files and other attachments : How to import ITF files into ProRealTime platform?

PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials

  1. ALE • 11/12/2015 #

    Hi Nicolas
    there’s a problem to download file
    Thanks for the very nice indicator

    • Nicolas • 11/12/2015 #

      Thank you for noticing it to me, it is now fixed. Problem came from a wrong file name..

  2. Maxime Baudin • 11/12/2015 #

    Thanks!

  3. cepamoi • 11/12/2015 #

    Hi Nicolas,

    Something looks odd with haOpen: it seems that /4 is missing in the second part of the formula.
    Shouldn’t we have:
    haOpen = ((Open[1]+High[1]+Low[1]+Close[1])/4 + (Open[2]+High[2]+Low[2]+Close[2])/4)/2

    Thanks.

    • Nicolas • 11/12/2015 #

      Well, I don’t remember now but I think I’ve translated it correctly from its own original code… may I ask you to make a small verification on the web? 🙂

    • cepamoi • 11/12/2015 #

      From here:
      http://traders.com/documentation/feedbk_docs/2010/05/TradersTips.html
      haOpen = 0.5 * ( AvgPrice + haOpen[1] ) ;

      So haOpen = ((Open[1]+High[1]+Low[1]+Close[1])/4 + (Open[2]+High[2]+Low[2]+Close[2]))/2 is probably wrong.
      With this formula, if you try to plot haOpen, it is significantly shifted up from the price, which probably does not make sense.

      But haOpen = ((Open[1]+High[1]+Low[1]+Close[1])/4 + (Open[2]+High[2]+Low[2]+Close[2])/4)/2 is probably wrong too…

      How can we implement a formula which refers to its previous value in ProRealTime?

    • Nicolas • 11/12/2015 #

      I made verification and all formulas on the TraderTips page refer to the previous candlestick for the haOpen calculation. This is how S.VERVOORT made this indicator.
      To refer to a previous state of a value, just add offset in brackets : myvalue[20]

    • cepamoi • 11/12/2015 #

      So the correct formula should be something like:
      haOpen = ((Open[1]+High[1]+Low[1]+Close[1])/4 + haOpen[1])/2
      However, this does not seem to work. Any idea why?

    • Nicolas • 11/12/2015 #

      Because haOpen doesn’t exist at the very first bar, so the calculation can’t be made correctly (while Open/High/Low/Close do exist in the data serie). You should give haOpen a dummy value one time at first code read, like this:
      ONCE haOpen = medianprice

    • cepamoi • 11/12/2015 #

      Unfortunately, this still does not work:
      ONCE haOpen = medianprice
      haOpen = ((Open[1]+High[1]+Low[1]+Close[1])/4 + haOpen[1])/2

      ProRealTime does not plot anything with the above formula.
      What are we missing here?

    • Nicolas • 11/12/2015 #

      Force calculation to wait 1 bar of history already loaded:
      ONCE haOpen = medianprice
      if barindex>1 then
      haOpen = ((Open[1]+High[1]+Low[1]+Close[1])/4 + haOpen[1])/2
      endif

    • cepamoi • 11/12/2015 #

      Now it works.
      Thanks a lot Nicolas!

      Here is the full code:

      // variables :
      // period = 18
      // TeAv = 8
      afwh = 1.6
      afwl = 1.6
      afwper = 63

      once haOpen = medianprice
      if barindex>1 then
      haOpen = ((Open[1]+High[1]+Low[1]+Close[1])/4 + haOpen[1])/2
      endif

      haC = ((Open+High+Low+Close)/4 + haOpen + Max(high,haOpen) + Min(low,haOpen)) /4

      TMA1 = tema[TeAv](haC)
      TMA2 = tema[TeAv](TMA1)
      Diff = TMA1-TMA2
      ZlHA = TMA1+Diff

      percb = (tema[TeAv](ZLHA)+2*STD[period](tema[TeAv](ZLHA))-weightedaverage[period](tema[TeAv](ZLHA))) / (4*STD[period](tema[TeAv](ZLHA)))*100

      hi = 50+afwh*STD[afwper](percb)
      lo = 50-afwl*STD[afwper](percb)

      RETURN percb as “SVE BB %b”, hi as “upper band”, lo as “lower band”, 50 as “middle”

avatar
Register or

Likes

avatar avatar avatar avatar avatar
Related users ' posts
Nicolas Rien, il faut l'appliquer sur la charte. Soit le mettre sur le graphique du prix, à l'aide d...
signorini Merci pour votre réponse. Je l'applique sur la charte, j'utilise la petite clé pour effacer ...
signorini Je vous remercie, Nicolas. C'est fixé. Très bon week-end.
Abz  hi , you need to add the indicator from the "price" menu in chart
Francesco Thank you Abz!
phanz Hi Nicolas, this is an interesting strategy. For long position, I assume entry when prices ...
Lyam Pareil ne marche pas dommage
ahmedbouaziz89 Bonjour, quand j'ajoute le code ou le fichier dans l'outils screeners de Prorealtime je ne v...
tyvix Bonjour le code marche bien c est juste qu'il n y a pas d opportunité au moment ou vous le...
diegofe_2000 vamos a probarlo
Nicolas Well done supertiti, nicely coded and very accurate.
Dimi.A Beautiful.
Nicolas Thank you for contribution. Please consider that advertising is tolerate as long as you cont...
triss1965@gmail.com  Hi, I cant make it work. And if you doing so much money. Why do you have to sell it? It don...
T-rader Eva... He dosen´t sell anything. He is just a nice guy that want to share on of his strategy...
Pelle Nævestad Thanks Nicolas, this is a keeper!
Chicane23 Hi, when uploaded the WAE isnt showing histogram; only line. Is there a way to modify?
Nicolas Change the way the lines are displayed in the indicator settings window : histogram, lines, ...
DerPat Like your zero lag indicators.
xel @DerPat - I don't see any question regarding the indicator.  Anyway, I think I give enough l...
diegofe_2000 Xel, tu eres el creador de este indicador? Bueno te  cuento que es muy bueno para hacer est...
xel Buen día @diegofe_2000 -  Claro, mandalo y por aquí lo probamos en otros instrumentos y si g...
verdi55 At least there should be some moving average that has also reverted into the opposite direct...
verdi55 In addition to the moving average, wait until at least one bar is completely back inside the...
rama This works excellent on range bound I tried , give 90% win rates on dax , 3 min chart. can s...

Top