EA to set SL and TP based on ATR

MQL5 Experts

Trabalho concluído

Tempo de execução 5 horas
Comentário do cliente
Fast, efficient. Excellent work.
Comentário do desenvolvedor
Great customer to work with. Clear requirements from the start, quick responses, and provided helpful feedback during testing. Would gladly work with again. Thank you!

Termos de Referência

I'd like a very simple EA which automatically sets TP and SL for each new trade opened at the time the trade is opened.  All trades are opened manually.


The TP and SL will be set in relation to the value of the ATR, so the settings will need to include the ATR Period.


When I manually open a trade, the settings in the EA will apply to that trade to set a TP and a SL.  Simple as that.


No trailing stops, no partial closes, just a SL and a TP.


So the only inputs would be:

ATR Period.

TP target - a multiplier of the ATR value.  If the setting is left at zero, then no TP is set.

SL distance  - a multiplier of the ATR value.  If the setting is left at zero, then no SL is set.


The result would be TP and SL values relative to the ATR.


Once set, if I decide to change the TP or SL distance, then I can do so and the EA will not override my changes.  I need manual control.

In other words, the EA sets the TP and SL levels ONLY as a trade is opened.


Important:   The EA needs to be clever enough to determine which market is being traded so that the TP and SL settings are applied sensibly.


For example, USDJPY has a price around 155.00, while EURUSD has a price around 1.17230.  WTI trades at 57.608.  XAUUSD trades at 4320.70.  GER40 (index) trades at 24268.55.  US500 (index) trades at 6868.50.

The scale of all of these prices is different; the EA needs to be able to determine which market is being traded and set SL and TP levels accordingly, without having to change the settings in the EA.


Respondido

1
Desenvolvedor 1
Classificação
(395)
Projetos
556
41%
Arbitragem
30
57% / 3%
Expirado
57
10%
Livre
Publicou: 11 códigos
2
Desenvolvedor 2
Classificação
(283)
Projetos
354
29%
Arbitragem
37
27% / 65%
Expirado
10
3%
Carregado
3
Desenvolvedor 3
Classificação
(436)
Projetos
643
53%
Arbitragem
35
63% / 20%
Expirado
6
1%
Carregado
4
Desenvolvedor 4
Classificação
(13)
Projetos
14
36%
Arbitragem
3
0% / 100%
Expirado
0
Trabalhando
Publicou: 1 artigo
5
Desenvolvedor 5
Classificação
(22)
Projetos
28
7%
Arbitragem
9
33% / 33%
Expirado
1
4%
Trabalhando
6
Desenvolvedor 6
Classificação
(510)
Projetos
977
74%
Arbitragem
27
19% / 67%
Expirado
100
10%
Trabalhando
Publicou: 1 artigo, 6 códigos
7
Desenvolvedor 7
Classificação
(111)
Projetos
183
25%
Arbitragem
25
16% / 76%
Expirado
16
9%
Livre
8
Desenvolvedor 8
Classificação
(636)
Projetos
1007
47%
Arbitragem
33
36% / 36%
Expirado
99
10%
Trabalhando
Publicou: 6 códigos
9
Desenvolvedor 9
Classificação
(47)
Projetos
67
37%
Arbitragem
5
40% / 40%
Expirado
1
1%
Livre
10
Desenvolvedor 10
Classificação
(455)
Projetos
721
34%
Arbitragem
35
71% / 9%
Expirado
23
3%
Livre
11
Desenvolvedor 11
Classificação
(10)
Projetos
15
20%
Arbitragem
5
40% / 40%
Expirado
1
7%
Livre
12
Desenvolvedor 12
Classificação
(43)
Projetos
63
24%
Arbitragem
10
30% / 50%
Expirado
10
16%
Livre
13
Desenvolvedor 13
Classificação
(180)
Projetos
194
46%
Arbitragem
4
50% / 25%
Expirado
1
1%
Carregado
14
Desenvolvedor 14
Classificação
(45)
Projetos
53
57%
Arbitragem
2
100% / 0%
Expirado
1
2%
Livre
Publicou: 5 códigos
15
Desenvolvedor 15
Classificação
(52)
Projetos
65
40%
Arbitragem
15
27% / 60%
Expirado
1
2%
Trabalhando
16
Desenvolvedor 16
Classificação
(20)
Projetos
26
38%
Arbitragem
6
33% / 50%
Expirado
0
Livre
17
Desenvolvedor 17
Classificação
(19)
Projetos
25
36%
Arbitragem
3
33% / 67%
Expirado
3
12%
Trabalhando
Pedidos semelhantes
Freelance Task — EA Recovery Layer Hello. I have a ready-made MQL5 EA. The signals, SL/TP and lot calculation should essentially not be touched. I need a recovery system added. I am not a programmer — below is how the robot should behave. What stays Entry only from an EA signal. Stop-loss is not a new signal. Trailing is already built into my EA — recovery does not implement its own trailing. If trailing is disabled
Watcher position 30 - 100 USD
//+------------------------------------------------------------------+ //| synthetic tick generator based on two assets | //+------------------------------------------------------------------+ class CSyntheticTickGenerator { private : string symbol_a; string symbol_b; string synth_name; double ratio; double last_price_a; double
# SNRZ BOT — SESSION PROGRESS LOG Last updated: 2026-09-16 (local late-evening session) ## SAN BOT (new — cloned from SNRZ) - `MQL5\Experts\AutomatedOrderBot_SAN.mq5` / `.ex5` — v1.0, compiled 0 errors/0 warnings - Signal source: custom indicator "SAN" (InpSANName, buy buf 0 / sell buf 1, target bar 1), same SNRZ-style read, MA fallback if missing - Magic number 234567 (separate from SNRZ 123456 so both bots can run
Multi-Asset EA (XAUUSD / FRA40) with Time Filters, High-Impact News Avoidance, Advanced Risk/Lot Sizing, and H1 Breakout Strategy 1. RISK SETTINGS * Max Daily Loss Limit: (bool) Toggle true/false. If true, input double for max loss in currency (e.g., $500). If hit, close all positions and stop trading until next day. * Lot Sizing Mode: Dropdown menu: 1. Fixed Lots (e.g. 0.10); 2. Percentage Risk (%) based on Account
Should be as it but no alarms, also we need to add a deep search so he can see all the preves candles and a memory function so its not slowing down the indicator. for higher time frames daily 4h 1h around 365 days and for lower time frames we do up to 20k bars but both flexible so i can change it later. the memory is important so the indicator is not always recalculating everything when a new candle shows especially
Creating a bot using the Parabolic indicator with a simple interface.. I want a bot that uses the Parabolic SAR indicator only, with these orders attached to it. Boot name : HEMIN .FX Magic number : 000000 …………………………………………………. Trade behavior : regular OR inverse OR only long "buy" OR only short "sell" Timeframe : ………… Period: ……… ………………………………………………….. Lot size : ……………… Break even in points : …
I am looking for an experienced MQL5 EA developer to develop an MT5 EA by the observable trading behaviour from a supplied live XAUUSD trade history . The EA appears to use a simple grid/recovery/hedging strategy with alternating BUY/SELL positions and progressive lot sizes. I need the developer to Develop the EA for MT5 / XAUUSD . Reproduce the observed entry, grid/add-on, recovery/hedging, lot progression and
Project: Fix & Schedule My Dual Fibo Standard Fibonacci Bot I have an existing MQ4 expert advisor called "Dual Fibo Standard Fibonacci". It needs to process 1,000 clients. Right now it runs blindly with no schedule and takes way too long. I need you to optimize it so it runs like a professional business with a 50-100 batch printed stamp copy progress log. Please reply with your numbers for this simple layout: * Phase
Gold robot 30+ USD
Yes. This screen is asking you to write the Requirements Specification for your Gold/XAUUSD trading robot. Since you want your DEEPTHINK X10 institutional-style MT5 system , use this ready-to-paste specification: DEEPTHINK X10 GOLD ROBOT – MT5 EXPERT ADVISOR REQUIREMENTS Develop an advanced MetaTrader 5 Expert Advisor (EA) for XAUUSD (Gold) scalping based on a multi-factor DEEPTHINK X10 trading framework. 1. MARKET -
Need an MQL5 Expert Advisor for MT5 that automates my manual trading strategy. Entry logic: Enter only when trend direction, support/resistance level, and RSI all align (Triple Confirmation). Extra confluence from Smart Money Concepts (order blocks, Fair Value Gaps, BOS/CHoCH). Risk rules: 1% risk per trade, minimum 1:2 risk-reward, stop-loss at structure levels (not fixed pips). Must-haves: Works on Islamic

Informações sobre o projeto

Orçamento
30 - 50 USD
Prazo
para 3 dias