New Expert Advisor algorithm required

MQL4 Indicators Experts

Job finished

Execution time 6 days
Feedback from customer
Terrific. Arkadii is a pleasure to work with.

Specification

Expert Advisor needed for MetaTrader4

System essentially looks for a large price movement, followed by a retracement to an EMA(x) line where a Limit Order has now been placed. The order direction – long or short – follows the direction of the original large movement.

Following use of the EA for backtesting, it will be necessary to finalize the EA to work on a real account, placing all of the necessary checks, standard handling of simple errors (requotes, invalid stops, etc).


EMA(x) and EMA(y) shown on 1hr candlestick chart.

 

Rules of trade entry:

1.       When price diverges from EMA(x) by + or – PIPS(xx) on a 1hr chart, judged at the opening of the following 1hr bar (in order to prevent EMA(x) movement in real-time).

AND

When on the following 1hr candle there is at least PIPS(yy) gap between EMA(x) and the Low (for going Long) or the High (for going Short) of the new candle…

Then place a Limit Order on EMA(x) in same direction as original PIPS(xx) + or – movement. This Limit Order position will need to move as the EMA(x) is re-drawn (re-accessed perhaps every 15 mins).

2.       Once that Limit Order trade is enacted by the price touching EMA(x), immediately place a StopLoss at PIPS(sl) and TakeProfit at PIPS(tp).

3.       Cancelling Limit Order: If the price/EMA(x) touch has not occurred within further HOURS(z) candles then cancel Limit Order without placing the trade. 

4.       Possible further order after initial EMA(x) trade. Ordinarily only one trade placed at a time. However, a second trade may be entered if the first trade is live AND price touches EMA(y). The same rules as above apply and this trade can only happen if there is a live EMA(x) initiated order in place

 

Rules of trade exit:

1.       StopLoss hit.

2.       TakeProfit hit.

3.       Time/date (if end of trading period if specified) is reached.

 


 

Interface for backtest

When you run the Expert Advisor, it should attach the used indicators with the specified parameters.  So for example, in order to assess the EA performance, indicators like arrows should appear on the chart showing where the PIPS(yy) decision was made, where the Limit Order is placed and where the StopLoss & TakeProfit are located.

The information on the opening/closing of positions and of modifications of the SL should be stored in the Journal;

If there are any errors, it must print a message describing the error.

 


IMPORTANT NOTE: I want to use this algorithm both to backtest and trade and so the backtest must work as accurately to trading reality as possible. In particular judgements over the gap between the EMA(x) and price are to be made looking at the 1hr chart. However, the actual execution including StopLoss  and TakeProfit must be judged in real-time (1 minute is probably ok) in order to match reality.

For testing Lot Size will be 1, but the EA should contain logic to increase Lot Size depending on retained profit from the strategy for use when actually trading.

For reference the system will run with an IG Index Spread MT4 account.

I hope to work with you for a long time, but either way I will want the source code and will own the rights.

 

Adjustable Testing Parameters:

1hr chart could be another time frame, but calculations must always be real-time tick by tick.

EMA(x) and EMA(y)

PIPS(xx)

HOURS(z)

PIPS(sl)

PIPS(tp)

Market open times (open & close time/date)

Market indicator being tested obviously

 

Responded

1
Developer 1
Rating
(885)
Projects
1410
67%
Arbitration
123
32% / 41%
Overdue
217
15%
Free
Published: 1 code
2
Developer 2
Rating
(182)
Projects
342
42%
Arbitration
118
12% / 73%
Overdue
104
30%
Free
Published: 4 codes
3
Developer 3
Rating
(13)
Projects
24
42%
Arbitration
3
33% / 0%
Overdue
4
17%
Free
4
Developer 4
Rating
(312)
Projects
521
47%
Arbitration
30
10% / 47%
Overdue
139
27%
Free
5
Developer 5
Rating
(103)
Projects
205
41%
Arbitration
17
29% / 71%
Overdue
45
22%
Free
6
Developer 6
Rating
(2676)
Projects
3416
68%
Arbitration
77
48% / 14%
Overdue
343
10%
Working
Published: 1 code
7
Developer 7
Rating
(130)
Projects
210
40%
Arbitration
90
20% / 43%
Overdue
85
40%
Free
8
Developer 8
Rating
(1125)
Projects
1813
61%
Arbitration
14
64% / 7%
Overdue
84
5%
Free
9
Developer 9
Rating
(25)
Projects
36
17%
Arbitration
14
14% / 57%
Overdue
3
8%
Free
10
Developer 10
Rating
(118)
Projects
201
42%
Arbitration
44
9% / 68%
Overdue
47
23%
Free
Published: 1 code
11
Developer 11
Rating
(59)
Projects
182
55%
Arbitration
31
45% / 16%
Overdue
103
57%
Free
12
Developer 12
Rating
(34)
Projects
80
34%
Arbitration
13
31% / 54%
Overdue
19
24%
Free
13
Developer 13
Rating
(8)
Projects
7
14%
Arbitration
1
0% / 100%
Overdue
0
Free
Similar orders
‎A trending candle followed by a smaller trending candle which is the second candle with no 5EMA ‎ ‎The 3rd candle is a reversal candle in which it and it's immidiate previous candle must be at least 70% of each other's body or equal body, with no 5EMA touch ‎ ‎the 3rd candle candle is followed immediately by the 4th candle which is the signal candle in which it and the 1st cabdle must be also at least 70% of
LynxMT5algo 30 - 100 USD
An mt5 add on indicator like gainalgo style to show entrance and exit areas for gold silver and Btc scalping. It will be used to make trading more easy for beginners
I have the Fisher Indicator shown below the chart. I need an alert added for when the Fisher Indicator hits the 50 point at the end of each period. GBPUSD and EURUSD 4H charts are provided and I can provide additional
Hello here, I need someone who can work on pinescript and also with Renko charts. My entries for my strategy would be based on stop orders Kindly let me know if you can work on this for me and i will send necessary file and quote in the chat
Freelance Task — EA Recovery Layer Hello. I have a ready-made MQL5 EA. The signals, SL/TP and lot calculation should essentially not be touched. I need a recovery system added. I am not a programmer — below is how the robot should behave. What stays Entry only from an EA signal. Stop-loss is not a new signal. Trailing is already built into my EA — recovery does not implement its own trailing. If trailing is disabled
# SNRZ BOT — SESSION PROGRESS LOG Last updated: 2026-09-16 (local late-evening session) ## SAN BOT (new — cloned from SNRZ) - `MQL5\Experts\AutomatedOrderBot_SAN.mq5` / `.ex5` — v1.0, compiled 0 errors/0 warnings - Signal source: custom indicator "SAN" (InpSANName, buy buf 0 / sell buf 1, target bar 1), same SNRZ-style read, MA fallback if missing - Magic number 234567 (separate from SNRZ 123456 so both bots can run
Should be as it but no alarms, also we need to add a deep search so he can see all the preves candles and a memory function so its not slowing down the indicator. for higher time frames daily 4h 1h around 365 days and for lower time frames we do up to 20k bars but both flexible so i can change it later. the memory is important so the indicator is not always recalculating everything when a new candle shows especially
Hi, I need an experienced NinjaTrader 8/NinjaScript developer to finish or rebuild an automated futures strategy, ideally by the end of this week. I already have the complete TradingView Pine Script reference strategy, an existing ~2,000-line NinjaScript implementation, Playback logs, and known historical benchmark trades. MOST IMPORTANT REQUIREMENT: TRADINGVIEW ↔ NINJATRADER PARITY. The Pine Script is the reference
I need a custom MQL5 indicator for MetaTrader 5. The indicator must automatically print entry, stop loss, and take profit zones on the chart using dots. A critical requirement is that these dots must be non-lagging and absolutely non-repainting. Additionally, the indicator needs to identify and display current supply and demand zones. Please provide the mq5 source code and the ex5 file upon completion
I need an experienced trading-data specialist who can help me obtain 3–4 years of historical market data compatible with NinjaTrader 8 . The data will be used for trading strategy development, backtesting, and analysis

Project information

Budget
100 - 400 USD
Deadline
from 1 to 3 day(s)