Page 1 of 1

bandwidth forumula!! [help]

Posted: Nov 12 2012
by ashman
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!!

Re: bandwidth forumula!! [help]

Posted: Nov 12 2012
by furytrader
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!

Re: bandwidth forumula!! [help]

Posted: Nov 12 2012
by ashman
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

Re: bandwidth forumula!! [help]

Posted: Nov 12 2012
by furytrader
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 ....

Re: bandwidth forumula!! [help]

Posted: Nov 12 2012
by TJ
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.