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
等级
(20)
项目
24
54%
仲裁
3
0% / 100%
逾期
2
8%
空闲
2
开发者 2
等级
(91)
项目
131
18%
仲裁
4
25% / 25%
逾期
12
9%
已载入
3
开发者 3
等级
(6)
项目
10
10%
仲裁
8
0% / 88%
逾期
1
10%
空闲
4
开发者 4
等级
(5)
项目
8
13%
仲裁
2
0% / 0%
逾期
2
25%
空闲
发布者: 1 代码
5
开发者 5
等级
(9)
项目
19
16%
仲裁
3
67% / 0%
逾期
0
空闲
6
开发者 6
等级
(22)
项目
25
20%
仲裁
14
14% / 21%
逾期
7
28%
已载入
7
开发者 7
等级
(51)
项目
89
52%
仲裁
1
0% / 0%
逾期
1
1%
工作中
8
开发者 8
等级
项目
0
0%
仲裁
0
逾期
0
空闲
相似订单
Just have a let down by previous coder. (Andrii) please dont apply for this one. Coder with low Metrix please dont apply : High Arbitrage/Low reviews/High Overdue I will just avoid This is a long-term Project You ll have to continue work on the source file done so far, there might be bug to fix and continue the work as needed. What be involve: Grid system Dashboard Indicaotor Addon Setting/Logic enhancement News
Experts mt5 30 - 50 USD
I need a programmer to create an MT5 robot, putting my strategy inside it, send me a message if you are interested! The robot will be based on averages making purchases and sales together
To develop EA algo on GBPUSD on MT5 Client will provide the necessary indicator which will plot Daily pivots on the chart. PFA screenshot attached for details of job work
Hello, my budget is 30$, I need MT5 EA send alert to telegram: 1. Send alert if any position volume by magic number more than: for example, 0.25 lot, send position symbol name and positions not all positions just the positions are more than 0.25 lot volume and positions trade comment and send Custom comment: I entered it manually in input menu. 2. Send alert if I have open positions by magic number in
Description de la stratégie de trading : Bot de trading ULTIMATE AI Smart Money Concept (SMC) Aperçu: J'ai besoin du robot de trading IA ultime, conçu pour mettre en œuvre une stratégie de trading Smart Money Concept (SMC) axée sur l'identification des configurations de trading à forte probabilité en fonction de la structure du marché, des blocs d'ordres et de l'évolution des prix. Ce robot vise à capitaliser sur le
I’m looking for a skilled MQL5 developer to build an MT5 Expert Advisor that mirrors inverse trades (Buy ↔ Sell) from a prop firm challenge account (demo) to a live hedge account . Core Requirements: Open and close opposite trades in real-time Dynamic lot sizing based on account balances (Objective: recover approx. $500 if the challenge account fails) Support for multiple symbols , including: XAUUSD, NAS100, BTCUSD
Hi, I’m looking for an experienced MQL5 or AI trading systems developer who can build a scalable, beginner-friendly forex trading network . The system should include: Fully automated trading logic (AI-enhanced or rule-based) MT5 (or MT4 if needed) compatibility A beginner dashboard with simplified controls A structure that supports onboarding of multiple traders (eventually multi-asset) Key modules like performance
Trading Strategy Description: ULTIMATE AI Smart Money Concept (SMC) Trading Bot Overview: i need The ULTIMATE AI trading bot that is designed to implement a Smart Money Concept (SMC) trading strategy that focuses on identifying high-probability trading setups based on market structure, order blocks, and price action. The bot aims to capitalize on institutional trading behavior by analyzing price movements and
I need someone who can provide metatrader4/5 restful api. And I want restful and websockets. we need to use metatrader api in our app for statistics and trade copying. Apply only if you have the necessary qualifications and experience for this project
I need a highly disciplined, low-risk EA for MT4/MT5 that trades only when 100% strategy conditions are met. It must include multi-timeframe trend logic, support/resistance rejection, BOS/CHoCH detection from real swing levels, and a breakout strategy with trailing SL. EA should scan all major pairs (from one chart), trade only during 07:00–16:00 GMT, and skip trades 2 hours before major news. Max 1 trade per pair

项目信息

预算
50+ USD
VAT (19%): 9.5 USD
总计: 59.5 USD
开发人员
45 USD