거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Twitter에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
Experts

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

조회수:
31430
평가:
(53)
게시됨:
2013.04.16 07:34
업데이트됨:
2016.11.22 07:32
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

I have been searching for a BB Width Expert Advisor, but I couldn't find it anywhere. Then I decided to create my own, and as a part of my studies I did this. This Expert Advisor follows Neural Network method.

Test Result:

  • Initial Deposit 10000.
  • Gross Profit of 36000.
  • Time span 3.5 months.

What is Bollinger Band Width?

Bollinger Band Width is band formation in Bollinger Bands. In his book ("Bollinger on Bollinger Bands"), John Bollinger refers to Bollinger Band Width as one of two indicators that can be derived from Bollinger Bands. The other indicator is %B.

BandWidth measures the percentage difference between the upper band and the lower band. BandWidth decreases as Bollinger Bands narrow and increases as Bollinger Bands widen. Because Bollinger Bands are based on the standard deviation, falling BandWidth reflects decreasing volatility and rising BandWidth reflects increasing volatility. 

Important Patterns! 

  • Narrowness: Narrow BandWidth is relative. BandWidth values should be gauged relative to prior BandWidth values over a period of time. It is important to get a good look-back period to define BandWidth range for a particular Symbol.
  • The Squeeze: Bollinger BandWidth is best known for identifying the Squeeze. This occurs when volatility falls to a very low level, as evidenced by the narrowing bands. The upper and lower bands are based on the standard deviation, which is a measure of volatility. The bands narrow as price flattens or moves within a relatively narrow range. The theory is that periods of low volatility are followed by periods of high volatility. Relatively narrow BandWidth (a.k.a. the Squeeze) can foreshadow a significant advance or decline. After a Squeeze, a price surge and subsequent band break signal the start of a new move. A new advance starts with a Squeeze and subsequent break above the upper band. A new decline starts with a Squeeze and subsequent break below the lower band.

"An Idea Can Change Your Life" ;-)

I got the inspiration to work on Neural Networks after Reading this article. The author Fyords helped me a lot at the finishing part of coding. This Expert Advisor takes the value of last 14 periods and minimizes it with the Neural Network method formula (please read the article for the best implementation of Neural Network).

Width Calculation I have used the classical method: (BBupperBand - BBLlowerBand) / BBMidleBand. Formula:

inputs[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 looks complicating but in reality it is just like A, B, C, D... The above article can help you a lot.

Expert Advisor test result is good, I have taken the period from 2013.01.01 to 2013.04.13. Balance:

I have attached the complete test result in the zip file.

Recommendations:

  • I don't recommend to use this Expert Advisor in real account.
  • In the same code you can use some volume indicator combination (CCI, MFI etc.).


Thank You,

Suresh B. Kakkattil,

Kerala, India.

i-Sessions i-Sessions

The trade sessions indicator

i-ParamonWorkTime i-ParamonWorkTime

The i-ParamonWorkTime indicator

MorningFlat MorningFlat

This indicator displays the levels of the "morning flat" and shows possible targets

Exp_QQECloud Exp_QQECloud

Trading system using the Exp_QQECloud trend indicator.