Create an Trend Trading Martingale EA incorporating an Indicator to get trend direction

MQL5 专家

工作已完成

执行时间9 天
客户反馈
Victor did a great job with the EA. He has good communication skills and is a skilled programmer. Would buy again from him!

指定

**Objective**: Develop a trend-following Expert Advisor (EA) that opens trades based on a trend detected across multiple timeframes using the *AllAverages_v4.9_MT5* indicator. The EA should use a Martingale strategy, only adding trades in the same direction when the price moves against the initial position, and include several risk management settings.

### Strategy Overview
1. **Trend Detection**:
   - The EA should detect a trend by analyzing the *AllAverages_v4.9_MT5* indicator across multiple timeframes.
   - Execution timeframe will be set to M1, but the trend should be confirmed on multiple selected timeframes.
   - **Condition for Entry**: The EA will open a trade only when all selected timeframes show a trend in the same direction, as indicated by the *AllAverages_v4.9_MT5* indicator.
   - **Trend Identification**: The EA should use the uptrend/downtrend buffers of the indicator to determine the trend direction.

2. **Martingale Strategy**:
   - If the price moves in the opposite direction of the open trade, the EA should open an additional trade in the same direction as the initial trade but with a larger lot size.
   - The lot size for each subsequent trade should increase based on a configurable Martingale multiplier.
   - The step size (in pips) for opening the next position when the price moves against the trade direction should also be configurable.

   - There should be a configurable maximum number of trades in the Martingale sequence to prevent excessive risk.
   - The EA should keep opening new trade sequences whenever the last sequence hits TP and the trend is still confirmend on all selected timeframes.


### Configurable Settings
1. **Trend Confirmation**:
   - The EA should allow setting the number of timeframes that must show the same trend direction before opening a trade.
   - Users should be able to select a specific type of moving average (e.g., HMA, EMA, DEMA, etc.) for each timeframe individually (e.g., H4 could use EMA while M1 uses DEMA).

2. **Trade Settings**:
   - **Starting Lot Size**: Configurable starting lot size for the initial trade.
   - **Martingale Multiplier**: Factor by which the lot size should increase with each subsequent trade in the Martingale sequence.
   - **Step Size**: Number of pips the price must move against the last opened trade of the sequence before the EA opens the next trade in the Martingale sequence.

3. **Take Profit (TP) Settings**:
   - TP should be configurable in terms of profit per trade (e.g., $20).
   - When a new trade is added to a sequence, the TP should be adjusted to the same for all open trades so that if the TP is hit, the total profit is equal to the target profit specified for the first trade (e.g., if the first trade's target was $20, the cumulative profit for all trades in the sequence should still be $20 when the TP is hit).
   - The TP should increase, if necessary, but should never result in a lower total profit than initially targeted.
   - The TP should be updated only when a new trade is added to the sequence.
   - Spread should be factored in the TP level.

4. **Stop Loss (SL) Settings**:
   - Configurable SL as a percentage of total account equity.
   - This SL should apply to the entire trade sequence, not individual trades. For example, if the SL is set to 5% of equity and there are 4 trades in the Martingale sequence, the SL should adjust to the same for all open trades such that the combined loss would equal 5% of equity if hit.
   - The SL should be updated only when a new trade is added to the sequence.

5. **Time Filter**:
   - The EA should have a configurable time filter to limit when new Martingale sequences can begin.
   - Users should be able to set specific time windows for trading (e.g., 00:00-08:00 and 14:00-23:59). 
   - If a sequence is still open outside of the trading window, the EA should continue to manage the sequence (e.g., adding trades if necessary and changing TP/SL) until it closes via TP or SL.
   - The time filter should use server time.

6. **Capital Loss Limit**:
   - An option to set a maximum allowable loss in dollar terms. If this loss limit is reached (including floating losses), the EA should:
      - Close all open trades immediately.
      - Disable itself to prevent further trading.
   - This feature ensures compliance with prop firm drawdown limits. The EA should continuously monitor floating losses on each tick to prevent violating drawdown rules.

7. **Magic Number**:
   - The EA should have a configurable magic number to help distinguish trades it opens from other trades on the account.

### Additional Features
1. **Logging**:
   - The EA should log all key actions, such as when a new trade sequence starts, trades are added to a sequence, TP or SL levels are modified, and sequences are closed.

2. **Alerts**:
   - The EA should send an alert whenever a new sequence is opened and when a sequence closes.
   - These alerts should be configurable for desktop notifications and push notifications to a mobile device.

### File Requirements
- The EA should be able to access the *AllAverages_v4.9_MT5* indicator directly to read trend up/downtrend buffers.

### Summary
This EA will serve as a trend-following system using multiple timeframes to confirm a trend direction, with a Martingale approach to manage trades when price moves against the position. Configurable settings will allow for precise control of trade entries, lot sizing, risk management, and time filters. Key logging and alerts will enhance monitoring, and robust risk management features ensure compliance with prop firm trading rules.


反馈

1
开发者 1
等级
(21)
项目
25
52%
仲裁
3
0% / 100%
逾期
2
8%
空闲
2
开发者 2
等级
(102)
项目
158
21%
仲裁
23
9% / 78%
逾期
16
10%
已载入
3
开发者 3
等级
(6)
项目
10
10%
仲裁
9
0% / 89%
逾期
1
10%
空闲
4
开发者 4
等级
(5)
项目
8
13%
仲裁
3
0% / 33%
逾期
2
25%
空闲
发布者: 1 代码
5
开发者 5
等级
(9)
项目
19
16%
仲裁
3
67% / 0%
逾期
0
空闲
6
开发者 6
等级
(25)
项目
29
21%
仲裁
20
10% / 50%
逾期
8
28%
工作中
7
开发者 7
等级
(53)
项目
91
52%
仲裁
1
0% / 0%
逾期
1
1%
工作中
8
开发者 8
等级
项目
0
0%
仲裁
0
逾期
0
空闲
发布者: 1 代码
相似订单
MT5 Expert Advisor – XAUUSD Opening Range Breakout I am looking for an experienced MQL5 developer to build a robust MT5 Expert Advisor. STRATEGY DETAILS • Instrument: XAUUSD • Timeframe: M30 • Broker: Pepperstone (Spread Betting) • Trading days: Monday–Friday only OPENING RANGE • Opening range candle: 07:00 – 07:30 UK time • EA must automatically convert UK time to broker server time • Record OR High and OR Low from
EA should trade Gann indicator arrows filtered by Autotrendline indicator. Two orders per trade and when first level of Gann indicator is reached SL of second order should be moved to breakeven
I want to find a Developer to perform this work and settle payments in this Application. I undertake not to communicate with Applicants anywhere else except this Application, including third-party messengers, personal correspondence or emails. I understand that violators will be banned from publishing Orders in the Freelance service. I have read the Rules of using the Freelance service and accept them. I agree
I’m looking for an experienced developer to build an EA that executes trades automatically based on signals posted in my Telegram channel . Signal Execution Logic Example signal format: SELL GOLD 4669–4673 SL: 4676 TP1: 4667 TP2: 4664 TP3: Open (with trailing stop) EA requirements: Automatically read and parse signals from my Telegram channel Apply money management based on a fixed risk percentage (e.g. 5% of account
Moving forward 100+ USD
Position Size = (Account Risk %) / (Stop Loss %) Example: $1000 account, 1% risk = $10 If SL = 0.75%, position = $10 / 0.0075 = $1333 moving average
Hello, can you help me with my custom dashboard? I’m sending all the necessary files. Let me know if you can work on it. Please check the indicator carefully—some people declined, and I don’t have the source code. I’ll also need a sample file before I can select you as the developer
Hello, I have a strategy written in Pine Script (TradingView) that used to send signals to MetaTrader 5 via PineConnector. Now I want a native MT5 Expert Advisor (EA) written in MQL5, so I can do full backtesting and trading inside MetaTrader without any external bridge. I will provide: - Full Pine Script code - Entry and exit rules (based on BOS and OB logic) - SL/TP and dynamic risk management (R:R) - Breakeven
Job Title: HFT-Style M1 Gold Scalper EA for Exness Broker – 100-200 Trades/Day Description: Need a high-frequency trading Expert Advisor for scalping XAUUSD (Gold) on M1 timeframe only. This is for personal live account on Exness broker (ECN type preferred). Requirements: • 100-200+ trades per day during high liquidity sessions (London/New York overlap). • Ultra-fast tick-by-tick execution, optimized for low latency
EA for Gold 30+ USD
I am looking for a good EA robot for gold that will be taking trades on 1 min chart and takes profits on 1$ move on gold. that can take as many entries as possible in a day. example: ENTRY ON 3000.00 AND TAKE PROFIT AT 3001.00. The robot will have all the trading knowledge and strategy with a high win rate
The void 40 - 300 USD
An AI, with a clear understanding, analysis and predictions of the market, based on the right information and experience on years of market structure, an AI that is ready to face and survive the hardest moments of the market and emerge victorious. Simply but the perfect tool for a day trader

项目信息

预算
50+ USD