Unisciti alla nostra fan page
- Visualizzazioni:
- 7923
- Valutazioni:
- Pubblicato:
- 2012.12.11 15:09
- Aggiornato:
- 2016.11.22 07:32
-
Hai bisogno di un robot o indicatore basato su questo codice? Ordinalo su Freelance Vai a Freelance
The Expert Advisor is rewritten from MQL4, the author is fortrader, link to the source https://www.mql5.com/en/code/8006.
How it works
If the bar is formed with a size of a shade less than the lowest bar for a specified number of bars, the setting of two pending stop orders is performed. When one of the orders is triggered, the second is removed.
Trade signals definition is delivered to the indicator. When the indicator has one period parameter, i.e. the number of bars on which the minimum bar size is determined. The green line shows the current bar size, the blue line is a minimum bar size, points are the signals of setting orders.
The image 1 shows the performance of the Expert Advisor in the strategy tester's visual mode, the image 2 shows the results of the tester.
Fig. 1. How the Expert Advisor works.
Fig. 2. The results of work of the Expert Advisor for the last month (09.2012) at EURUSD M15.
Parameters
- period - The period of the indicator.
- PendingLevel - The level of setting pending orders from High/Low of the previous bar.
- Lots - Lot.
- StopLoss - Stop Loss in points, 0 - without Stop Loss.
- TakeProfit - Take Profit in points, 0 - without Take Profit.
Tradotto dal russo da MetaQuotes Ltd.
Codice originale https://www.mql5.com/ru/code/1163

Rise or fall in prices is often preceded by increased activity of trading. The True MFI indicator tries to use this factor.

The Expert Advisor analyses many Moving Averages from three timeframes

An alternative replacement for the standard RVI indicator which considers trades volume

The Exp_2pbIdealMA indicator is based on the crossing of two Moving Averages. A signal to perform a deal is formed at bar closing if there is crossing of a fast 2pbIdeal1MA Moving Average with a slow 2pbIdeal3MA Moving Average