Simple MT5 Candle Direction Reversal EA

MQL5 Asesores Expertos

Tarea técnica

I need a simple MT5 Expert Advisor (MQL5) programmed exactly according to the following rules.

The EA is a continuous candle-direction reversal strategy.

Candle signal:

  • Close > Open = BUY signal
  • Close < Open = SELL signal
  • Close = Open = no change

Trading logic:

  • After each candle has fully closed, use that completed candle to determine the required trade direction.
  • The signal is acted upon at the opening of the following candle.
  • If the signal is BUY and a BUY is already open, do nothing and continue holding BUY.
  • If the signal is SELL and a SELL is already open, do nothing and continue holding SELL.
  • If the signal changes from BUY to SELL, close the BUY and immediately open a SELL.
  • If the signal changes from SELL to BUY, close the SELL and immediately open a BUY.
  • A Doji (Close = Open) does not close or change the existing position.

Position rules:

  • Only ONE position can be open at any time.
  • Never have BUY and SELL positions open simultaneously.
  • Consecutive candles in the same direction must NOT create additional positions.
  • There is NO Stop Loss.
  • There is NO Take Profit.
  • The only exit is a reversal into the opposite direction.

Example:

Bullish → BUY
Bullish → continue BUY
Bullish → continue BUY
Bearish → close BUY + open SELL
Bearish → continue SELL
Doji → continue SELL
Bullish → close SELL + open BUY

EA startup:
When the EA is first activated, use the most recently completed non-Doji candle to determine the initial direction and open the corresponding position.

Timeframe:
The EA must work on all MT5 timeframes and use the timeframe of the chart to which it is attached.

Position size:
Lot size should be a user-adjustable input, with 1.00 lot as the default.

Please confirm that you understand the above logic before development begins.

I also require the complete MQL5 source code (.mq5), as well as the compiled EA (.ex5).


Han respondido

1
Desarrollador 1
Evaluación
(280)
Proyectos
351
29%
Arbitraje
37
27% / 65%
Caducado
10
3%
Trabajando
2
Desarrollador 2
Evaluación
(619)
Proyectos
722
33%
Arbitraje
46
48% / 41%
Caducado
14
2%
Trabajando
3
Desarrollador 3
Evaluación
(17)
Proyectos
21
19%
Arbitraje
5
40% / 40%
Caducado
0
Libre
4
Desarrollador 4
Evaluación
(7)
Proyectos
10
30%
Arbitraje
0
Caducado
1
10%
Trabajando
5
Desarrollador 5
Evaluación
(177)
Proyectos
189
47%
Arbitraje
3
33% / 33%
Caducado
1
1%
Trabajando
6
Desarrollador 6
Evaluación
(397)
Proyectos
513
23%
Arbitraje
60
57% / 25%
Caducado
60
12%
Trabajando
7
Desarrollador 7
Evaluación
(75)
Proyectos
111
50%
Arbitraje
26
31% / 50%
Caducado
9
8%
Libre
Ha publicado: 1 artículo
8
Desarrollador 8
Evaluación
(33)
Proyectos
38
21%
Arbitraje
5
0% / 60%
Caducado
0
Libre
9
Desarrollador 9
Evaluación
(22)
Proyectos
28
7%
Arbitraje
9
33% / 33%
Caducado
1
4%
Trabaja
10
Desarrollador 10
Evaluación
(70)
Proyectos
88
58%
Arbitraje
6
67% / 17%
Caducado
2
2%
Trabajando
11
Desarrollador 11
Evaluación
(9)
Proyectos
10
10%
Arbitraje
0
Caducado
0
Libre
12
Desarrollador 12
Evaluación
(62)
Proyectos
90
29%
Arbitraje
24
13% / 58%
Caducado
7
8%
Trabaja
13
Desarrollador 13
Evaluación
(636)
Proyectos
1007
47%
Arbitraje
33
36% / 36%
Caducado
99
10%
Trabaja
Ha publicado: 6 ejemplos
14
Desarrollador 14
Evaluación
(8)
Proyectos
10
30%
Arbitraje
1
0% / 0%
Caducado
2
20%
Trabajando
Ha publicado: 1 ejemplo
15
Desarrollador 15
Evaluación
(20)
Proyectos
26
38%
Arbitraje
6
33% / 50%
Caducado
0
Libre
16
Desarrollador 16
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
17
Desarrollador 17
Evaluación
(8)
Proyectos
8
0%
Arbitraje
2
50% / 0%
Caducado
1
13%
Trabaja
18
Desarrollador 18
Evaluación
(15)
Proyectos
29
38%
Arbitraje
3
33% / 67%
Caducado
6
21%
Trabaja
19
Desarrollador 19
Evaluación
(33)
Proyectos
34
41%
Arbitraje
0
Caducado
3
9%
Trabaja
20
Desarrollador 20
Evaluación
(24)
Proyectos
32
38%
Arbitraje
4
50% / 25%
Caducado
5
16%
Trabaja
21
Desarrollador 21
Evaluación
(435)
Proyectos
641
53%
Arbitraje
34
62% / 21%
Caducado
6
1%
Trabaja
22
Desarrollador 22
Evaluación
(367)
Proyectos
449
55%
Arbitraje
24
54% / 17%
Caducado
30
7%
Ocupado
23
Desarrollador 23
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
24
Desarrollador 24
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
Ha publicado: 2 ejemplos
25
Desarrollador 25
Evaluación
(52)
Proyectos
64
39%
Arbitraje
15
27% / 60%
Caducado
1
2%
Trabaja
26
Desarrollador 26
Evaluación
(14)
Proyectos
21
24%
Arbitraje
0
Caducado
3
14%
Libre
Ha publicado: 3 ejemplos
27
Desarrollador 27
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
Ha publicado: 5 ejemplos
28
Desarrollador 28
Evaluación
(10)
Proyectos
16
50%
Arbitraje
1
100% / 0%
Caducado
4
25%
Libre
29
Desarrollador 29
Evaluación
(6)
Proyectos
8
38%
Arbitraje
1
100% / 0%
Caducado
2
25%
Libre
30
Desarrollador 30
Evaluación
(209)
Proyectos
272
21%
Arbitraje
24
54% / 17%
Caducado
0
Libre
31
Desarrollador 31
Evaluación
(4)
Proyectos
7
57%
Arbitraje
1
100% / 0%
Caducado
0
Libre
32
Desarrollador 32
Evaluación
(31)
Proyectos
38
53%
Arbitraje
2
50% / 50%
Caducado
3
8%
Libre
33
Desarrollador 33
Evaluación
(515)
Proyectos
554
53%
Arbitraje
13
69% / 15%
Caducado
3
1%
Libre
34
Desarrollador 34
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
35
Desarrollador 35
Evaluación
(4)
Proyectos
8
0%
Arbitraje
3
33% / 67%
Caducado
4
50%
Libre
36
Desarrollador 36
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
37
Desarrollador 37
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
38
Desarrollador 38
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
Ha publicado: 1 ejemplo
39
Desarrollador 39
Evaluación
(87)
Proyectos
121
68%
Arbitraje
5
80% / 0%
Caducado
12
10%
Trabaja
40
Desarrollador 40
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
41
Desarrollador 41
Evaluación
(552)
Proyectos
842
61%
Arbitraje
33
27% / 45%
Caducado
24
3%
Libre
Ha publicado: 1 ejemplo
42
Desarrollador 42
Evaluación
(13)
Proyectos
22
41%
Arbitraje
8
0% / 50%
Caducado
3
14%
Libre
43
Desarrollador 43
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
44
Desarrollador 44
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
45
Desarrollador 45
Evaluación
(54)
Proyectos
102
23%
Arbitraje
12
25% / 17%
Caducado
13
13%
Libre
46
Desarrollador 46
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
47
Desarrollador 47
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
48
Desarrollador 48
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
49
Desarrollador 49
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Trabaja
50
Desarrollador 50
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
Ha publicado: 2 ejemplos
Solicitudes similares
I am looking to acquire an EXISTING and PROVEN MetaTrader 5 Expert Advisor. I am NOT looking for someone to develop a random new strategy from scratch. The objective is to find a robust EA with an existing track record, verify its performance and robustness, and purchase the MQL5 source code together with clearly defined commercial rights. MAIN REQUIREMENTS The EA should meet most or all of the following
Looking to acquire an existing, proven EA. Not looking for new strategy development. REQUIREMENTS — non-negotiable: Minimum 12 months verified LIVE history (Myfxbook or MQL5 Signals, real money — not demo, not backtest) Hard stop loss on EVERY trade, set at order placement NO martingale, NO grid, NO averaging into losers, NO lot multiplication after a loss Max historical drawdown under 30% Minimum 5 trades per
I want to develop a fully automated MetaTrader 5 trading bot focused primarily on EUR/USD, inspired by the functionality of modern algorithmic trading systems. The bot should run 24/6 on a dedicated VPS and analyze the market continuously, refreshing approximately every second rather than waiting for candle closes. Key features: • Real-time volume and tick-level market analysis • Order-flow and liquidity analysis •
Hello, I trade on HFM MT5. Need SCALPING EA for scalping, budget $30. SYMBOLS: XAUUSD (GOLD), US30, NAS100, GER40, EURUSD TIMEFRAME: M1 and M5 PLATFORM: MT5, must work on HFM VPS STRATEGY: - EMA 9 crosses EMA 21 - RSI 14: BUY only if RSI >45, SELL only if RSI <55 - Bollinger Bands: Only trade when price returns inside BB after breakout - 1 trade at a time per symbol - SL: 150 points Gold / 100 points indices (must be
Project Description I am looking for an experienced MQL5/MT5 Expert Advisor developer to develop an automated trading EA for XAUUSD on the M3 timeframe , running on an Exness account . The EA will automate a manual strategy based on SNR/GAP zones , using two setup types: Price Rejection Price Correction The EA should identify valid BUY/SELL setups around predefined SNR/GAP areas, apply configurable RSI, SMA, EMA and
I need an MT5 Expert Advisor for XAUUSD (Gold) running on an Exness account. STRATEGY LOGIC The exact entry and exit rules will be provided in writing before development starts. Please quote for a single rule-based strategy with clearly separated logic, so the rules can be adjusted later without rewriting the whole EA. RISK MANAGEMENT (this is the priority of the project) - Risk per trade as a percentage of account
Hi, I am looking for a marketer or affiliate to promote my Expert Advisor (EA). Offer Details: Partnership Model: Revenue Sharing / Performance-Based Commission. Duration: 6 Months of continuous profit-sharing from all generated sales/subscriptions. Profit Ratio: Flexible and open for negotiation depending on your marketing reach and experience (Details will be discussed via Private Message / DM). If you have a solid
Straddle bot v1.1.38 30 - 100 USD
any one can make straddle bot v1.1.38 its original made by yoforex.com Manual gold trading on the M15 chart demands constant attention. Price can break sharply in either direction or chop for hours. Many traders miss the move, enter late, or over-react when volatility spikes. Straddle EA V1.1.38 MT5 is built to handle that specific problem on XAUUSD by placing a multi-level pending-order grid on both sides of price
Indicador Maximas e Minimas + Super Trend O Indicador MAX/MIN é um indicador de análise técnica para o MetaTrader 5 , desenvolvido para ajudar você a identificar regiões importantes de preço e possíveis oportunidades de compra e venda. O que ele faz MAX/MIN: identifica máximas e mínimas relevantes do mercado e mostra os preços no gráfico. HH / HL / LH / LL: ajuda a visualizar a estrutura do mercado, mostrando quando
Subject: Custom MT5 Multi-Currency EA Request - Multi-Timeframe Strategy with Trailing Stop Hi, I am looking for a developer to create a custom Expert Advisor (EA) for MetaTrader 5 (MT5) . The EA must be optimized for multi-currency testing and trading , allowing me to run it across multiple currency pairs simultaneously. The trading logic should be based on a multi-timeframe approach using the following indicators

Información sobre el proyecto

Presupuesto
40 - 80 USD
Plazo límite de ejecución
de 2 a 5 día(s)

Cliente

Encargos realizados1
Número de arbitrajes0