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

MQL5 Esperti

Lavoro terminato

Tempo di esecuzione 9 giorni
Feedback del cliente
Victor did a great job with the EA. He has good communication skills and is a skilled programmer. Would buy again from him!

Specifiche

**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.


Con risposta

1
Sviluppatore 1
Valutazioni
(21)
Progetti
25
52%
Arbitraggio
3
0% / 100%
In ritardo
2
8%
Gratuito
2
Sviluppatore 2
Valutazioni
(102)
Progetti
158
21%
Arbitraggio
23
9% / 78%
In ritardo
16
10%
In elaborazione
3
Sviluppatore 3
Valutazioni
(6)
Progetti
10
10%
Arbitraggio
9
0% / 89%
In ritardo
1
10%
Gratuito
4
Sviluppatore 4
Valutazioni
(5)
Progetti
8
13%
Arbitraggio
3
0% / 33%
In ritardo
2
25%
Gratuito
Pubblicati: 1 codice
5
Sviluppatore 5
Valutazioni
(9)
Progetti
19
16%
Arbitraggio
3
67% / 0%
In ritardo
0
Gratuito
6
Sviluppatore 6
Valutazioni
(25)
Progetti
29
21%
Arbitraggio
20
10% / 50%
In ritardo
8
28%
In elaborazione
7
Sviluppatore 7
Valutazioni
(53)
Progetti
91
52%
Arbitraggio
1
0% / 0%
In ritardo
1
1%
Gratuito
8
Sviluppatore 8
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
Pubblicati: 1 codice
Ordini simili
//+------------------------------------------------------------------+ //| EMA + Resistance Break & First Retest EA - ATR SL/TP - Risk 3% | //| Fully working MT4 EA | //+------------------------------------------------------------------+ #property strict //---- Inputs input double RiskPercent = 3.0; input int ATR_Period = 14; input double SL_ATR_Multiplier = 1.5; input double TP_ATR_Multiplier
SMC Trading Bot 50 - 100 USD
📌 Looking for MQL5 Developer – Institutional SMC EA Specification Hello everyone, I am looking for a highly experienced MQL5 developer to build a fully automated Expert Advisor (EA) based strictly on Smart Money Concepts (SMC) , designed to operate and pass prop firm accounts . 🔍 Core Strategy Requirements (SMC Only) The EA must be based on institutional Smart Money Concepts , including: ✅ Market Structure (BOS
Create simple EA 30 - 60 USD
Start BUY:- when i click start BUY button new panel should open which should contain bellow points:- Trigger Price Time frame Cross/Close RR ration Trailing Stop ratio Maximum Trade count Risk (percentage or cash) (Option to Increase risk when SL hit) Remove Trigger (True/False ) I will explain above point one by one here bellow •Trigger price :- here we enter price at which when market cross or
I’m a trader looking to develop a non-repainting indicator intended for integration with an EA. I identified a comparable indicator on the MQL5 Market, but it’s unclear whether its logic can be accessed or automated for algorithmic execution
I want to check if this indicator is repainting or not Whick mean the results of back testing is legit or not if anyone can help me to review it kindly to well to contact me i will be happy to work and go on long term work with anyone thanks
Bot sympaFX 30+ USD
Stratégie : "Institutional Flow Scalper" La stratégie repose sur la confluence de la tendance structurelle et de la valeur moyenne pondérée . Actifs cibles : EURUSD, GBPUSD (Spread faible, forte liquidité). Sessions : Londres (09h00 - 12h00) et New York (14h30 - 17h30 GMT+1). Indicateurs : EMA 200 : Filtre de tendance long terme (M5). VWAP : Ancre du prix institutionnel. On achète sous le VWAP en tendance haussière
PrimeFlowEA — v1 Specification Objective: PrimeFlowEA v1 is designed to enforce disciplined, rule-based execution within a single daily trading session. The goal of v1 is correct behavior and execution discipline , not optimization or performance tuning. 1. Market & Time Platform: MetaTrader 5 (MQL5) Symbol(s): User-selectable (single symbol per chart) Execution timeframe: Configurable (default: M5 / M15)
Top manager 70 - 120 USD
A multi-symbol, rule-based trade management Expert Advisor designed to recover, neutralize, and scale out of DCA baskets using intelligent closing logic and full manual control through an on-chart dashboard. The EA continuously scans multiple symbols and monitors all open trades with a specific magic number. Based on trader-enabled rules (R1–R4) and Break-Even modes (BE1–BE3), it selectively closes trades when
Specifications – Development of an MQL5 Expert Advisor (Reverse Engineering) Project context: I have access to a real trading history consisting of more than 500 trades executed over a period of approximately 3 years. These trades have been exported into a CSV file containing all available information, including date, time, symbol, order type, entry price, and exit price. Important: I do not have access to the
1.Sinyal Perdagangan : Sinyal beli: garis MACD utama memotong garis sinyal ke atas (macd_current>signal_current && macd_previous<signal_previous). Sinyal jual: garis MACD utama memotong garis sinyal ke bawah (macd_current<signal_current && macd_previous>signal_previous). Gambar di bawah menunjukkan kasus beli dan jual. 2. Posisi ditutup pada sinyal yang berlawanan: Posisi beli ditutup pada sinyal jual, dan posisi

Informazioni sul progetto

Budget
50+ USD