Two Simple Expert Advisors

MQL4 Experts

Job finished

Execution time 16 days
Feedback from employee
Thank you very much 🌹

Specification

This is a job for two expert advisors with very similar functionality. The difference is the trading entry logic.

The expert advisors required are based on pivots, here are the details:

MQL file required at the end please.

EXPERT 1

FIRST STEP: CALCULATE THE PIVOTS

At 8am CET every day the EA should use the opening price at 8am CET to calculate our pivots.

The pivots are percentages of the opening price, the percentages are +0.5%, +1.0% and +1.5% as well as -0.5%, -1.0% and -1.5%.

Example:

Price of FTSE at 8am CET is 7000, so all of the pivots are calculated on 7000. Here are two examples of the pivot calculation

+0.50% of 7000 = 7035
-1.00% of 7000 = 6930 and so on


NEXT STEP: CALCULATE THE MARKET BIAS 

The Bias will be calculated at 8am CET by a combination of two indicators:

1. SMA of 55 - is the SMA pointing up? If yes, it's Bullish. Else, it's Bearish

2. MACD (72 156 54) - is the histogram above 0? If yes, it's Bullish. Else, it's Bearish

If both indicators are bullish, then the MARKET BIAS is Bullish
If both indicators are bearish, then the MARKET BIAS is Bearish
Else the BIAS is NEUTRAL


NEXT STEP: TRADING LOGIC

Depending on the market bias, the EA will open limit orders based on the following:

IF MARKET BIAS IS 'NEUTRAL'
Sell Limit @ +0.5% and +1.0% and +1.5%
Buy Limit @ -0.5% and -1.0% and -1.5%

IF MARKET BIAS IS 'BULLISH'
Buy Limit @ -0.5% and -1.0% and -1.5%

IF MARKET BIAS IS 'BEARISH'
Sell Limit @ +0.5% and +1.0% and +1.5%

TRADING PARAMETERS

1. Stop Loss Level

This is a input for a fixed level, for example the input will be 25 points.


2. Take Profit Level

This should be a multiplier of the stop loss.
For example if the multiplier is 4.0 then the TP will need to 4.0 times bigger than the stop loss.
If the stop loss is 25 points, then the take profit target would be 100 points (4 x 25).


3. LOT SIZE

We will need the EA to calculate the lot size based on a percentage of the account, for example: 1%. So if a stop loss is hit, then it will cost 1% of the account size.


4. MOVE TO BREAKEVEN

Option for MoveToBreakEven after reaching 50% of target.
For example is the take profit is 100 points, then the move to break even will kick in after reaching 50 points profit.


5. AUTOMATIC CLOSE TRADES AT PARTICULAR TIMES

Close all trades by 19:00 CET
No trades allowed to remain open over the weekend

6. RESTRICT TRADES 
Three maximum losing trades (bullets) per day - After losing three trades, close limit orders and trades and restart the next day.

7. DAILY PROFIT TARGET

The EA should keep a track of our total profit for the day.
Example trade 1 is a stop loss (total gain = -1R)
Example trade 2 is a stop loss (total gain = -2R)
Example trade 3 hits target for 4R (total gain = +2R)
Example trade 4 hits target for 4R (total gain = +6R)

Close all remaining trades

8. NOTIFICATIONS

Option for Push, Email and Alerts


EXPERT 2

FIRST STEP: CALCULATE THE PIVOTS (Same as Expert 1)

NEXT STEP: CALCULATE THE MARKET BIAS (Same as Expert 1)

NEXT STEP: TRADING LOGIC

BUY
If price breaks above any +0.5%, +1.0% or +1.5% pivot level by 20 points or more, then open a buy limit order to buy at that pivot level.
For example if price breaks through the +0.5% level and pulls back, we want to buy limit at the +0.5% level. 
The EA should only open one limit order, per pivot level, per day. This means the EA could open buy orders order at +0.5% and +1.0% and +1.5%, depending on price action. But it would not open more than one trade at each level in a single day.

SELL
If price breaks below any -0.5%, -1.0% or -1.5% pivot level by 20 points or more, then open a sell limit order to sell at that pivot level.
For example if price breaks through the -0.5% level and then bounces, we want to sell limit at the -0.5% level. 
The EA should only open one limit order, per pivot level, per day. This means the EA could open an sell orders at -0.5% and -1.0% and -1.5%, depending on price action. But it would not open more than one trade at each level in a single day.

The EA could possibly open a maximum of six trades in one day.

TRADING PARAMETERS

1. Stop Loss Level (same as Expert 1)

2. Take Profit Level (same as Expert 1)

3. Lot Size (same as Expert 1)

4. MOVE TO BREAKEVEN (same as Expert 1)

5. AUTOMATIC CLOSE TRADES AT PARTICULAR TIMES (same as Expert 1)

6. RESTRICT TRADES (same as Expert 1)

7. DAILY PROFIT TARGET (same as Expert 1)

8. NOTIFICATIONS (same as Expert 1)


Responded

1
Developer 1
Rating
(84)
Projects
149
31%
Arbitration
32
34% / 41%
Overdue
43
29%
Free
2
Developer 2
Rating
(31)
Projects
42
26%
Arbitration
10
20% / 50%
Overdue
8
19%
Free
3
Developer 3
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
4
Developer 4
Rating
(258)
Projects
396
28%
Arbitration
70
19% / 49%
Overdue
121
31%
Free
5
Developer 5
Rating
(117)
Projects
138
41%
Arbitration
30
7% / 77%
Overdue
17
12%
Free
6
Developer 6
Rating
(195)
Projects
395
28%
Arbitration
155
20% / 52%
Overdue
112
28%
Free
7
Developer 7
Rating
(2)
Projects
3
67%
Arbitration
1
0% / 0%
Overdue
3
100%
Free
8
Developer 8
Rating
(66)
Projects
95
28%
Arbitration
20
25% / 55%
Overdue
24
25%
Free
9
Developer 9
Rating
(171)
Projects
195
42%
Arbitration
13
8% / 54%
Overdue
9
5%
Free
Published: 3 codes
Similar orders
Andrew 50 - 200 USD
Hello, I am from Tanzania. I am looking for a professional MQL5 programmer from Tanzania who can help me develop and improve my automated MT5 trading robot. The project is called SMC XAVAGE AI, and it trades XAUUSD (Gold). I would like to discuss the project with you. Are you based in Tanzania? Would it be possible to arrange a meeting or a call? Thank you
Metafix 50 - 200 USD
Here is a professional specification you can send directly to your developer. # Project Requirements Specification: MetaTrader 5 Trading Robot Development ### 1. Project Overview I want to develop an automated Forex trading robot (Expert Advisor) for MetaTrader 5 (MT5). The robot should analyse the financial markets, identify trading opportunities, and execute trades automatically based on predefined strategies. ###
1. Platform: MT4 The EA required is not linked, neither depending on trading strategy nor trading signals nor indicators. 2. Initial order is a pending order (buy stop/ sell stop) and it is created manually. It is open for a specified symbol (pair) at a specified price with a specified S/L 3. Example: buy stop 0.1 lot GBPUSD @ 1.3085 WITH S/L @1.3075 Once target price is reached, pending order will
Overview: Build an MT5 Expert Advisor that receives webhook alerts from TradingView (RayAlgo indicator) across three timeframes ( H1, M5, M1 ) for XAUUSD and executes a dual-position strategy when all three conditions align, including strict FTMO server-request limits and automated pre-market-close trade closures. 1. Webhook Receiver & Multi-Timeframe State Logic: H1 Bias State: Updates to BULLISH or BEARISH upon
I am looking for an experienced trading software developer interested in building a long-term working relationship. Im a professional Trader, Coach and Mentor, I work with traders and Student who require customized trading solutions, including automated trading bots, Expert Advisors, custom indicators, trading strategies and other algorithmic trading tools. I am looking for a technically skilled developer who can
Salman serhal 30 - 100 USD
MT5 ICT XAUUSD Sell-Only Trading Robot with Fibonacci Confirmation I am looking for an experienced MQL5 developer to create a custom Expert Advisor (EA) for MetaTrader 5, specifically for trading Gold (XAUUSD). 1. Trading Strategy The robot must use the ICT trading methodology and focus on SELL trades only. The strategy should include: * Identify important resistance and premium zones. * Use Fibonacci retracement
Objective: I am looking for an experienced MQL5 quantitative developer to code an Expert Advisor (EA) from scratch based on a fully defined, rule-based strategy, and then rigorously validate, optimize, and stress-test it before I deploy it on a live VPS environment. Note: The exact mathematical rules, indicator names, and chart screenshots will be shared privately with shortlisted candidates. Strategy Overview
Hi Team We are looking to commission an Expert Advisor (EA) for MetaTrader 5 (MT5) to trade XAUUSD (Gold) . The EA requires tight risk management with a strict $2.00 Stop Loss and a $3.00 to $5.00 Take Profit target. The goal is to achieve a 60%+ Win Rate . Please propose or implement a strategy algorithm capable of meeting the following performance requirements on XAUUSD tick data: Target Performance: $\ge 60\%$ Win
O Trading Ventures 30 - 2000 USD
a trading bot that can open and close trade by its self a stop loss of 1.2 lot size and good tp it should be able to learn trends and learn from its mistakes
JOB SPECIFICATION: Fully Automated ES/MES 5-Minute NY Opening Range Breakout EA 1. Project objective I am looking for an experienced trading algo developer to build a fully automated trading bot (EA) based on my specific 5-minute New York Opening Range Breakout strategy. The EA must identify setups, confirm breakouts, identify retests, confirm continuation, execute trades, calculate position size, place stop-loss and

Project information

Budget
60+ USD
Deadline
from 1 to 5 day(s)