Jump to content

Smoothed Bollinger %b indicator


Recommended Posts

can someone expert convert this metastock formula into metatrader 4?

 

i think is a very usefull indicator

 

http://stocata.org/metastock/formulas.html

 

This is the modified SVE_BB%b formula:

{Sylvain Vervoort SVE_BB%b}

period:=Input("%b period: ",1,100,18);

TeAv:=Input("Tema average: ",1,30,8);

afwh:= Input("Standard deviation high ",.1,5,1.6);

afwl:= Input("Standard deviation Low ",.1,5,1.6);

afwper:= Input("Standard deviation period ",1,200,63);

haOpen:=(Ref((O+H+L+C)/4,-1) + PREV)/2;

haC:=((O+H+L+C)/4+haOpen+Max(H,haOpen)+Min(L,haOpen))/4;

TMA1:= Tema(haC,TeAv);

TMA2:= Tema(TMA1,TeAv);

Diff:= TMA1 - TMA2;

ZlHA:= TMA1 + Diff;

percb:=(Tema(ZLHA,TeAv)+2*Stdev(Tema(ZLHA,TeAv),period)- Mov(Tema(ZLHA,TeAv),period,WEIGHTED))/(4*Stdev(Tema(ZLHA,TeAv),period))*100;

percb;

50+afwh*Stdev(percb,afwper);

50-afwl*Stdev(percb,afwper);

50

Link to comment
Share on other sites

Hi tb36670,

 

This is quite a complex one to code - though I believe that the guys at TSD have created one in the Elite section (though I don't have access there).

 

If anyone wants to code this, they need to read this article:

 

http://stocata.org/metastock/bollinger_perc_b.html

 

And they will find these MT4 TEMA and haC indicators handy:

 

http://www.multiupload.com/927GZKZVUN

Edited by soundfx
Link to comment
Share on other sites

ok - I've just found the TSD one, thanks to marthart in the post:

 

http://indo-investasi.com/showthread.php/10007-TSD-Forum-Elite-Section-indicators?p=170777&viewfull=1#post170777

 

Here's the indi:

 

http://www.multiupload.com/ANMJ5KNIXR

 

tb36670 - if you think it's a useful indicator - how are you using it?

Link to comment
Share on other sites

  • 7 months later...
  • 3 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...