EA - modify all exsiting positions SL

工作已完成

执行时间2 天
客户反馈
Skilled programmer with high level professionalism. Definitely will ask for his help first with future works.
员工反馈
He is good and kind customer. I want to work him again.

指定

Hello MQL5 programmers:

I need an EA that modify all exsiting positions' SL(Stoploss) at once. 

Three criterias as follow:
1. EA will automatically know my exsiting positions are either buy or sell; and modify their SL accordingly. (Modify all exsiting positions to same SL value).
2. Auto close all positions at certain time (can be either TimeLocal or TimeCurrent). ie. I can set time so all my exsiting positions will be closed by tomorrow 0900. For this, I will have to be able to set time in EA's parameter. (I will list parameter needed at the end of this txt all together).
3. Print and GetLastError should be included. 

How EA may work:
a simple one. As my attached image file show, the EA only needs analysing two previous bars (P1 and P2) and modify all SL when Current bar starts to tick. There wont be hedging, so all positions will always be either BUY or SELL.

1. if EA detects the exsiting positions are BUY positions:
a.if P1 and P2 both are bull candles, and [P1 low] is >= [P2 low]; then set SL at ([P2 low] - Slippage (in pips)). Slippage is another parameter which I have to be able to change.
b.if P1 is bear candle, P2 is bull candle, set SL the same way as (a.), and use SendNotification to alert me that P1 is bear candle. 

2. if EA detects the exsiting positions are SELL positions:
a. if P1 and P2 are both bear candle, and [P1 high] is <= [P2 high]; then set SL at ([P2 high] + Slippage + Spread). Spread should be obtained from the server and/or using ask-bid to calculate.
b. if P1 is bull candle, P2 is bear candle, set SL the same way as (a.), and use SendNotification to alert me that P1 is bull candle.

Thank you for your hard work!

for input parameters:
I need at least:
1.Time

2.Slippage (in pips)


ps. final work should be .mq5 file.


附加的文件:

JPG
SL_EA.jpg
189.5 Kb

反馈

1
开发者 1
等级
(67)
项目
97
35%
仲裁
11
27% / 45%
逾期
13
13%
空闲
2
开发者 2
等级
(217)
项目
369
33%
仲裁
34
41% / 29%
逾期
108
29%
空闲
发布者: 1 代码
3
开发者 3
等级
(57)
项目
72
22%
仲裁
13
46% / 15%
逾期
5
7%
空闲
4
开发者 4
等级
(132)
项目
178
39%
仲裁
4
25% / 50%
逾期
14
8%
空闲
相似订单
I have an existing MT5 Expert Advisor for XAUUSD M5. This is NOT a new robot from zero. I need modification and professional review of an existing MQL5 EA. Main goals: 1. Buy entries: Buy trades are currently too rare. The Buy ADX filter was very strict at 45. I am testing 40 now. I need you to review the Buy entry filters and improve Buy entry quality without making entries random or weak. 2. Sell entries: Sell
I am looking for an experienced MQL5 developer to build a professional MetaTrader 5 (MT5) Expert Advisor (EA) for swing trading. Trading Pairs EUR/USD USD/JPY Timeframes Daily (D1) for trend identification. H4 for trade entries. Strategy The EA should: Detect Daily market structure (HH, HL, LH, LL) using confirmed swing highs and lows (not relying solely on ZigZag). Use DMI/ADX for trend confirmation. Open trades
English Description (For Developers): I need a custom Expert Advisor (EA) for MT5 to trade ONLY ETHUSD based on trend-following and counter-trendline breakout-retest with an M1 execution filter and strict risk management. Trading Logic: 1. Trend Filter: Price must be below 200 EMA on both H1 and M15 timeframes for Short (Sell) trades. (Opposite for Long/Buy trades). 2. Setup: On the M15 chart, after a strong move in
Hello, I want an EA which does martingale and has hedge feature. You may be confused by what this mean entirely so reach out to me so we can talk in depth as what I have said here is very vague for someone to clearly understand. I am not paying a single dollar over $30, so don't apply if you don't agree with that. Thank you for taking your time to read this
أحتاج إلى مستشار خبير لمنصة MetaTrader 5 (MT5) مصمم كآلة حالة محدودة (FSM). يجب أن ينفذ أوامر السوق فقط بناءً على مستويات أسعار يحددها المستخدم. يجب ألا يستخدم أي مؤشرات أو تحليل فني أو أوامر معلقة أو ذكاء اصطناعي أو قرارات تداول تلقائية. يجب أن ينفذ المستشار الخبير ببساطة تسلسلًا محددًا مسبقًا لمستويات الأسعار كما يحددها المستخدم تمامًا، مع إدارة دقيقة للحالة، ودورة نشطة واحدة في كل مرة، ومعالجة الفجوات السعرية،
Message me please for the investor login. You will replicate the ea and I shall tell u some things about it, I am not paying over $100. You should have great skills. The EA can handle any market and shall not blow the account
Мне нужен простой торговый бот, написанный исключительно на Python. Бот должен подключаться к терминалу MetaTrader 5 через официальную библиотеку Python "MetaTrader5". Объем кода невелик (около 250 строк). КРИТИЧЕСКИ ВАЖНЫЕ ТРЕБОВАНИЯ: 1. НЕТ КОДА MQL5: Весь проект должен быть написан только на Python. 2. ВНЕШНЯЯ КОНФИГУРАЦИЯ: У бота должен быть внешний конфигурационный файл (config.ini или settings.json). Я должен
[7/6/2026 12:24 PM] DR.HassaN: Current Phase: Comprehensive Review & Final Enhancement_ This indicator is designed for the TradingView platform. Now that the core engines have been completed, I want to enter a comprehensive review and professional enhancement phase before adding any major new features. My goal is to transform this indicator into a premium institutional-grade TradingView indicator , both in terms of
Part 1: Project setup Input settings (risk, stop loss, take profit, EMA periods) Indicator initialization Trade management framework Part 2: Trading logic EMA crossover detection Buy/Sell entry rules One-trade-per-symbol check Part 3: Risk management Automatic lot size calculation Stop-loss and take-profit placement Trade execution and error handling Part 4: Final touches On-screen information Optimization
I am looking for an experienced MQL4 or MQL5 developer to build a high-frequency (HFT) latency arbitrage Expert Advisor for cryptocurrency trading between LMAX and IC Markets. I need someone who understands low-latency execution, price feeds, slippage, spreads, and fast order execution. The basic idea is that LMAX acts as the leading price feed while IC Markets is the execution broker. The EA should constantly

项目信息

预算
30+ USD
截止日期
 1  3 天