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
1428
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
(2630)
Projects
3345
67%
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
(249)
Projects
255
30%
Arbitration
0
Overdue
3
1%
Free
Published: 2 codes
9
Developer 9
Rating
(542)
Projects
624
33%
Arbitration
39
36% / 49%
Overdue
11
2%
Busy
10
Developer 10
Rating
(295)
Projects
472
40%
Arbitration
102
40% / 24%
Overdue
78
17%
Busy
Published: 2 codes
11
Developer 11
Rating
(116)
Projects
137
36%
Arbitration
16
13% / 69%
Overdue
9
7%
Free
12
Developer 12
Rating
(2297)
Projects
2893
63%
Arbitration
122
44% / 25%
Overdue
429
15%
Free
13
Developer 13
Rating
(69)
Projects
146
34%
Arbitration
13
8% / 62%
Overdue
26
18%
Free
Published: 6 codes
Similar orders
I am looking for a professional developer to build a custom trading analysis software for me. This tool is NOT an automated trading bot (EA); it is an analysis dashboard to help me identify high-probability setups based on my strategy. Key Requirements: Multi-Timeframe Analysis: The software should scan 4 different timeframes (M15, M30, H1, H4, D1, WK1, MTH1) and alert me when my conditions are met. Indicator
I want to add and remove few things in ea need some modification needed in ea developer should have some trading knowledge also to understand the requirement better and have good experience in coding
Core Requirements: Two selectable timeframes - dropdown inputs to choose from M1, M5, M15, H1, H4, D1, W1, MN1 Timeframe 1 = Chart's own timeframe (if chart is M5, TF1 should be M5) Timeframe 2 = Higher timeframe for confluence All Ichimoku components displayed for both timeframes: Tenkan-sen Kijun-sen Senkou Span A Senkou Span B Chikou Span Cloud (bullish and bearish) Technical Settings: All buffers accessible for
Hello everyone, I am looking for a highly experienced MQL5 developer to build a fully automated Expert Advisor (EA) based strictly on Smart Money Concepts (SMC) 🔍 Core Strategy Requirements (SMC Only) The EA must be based on Advanced Smart Money Concepts , including: ✅ Market Structure (BOS & CHOCH) ✅ Liquidity concepts (equal highs/lows, stop hunts)✅ Trap Blocks / Fake Order Blocks detection ✅ Valid Order
I need a AI signal generating bot for forex trading that use the latest ai technology to track real time forex market, analyse and give signals. The bot should operate such that when i put it in a chart it will analyse the market, after several minutes it will display whether the trade is buying or selling. It should display the one minute, five minute,15minute, 30 minute, one hour, 4 hours and daily time frame
Hello I want to convert my tradingview indicators into Ninja trader can anyone help me with it it is urgent and I will like to discuss more about it to you if you can help me Kindly do well to bid on it
📌 JOB DESCRIPTION – FULLY AUTOMATED TRADING SYSTEM I am looking for an experienced developer to build a fully automated end-to-end trading system for MetaTrader 5. This is not an indicator-based bot and not a discretionary or black-box AI system. The system must follow a strict, deterministic rule-based trading framework that is already defined. 🎯 PROJECT GOAL Build a system where: A backend continuously evaluates
EA with Zones 30+ USD
Good day! I have an indicator .mq5 this indicator calculates and draw zones on the chart. My request is to add these specific zones drawn and calculated exactly as the indicator in the EA. A replicate behavior of the zones from the indicator to the EA. Thank you
I need a fully automated end-to-end system where a backend continuously runs my deterministic CORE EDGE validator on live market data, generates numeric JSON trade tickets (GO) or alert levels (NO-GO), and automatically pushes those instructions to the MT5 EA for execution. There are no manual signals. ROLE SPLIT (IMPORTANT) Backend (analysis & decision engine): Continuously evaluates live data using my CORE EDGE
I am looking for an experienced MQL4 / MQL5 developer to create a custom Expert Advisor (EA). Trading details: - Symbol: XAUUSD (Gold) only - Platform: MT4 or MT5 - Strategy type: Scalping (fast trades) - Timeframes: M1 / M5 - Fixed Stop Loss and Take Profit - Risk management: - Lot size based on balance OR fixed lot (user configurable) - Maximum trades per day (user configurable) - Spread and slippage filter -

Project information

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