당사 팬 페이지에 가입하십시오
EA Moving Average - MetaTrader 5용 expert
- 게시자:
- Vladimir Karputov
- 조회수:
- 9351
- 평가:
- 게시됨:
- 2018.06.16 10:20
- 업데이트됨:
- 2018.06.16 10:23
- 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동
Idea by: Aleksandr.
MQL5 code by: Vladimir Karputov.
The EA is based on \MQL5\Experts\Examples\Moving Average\Moving Average.mq5 from standard delivery. What's new or changed:
- For each of the four signals (Buy Open, Buy Close, Sell Open, and Sell Close), there is now their own indicator Moving Average, for which parameters may be set, such as: period (averaging period), shift (horizontal shift of the indicator), method (averaging method), and price (type of prices, based on which the indicator is calculated);
- Flags Use Buy positions and Use Sell positions - enable opening BUY and SELL positions, respectively;
- Flag Consider Price Last Out - consider the price of the last closed trade. If the value is "true", then the new BUY position will be opened at a price equal to or lower than the price of the last transaction, while the new SELL position will be opened at a price equal to or higher than the price of the last closed transaction.
Price of the last closed position is monitored on OnTradeTransaction. The EA keeps at most one position in the market, so it can be used on both netting and hedging accounts.
Inputs
- Maximum Risk in percentage - highest risk, in percents;
- Descrease factor - decrease factor, in case of losing trades in trading history;
- ххх: period - averaging period (individual for each indicator);
- ххх: shift - horizontal shift (individual for each indicator);
- ххх: method - averaging method (individual for each indicator);
- ххх: price - price, at which the indicator is calculated (individual for each indicator);
- Use Buy positions - a flag enabling opening BUY positions;
- Use Sell positions - a flag enabling opening SELL positions;
- Consider Price Last Out - a flag to consider the price of the last closed trade;
- magic number - unique identifier for the EA.
Default parameters, EURUSD M15, period from 2018.01.01 to 2018.05.03.
Recommendations on optimizing on M15
(Genetic) optimization can be performed in the "1 minute OHLC" tick generation mode. To start with, mark the parameters of period (Start 12, Step 1, Stop 30) and shift (Start 0, Step 1, Stop 6).
Upon genetic optimization, go to the "Every tick" mode or the "Every tick based on real ticks" mode and run a single test for the pass selected.
MetaQuotes Ltd에서 러시아어로 번역함.
원본 코드: https://www.mql5.com/ru/code/20626
Indicator iSAR with the timeframe selection option in input parameters, implemented in color, with the possibility to generate alerts when the trend changes its direction.
UniversalMACrossEAThe EA based on two iMA (Moving Average, MA) indicators. Selecting the lot calculation mode: Manually or in the risk percentage per trade. Position trailing.
A trading system based on indicator signals Parabolic Stop and Reverse system with the possibility to set a fixed position holding time.
exp_AmstellThe EA uses a virtual Take Profit for closing gaining positions. Opening positions with a step. Catch the type of the last position and its price in OnTradeTransaction.