bandwidth forumula!! [help]

Questions about MultiCharts and user contributed studies.
ashman
Posts: 2
Joined: 12 Nov 2012

bandwidth forumula!! [help]

Postby ashman » 12 Nov 2012

I have a program made ​​with omega easylenguage research

basically I have to decipher the function that bandwidth in order to
understand how it is calculated (possibly to move the code on this platform)
you can know the calculation is done for bandwidth?

thanks!!

User avatar
furytrader
Posts: 354
Joined: 30 Jul 2010
Location: Chicago, IL
Has thanked: 155 times
Been thanked: 217 times

Re: bandwidth forumula!! [help]

Postby furytrader » 12 Nov 2012

When I have seen the term "bandwidth" used in relation to trading strategies, it usually refers to the distance between two Bollinger bands. To calculate the "bandwidth", you would simply subtract the lower Bollinger band from the higher Bollinger band as follows:

Code: Select all

vars: bandwidth(0);

bandwidth = BollingerBand(C,20,2) - BollingerBand(C,20,-2);
(You will want to change the parameters used by the BollingerBand command to reflect your particular trading strategy, of course).

By the way, if your code was originally written for TS using EasyLanguage, you *should* be able to compile it directly with MultiCharts, without making any code adjustments. I would try that first before trying to re-write the code manually.

If you have any more questions, post 'em here!

ashman
Posts: 2
Joined: 12 Nov 2012

Re: bandwidth forumula!! [help]

Postby ashman » 12 Nov 2012

thanks for the reply

Unfortunately, the result does not match
I tried like this, but to no avail
bbw = bbup-bbdn
bbw = (bbup-bbdn) / 2
bbw = (bbup / bbdn)
bbw = (bbup / bbdn) / 2

User avatar
furytrader
Posts: 354
Joined: 30 Jul 2010
Location: Chicago, IL
Has thanked: 155 times
Been thanked: 217 times

Re: bandwidth forumula!! [help]

Postby furytrader » 12 Nov 2012

Yes, it's possible that "bandwidth" returns to some other type of trading bands ... or something else entirely!

Do you know what parameters are used for calculating bandwidth? That might give a hint as to the code underlying it ....

User avatar
TJ
Posts: 7742
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2222 times

Re: bandwidth forumula!! [help]

Postby TJ » 12 Nov 2012

thanks for the reply

Unfortunately, the result does not match
I tried like this, but to no avail
bbw = bbup-bbdn
bbw = (bbup-bbdn) / 2
bbw = (bbup / bbdn)
bbw = (bbup / bbdn) / 2
Please post your code.


Return to “MultiCharts”