Author of the Idea: Scriptor, MQL5 Code Creator: barabashkakvn.
Meet Hans123_Trader, your go-to Expert Advisor (EA) for navigating the MetaTrader 5 platform. This nifty tool automatically places pending Buy Stop and Sell Stop orders, making your trading experience smoother than ever. The EA scans for the highest and lowest prices within a specified range of bars—set to 80 in this setup—to determine where to place your orders. Buy Stops are triggered at the highest price, while Sell Stops are set at the lowest.
One of the standout features of this EA is that pending orders remain active until the end of the trading day. Once one of these orders is activated, all the others are automatically canceled, ensuring a streamlined trading process.
Here's a quick example of how it works on the EURUSD pair on a 5-minute chart:

Input Parameters
- Lots: Volume for pending orders
- Stop Loss (in pips): The value for your Stop Loss
- Take Profit (in pips): The value for your Take Profit
- Trailing Stop (in pips): Your trailing stop value
- Trailing Step (in pips): The step value for trailing
- Start Hour: When trading begins
- End Hour: When trading wraps up
Related Posts
- CCICOMA Strategy Tester Report for EURCHF: An In-Depth Analysis
- Unlocking Trading Success with the 3MaCross EA for MetaTrader 4
- Harnessing MQL5 Wizard for Trading Signals: 3 Black Crows & 3 White Soldiers with MFI
- Mastering NirvamanImax: Your Go-To EA for MetaTrader 4
- Unleashing RndTrade: A Simple Strategy for MetaTrader 4