Tarea técnica

🧩 1. Overview

1.1 Purpose

The purpose of this EA is to automate the Turtle Trading System, originally developed by Richard Dennis and William Eckhardt, using Donchian Channel breakouts and ATR-based volatility stops. The EA will execute entries, exits, and risk management automatically.

1.2 Scope

The EA should:

  • Trade any MT5-compatible instrument (Forex, Crypto, Commodities, Indices, Synthetic Indices).

  • Support backtesting and live trading.

  • Implement both System 1 (short-term) and System 2 (long-term) Turtle breakout rules.

  • Manage trade sizing, pyramiding, stop-loss, and trailing stops based on ATR volatility.


⚙️ 2. Functional Requirements

2.1 Entry Logic

  • System 1 (Short-term):

    • Buy when price closes above the Donchian Channel high (N = 20).

    • Sell when price closes below the Donchian Channel low (N = 20).

  • System 2 (Long-term):

    • Buy when price closes above the Donchian Channel high (N = 55).

    • Sell when price closes below the Donchian Channel low (N = 55).

  • Filter Option:

    • Enable/disable each system independently.

    • Optionally confirm with trend filter (e.g., 200 EMA direction).

2.2 Exit Logic

  • Exit all long positions when price closes below the Donchian Channel low (N = 10).

  • Exit all short positions when price closes above the Donchian Channel high (N = 10).

  • Optional trailing stop exits (ATR-based).

2.3 Stop Loss

  • Each trade has a fixed stop loss equal to:

    Stop Distance = ATR(20) × ATR_Multiplier

  • Default ATR_Multiplier = 2.0.

2.4 Position Sizing

  • Risk-based sizing:

    Position Size = (Account Balance × Risk%) / (Stop Distance)
  • Default Risk% = 1% per trade.

  • Minimum lot size enforced by broker specifications.

2.5 Pyramiding

  • Allow multiple entries (up to 4) in the direction of profit.

  • New positions are opened every +0.5 ATR move in favor of trade.

  • Each added position has its own stop-loss based on most recent ATR.

2.6 Take Profit

  • Optional Take Profit at user-defined R:R ratio (default = 2.0).

  • If disabled, rely solely on Donchian or trailing exits.

2.7 Trailing Stop (optional)

  • Dynamic trailing stop based on ATR(20) × Trailing Multiplier.

  • Updates on every new candle or tick.

2.8 Filters (optional)

  • Volatility Filter: Trade only when ATR > ATR_SMA(20).

  • Session Filter: Trade only during selected hours (e.g., London/NY).

  • Trend Filter: Only take trades aligned with a higher timeframe trend (EMA direction).


🧮 3. Parameters and Inputs

Parameter Description Default
System1_Period Donchian Channel Period (Short-term) 20
System2_Period Donchian Channel Period (Long-term) 55
Exit_Period Donchian Exit Period 10
ATR_Period ATR calculation length 20
ATR_Multiplier Multiplier for stop distance 2.0
Risk_Percent % of balance risked per trade 1.0
TP_Multiplier Take-profit multiplier (R:R) 2.0
Allow_Pyramiding Enable additional entries true
Max_Pyramids Max pyramided entries per direction 4
TrailStop_Enable Enable trailing stop true
TrailStop_ATRMult Trailing stop ATR multiplier 1.0
Use_TrendFilter Trade with EMA trend confirmation false
Trend_EMA_Period EMA period for trend 200
SessionStart Start time (HH:MM) 00:00
SessionEnd End time (HH:MM) 23:59
Slippage Max price slippage 3 pips
MagicNumber Unique EA trade ID 20250507

🧠 4. Non-Functional Requirements

4.1 Performance

  • EA must execute in under 100 ms per tick.

  • Backtest-compatible across all timeframes (1M–1D).

4.2 Compatibility

  • Platform: MetaTrader 5.

  • Accounts: Supports both Hedging and Netting modes.

  • Broker Types: ECN, Market Maker, Deriv, Forex.com, etc.

4.3 Error Handling

  • Check all indicator handles before use.

  • Prevent duplicate entries.

  • Handle “Off Quotes” and “Invalid Volume” gracefully with retry logic.

4.4 Logging

  • Print trade entries, exits, and risk calculations to the Experts tab.

  • Store key variables (ATR, Donchian levels, stops) for debugging.


📈 5. Example Trade Flow

  1. Setup Detection

    • ATR(20) = 120 pips.

    • Donchian high = 1.1200; Donchian low = 1.1000.

    • Price closes at 1.1205 → Long breakout triggered.

  2. Order Calculation

    • Stop Distance = ATR × 2.0 = 240 pips.

    • Risk = 1% of $10,000 = $100.

    • Lot size = 100 / 240 = 0.0416 ≈ 0.04 lots.

  3. Execution

    • Buy 0.04 lots at 1.1205.

    • Stop Loss at 1.0965.

    • Take Profit at 1.1685 (2R).

  4. Management

    • If price rises by 0.5 ATR, add 0.04 lots (pyramid #1).

    • If price closes below Donchian(10) low → Exit all longs.


🔒 6. Safety & Protections

  • Equity stop: close all trades if drawdown exceeds MaxDrawdown% .

  • Spread filter: disable new entries if spread > average × 2.

  • News filter (optional): disable entries during major news events (via external calendar or user input).

  • Slippage protection on order placement.


🧰 7. Deliverables

  1. Source Code ( TurtleTrader.mq5 )

  2. Compiled EA ( TurtleTrader.ex5 )

  3. User Guide (parameters, setup, and backtest instructions)

  4. Backtest Report (e.g., EURUSD and Boom1000 examples)

  5. Optimization Template ( .set files)


Han respondido

1
Desarrollador 1
Evaluación
(22)
Proyectos
21
10%
Arbitraje
2
50% / 50%
Caducado
0
Libre
2
Desarrollador 2
Evaluación
(3)
Proyectos
3
33%
Arbitraje
0
Caducado
0
Libre
3
Desarrollador 3
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
4
Desarrollador 4
Evaluación
Proyectos
1
0%
Arbitraje
3
33% / 33%
Caducado
0
Trabaja
5
Desarrollador 5
Evaluación
(310)
Proyectos
478
19%
Arbitraje
29
48% / 24%
Caducado
30
6%
Trabajando
6
Desarrollador 6
Evaluación
(2)
Proyectos
0
0%
Arbitraje
3
0% / 0%
Caducado
0
Trabajando
7
Desarrollador 7
Evaluación
(466)
Proyectos
918
76%
Arbitraje
25
16% / 68%
Caducado
100
11%
Trabajando
Ha publicado: 1 artículo, 6 ejemplos
8
Desarrollador 8
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
9
Desarrollador 9
Evaluación
(17)
Proyectos
21
5%
Arbitraje
4
0% / 25%
Caducado
6
29%
Trabajando
10
Desarrollador 10
Evaluación
(25)
Proyectos
33
24%
Arbitraje
3
33% / 33%
Caducado
4
12%
Libre
11
Desarrollador 11
Evaluación
(77)
Proyectos
233
73%
Arbitraje
6
100% / 0%
Caducado
1
0%
Libre
12
Desarrollador 12
Evaluación
(295)
Proyectos
527
35%
Arbitraje
64
34% / 34%
Caducado
190
36%
Trabaja
13
Desarrollador 13
Evaluación
(163)
Proyectos
193
48%
Arbitraje
2
50% / 50%
Caducado
1
1%
Trabaja
14
Desarrollador 14
Evaluación
(238)
Proyectos
244
31%
Arbitraje
0
Caducado
3
1%
Libre
Ha publicado: 2 ejemplos
15
Desarrollador 15
Evaluación
(5)
Proyectos
5
60%
Arbitraje
1
0% / 0%
Caducado
2
40%
Libre
Ha publicado: 1 ejemplo
16
Desarrollador 16
Evaluación
(618)
Proyectos
968
46%
Arbitraje
32
38% / 34%
Caducado
96
10%
Trabaja
Ha publicado: 6 ejemplos
Solicitudes similares
Hello, I need a portfolio website design. I want a website where my trading results and orders will be uploaded manually, not by an EA. My budget is 50$, kindly send a DM if you can get this done. SEND A DM AND I WILL PROVIDE YOU THE REQUIREMENT I WANT THE MOST ACTIVE PERSON WHO CAN GET STARTED IMMEDIATELY AND DELIVER IN THE NEXT 4 DAYS I WILL SHARE THE FULL DETAILS WITH YOU IN THE CHAT SECTION
EASE IF THERE IS A DEVELOPER FROM AUSTRALIA WHO KNOWS ABOUT THE PROJECT BELOW. HE KNOWS HIMSELF, PLEASE MAY I KINDLY ASK THAT HE GET BACK TO ME PLEASE. IF NOT, I ALSO NEED SOMEONE WHO WILL DO THE WORK FIRST AND THEN CREATE A BUILT-IN DEMO INDI AS PER SPECIFICATIONS BELOW WHICH HAS AN EXPIRY (A DAY OR 2) SO THAT I TEST THE INDI BEFORE WE CREATE THE ORDER. I HAVE HAD PEOPLE WHO PRESSURE ME TO CREATE THE ORDER AND THEN
PLEASE IF THERE IS A DEVELOPER FROM AUSTRALIA WHO KNOWS ABOUT THE PROJECT BELOW. HE KNOWS HIMSELF, PLEASE MAY I KINDLY ASK THAT HE ET BACK TO ME PLEASE. I ALSO NEED SOMEONE WHO WILL DO THE WORK FIRST AND THEN CREATE A BUILT-IN DEMO INDI AS PER SPECIFICATIONS BELOW WHICH HAS AN EXPIRY (A DAY OR 2) SO THAT I TEST THE INDI BEFORE WE CREATE THE ORDER. I HAVE HAD PEOPLE WHO PRESSURE ME TO CREATE THE ORDER AND THEN THEY
Title: Need a small MT5 script (Quick task) — $47 Description: I need a small MT5 utility made (details will be shared privately). I am looking for someone reliable and quick. Please message me so we can discuss. NOTE: I am located in India and face issues with adding funds $45 via card. I am happy to pay via UPI/Paytm if someone can help with MQL5 wallet balance
Robot 50+ USD
The most advanced mobile robot 98 % wine fully automated it must work both mt4 and mt5 with any broker it must be able to trade small amount to big amount
Project Overview: We are seeking a highly skilled and experienced developer to build a next-generation Forex Expert Advisor (EA) for MetaTrader 5. The core innovation of this project is an EA that relies 100% on a custom deep learning AI model (e.g., LSTM, Transformer) for generating all trading signals. The EA will trade the XAU/USD (Gold) instrument. The developer must be proficient not only in advanced MQL5
Mthizo trades 30 - 200 USD
- *Currency Pairs*: Major pairs such as EUR/USD, XAU/USD and GBP/USD - *Funding Currency*: South African Rand (ZAR) - *Initial Deposit*: R100 (may require additional deposit for live trading) - *Risk Management*: Basic risk management features, such as stop loss and take profit - *Strategy*: Pre-defined strategy based on Smart Money Concept principles - *Cost*: Approximately R100-R200 (one-time cost or
I need an Expert advisor based on AOX signal . it must have check and handing of trade operation..errors. The main criterin for opening and dosing a position : moving average direction the price is higher than the previous bar Trade lots is input parameter bar

Información sobre el proyecto

Presupuesto
112+ USD

Cliente

Encargos realizados3
Número de arbitrajes0