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

MQL5 Experten

Auftrag beendet

Ausführungszeit 9 Tage
Bewertung des Kunden
Victor did a great job with the EA. He has good communication skills and is a skilled programmer. Would buy again from him!

Spezifikation

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


Bewerbungen

1
Entwickler 1
Bewertung
(21)
Projekte
25
52%
Schlichtung
3
0% / 100%
Frist nicht eingehalten
2
8%
Frei
2
Entwickler 2
Bewertung
(102)
Projekte
157
21%
Schlichtung
23
9% / 78%
Frist nicht eingehalten
16
10%
Arbeitet
3
Entwickler 3
Bewertung
(6)
Projekte
10
10%
Schlichtung
9
0% / 89%
Frist nicht eingehalten
1
10%
Frei
4
Entwickler 4
Bewertung
(5)
Projekte
8
13%
Schlichtung
3
0% / 33%
Frist nicht eingehalten
2
25%
Frei
Veröffentlicht: 1 Beispiel
5
Entwickler 5
Bewertung
(9)
Projekte
19
16%
Schlichtung
3
67% / 0%
Frist nicht eingehalten
0
Frei
6
Entwickler 6
Bewertung
(25)
Projekte
29
21%
Schlichtung
20
10% / 50%
Frist nicht eingehalten
8
28%
Arbeitet
7
Entwickler 7
Bewertung
(53)
Projekte
91
52%
Schlichtung
1
0% / 0%
Frist nicht eingehalten
1
1%
Frei
8
Entwickler 8
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
Veröffentlicht: 1 Beispiel
Ähnliche Aufträge
specification High-Frequency Candle Momentum Scalper 1. Strategy Overview Core Logic: The EA identifies the current color of the active candle (Bullish or Bearish). Entry Trigger: It opens positions only after a specific duration of the candle has passed (e.g., after 30 seconds on a 1-minute candle) to confirm the direction. 2. Entry Logic (The "Half-Candle" Rule) Timeframe: M1 (Default, but adjustable). Time Filter
Looking for experience MT5 developer to build a rule-based EA using Volume Profile concept. Only developer with proven past experience working with Volume Profile indicator (ie, VAH, VAL, POC, session profiles or anchored profiles) will be considered. Interested developer must submit a screenshot or video clip of a past project involving Volume Profile, before being shortlisted. Specification will only be shared and
I need an Expert Advisor (EA) coded for MetaTrader 5 based on the following specifications: Objective: Autonomous trading on Bollinger Band breakouts, robust across trending and consolidating years. Architecture: Max 1 open trade at a time Ignore opposite signals if a trade is open Spread filter: always execute Indicators (Custom): Bollinger Bands (WMA, length 20, deviation 1.5, source: close) ATR (WMA, length 14)
I need a professional MQL5 developer to build a REAL-account XAUUSD (Gold) scalping Expert Advisor. Requirements: - MT5 only - Scalping on M1 timeframe - Works on REAL accounts (not demo-only) - Max spread & slippage filter - News filter - Auto lot (risk % adjustable) - One trade at a time Delivery: - Final EX5 file - Testing before full payment Please apply only if you have real experience with XAUUSD scalping
My expert already has the rest of the required features implemented . Bring in your support and resistance expert to save time . My expert already has money management , session filter etc . Trailing is threshold based . Please send a picture as well to show your expert on a live chart . Most specific is the 5m tf , to 1m execution
EA Update 100 - 150 USD
I need my current EA to be updated so that it doesn’t enter trades under certain conditions. And I need the current entry logic as market order to be changed to limit order. Further details can be discussed privately on google meet
Platform: - MetaTrader 4 (MT4) Type: - Expert Advisor (EA) Strategy rules: - Buy when fast EMA crosses above slow EMA - Sell when fast EMA crosses below slow EMA - EMA periods must be input parameters Trade settings: - Lot size: fixed (input parameter) - Stop Loss: fixed pips (input parameter) - Take Profit: fixed pips (input parameter) - One trade at a time only Risk & filters: - No trading during high spread -
can anyone help me with building a complete automated pine code strategy and indicator that work for both FXs & CFDs and have a high winning rate proved through back testing. I have a very complex current code that developed mostly using AI but lots of gaps are there although it translate exactly what I have in my mind. So, you are free to decide whether wo build a complete new code or fix my current working code ( i
Hello, I’m looking for an experienced MT4 (MQL4) developer to convert the Lucky Reversal indicator from indicatorspot.com into a fully functional Expert Advisor (EA). Project Scope Code an MT4 EA that replicates the exact logic and signals of the Lucky Reversal indicator Trades should open and close automatically based on the indicator’s rules Must match indicator behavior 1:1 (no approximations) EA Requirements MT4
This is a request for a formal price quote only. No work should begin until the quote is accepted. I am requesting a quantitative audit of an existing trading strategy. Scope (strict): 10-year historical backtest Full performance metrics (expectancy, win rate, profit factor, max drawdown, trade distribution) Identification of logical flaws, bias, and overfitting Rule-based corrections only if justified by data

Projektdetails

Budget
50+ USD