Candle Breakout Strategy Bot to backtest and trade live.

MQL5 Experts

Specification

Hello! I am looking for an experienced developer to build a robust, customizable Expert Advisor (MT4/MT5) or a standalone Python bot.

The strategy is based on pure Price Action (Support & Resistance breakouts) on the XAUUSD (Gold) 30-Minute chart. It relies heavily on "human-like" chart analysis, such as looking left for targets, waiting for a price pullback (a "flip") before entering, and managing the trade based on candle anatomy.

Since I want to backtest and optimize this strategy extensively, almost every hardcoded value in this brief needs to be a customizable input variable in the settings UI.

Please read the logic below carefully.


1. Session & Time Filters

The bot must only analyze the chart and execute trades during specific market windows.

  • London Session: 06:00 - 10:00 (Broker time / specify offset).

  • New York Session: 12:00 - 16:00.

  • Max Trades: The bot should stop trading after taking [X] trades per day.

2. Pre-Session Analysis: "Look Left & Shift" Logic (CRUCIAL)

Before considering an entry, the bot must map the Support/Resistance (S&R) and Targets.

  • Defining a Level: * Resistance: A bullish candle immediately followed by a bearish candle. The level is drawn at the highest body (math.max(open, close)).

    • Support: A bearish candle immediately followed by a bullish candle. The level is drawn at the lowest body (math.min(open, close)).

  • The 300 Points Rule & Shifting:

    1. The bot looks left to find the first Resistance (R).

    2. It looks further left to find the next Resistance (Target Resistance = RT).

    3. The Check: Is the distance between R and RT >= 300 points (30 pips)?

    4. The Shift: If the distance is LESS than 300 points, the initial Resistance (R) is ignored. The old RT becomes the new R, and the bot looks further left for a new RT. This continues until a valid >= 300 point gap is found. (Same logic applies to Support).

  • The "Blue Sky" Exception: If the bot looks left for [X] days/candles and cannot find a Target Resistance or Target Support (e.g., at an All-Time High), the target is considered "Infinite" (Free space), and the trade is allowed.

3. Breakout Confirmation

A valid setup occurs when:

  • A 30M candle strictly closes beyond the valid Resistance (for Long) or Support (for Short).

  • The Anatomy Rule: The breakout candle must have a wick on the breakout side. (e.g., A bullish breakout candle must have an upper wick; a bearish breakout candle must have a lower wick).

4. The Ideal "Flip" Entry (Live Tick Execution)

The bot does NOT enter blindly at the close of the breakout candle. It waits for the next candle (Candle 2) to "Flip":

  1. The Pullback: Candle 2 opens and MUST initially move in the opposite direction (e.g., moves down after a bullish breakout, creating a lower wick).

  2. The Entry Trigger: When Candle 2 reverses and crosses back over its own Open price (or [X] points past the open/wick), the bot executes a Market Order.

  3. Time-out: If the "Flip" does not happen within [X] candles after the breakout, the setup is invalidated and canceled.

5. Stoploss, Take Profit & Range Check

  • Stoploss (Aggressive): Placed at the opposite body of the Breakout Candle. (e.g., For a Long, SL is at the bottom of the bullish breakout candle's body).

  • Take Profit: A strict 1:1 Risk/Reward ratio based on the physical Stoploss distance.

  • Final Range Check: Before executing the entry, calculate the 1:1 TP distance. If this TP level physically sits beyond the Target line (RT or ST), the trade is cancelled.

6. Trade Management: Two Red Flags (Break-Even)

While in an active trade, monitor the close of every new 30M candle. Move the Stoploss to Break-Even IF a single 30M candle meets both criteria:

  1. It closes against the trade direction (e.g., a bearish close in a Long trade).

  2. It takes out the high/low of the previous candle.


7. Required Customizable Inputs (User UI)

I need to be able to tweak these settings easily:

  • Risk Management: Risk per trade (% of Equity), Max Spread allowed (Points), Max Slippage.

  • Time Management: Session 1 Start/End, Session 2 Start/End, Max Trades Per Day.

  • Level Logic: Minimum distance between S/R and Target (Default: 300 points), Max Lookback Period for Targets (Days or Candles), Trade if no target found? (True/False).

  • Entry Logic: Flip Time-out (How many candles can pass before the flip is invalid? Default: 1). Entry offset (Enter exactly at open, or X% into the wick?).

  • Trade Management: Enable/Disable the Two Red Flags Break-Even logic.


Questions for the Developer:

  1. Have you built "Look Left" array-based Support/Resistance logic before?

  2. Do you understand the "Flip" live-tick execution on the candle following the breakout?

  3. Which platform do you recommend for this specific logic to ensure the highest quality backtesting (MT4, MT5, or Python), and why?

  4. What is your estimated timeline and price for this project?

Thank you for your time. I am looking for a high-quality, long-term developer to work with!


Responded

1
Developer 1
Rating
(12)
Projects
19
42%
Arbitration
3
0% / 67%
Overdue
3
16%
Free
2
Developer 2
Rating
(15)
Projects
19
16%
Arbitration
5
40% / 40%
Overdue
0
Free
3
Developer 3
Rating
(249)
Projects
311
28%
Arbitration
33
27% / 64%
Overdue
10
3%
Free
4
Developer 4
Rating
(168)
Projects
199
48%
Arbitration
3
33% / 33%
Overdue
2
1%
Free
5
Developer 5
Rating
(501)
Projects
968
74%
Arbitration
27
19% / 67%
Overdue
100
10%
Loaded
Published: 1 article, 6 codes
6
Developer 6
Rating
(59)
Projects
86
28%
Arbitration
24
13% / 58%
Overdue
7
8%
Loaded
7
Developer 7
Rating
(22)
Projects
33
52%
Arbitration
1
100% / 0%
Overdue
1
3%
Free
8
Developer 8
Rating
(64)
Projects
83
28%
Arbitration
9
33% / 56%
Overdue
9
11%
Free
Published: 1 code
9
Developer 9
Rating
(2)
Projects
1
0%
Arbitration
2
0% / 50%
Overdue
0
Free
10
Developer 10
Rating
(119)
Projects
169
38%
Arbitration
9
78% / 22%
Overdue
15
9%
Free
11
Developer 11
Rating
(547)
Projects
630
33%
Arbitration
38
39% / 50%
Overdue
11
2%
Working
12
Developer 12
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
13
Developer 13
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
14
Developer 14
Rating
(11)
Projects
15
13%
Arbitration
4
25% / 25%
Overdue
4
27%
Loaded
15
Developer 15
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
16
Developer 16
Rating
(32)
Projects
35
34%
Arbitration
5
0% / 80%
Overdue
0
Working
Published: 2 codes
17
Developer 17
Rating
(3)
Projects
1
100%
Arbitration
3
0% / 100%
Overdue
0
Free
Similar orders
Ready hft bot 100+ USD
hello great developer We want a bot like this that flips small accounts We need a bot that works live account and flips small accounts but places 2 direction buy stop and sell stop at the same time brother
SavannaFX Pro 100+ USD
//+------------------------------------------------------------------+ //| SavannaFX Pro | //| Created for Junior | //+------------------------------------------------------------------+ #property strict input int FastMA = 20; input int SlowMA = 50; input int RSIPeriod = 14; input double LotSize = 0.1; input int StopLoss = 300; input int TakeProfit = 600; int
Recent EA 30+ USD
PROP-FIRM FOREX EA (SAFE MODE) 1. EA OBJECTIVE Develop a low-drawdown, high-discipline Forex EA designed to: Pass prop-firm challenges Respect strict risk rules Trade consistently, not aggressively 2. TRADING STYLE Strategy type: Trend continuation + pullback No scalping noise No martingale No grid No hedge abuse 3. TIMEFRAME & SESSIONS Primary TF: M15 Confirmation TF: H1 Trading sessions: London Open → London Close
How long would it take to install automated trading on Ninjatrader and what information would you need ? It urgent if anyone can help with this kind do well by biding to this project and let discuss more
Specification Hi Free lancers, I need an EA which relates to Sure Fire Hedging EA base on Below parameters needed. Overview how it works: This EA will be able to open a trade with either Buy or Sell selection (manual- to be manually switch buy or sell selection ), another selection for automatic open trading can choose only buy. Once the EA already open trade (example -buy position) with starting lot size 0.01
Hedge Lot Plus EA Descriptions: (New EA) 1- The necessary explanations, documentation, and working principle details will be provided after the contract is signed. 2- The chart, button, and dashboard- template sample code will be provided. 3- There is no indicator. and work principle is easy. ** After the contract is signed,sampe code, a sample EA for "Hedge Lot Plus EA" and detailed information about the working
Experienced developer needed for a $100 project. I need to build three trading bots to copy signals from a Telegram channel and execute them on a trading account. The first bot will be used in the second and third bots as well, with some minor modifications. I will pay $40 for the first bot, $30 for the second, and $30 for the third. Contact me for details
1- Parts to Be Updated in Universal EA: 1- For Mode 2 (No Indicator Mode), a candle count parameter will be added for pivot breakout. The EA will determine how many candles after the pivot breakout it will add a position based on this parameter. 2- In Mode 1 (MA Mode), we will fix the error in one of the "Select Take Profit" modes called "Kill Position + Clean One by One." 3- We will fix the errors in Recovery Mode
Data Integrity 500 - 1000 USD
The trading bot is an automated software system designed to monitor financial markets, execute trades, and manage risk based on predefined strategies. The bot aims to maximize profits while minimizing human intervention and emotional decision-making. Scope: Supports automated trading on selected exchanges (e.g., Binance, Bitget, Coinbase). Executes trades based on technical indicators, signals, or AI models. Provides
1. General Objective Development of an Expert Advisor in MQL5 intended for Futures markets , based on an existing trading strategy that I will provide (described logic or precise rules). The main objectives are: Faithful implementation of the strategy , Full debugging of the EA, Validation of correct behavior through backtesting. 2. Markets and Instruments Markets: Futures Symbols: to be defined (e.g. indices

Project information

Budget
30 - 400 USD
VAT (21%): 6.3 - 84 USD
Total: 36 - 484 USD
For the developer
27 - 360 USD

Customer

Placed orders1
Arbitrage count0