Expert advisor based on candlesticks and the Relative Strength Index (RSI)

Job finished

Execution time 87 days

Specification

Final Trading System Specifications
1. Hedging Activation
Allow opening buy and sell positions simultaneously when entry conditions are met for each direction independently.
2. Smart Entry Logic
Candles Count: Analysis based on the last 72 candles.
Overall Trend Determination:
If the majority of candles are bullish → the trend is bullish.
If the majority of candles are bearish → the trend is bearish.
Buy Entry Conditions:
Overall trend is bullish.
The last candle close is above the average close of bullish candles.
RSI close is below 40.
When all conditions are met, buy positions start opening.
Sell Entry Conditions:
Overall trend is bearish.
Price is below the average close of bearish candles.
RSI close is above 60.
When all conditions are met, sell positions start opening.
3. Flexible Grid System
Up to 30 orders per direction (buy / sell).
Orders are distributed according to the predefined grid logic, independently for each direction.
4. Order Spacing Control (Price-Based / Percentage-Based)
A mandatory minimum distance between consecutive orders to prevent order clustering.
Spacing can be defined as:
A fixed price distance (e.g. $3 per order), or
A percentage of price (e.g. 0.3% per order).
Applied independently to buy and sell orders.
Works in conjunction with grid level duplication prevention.
5. Risk Management & Exit Rules
Take Profit:
Close all open positions when total profit reaches 5% of the cycle’s starting balance.
Account Protection Stop:
Close all positions and stop the cycle when total loss reaches 10%.
Always-On Exit Logic:
Exit rules remain active at all times, regardless of market conditions.
Cycle Reset:
After a cycle is closed (profit or loss), a new cycle can only start once entry conditions are met again.
6. Lot Size Management
The system supports multiple lot sizing methods:
Option A: Fixed Lot
A fixed lot size is used for the first order in each direction.
Option B: Dynamic Lot Sizing
Lot size is calculated based on account balance or equity, such as:
Lot per fixed balance amount (e.g. 0.01 lot per $1,000), or
A predefined risk percentage per trading cycle, automatically converted to lot size.
Grid Lot Scaling (Optional)
Ability to increase lot size per grid level using a lot multiplier.
With strict limits:
Maximum allowed lot size.
Maximum total lots per direction or for the entire account.
Automatic compliance with broker constraints (minimum lot, lot step, maximum lot).
7. News Behavior (Makkah Time)
Pre-News Cooldown (15:30 – 17:00)
Automatically increase grid spacing before high-impact news.
Prevent starting a new trading cycle before the news window (safe mode).
Only management of existing positions is allowed.
During News
Complete block on opening any new positions (initial or grid orders).
Risk management and exit rules remain active.
Post-News
Automatic return to normal operation:
Restore original grid spacing.
Allow new cycles only when entry conditions are met.
Spread filter and grid duplication prevention remain active.
8. Additional Safeguards
Spread filter enabled.
Grid level duplication prevention.
Flexible handling of time offset between Makkah time and broker/server time.
9. Order Opening Method (Progressive Batch Execution)
Orders are opened using a progressive batch execution method within the grid system.
Execution starts as follows:
Level 1: Open 1 order.
Level 2: Open 2 orders.
Level 3: Open 3 orders.
Level 4: Open 4 orders.
Level 5 and beyond: Open 5 orders per level as a maximum.
Opening 5 orders per level continues for all subsequent levels until the maximum allowed number of orders per direction is reached.
Execution Rules
Orders for each level are opened as a single batch when the following conditions are met:
The predefined grid spacing (price-based or percentage-based).
All entry conditions for the corresponding direction.
Additional orders are not opened if:
The maximum number of orders per direction has been reached.
Any risk management or news restriction is active.
This execution method is applied independently to buy and sell positions.
Integration with Risk Management
The following systems remain always active and have absolute priority over opening new batches:
Take Profit: +5% per trading cycle.
Account Protection Stop: −10% loss limit.

Responded

1
Developer 1
Rating
(13)
Projects
20
40%
Arbitration
1
0% / 100%
Overdue
1
5%
Free
2
Developer 2
Rating
(23)
Projects
34
53%
Arbitration
1
100% / 0%
Overdue
1
3%
Free
3
Developer 3
Rating
(457)
Projects
725
34%
Arbitration
35
71% / 9%
Overdue
23
3%
Free
4
Developer 4
Rating
(10)
Projects
15
20%
Arbitration
5
40% / 40%
Overdue
1
7%
Free
5
Developer 5
Rating
(185)
Projects
199
47%
Arbitration
4
50% / 25%
Overdue
1
1%
Working
6
Developer 6
Rating
(2678)
Projects
3422
68%
Arbitration
78
47% / 14%
Overdue
343
10%
Working
Published: 1 code
7
Developer 7
Rating
(369)
Projects
459
55%
Arbitration
24
58% / 17%
Overdue
31
7%
Working
8
Developer 8
Rating
(14)
Projects
15
20%
Arbitration
1
100% / 0%
Overdue
0
Free
9
Developer 9
Rating
(34)
Projects
35
40%
Arbitration
0
Overdue
3
9%
Free
10
Developer 10
Rating
(26)
Projects
32
28%
Arbitration
5
60% / 40%
Overdue
6
19%
Free
11
Developer 11
Rating
(2351)
Projects
2958
63%
Arbitration
125
44% / 26%
Overdue
429
15%
Free
12
Developer 12
Rating
(215)
Projects
280
21%
Arbitration
27
56% / 15%
Overdue
0
Loaded
13
Developer 13
Rating
(20)
Projects
26
38%
Arbitration
6
33% / 50%
Overdue
0
Free
14
Developer 14
Rating
(29)
Projects
36
39%
Arbitration
0
Overdue
2
6%
Free
15
Developer 15
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
16
Developer 16
Rating
Projects
0
0%
Arbitration
1
0% / 100%
Overdue
0
Free
17
Developer 17
Rating
(6)
Projects
7
14%
Arbitration
1
0% / 100%
Overdue
1
14%
Free
18
Developer 18
Rating
Projects
0
0%
Arbitration
1
0% / 0%
Overdue
0
Working
19
Developer 19
Rating
(271)
Projects
553
50%
Arbitration
57
40% / 37%
Overdue
227
41%
Working
Similar orders
Looking for a Complete Forex & Gold Signal System — Telegram Automation + Performance Tracking I’m looking for a complete automated trading signal solution for Forex pairs, including EUR/USD, GBP/USD and others, as well as gold (XAU/USD). Requirements: • An average of 2–3 quality signals per day across the selected instruments. Quality matters more than generating signals just to meet a quota. • A high win rate
I need a robot that will grow small accounts to bigger amounts like this one in this link, https://youtu.be/d38pMbJihew?si=3NeIOVyrlwDr4X_o. Please click the link and watch how this EA grow small accounts. Then create a robot like that. I will test it on demo first then if it does what i want, i will take it. Please it must be simply to use. It must set targets, for example, once it reaches $500 profit, it must
Here is a professional, detailed requirements specification draft for your MQL5 freelance order based on your prompt: ​ Strategy Objective: Develop an automated Expert Advisor (EA) featuring a 1:3 Risk-to-Reward ratio optimized for a small starting budget. ​ Core Trading Logic: ​Execute automatic Buy and Sell trades using high-probability entry signals. ​Target a strict 90% theoretical win-rate structure through
i want to fix my gold martingale bot MT5. RSI 14 ENTRY 30 BUY 70 SELL Lot 0.02 0.04 0.07 TP 150 for all SL 90 30 30 once total daily profit is 200$ stop trading stop trading once 2 consecutives total losses stop trading if spread exceeded 30 and between hour 15 & 17 PM Move SL to breakeven point once the profit exceeded 50 from from breakeven thanks
MarketMind Breakout Pro XAUUSD H1 — Donchian Breakout EA Project type: Personal EA development and backtesting Platform: MetaTrader 5 Instrument: XAUUSD Timeframe: H1 Strategy: Donchian Channel breakout with EMA 200 Project overview This project evaluates a Donchian breakout trading strategy for XAUUSD on the H1 timeframe. The system uses channel-based breakout conditions and an EMA 200 trend filter. Historical
The purpose of this order is ONLY to test and implement my H1 POI (Point of Interest) identification logic correctly. I am not requesting the complete EA at this stage. I will provide the exact rules for identifying the H1 POI after selecting the developer. The developer must convert those rules into clear, deterministic MQL5 logic. Requirements: Analyze H1 candles according to the rules I provide. Identify and mark
Title: Fully Automatic MT5 Trading Bot (Expert Advisor) with Risk Management I want a fully automated trading robot (Expert Advisor) for MetaTrader 5, written in MQL5. The bot must automatically analyse market data, identify trading opportunities, execute BUY and SELL orders, manage open positions, and close trades according to predefined rules without requiring manual confirmation for each trade. Requirements
Hello, I’m looking for an experienced developer to research, build, test, and install a fully automated MetaTrader 5 trading bot for gold, XAUUSD. My total development and installation budget is $300, including all agreed work and fees. My goal is to pass a $100,000 FTMO US Two-Step Standard evaluation and sustainably maintain the funded account. I need a day-trading strategy that can buy in bullish markets and sell
I have three indicators that operate independently. I want to combine them into one indicator with custom expert programming that automatically enters trades when a signal is generated by one of the indicators. I will pay for this service Thanks you
Existing EA: NEW_CORE_ORB_M5_v021 | MT5 | XAUUSD M5 Early-stage research prototype, not a new EA from scratch. Need an experienced MQL5 developer to audit, complete, repair, improve and test BOTH independent strategies equally: Opening Range Breakout (ORB) and Scalp. Keep code lightweight and preserve an untouched baseline. No unnecessary rewrite or complex filters. 1. ORB Strategy Verify opening-range construction

Project information

Budget
30 - 60 USD
Deadline
from 1 to 2 day(s)