EA to set SL and TP based on ATR

MQL5 Experts

Job finished

Execution time 5 hours
Feedback from customer
Fast, efficient. Excellent work.
Feedback from employee
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!

Specification

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.


Responded

1
Developer 1
Rating
(395)
Projects
556
41%
Arbitration
30
57% / 3%
Overdue
57
10%
Free
Published: 11 codes
2
Developer 2
Rating
(283)
Projects
354
29%
Arbitration
37
27% / 65%
Overdue
10
3%
Loaded
3
Developer 3
Rating
(436)
Projects
643
53%
Arbitration
35
63% / 20%
Overdue
6
1%
Loaded
4
Developer 4
Rating
(13)
Projects
14
36%
Arbitration
3
0% / 100%
Overdue
0
Working
Published: 1 article
5
Developer 5
Rating
(22)
Projects
28
7%
Arbitration
9
33% / 33%
Overdue
1
4%
Working
6
Developer 6
Rating
(510)
Projects
977
74%
Arbitration
27
19% / 67%
Overdue
100
10%
Working
Published: 1 article, 6 codes
7
Developer 7
Rating
(111)
Projects
183
25%
Arbitration
25
16% / 76%
Overdue
16
9%
Free
8
Developer 8
Rating
(636)
Projects
1007
47%
Arbitration
33
36% / 36%
Overdue
99
10%
Working
Published: 6 codes
9
Developer 9
Rating
(47)
Projects
67
37%
Arbitration
5
40% / 40%
Overdue
1
1%
Free
10
Developer 10
Rating
(455)
Projects
721
34%
Arbitration
35
71% / 9%
Overdue
23
3%
Free
11
Developer 11
Rating
(10)
Projects
15
20%
Arbitration
5
40% / 40%
Overdue
1
7%
Free
12
Developer 12
Rating
(43)
Projects
63
24%
Arbitration
10
30% / 50%
Overdue
10
16%
Free
13
Developer 13
Rating
(180)
Projects
194
46%
Arbitration
4
50% / 25%
Overdue
1
1%
Loaded
14
Developer 14
Rating
(45)
Projects
53
57%
Arbitration
2
100% / 0%
Overdue
1
2%
Free
Published: 5 codes
15
Developer 15
Rating
(52)
Projects
65
40%
Arbitration
15
27% / 60%
Overdue
1
2%
Working
16
Developer 16
Rating
(20)
Projects
26
38%
Arbitration
6
33% / 50%
Overdue
0
Free
17
Developer 17
Rating
(19)
Projects
25
36%
Arbitration
3
33% / 67%
Overdue
3
12%
Working
Similar orders
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

Project information

Budget
30 - 50 USD
Deadline
to 3 day(s)