Hey good day.
Allow me to explain my strategy. The strategy itself is not yet complete and I'm still trying to find the best confirguration.
But nonetheless here it is.
First Step is for EA to mark out the high and low of the first hour candle of XAUUSD once it opens for the day or the new day.
Picture 1

From Picture 1, we can all obviously see the period separator. That shows the end of the day and the start of the new day.
Since this is in M5, 12 X M5 candle equals to H1 thus that grey shaded box is the first hour.
EA will need to know the first hour Highest point and Lowest Point.
Pic 2

Now that EA has determine the first hour high and low, all it needs to do is wait for any candle to CLOSE ABOVE or CLOSE BELOW (in M5).
If close above high, EA will open Buy.
If close below low, EA will open Sell.
For lot size, please make an input for me. "First lot = "
If i were to insert 0.1, EA will only enter 0.1 lot size and nothing more.
For exit?
Kindly set TP 125 pips once EA opened an order.
Once hit TP, EA will NOT open any more order for the day and WAIT for the next day.
There are days when market will close below and close above the zones. Hence this next step is crucial too. The counter strategy.
Picture 3

I will now explain Picture 3 (counter strategy)

So firstly, EA will opened a sell order. As it was first seen a close below the zone.
Along the way, TP of 125 pips failed to be reached and a close above the zone was seen from the picture.
Once such senario occurs, EA will close the first position of sell at a loss and opened a COUNTER buy order.
At what lot size? Same as the input command from earlier above, EA will let me insert " First Lot =" and "Second Lot ="
Tp now for 2nd position instead of 125 pips, program the EA to TP 300 pips.
Picture 4

Kindly Program the EA for maximum "tries" of 3 per day. Limit the EA to only 3 times per day as picture above.
So far my backtesting, maximum number of fail is only 2 hence when i test, the 3rd entry it will always move to TP.
Picture above shows First Entry sell failed.
Second Entry Buy failed.
Third entry Sell was opened.
And price dropped 650 pips.
Like the command input for 1st Lot, 2nd lot, kindly also allow me to command the EA the lot size for the 3rd and final entry.
Once 3rd entry was triggered, program the EA to TP the third entry at 300 pips.
Important
- EA is in MT4
- Maximum "tries" per day is limit to 3.
- First Entry TP = 125 pips
- 2nd and 3rd Entry TP = 300 pips
- EA require my input for 1st, 2nd and 3rd lot size before the Smiley Face emerge.
- Once TP, EA will relax and wait for the next day signal zone.
There are days when i see market can give alot of pips even if it's on the first entry.
You can try and see for yourself.
Hence I'm open if you have any suggestions on trailing stop or how to maximize the profits.
Let me know if this EA can be done for XAUUSD, M5. Thank you.
Similar orders
I am offering a ready-to-use trading system that connects MetaTrader 4 signals with automated trading on Polymarket. The system is already fully developed and working. What the system does: The bot copies signals from a custom MT4 indicator and executes trades automatically on Polymarket prediction markets. How it works: A custom MT4 indicator generates BUY or SELL signals using buffers. When a signal appears, it is
DO NOT RESPOND TO WORK WITH ANY AI. ( I CAN ALSO DO THAT ) NEED REAL DEVELOPING SKILL Hedge Add-On Rules for Existing EA Core Idea SL becomes hypothetical (virtual) for the initial basket and for the hedge basket . When price hits the virtual SL level , EA does not close the losing trades. Instead, EA opens one hedge basket in the opposite direction. Original basket direction Hedge basket direction (opposite) Inputs
Trading specifications: Indicators: Bollinger band ( Period 40, Deviation 1 apply to close) Moving Average (Exponential ) Period 17 applied to high Moving Average ( Exponential ) Period 17 applied to low But Signal enter a buy trade when prices crosses the lower band of the bollinger band up and also crosses the moving average channel of high and low the reverse is true for sell signal
Hello, I am a user of the "BUY STOP SELL STOP V6" trading bot, which is an advanced Grid System bot. The bot is primarily designed for Gold (XAUUSD), but I want it to work on all currency pairs. "The bot contains a privacy/protection code that prevents it from running on other accounts or being modified on any platform, as it has a client account number lock mechanism" --- Bot Description & Current Settings Bot Type
I need Ea that executes trade based on trading view indicator called Market Structure CHoCH/BOS (Fractal) [LuxAlgo] I need developer to recreate the indicator as an Ea in MQL5 The core of the system will be a structured Market Structure engine that detects CHOCH (Change of Character) and BOS (Break of Structure) Signals will be confirmed once the indicator gave ( the bos/choch) no need to wait candle close
Looking to purchase a Good forex or gold/ BTC trading EA and it's source code. Must be compatible with low budget like less than $500 accounts, Must need no manual intervention and run fully automated. If you are interested in selling me the source code, please share the Read only account access where the EA has already been running on, so i can check past performance and get an idea on how it works or runs. Dont
Hello, I’m looking for an experienced MQL4/MQL5 developer to work with me on an ongoing basis. My clients request services such as: Converting TradingView Pine Script indicators/strategies into MT4 or MT5 Expert Advisors Converting MT4 EAs to MT5 (and MT5 to MT4) Compiling and fixing existing MQL4 / MQL5 EA code Adding simple features like alerts, SL/TP, lot size, and basic money management This job is for
I am looking someone to create an EA based on my MACD Histo indicator / strategy from Pinescript. I will send it to you for you to replicate. The EA shall have: - Divergence length in bars, min and max values. - Pivot Logic - Entry on close of divergence confirmation bar. - Dynamic lot size dependent on SL/TP, in monetary value. - SL / TP in percent away from entry, separate values for long and short. - Time, day and
Hello, I have a breakout EA with reversal logic. I own the full source code for both MT4 and MT5 versions. I need the modifications implemented for both MT4 and MT5 versions. I need several modifications: – Multiple reversals with configurable parameters – Breakeven functionality – Entry only after candle close beyond range + offset – Time-based activation – Alternative offset calculation logic – Automatic close at
PROJECT DESCRIPTION Looking for 1 experienced MQL5 developer to build 2 Expert Advisors for MetaTrader 5, targeting XAUUSD and major currency pairs. Strong preference for a single developer handling both EAs to maximize code reuse, reduce cost, and ensure consistency. EA1 — Grid Martingale Pro · Buy/Sell grid with Fixed or ATR Dynamic distance (ATR read once per fill, stored in grid_step_at_open[]) · Gap