- 显示:
- 1376
- 等级:
- 已发布:
- 2016.04.28 12:29
- 已更新:
- 2023.03.29 14:33
-
需要基于此代码的EA交易或指标吗?请在自由职业者服务中订购 进入自由职业者服务
Description:
A trading system based on the signals of the ColorXMACDCandle indicator. The signal is formed when a bar is closing. The Expert Advisor uses one of the two methods to determine the trend depending on the input value:
input TrendMode TMode=Cross; // Trend detection method
- Upon the intersection of the signal line and the histogram of XMACD with the change of the signal line color of ColorXMACDCandle;
- Upon the color change of the ColorXMACDCandle candlesticks.
The Expert Advisor uses the compiled indicator file colorxmacdcandle.ex5 for operation. Save it to <terminal_data_folder>\MQL5\Indicators.
Note that the TradeAlgorithms.mqh library file allows using Expert Advisors with the brokers who offer nonzero spread and the option of setting Stop Loss and Take Profit during position opening. You can download more variants of the library at the following link: Trade Algorithms.
Default Expert Advisor's input parameters have been used during tests shown below. Stop Loss and Take Profit have not been used during the tests.
Image:
Fig. 1. Examples of trades on the chart
Testing results for 2015 at EURUSD H8:
Fig. 2. Chart of testing results
由MetaQuotes Ltd译自俄语
原代码: https://www.mql5.com/ru/code/14980

在输入参数中带有时段选择选项的 WPR_Histogram 震荡指标。

在输入参数中带有时段选择选项的 RSI_Histogram 震荡指标。

一个基于 Stochastic_Histogram 指标信号的交易系统。

ATR的平均(AATR)是一个简单但有效的指标,可以用于任何价格行为策略的确认。