Set SL/TP of open orders - EASY!

MQL4 Experts

Job finished

Execution time 1 day
Feedback from employee
Good customer with good communication skill. Thanks for your Job.
Feedback from customer
Great Work! everything fine!

Specification

I need an EA, which sets SL and Tp for each open order by given input SL/TP value, distributing/spreading the value by given step(in points).

takes 10 min work for an professional i guess ;-) thanks!

---


EXAMPLE: 

input start_TP = 1.20000
input start_SL = 1.10000
input point_steps = 10
input pair_name = "EURUSD"

open EURUSD orders = 3

result: 

order1 TP = 1.20000 SL = 1.10000
order2 TP = 1.20010 SL = 1.10010
order3 TP = 1.20020 SL = 1.10020

-----

PSEUDO CODE ( I worked as an programmer 10 years ago :P )

// variables

var input TP = f.e 1.20000;
var input SL = f.e 1.10000;
var input step_in_points = f.e 10; 
var input pair_name = f.e "EURUSD";

var current_tp = TP;

var current_SL = SL;

var step = step_in_points/100000; //correct?

var orders = open_orders.FindByName(pair_name);

foreach ( order in orders )
{
order.tp = current_tp;
order.sl = current_sl;
current_tp = current_tp + step;
current_sl = current_sl + step;
}

Responded

1
Developer 1
Rating
(15)
Projects
24
21%
Arbitration
1
0% / 100%
Overdue
7
29%
Free
2
Developer 2
Rating
(114)
Projects
154
47%
Arbitration
2
0% / 50%
Overdue
4
3%
Free
3
Developer 3
Rating
(769)
Projects
1033
44%
Arbitration
50
8% / 50%
Overdue
117
11%
Free
4
Developer 4
Rating
(5)
Projects
5
0%
Arbitration
0
Overdue
1
20%
Free
5
Developer 5
Rating
(2)
Projects
5
0%
Arbitration
2
0% / 50%
Overdue
1
20%
Free
6
Developer 6
Rating
(169)
Projects
204
30%
Arbitration
25
40% / 44%
Overdue
12
6%
Free
7
Developer 7
Rating
(38)
Projects
67
9%
Arbitration
18
11% / 56%
Overdue
17
25%
Working
8
Developer 8
Rating
(298)
Projects
427
26%
Arbitration
18
61% / 33%
Overdue
26
6%
Free
9
Developer 9
Rating
(195)
Projects
317
35%
Arbitration
64
13% / 56%
Overdue
82
26%
Free
10
Developer 10
Rating
(59)
Projects
182
55%
Arbitration
31
45% / 16%
Overdue
103
57%
Free
11
Developer 11
Rating
(468)
Projects
497
53%
Arbitration
10
60% / 20%
Overdue
3
1%
Free
12
Developer 12
Rating
(251)
Projects
402
38%
Arbitration
82
41% / 20%
Overdue
70
17%
Working
13
Developer 13
Rating
(356)
Projects
632
26%
Arbitration
89
73% / 13%
Overdue
12
2%
Free
14
Developer 14
Rating
(96)
Projects
143
76%
Arbitration
0
Overdue
2
1%
Free
15
Developer 15
Rating
(221)
Projects
369
66%
Arbitration
10
50% / 0%
Overdue
46
12%
Free
16
Developer 16
Rating
(24)
Projects
27
33%
Arbitration
2
100% / 0%
Overdue
1
4%
Free
Similar orders
Please develop the strategy according to the specifications above. Ensure that all settings and parameters are accessible and modifiable through the inputs section for ease of optimization and customization by the user. Incorporate the following features to enhance robustness and profitability: 1. Entry Logic : • Utilize PSAR, EMA, and Supertrend for entry signals, with adjustable parameters and selectable
I'd like to make a program which was able to improve strategies just avoiding trading: - Hours - Days of week - Months According to these parameters: - Calmar Ratio must be higher than original one and the optimization must be within top 5 optimization. - Rsquared must not change more than 4% of the original one. - Strategy must have at least 150 trades. I hope it has been enough for you to make an idea
I want an Indicator that : Draws vertical lines at the opening of candles on a time frames selected.( I want to be able change the candle timeframe the line will be drawn. Eg. I can slelect 1H, 4H etc from the settings, and the vertical line will be drawn at the opening). Draw a horizontal line at the opening of the candles in the selected timeframe. Calculate the average range of the candles on a selected timeframe
Overview: We are seeking an experienced developer to create an Expert Advisor (EA) for a simple hedging strategy in the forex market. The EA will utilize MACD, 200 EMA, and support and resistance levels to determine entry signals. It will manage orders, including placing stop orders and adjusting lot sizes based on predefined conditions. Responsibilities: Develop EA Logic: Implement the first order based on MACD
Hello, I need to optimize my indicator so that it works in several time frames. and then convert it to mq5 The task will be carried out remotely by ANYDESK
Hello! I have a request for an EA that fully automates my current strategy as emotions get in the way, as they always do. Here’s the description: I already have two indicators that each print an arrow (let’s call them big arrow and small arrow). I’ll provide these and will specify settings. These two arrows need to printed in a specific order (big one first, small one second; both in the same direction) Upon these
Hello, I need a developer who will help me to modify my current EA. It used to show news directly from forex factory on my MT4 and MT5 but now it is not showing. I want an Developer who has previous experience in creating NEWS EA which has the option to filter news and show alerts on the Charts. The modification will be done for both the MT4 and MT5 EA
Martingale Forex EA Request for MT4 Platform Variables 1. Currency Pair – specify as any like EURUSD 2. Equity Protection - Running 3. Start Trade Time 4. End Trade Time 5. Lots (starting lot size) 6. TP (Take Profit =10pips) 7. Lot Adder (Lot Multiplier) 8. Max Level (Max lot multiplier) 9. Magic Number; Variable Input of any 6-digit number like 123456 10. Pip difference for escalation 0.01 to 0.04; =>10pips 11. Pip
I am looking for an experienced MQL5 developer to convert a TradingView indicator into an Expert Advisor (EA) for MetaTrader 5 (MT5). The TradingView indicator uses specific conditions to trigger buy and sell signals, and I would like these conditions to be replicated in the MQL5 EA. Stop Loss in points Take Profit in points Trailing Stop activation level in points Trailing Stop distance in points Maximum number of
Bot name: Blues🚀ProFx The bot should work with the 5mins time frame and it must move with the market price bar when it moves up 5pips and above let 10 trades be opened in the up direction and each having a stop loss of 20pips. After every 5mins if a new candle forms in the same direction let another 10 trades be opened in the same manner. Then when the market trend changes and a bearish candle starts to form and

Project information

Budget
30+ USD
VAT (19%): 5.7 USD
Total: 35.7 USD
For the developer
27 USD
Deadline
to 5 day(s)