Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.
From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.
EXCLUSIVE FORUM
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
Elite Section
Get access to private discussions, specialized support, indicators and trading systems reported every week.
Advanced Elite Section
For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
I am working on an EA. Now I need the BollingerBands as a filter for my signals.
How can i construct the real values of the BollingerBands as I see, when I drop the Indicator on the chart?
The first double called "Bollinger" seems to be the MA in the middle of the BBs.
So I think the "BolValue" is the pos. and neg. difference between the middle-MA and the Bands - right?
So, if thats right - what do i have to choose for ARRAY[] ?. If that must be loop or somethink, can someone tell me the whole loop?.
I am working on an EA. Now I need the BollingerBands as a filter for my signals.
How can i construct the real values of the BollingerBands as I see, when I drop the Indicator on the chart?
The first double called "Bollinger" seems to be the MA in the middle of the BBs.
So I think the "BolValue" is the pos. and neg. difference between the middle-MA and the Bands - right?
So, if thats right - what do i have to choose for ARRAY[] ?. If that must be loop or somethink, can someone tell me the whole loop?.
Firstly, you should know the formula of BB:
- UpBB = MA(N) + deviation*StdDev(N)
- DnBB = MA(N) - deviation*StdDev(N)
where N - period of BB
Second, if you wish to receive difference between Upper and Lower bands(or BBWidth) then you should use the following formula:
BBWidth = UpBB - DnBB = 2*deviation*StdDev(N).
Standard Deviation(iStdDev(...)) you can find in the built-in indicators.
the middle of the bollinger matches is the same as a MA try placing a SMA20 over a SMA20 bollinger band. the higher and lower boll value can be gotten with