Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

Bollinger Band Bandwidth Calculation Using Neural Networks - MetaTrader 5 Expert | Forex Indicators Download - MT4/MT5 Resources

author EAcpu | 5 reads | 0 comments |

Bollinger Band Width calculation with Neural Network using - expert for MetaTrader 5

I've been looking for the BB Width Expert Advisor but can't find it anywhere. I then decided to create my own, which I did as part of my studies. This Expert Advisor follows the neural network approach.

What is Bollinger Bands width ?

Bollinger Bands width is the band forming Bollinger Bands . John Bollinger, in his book Bollinger Bands on Bollinger Bands, refers to Bollinger Band width as one of two indicators that can be derived from Bollinger Bands. Another indicator is %B.

Bandwidth measures the percentage difference between the upper and lower limits. Bandwidth decreases as Bollinger Bands become narrower and increases as Bollinger Bands become wider. Since Bollinger Bands are based on standard deviation, falling bandwidth reflects decreasing volatility and rising bandwidth reflects increasing volatility.

Important pattern!

"An idea can change your life" ;-)

After reading this article I got the inspiration to work on neural networks. The author Feijoz helped me a lot with the final part of coding. This Expert Advisor takes the values ​​of the last 14 periods and minimizes them using the neural network method formula (read the article to learn about the best implementation of neural networks).

For width calculation I used the classic method: (BBupperBand - BBLlowerBand) / BBMidleBand. formula:

Input [i*2]=(((iBands_Upperbuf[i] - iBands_Lowerbuf[i]) / iBands_Basebuf[i]) - (x_min+x_minn) * (d2-d1)) / ((x_maxx+x_max) - (x_min+x_minn)) + d1;

It seems complicated, but it’s actually like A, B, C, D… The above article can help you a lot.

The Expert Advisor test results are good, I selected the data from 2013.01.01 to 2013.04.13. balance:

Bollinger Band Width calculation with Neural Network using - expert for MetaTrader 5

I've attached the complete test results in the zip file.

suggestion:

Suresh B. Kakatil,


Attachment download

📎 rock-trader-neuro.mq5 (15.45 KB)

Source: MQL5 #1649

Verification code Refresh