An MT5 Expert based on Stop orders - Long direction only

MQL5 Experts C++

Job finished

Execution time 2 days
Feedback from customer
Excellent programming skills, ability to find solutions and very prompt.
Feedback from employee
Good and honest employer. Thanks 😊

Specification

Will need the Expert Advisor (EA) source code in MQL5 (runs Metatrader 5) for the below description. It is only for long-direction. Will need it to be tested to make sure the code running on Forex pairs without any issues or errors, and that it follows the logic described in each input. If there are any questions please text me anytime to make this experience as good as possible!  

The below text in Bolt font are the inputs needed. A 

Assumption: The trading accounts equity is $500 

Inputs for Long Direction: the numbers used in the inputs below are examples and are applied on other inputs to make the logic clearer and for calculations purposes  

Distance to place buy stop order(s) from current bid-price in points: i.e 100 points (10 pips 

Explanation: Once the EA is loaded, the first buy stop order is automatically submitted at a distance of i.e 100 points from the market price (bid price). If the EA is then disabled, the metatrader user will have to remove the order manually. 

Number of times to repeat the above buy stop order: i.e 

Explanation: So if first order is filled, then the strategy adds a second buy stop order that is 100 points above the market price (bid price). This process repeats up to 4 times in this example) 

Stoploss: i.e. 150 points (fixed distance)  

Explanation: The stoploss is automatically inputted when the order is filled and is at a fixed distance of i.e 150 points below the current market price (bid price) 

TrailingStop amendment move: i.e. 130 points  

Explanation: when the buy stop order is filled due to market moving higher, then if the market price rises higher by another i.e 130 points from long entry price, then the TrailingStop moves according to below input. Once it rises, the market price then needs to move higher by another 130 points so that the TrailingStop moves higher for a second time, and then another 130 points e.t.c) 

TrailingStop’s new Stoploss distance from current price: i.e. 70 points 

Explanation: When the TrailingStop of an existing long position is to be amended due to the market moving higher by i.e 130 points (according to the input above this one), then the TrailingStop’s new Stoploss is to be 70 points below the market price (bid price) at the time the amendment is made. This fixed distance of 70 points repeats for all TrailingStop amendments following the 130 points moves. 

Risk per each trade applied to current equity balance (used to calculate position size per trade): i.e 1%  

Explanation: 1% is $500 of equity in the account, so the risk is $5 per trade and since the Stoploss is set to be 150pts, then the position size is automatically calculated to be $5/150 = 0.03 rounded to nearest second decimal. 

Additional inputs: 

Price level: 

Place order only if current-bid price is below this price level: i.e 1.11235  

Explanation: if the market price is above this price, no buy stop-order is placed, can still enter manually and stoploss/trailstop can still operate on the manual entry, any positions from this EA that are open remain open). Also we need to add the option to close all positions and open buy stop orders if this input occurs 

Place order only if current-bid price is above this price level: i.e 1.11000 (if the market price is below this price, no buy stop-order is placed, any positions from this EA that are open remain open). Also we need to add the option to close all positions and open buy stop orders if this input occurs 

Equity rule: 

Current account’s equity must be below this level: i.e. $650  

Explanation: if the account’s equity rises from say $500 to $650 then no more buy stop orders to be placed, stop/trailing stops still active). Also we need to add the option to close all positions and open buy stop orders if this input occurs 

Current account’s equity must be above this level: i.e. $400  

Explanation: if the account’s equity drops from say $500 to $400 then no more buy stop orders to be placed, stop/trailing stops still active). Also we need to add the option to close all positions and open buy stop orders if this input occurs 

There are a few more additions that will be added on the formal requirements specification file. Only the selected developer will be able to see that.

Responded

1
Developer 1
Rating
(618)
Projects
1429
59%
Arbitration
31
81% / 0%
Overdue
10
1%
Free
2
Developer 2
Rating
(152)
Projects
228
80%
Arbitration
22
27% / 50%
Overdue
11
5%
Free
Published: 24 articles, 1882 codes
3
Developer 3
Rating
(298)
Projects
427
26%
Arbitration
18
61% / 33%
Overdue
26
6%
Free
Published: 8 codes
4
Developer 4
Rating
(7)
Projects
14
21%
Arbitration
1
0% / 100%
Overdue
3
21%
Free
5
Developer 5
Rating
(1)
Projects
2
0%
Arbitration
1
0% / 100%
Overdue
0
Free
6
Developer 6
Rating
(2671)
Projects
3404
68%
Arbitration
77
48% / 14%
Overdue
342
10%
Free
Published: 1 code
7
Developer 7
Rating
(19)
Projects
33
55%
Arbitration
5
80% / 20%
Overdue
3
9%
Free
8
Developer 8
Rating
(258)
Projects
265
29%
Arbitration
0
Overdue
3
1%
Working
Published: 2 codes
9
Developer 9
Rating
(600)
Projects
694
33%
Arbitration
43
47% / 44%
Overdue
12
2%
Busy
10
Developer 10
Rating
(298)
Projects
477
40%
Arbitration
105
40% / 24%
Overdue
81
17%
Loaded
Published: 2 codes
11
Developer 11
Rating
(116)
Projects
137
36%
Arbitration
16
13% / 69%
Overdue
9
7%
Free
12
Developer 12
Rating
(2328)
Projects
2932
63%
Arbitration
124
44% / 26%
Overdue
429
15%
Working
13
Developer 13
Rating
(69)
Projects
146
34%
Arbitration
13
8% / 62%
Overdue
26
18%
Free
Published: 6 codes
Similar orders
PLATFORM: MetaTrader 5 (MQL5) ASSET: XAUUSD (Gold) ACCOUNT TYPE: Live Raw Spread Account (Floating Spread + Commission) 500x leverage The broker commission is exactly 3 usd per standart lot per side6.00 round turn). The EA's internal trade tracking, net profit/loss metrics, and trailing drawdown calculations must completely factor in these commission charges alongside the raw asset spread. I need a clean, optimized
Siraj Durrani 30 - 50 USD
Title: Need MT4 Expert Advisor for XAUUSD (SMC/ICT Strategy) Requirements: I need a professional MT4 Expert Advisor (EA) for XAUUSD based on Smart Money Concepts (SMC) / ICT strategy. Features: - Platform: MetaTrader 4 (MT4) - Symbol: XAUUSD - Automatic Buy and Sell trades. - Detect market trend automatically. - Use Break of Structure (BOS) and Change of Character (CHoCH) for trend confirmation. - Enter trades only
Xauusd to gold 35+ USD
The EA must be fully automated , backtest-friendly , prop-firm-safe , and built with a clean modular architecture . Core Strategy Requirements 1. Higher Timeframe Bias Use D1 and H4 . Use 200 EMA as trend filter: If price is above 200 EMA on both D1 and H4 -> allow BUY only If price is below 200 EMA on both D1 and H4 -> allow SELL only If D1 and H4 are not aligned -> no trade 2. Market Structure Module Detect and
Pine Script Integration Request (Experienced Coders Only) I am looking for a highly experienced Pine Script developer to integrate a Demand & Supply Zone module into my existing indicator. Requirements Keep my current indicator (Rudy) exactly as it is. Do NOT modify, remove, or alter any existing logic, calculations, signals, alerts, or visual elements. Add only the Demand & Supply Zone boxes from a second Pine
🔍 Strategy Logic 📌 Indicators Used 21 EMA RSI (Upper Level: 61, Lower Level: 39 – Customizable) 📈 Buy Side Setup (Long Entry) Step 1 – Trend Confirmation A Green candle must close above 21 EMA. Step 2 – Pattern Formation After the green candle, observe next 4 candles. At least one Red candle must form (opposite candle). That Red candle must also close above EMA. Step 3 – Key Level Marking Mark the High of the Red
Title Professional AI Automation Trading Bot for Forex & Crypto Solution Language Python (preferred) or MQL5 depending on integration requirements. Categories Expert Advisor (EA) for MetaTrader 5 Automated trading strategies AI/ML-based signal generation Risk management automation Required Skills Strong knowledge of MQL5/Python Experience with MetaTrader API integration Machine learning model deployment
I need an Ai trading bot for Binance and BTC on MT5 that also uses order flow data. It should also make use of TSI- Temporal indicator sampling and also it should make use of fundamental analysis in the process of signal generation
Title: MT5 Forex Trading Robot Development I need a MetaTrader 5 (MT5) Expert Advisor (EA) for automated Forex trading. Requirements: 1. The robot must be fully automated and capable of opening and closing trades without manual intervention. 2. Compatible with MetaTrader 5 (MT5). 3. Adjustable lot size, Stop Loss, and Take Profit settings. 4. Built-in risk management based on account balance. 5. Ability to trade

Project information

Budget
50 - 75 USD
Deadline
from 5 to 20 day(s)