Join our fan page
- Views:
- 14667
- Rating:
- Published:
- 2015.12.10 13:00
- Updated:
- 2016.11.22 07:32
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
The Expert Advisor is based on the Williams Percent Range indicator. It sells in the overbought zone and buys in the oversold zone.
The Expert Advisor was created for the М1 timeframe of the EURUSD (five digits), but it can also be used for others, there is a Trailing Stop with adjustable start time and step. There is also an operation timer in the EA's settings listed as "time" (if value is "0" — off, if value is "1" — on). "starttime" — EA operation start time according to the time of the terminal, "stoptime" — finishes operation according to the time of the terminal.
Closes positions using the Trailing Stop, unclosed positions are closed during the opposite deal.
Part of the code is borrowed from the "ft_cci" EA from the FORTRADER.Ru magazine, the author is Yuri.
The EA was tested on a demo account, results were good (the statement was not preserved). The EA was not checked on a tester (the prehistoric computer can not run it). A great request to anyone who tests, please put the chart in the comments. Thank you in advance.
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/13643

The Moving Average indicator values are used for trading.

This indicator downloads history of symbols which have open charts. It will no longer be necessary to wait for an update when switching timeframes.

The indicator marks the pin bars on the chart based on the parameters set.

Elementary trailing stop able to distinguish its "own" orders among others by comment and/or Magic number. It also distinguishes the financial instrument that needs to be trailed.