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!!
bandwidth forumula!! [help]
- furytrader
- Posts: 354
- Joined: Jul 30 2010
- Location: Chicago, IL
- Has thanked: 155 times
- Been thanked: 217 times
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:
(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!
Code: Select all
vars: bandwidth(0);
bandwidth = BollingerBand(C,20,2) - BollingerBand(C,20,-2);
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!
- furytrader
- Posts: 354
- Joined: Jul 30 2010
- Location: Chicago, IL
- Has thanked: 155 times
- Been thanked: 217 times
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 ....
Do you know what parameters are used for calculating bandwidth? That might give a hint as to the code underlying it ....
- TJ
- Posts: 7775
- Joined: Aug 29 2006
- Location: Global Citizen
- Has thanked: 1036 times
- Been thanked: 2233 times
Please post your code.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