Base price EA for MT5

Job finished

Execution time 8 minutes
Feedback from customer
Quick, patient and attentive. Such a joy to work with!

Specification

I'd like an EA that places multiple buy and sell stop orders according to two base prices. Whenever the market hits the higher price, sell stop orders must be placed on the lower one. Whenever the market hits the lower price, buy stop orders must be placed on the higher one. Also, the current base prices must always be shown on screen and they must change as the market price drops or rises, according to the rules below.

• Chosen base price – A price I must choose, that determines the second base price.

• Second base price – I must choose if it will be lower or higher than the chosen one and it must be determined by the "distance between base prices" field.

• Distance between base prices – Example: If I'm trading BTCUSD, the chosen base price is 105765.25, I want it to be the lower base price and the number on this field is 3750, the second base price must always be 3750 ticks above the other one, which means the second price is 105802,75. If one of the base prices change according to the "change base prices every _ ticks", the other one must change as well, so the distance between them remains 3750.

• Change base prices every _ ticks – If 105765.25 is the lower base price and the number on this field is 1250, both prices must change if the market price drops to 105752.75, 105740.25, 105727.75 and so on. If the higher base price is 105802.75, it must change if it goes up to 105815.25, 105827.75, 105839.25 and so on.

• Number of orders – Example: if the number on this field is 5, 5 buy stop and 5 sell stop orders must be placed when one of the base prices is hit. For every order executed, a new one must be placed according to the "distance between orders" field so the number of pending orders remains 5.

• Distance between orders – Example: if the lower base price is 105765.25, the number on this field is 1250, and there must be 5 pending orders, the first sell stop order must be placed at this base price, the second one at 105752.75, the next one at 105740.25, and so on. Important: the placement of buy stop orders must also depend on the pair's current spread. If this field's number is 1250 and the current spread is, let's say, 2500, the first buy stop order should be placed 2500 ticks above the higher base price.

Other inputs and rules
• The current base prices must always be shown on screen
• Lot size
• Risk (the lot size will be a percentage of the account's balance)
• Take profit and stop loss for each trade
• Trailing stop in ticks for each trade
• Stop win and stop loss for the day in money
• Choose to open just buy stop or sell stop orders
• Choose to place and execute orders when the market has a specific spread or lower. This must be off if the number is -1 
• Trading schedule – start trading time and end trading time
• Choose to close positions or not when trading time's up

Responded

1
Developer 1
Rating
(394)
Projects
555
41%
Arbitration
30
57% / 3%
Overdue
57
10%
Working
Published: 11 codes
2
Developer 2
Rating
(274)
Projects
403
28%
Arbitration
40
40% / 50%
Overdue
1
0%
Free
3
Developer 3
Rating
(2337)
Projects
2940
63%
Arbitration
124
44% / 26%
Overdue
429
15%
Working
4
Developer 4
Rating
(22)
Projects
21
10%
Arbitration
4
25% / 75%
Overdue
0
Free
5
Developer 5
Rating
(318)
Projects
565
35%
Arbitration
81
31% / 44%
Overdue
204
36%
Free
6
Developer 6
Rating
(62)
Projects
90
29%
Arbitration
24
13% / 58%
Overdue
7
8%
Working
7
Developer 7
Rating
(22)
Projects
24
21%
Arbitration
5
20% / 80%
Overdue
1
4%
Free
Published: 6 codes
8
Developer 8
Rating
(47)
Projects
67
37%
Arbitration
5
40% / 40%
Overdue
1
1%
Free
9
Developer 9
Rating
(31)
Projects
38
53%
Arbitration
2
50% / 50%
Overdue
3
8%
Free
10
Developer 10
Rating
(510)
Projects
977
74%
Arbitration
27
19% / 67%
Overdue
100
10%
Free
Published: 1 article, 6 codes
11
Developer 11
Rating
(454)
Projects
720
34%
Arbitration
35
71% / 9%
Overdue
22
3%
Free
12
Developer 12
Rating
(169)
Projects
202
48%
Arbitration
5
20% / 60%
Overdue
2
1%
Free
13
Developer 13
Rating
(153)
Projects
213
69%
Arbitration
8
38% / 38%
Overdue
22
10%
Free
14
Developer 14
Rating
(169)
Projects
180
46%
Arbitration
3
33% / 33%
Overdue
1
1%
Working
15
Developer 15
Rating
(10)
Projects
15
27%
Arbitration
0
Overdue
3
20%
Free
16
Developer 16
Rating
(4)
Projects
8
0%
Arbitration
3
33% / 67%
Overdue
4
50%
Free
17
Developer 17
Rating
(16)
Projects
35
23%
Arbitration
4
0% / 50%
Overdue
2
6%
Working
18
Developer 18
Rating
(12)
Projects
24
50%
Arbitration
1
100% / 0%
Overdue
6
25%
Free
19
Developer 19
Rating
(13)
Projects
20
40%
Arbitration
1
0% / 100%
Overdue
1
5%
Free
20
Developer 20
Rating
(12)
Projects
12
17%
Arbitration
2
0% / 50%
Overdue
1
8%
Free
21
Developer 21
Rating
(13)
Projects
20
40%
Arbitration
3
0% / 67%
Overdue
3
15%
Free
22
Developer 22
Rating
(162)
Projects
289
35%
Arbitration
18
22% / 61%
Overdue
43
15%
Free
23
Developer 23
Rating
(5)
Projects
5
60%
Arbitration
0
Overdue
0
Free
24
Developer 24
Rating
(55)
Projects
92
24%
Arbitration
8
75% / 13%
Overdue
44
48%
Free
25
Developer 25
Rating
(434)
Projects
640
53%
Arbitration
34
62% / 21%
Overdue
6
1%
Working
26
Developer 26
Rating
(2673)
Projects
3409
68%
Arbitration
77
48% / 14%
Overdue
342
10%
Free
Published: 1 code
27
Developer 27
Rating
(318)
Projects
323
71%
Arbitration
2
100% / 0%
Overdue
0
Free
Published: 1 code
28
Developer 28
Rating
Projects
2
0%
Arbitration
4
25% / 50%
Overdue
1
50%
Free
29
Developer 29
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
30
Developer 30
Rating
(271)
Projects
553
50%
Arbitration
57
40% / 37%
Overdue
227
41%
Working
31
Developer 31
Rating
(366)
Projects
444
55%
Arbitration
22
55% / 14%
Overdue
30
7%
Loaded
32
Developer 32
Rating
(5)
Projects
4
25%
Arbitration
1
0% / 100%
Overdue
0
Free
33
Developer 33
Rating
(2)
Projects
0
0%
Arbitration
5
0% / 60%
Overdue
0
Free
34
Developer 34
Rating
(202)
Projects
263
22%
Arbitration
23
52% / 17%
Overdue
0
Loaded
35
Developer 35
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
36
Developer 36
Rating
(611)
Projects
711
33%
Arbitration
45
49% / 42%
Overdue
14
2%
Working
37
Developer 37
Rating
(75)
Projects
80
6%
Arbitration
46
11% / 54%
Overdue
7
9%
Working
38
Developer 38
Rating
(22)
Projects
29
34%
Arbitration
4
50% / 25%
Overdue
5
17%
Working
39
Developer 39
Rating
(574)
Projects
945
47%
Arbitration
309
58% / 27%
Overdue
125
13%
Free
40
Developer 40
Rating
(298)
Projects
478
40%
Arbitration
105
40% / 24%
Overdue
82
17%
Loaded
Published: 2 codes
41
Developer 41
Rating
(5)
Projects
5
40%
Arbitration
0
Overdue
0
Free
42
Developer 42
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
Similar orders
Hello, I want this project to be a complete redesign, not just an update. My goal is to build an institutional-grade TradingView indicator that is extremely accurate, stable, fast, and completely non-repainting. You are free to modify, delete, replace, or completely rewrite any part of the code if it improves the final result. I don't care about preserving the current code or appearance—I only care about building the
//+------------------------------------------------------------------+ //| DX_Structure_H1.mq5 | //| Copyright 2026, Seu Nome | //| https://www.mql5.com | //+------------------------------------------------------------------+ #property copyright "Copyright 2026" #property link " https://www.mql5.com " #property version "1.00" #property strict // Parâmetros de Entrada input string InpSymbol = "DX.F"; // Nome do Ativo
Hola, traders e inversores: Desarrollamos soluciones de trading algorítmico para MetaTrader 4 y MetaTrader 5. Creamos bots, indicadores y herramientas a medida que convierten estrategias manuales en sistemas automáticos, configurables y orientados a una gestión de riesgo sólida. Hemos trabajado en automatizaciones que integran entradas y salidas por reglas, cálculo de lotaje, control de drawdown, filtros de horario y
automatic robo sell at bollinger band upwards breach and rsi should above 80 and buy when bollinger breach downwards and rsi is below 30, rsi shoould works only on Gold trade and none ofhe trades
Hello, I need a custom Expert Advisor for MetaTrader 5. I am trading from mobile only. **Account & Style:** - Capital: $5,000 - $10,000 - Risk: Moderate/Balanced - Trading Style: Scalping **Pairs & Timeframe:** - Symbols: EURUSD and XAUUSD - Timeframe: M5 **Strategy:** - BUY: RSI(14) < 30 AND Price > 20 EMA - SELL: RSI(14) > 70 AND Price < 20 EMA - Only 1 trade per symbol at a time - No Martingale / No Grid **Risk
I have an MT4 custom indicator (.ex4) that I use regularly, and I would like an identical MT5 version. Important: I do not have the source code (.mq4). I only have the compiled MT4 indicator. I am looking for an experienced MQL developer who can recreate the indicator's functionality and appearance for MT5 by analyzing its behavior. The MT5 version should match the MT4 version as closely as possible, including
Mac200 50+ USD
I need a Trend following Bot. Here we took entries by looking at two indicator which are 200 period ema and 12 26 9 MacD. Rules for entry exit are: Buy trade: When market is above 200 ema and MacD Line cross over the signal line and this cross over happened below the zero line of MacD indicator. We simply put Buy trade. Sell trade: When market is below 200 ema and MacD line crosses below the signal line and this
Iconic Boy 300 - 400 USD
Am looking for a bot to trade .so that I can be able to trade and become very successful and make some profit so that I cannot sleep on a empty stomach
Hello Traders and Investors, I am a professional algorithmic trading developer specialized in building high-quality Expert Advisors (EAs), Indicators, Scripts, and Trade Management Tools for MetaTrader 4 and MetaTrader 5. With extensive experience in financial markets and trading automation, I can transform your trading ideas into reliable and efficient solutions with clean, optimized, and well-structured code. My
Hello, I’m a profitable MT4/MT5 trader specializing in Prop Firm accounts. What makes me different: I actually trade with 3% Daily DD / 5% Overall DD rules, so I know what blows accounts and what passes. Services I offer: 1. EA Backtesting + Detailed Reports - Winrate, Profit Factor, Max DD, Best Pairs/Timeframes 2. Strategy Documentation - I’ll write clear rules for your EA so any coder can build it 3. Prop Firm

Project information

Budget
100+ USD