I need an EA for MT4

MQL4 Experts

Job finished

Execution time 5 days
Feedback from customer
Very professional and skilled coder, difficult EA completed on time. Definitely recomended.
Feedback from employee
Excellent customer! Good communication. Very clear task.

Specification

I need an EA for MetaTrader 4. The market entry signal is based on trendline breakouts. Positions are closed by stop loss, take profit and reverse signal. All positions are accompanied by a trailing stop, based on the average between the maximum and minimum of the last n candlesicks. Some calculations are done as a fraction of the Average True Range indicator. Lot sizes are calculated as a percentage of the balance.

 

Trendlines


This system is based on trendlines, which are drawn connecting fractals.


Fractals are patterns where highs or lows are in the middle of a series of bars. A first order bearish fractal appears in a series of three consecutive bars, when the high of the central bar is preceded by a lower high and is followed by a lower high. The opposite for bullish fractals. Similarly, a second order bearish fractal is found in a series of five consecutive bars where the highest high is located on the central bar, and therefore, preceded by two lower highs and followed by two lower highs. The opposite would be a bullish second order fractal (see Image 1). An indicator for fractals is already built in MT4 (Indicators>Bill Williams>Fractals).

 

01

 

This expert advisor should draw trendlines connecting second order fractals. A bullish trendline will be drawn connecting the last two second order bullish fractals, if the most recent bullish fractal is higher than the previous bullish fractal. A bullish trendline can be also drawn connecting the last and the third-to-last second order fractals, if the most recent bullish fractal is higher than the third-to-last bullish fractal. The fourth and further fractals on the left will be ignored. To draw a trendline, fractals must be separated by at least five candlesticks.

The opposite conditions will be considered to draw a bearish trendline (see Image 2).

02 

Trendlines must be drawn considering second order fractals. Only in the case that no second order fractal appears in the last nine candlesticks, trendlines should be drawn based on first order fractals, following the same rules (see Image 3).

 

Signal to open a position


A long position is opened when a candlestick closes above a bearish trendline, plus a determinate number of pips in the same direction, calculated as a percentage of the 14 periods Average True Range (“ATR(14)”, henceforth) value in the last bar. This parameter should be adjustable and called Breakstrength (please allow fractional numbers). For example, if the ATR(14) value in the last bar is 100, and the Breakstrength is set as 10%, then 10 points should be added to the level of the breakout point to allow the opening of a position.

Conversely, a short position is opened when a candlestick closes below a bullish trendline, plus a determinate number of pips specified in Breakstrength (see Image 4). 

 

Only one position at a time can be opened, even if a candlestick breaks two different trendlines. If an opposite signal occurs (i.e., a candlestick breaks out a trendline in the opposite direction) the active position must be closed, and the opposite operation should be opened (see Image 5).

 

Stop loss

Initial stop loss

Every position is opened with an initial stop loss, that should be placed after the most recent fractal in the opposite direction (i.e. the last down fractal for long positions, or the last up fractal for short positions). A given number of pips, calculated as a percentage of the ATR(14), should be added to this initial stop loss (this parameter should be adjustable and called InitialSLBuffer, see Image 6).

 

Trailing stop loss

The initial stop loss should not move during the first n candlesticks following the entry point. This parameter should be adjustable and called StartTrailSL. After the n+1 candlestick following the entry point, the stop loss should be moved below the minimum of the n+1 candlestick in long positions, or above the maximum of the n+1 candlestick in short positions, plus a given number of pips. This parameter should be adjustable, calculated as a fraction of the ATR, and called TrailSLBuffer (see Image 7).

 

A line displaying the average between the maximum and minimum of the last n candlesticks should be calculated with each candle (called Kijun line, as in the Ichimoku indicator, already built in MT4). The number of candlesticks used to calculate this line should be adjustable and called KijunPeriod.


As soon as a candlestick opens and closes above this Kijun line in long positions, or below, in short positions, the stop loss level should be moved below or above the Kijun line, for long and short positions respectively, plus a number of pips specified by the TrailSLBuffer (see Image 8).

 

The trailing stop loss must move only in the direction of profit.


Momentum Filter

No position should be opened if in the last 10 bars price moves faster than a determinate number of pips, from mimimum to maximum. This maximum number of pips to allow trading should be adjustable, as a multiple of the ATR(14), and called MaxMomentum (see Image 9).

 

Time Filter

Opening positions shoud be only allowed during a determinate period of the session (e.g.: from 7:00 to 18:00). If a position is still open after this time, it shoud be closed following the Marked Exit rules of the next paragraph.


Market Exit

Part of the position should be closed if profit reaches a percentage of the number of pips risked by the initial stop loss (both parameters, the percentage of the position to be closed, and the percentage of pips of the initial stop loss, should be adjustable and called ClosePercent and InitialFraction respectively). The rest of the position should be closed when price hits the stop loss or when an opposite signal occurs, whatever happens first (see Image 10).

 

Position volume

The number of lots is calculated as a percentage of the current balance (this parameter should be adjustable and called RiskPercentage).

For example, equity is $10000, and we want to risk 1%, that is, RiskPercentage is set to 1%. The EURUSD pip value is $10 on a standard lot. Initial stop loss is at 200 pips distance. Then, the lot size should be:


$100 risked / (200 pips *$10 per pip) = 0,05 lot size.


Calculations should be rounded to the nearest microlot size.


Miscellaneous:

When the Expert Advisor is runned, it should attach the used indicators with the specified parameters.


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

Responded

1
Developer 1
Rating
(885)
Projects
1410
67%
Arbitration
123
32% / 41%
Overdue
217
15%
Free
Published: 1 code
2
Developer 2
Rating
(1156)
Projects
1462
63%
Arbitration
21
57% / 10%
Overdue
43
3%
Free
3
Developer 3
Rating
(2676)
Projects
3416
68%
Arbitration
77
48% / 14%
Overdue
343
10%
Working
Published: 1 code
4
Developer 4
Rating
(219)
Projects
370
42%
Arbitration
145
17% / 41%
Overdue
124
34%
Free
Published: 38 codes
5
Developer 5
Rating
(69)
Projects
76
59%
Arbitration
0
Overdue
12
16%
Free
Published: 2 codes
6
Developer 6
Rating
(195)
Projects
395
28%
Arbitration
155
20% / 52%
Overdue
112
28%
Free
7
Developer 7
Rating
(1931)
Projects
3552
88%
Arbitration
73
40% / 15%
Overdue
268
8%
Free
8
Developer 8
Rating
(107)
Projects
149
36%
Arbitration
29
3% / 55%
Overdue
35
23%
Free
9
Developer 9
Rating
(589)
Projects
1070
50%
Arbitration
39
28% / 41%
Overdue
49
5%
Free
Published: 1 article, 8 codes
10
Developer 10
Rating
(89)
Projects
137
24%
Arbitration
35
9% / 40%
Overdue
52
38%
Free
11
Developer 11
Rating
(258)
Projects
396
28%
Arbitration
70
19% / 49%
Overdue
121
31%
Working
Similar orders
I need a fully automated custom Expert Advisor for MetaTrader 5 (MQL5). The EA is intended for use on a The5ers $100,000 2-Step prop-firm account. IMPORTANT DELIVERY REQUIREMENT: I must receive the complete editable .mq5 source code as well as the compiled .ex5 file. Compiled-only delivery is NOT acceptable. The EA must be coded specifically for this project and must not copy trades, use external trading signals or
I've got a Pine Script from Trading View. I need help from a programmer who can help with optimising the strategy by 1) Adding a couple of further rules 2) Redesign the trading alert arrows & colours I need, please, a programmer who is 1) Good at Pine language 2) Has excellent after-job support (not for free though) 3) Possess the ability to work with others. 4) Able to deliver the job at the shortest possible time
I need an experienced TradingView Pine Script developer to build and test a custom intraday strategy for NQ/MNQ . I am not looking for a conversion . I need the strategy researched, developed, tested, and optimized based on my requirements. Requirements: NQ/MNQ intraday trading 5–15 minute charts New York session only Flat before market close Base logic using Zero Lag Signals , with additional filters if justified
Le robot devra : Respecter strictement les règles de risque des comptes FTMO : perte journalière maximale, perte maximale totale, taille des positions, etc. Intégrer un système de gestion du risque automatique. Être capable de gérer différents types de comptes et tailles de capital. Être basé sur ma stratégie et mes règles de trading que je fournirai au développeur. Être entièrement automatisé pour l’exécution des
I am looking for an experienced MQL5 developer to build a professional MT5 Expert Advisor specifically for XAUUSD (Gold) and other indices. I saw that XAUUSD is one of your primary areas of specialization, so I would like to discuss a custom EA with you. My priority is NOT extremely high returns. I want a robust EA designed for controlled risk and long-term survival. Requirements: • MT5 / MQL5 • XAUUSD, usoil,btc and
VENOM EA 35 - 50 USD
So, im a beginner and I'm pleading you to built me a bot that runs 24hrs and that can buy and sell at the same time, choose a better and profitable strategy. I will do anything thing it takes to get the bot. I hope you take my request into consideration
Je cherche un développeur MQL4 / MQL5 expérimenté pour créer un robot de trading automatique (Expert Advisor) performant et sécurisé. Validation de comptes Prop Firm capable de trader sur le forex et les matière première
XAUUSD Digger 50 - 300 USD
I want you to create a strategy that fits for my funded account conditions like winrate of 60%+ with good risk reward ratio min 1:2 and max drawdown per day is 2% or 3% and overall should be less then 10% with less consecutive losses should be able to finish the funded stage in of phase 1 8% target and phase 2 of 10% target in a month with good number of trades in a month need journal of all the back tested data and
I need a simple Expert Advisor for MT5 that trades based on RSI overbought/oversold levels. - Entry: Buy when RSI(14) < 30, Sell when RSI(14) > 70 - Exit: Take Profit and Stop Loss as adjustable input parameters (default 50/25 pips) - Position sizing: Risk 1% of account balance per trade, auto-calculated from stop-loss distance - Timeframe and currency pair: adjustable inputs, not hardcoded - Should include basic
1. Trading Instruments: - The robot should trade exclusively on the following currency pairs: - NZD/CHF - NZD/USD - GBP/USD 2. Trading Style: - The robot should implement a day trading strategy, focusing on short-term trades. 3. Risk Management: - Maximum drawdown percentage: 10%. - Stop loss settings: Adjustable based on volatility (suggested default: 30 pips). - Take profit settings: Adjustable

Project information

Budget
70 - 150 USD
Deadline
from 10 to 15 day(s)