Jump to content

Recommended Posts

Posted

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

Posted (edited)

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
  • 7 months later...
  • 3 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...