당사 팬 페이지에 가입하십시오

A new indicator to see the range bound period and an Expert Advisor similar need help - MetaTrader 4용 expert
- 조회수:
- 16505
- 평가:
- 게시됨:
- 2013.05.27 05:29
- 업데이트됨:
- 2014.04.21 14:55
-
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동
Hi everyone,
For searching the good time to place order, I'd like to find the range bound period. In my opinion, it should be a good market after the range bound. Then I wrote the indicator named RangeBoundMA. It based on the different prices among the 3 SMA lines that the periods are 38, 140 and 210. You can attach it to your chart with a horizontal line as 25. Then you'll see once the indicator under the 25 line in some period, the prices are in the range bound. When the price breaks the highest or lowest price during the range bound, it is the just time to place order.
However, when I wrote the code into an Expert Advisor, it is always false that I can't get the reason because I am still new to Expert Advisor mql4 code. Would someone please help me to check the code? What wrong is it? Will greatly appreciated if reply.

The indicator specifies on trend and lateral movements of the price.

The moving average that divides the prices for classes. The classes with extreme price get bigger weight (importance)
![[EA] - Charles-1.3.7](https://c.mql5.com/i/code/expert.png)
Improvements to the previous version.

See http://forum.mql4.com/54660 for getting a connection between highs and a connection between lows. I made a zigzag this way.