Unlock AI power-ups — upgrade and save 20%!
Use code STUBE20OFF during your first month after signup. Upgrade now →
By No Shenanigans
Published Loading...
N/A views
N/A likes
Get instant insights and key takeaways from this YouTube video by No Shenanigans.
EA Performance and Trading Logic
📌 The Expert Advisor (EA) demonstrated a 90% win rate on both short and long trades over 1.5 years, processing 680,000 trades in just over 500 days.
📈 Starting with a balance of €1,000, the backtest showed an ending balance of €1.5 billion (noting backtest results are highly unrealistic due to zero slippage/execution delay).
⚙️ The core logic involves placing two stop orders at a fixed distance; if one fills and profits, the stop loss trails aggressively, and scaling in occurs by placing a new order in the same direction.
⚠️ High order frequency leads to warnings or bans from brokers; efficient trading sessions must be limited, potentially to 10-15 minutes per day, with potential returns of 2.5% in 10 minutes.
MQL5 Coding Structure and Variables
🛠️ The coding process began by setting up the basic MQL5 structure: global variables, initialization, deinitialization, and the `OnTick` function, using the included CTrade library for operations.
🔗 Key input variables were established, including settings for lot sizing (fixed vs. percentage of balance/equity/margin) and order parameters based on spreads (e.g., Order Distance, Stop Loss, Trailing Cost).
🔄 The Initialization function sets crucial broker parameters like minimum/maximum lot sizes, stop levels, and freeze levels, adjusting internal variables accordingly.
⏱️ The OnTick function manages commission/spread adjustments, historical data management (spread array), and complex calculations for dynamic order adjustments and stop-loss trailing based on defined parameters.
Order Management and Modification Code
🔄 The code iterates through existing pending orders (Buy Stop/Sell Stop) to check if they are within the allowed trading time window and if current spreads exceed the maximum allowed threshold, deleting them if conditions are not met.
🏃 Trailing logic for open positions dynamically calculates the required trailing distance based on price movement, minimum required stop distance, and user-defined factors (like `max trailing limit`).
🎯 New orders (Buy Stop/Sell Stop) are generated only after confirming margin availability, ensuring the calculated lot size adheres to broker minimums, and respecting minimum order intervals between trades.
Key Points & Insights
➡️ The EA's high-frequency trading approach (680,000 trades in 500 days) requires extreme caution regarding broker limits and risk of being banned.
➡️ Modifications planned include switching scaling-in logic to only occur when existing positions are already in profit, moving away from scaling in while the initial stop loss is still active.
➡️ Users are encouraged to test different settings and share successful modifications with the community, as the provided code is a foundation derived from an obscure source.
➡️ Testing will focus on MT5 due to its lower minimum lot size (0.1 vs. 1.0 on MT4 for US30), making realistic low-capital testing more manageable.
📸 Video summarized with SummaryTube.com on Dec 07, 2025, 10:17 UTC
Find relevant products on Amazon related to this video
As an Amazon Associate, we earn from qualifying purchases
Full video URL: youtube.com/watch?v=Wwn-ofy14QI
Duration: 2:21:11
Get instant insights and key takeaways from this YouTube video by No Shenanigans.
EA Performance and Trading Logic
📌 The Expert Advisor (EA) demonstrated a 90% win rate on both short and long trades over 1.5 years, processing 680,000 trades in just over 500 days.
📈 Starting with a balance of €1,000, the backtest showed an ending balance of €1.5 billion (noting backtest results are highly unrealistic due to zero slippage/execution delay).
⚙️ The core logic involves placing two stop orders at a fixed distance; if one fills and profits, the stop loss trails aggressively, and scaling in occurs by placing a new order in the same direction.
⚠️ High order frequency leads to warnings or bans from brokers; efficient trading sessions must be limited, potentially to 10-15 minutes per day, with potential returns of 2.5% in 10 minutes.
MQL5 Coding Structure and Variables
🛠️ The coding process began by setting up the basic MQL5 structure: global variables, initialization, deinitialization, and the `OnTick` function, using the included CTrade library for operations.
🔗 Key input variables were established, including settings for lot sizing (fixed vs. percentage of balance/equity/margin) and order parameters based on spreads (e.g., Order Distance, Stop Loss, Trailing Cost).
🔄 The Initialization function sets crucial broker parameters like minimum/maximum lot sizes, stop levels, and freeze levels, adjusting internal variables accordingly.
⏱️ The OnTick function manages commission/spread adjustments, historical data management (spread array), and complex calculations for dynamic order adjustments and stop-loss trailing based on defined parameters.
Order Management and Modification Code
🔄 The code iterates through existing pending orders (Buy Stop/Sell Stop) to check if they are within the allowed trading time window and if current spreads exceed the maximum allowed threshold, deleting them if conditions are not met.
🏃 Trailing logic for open positions dynamically calculates the required trailing distance based on price movement, minimum required stop distance, and user-defined factors (like `max trailing limit`).
🎯 New orders (Buy Stop/Sell Stop) are generated only after confirming margin availability, ensuring the calculated lot size adheres to broker minimums, and respecting minimum order intervals between trades.
Key Points & Insights
➡️ The EA's high-frequency trading approach (680,000 trades in 500 days) requires extreme caution regarding broker limits and risk of being banned.
➡️ Modifications planned include switching scaling-in logic to only occur when existing positions are already in profit, moving away from scaling in while the initial stop loss is still active.
➡️ Users are encouraged to test different settings and share successful modifications with the community, as the provided code is a foundation derived from an obscure source.
➡️ Testing will focus on MT5 due to its lower minimum lot size (0.1 vs. 1.0 on MT4 for US30), making realistic low-capital testing more manageable.
📸 Video summarized with SummaryTube.com on Dec 07, 2025, 10:17 UTC
Find relevant products on Amazon related to this video
As an Amazon Associate, we earn from qualifying purchases

Summarize youtube video with AI directly from any YouTube video page. Save Time.
Install our free Chrome extension. Get expert level summaries with one click.