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
(617)
Projects
1427
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
(2622)
Projects
3327
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
(246)
Projects
253
30%
Arbitration
0
Overdue
3
1%
Free
Published: 2 codes
9
Developer 9
Rating
(539)
Projects
618
33%
Arbitration
35
37% / 49%
Overdue
10
2%
Busy
10
Developer 10
Rating
(294)
Projects
469
39%
Arbitration
100
41% / 23%
Overdue
77
16%
Loaded
Published: 2 codes
11
Developer 11
Rating
(116)
Projects
137
36%
Arbitration
16
13% / 69%
Overdue
9
7%
Free
12
Developer 12
Rating
(2279)
Projects
2873
63%
Arbitration
121
45% / 26%
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
Greetings, I'm seeking a price quote for the following EA description. 1) Short positions are opened after trades that have closed below the open of the trade. 2) Long positions are opened after trades that have closed above the open of the trade. 3) The base lot size plus the spread is applied for every trade that opens after the take profit has been reached. 4) Double the lot size of the previous trade plus
I have an issue with my ninja script and i would like you to help me straighten things I wanted to create an indicator and i have the source code already but i am getting compiling errors on my NinjaTrader And i tried fixing the error it still same I sent 3 images here for you to understand the errors and i would like to ask if you can help me fix it so i can go ahead and compile my source code. Thanks
Good day, I would like to build an automated trading system for Ninjatrader using 2 MACD, a Supertrend, and a moving average indicator. I want the option to adjust the indicator settings, the ability to trade at three different times, and the option to receive alerts. I want to get an idea of what that will cost me. It will enter trades on all blue take one contract out at a fixed point, move the stop to break even
I have an indicator i need automated i use it manually and it plots arrows. Can you automate it for my Ninjatrader8? Do you need to see file? Expert Ninjatrader Developer can Bid for this project
Project Overview We are seeking an experienced MetaTrader 5 (MT5) / MQL5 developer to design and build a production-ready Expert Advisor intended for live trading with capital at risk . This is not a hobby, experimental, or retail-grade EA. We are only interested in developers with proven experience delivering robust, well-tested MT5 systems . Project Objective Design and implement a high-quality MT5 Expert Advisor
I want developer who know how to create bot which immediately transfer specific crypto coin deposit to one crypto address to another specific address in just a second,, if you know about this then only comment on this post
Hey bro, can you help with NT8. On a vps, multiple algos and prop account but the strategies keep getting out of sync, going from true to false for no reason….. mid trade it pops errors.The algo codes are locked… other than that it’s open VPs, NT8 and strategy is open You will notice in the strategies xml that there are standard, then 100k and 50k versions…… Also I did version that are in strategy labeled "Apex"
Hello Developers, I need ready made MT5 HFT Gold Scalper. Must pass in backtesting lower DD work with minimum $50 if you have ready made scalper than send file for Demo test and than we Final the deal. Thanks
I would like to create an indicator for my strategy on trading view , my strategy involves a liquidity sweep , wick or candle body closure , this needs to happen inside a higher time frame pd array such as a fair value gap that’s atleast 5m + and there needs to be an inversion fair value gap for my entry , I want the fair value gaps on all time frames so I can see them all on the 1 minute chart but i want the fair
can you help me with making a simple tradingview/script that draws boxes labeling consolidation areas according to my specifications? IF anyone can help with this kindly do well to bid to this so we can discuss more about the project thanka

Project information

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