Explore the power of algorithmic trading with innovative techniques for combining strategies in MetaTrader 5. Harness the potential of a genetic optimizer to refine trading strategies collectively, boosting profitability through collaborative decision-making. However, this approach revealed an unexpected outcome: strategies with high correlation might inadvertently be selected, highlighting the need for revising selection methods. Delve into Python for data analysis using libraries like Pandas and scikit-learn, where statistical models can enhance strategy validation. Furthermore, leverage ONNX for neural network deployment, ensuring model independence and easy integration. Although initial results were suboptimal, careful revision promises enhanced trading performance through uncorrelated strategy analysis.
π Read | Forum | @mql5dev
#MQL5 #MT5 #Strategy
π Read | Forum | @mql5dev
#MQL5 #MT5 #Strategy
β€65π11π¨βπ»4π€1
An Expert Advisor showcases functionality for order placement followed by modifications to set Stop Loss and Take Profit values. It features a mechanism where any open order is closed precisely 30 seconds after execution. This behavior suits strategies that rely on predefined trade lifespan, using exact timing for entries and exits. The application of fixed-duration trades helps in managing exposure with time-sensitive precision. Automating such processes can aid in backtesting strategies reliant on short-term price movements, enhancing decision-making and operational efficiency.
π Read | VPS | @mql5dev
#MQL4 #MT4 #EA
π Read | VPS | @mql5dev
#MQL4 #MT4 #EA
β€40π¨βπ»6β4π€4π€4π3π1
In the latest article, the development of a London Session Breakout System in MetaTrader 5 (MQL5) takes center stage. This system is designed to harness the volatility of the London market open by pinpointing pre-session price ranges and executing pending orders. It integrates advanced risk management tools such as risk-to-reward ratios, drawdown limits, and a real-time monitoring control panel. Detailed implementation steps are provided, including range calculation, order placement, and creation of a dynamic user interface for traders. The article culminates in a robust algorithm ready for backtesting and further refinement, offering significant practical benefits for traders and developers alike.
π Read | Forum | @mql5dev
#MQL5 #MT5 #TradeSystem
π Read | Forum | @mql5dev
#MQL5 #MT5 #TradeSystem
β€25π7π5π¨βπ»4π2
Explore the intersection of algorithmic trading and machine learning with a focus on enhancing the Awesome Oscillator and Envelope Channels using advanced CNN techniques. This approach leverages a dynamic CNN architecture guided by dot product cross-time attention, optimizing kernel and channel sizes. The method captures dependencies across time, crucial for non-stationary financial data. While offering significant adaptability, it incurs computational cost and the risk of overfitting. Alternatives like dilated or adaptive convolutions are also considered for efficiency. Detailed Python implementations illustrate encapsulating Awesome Oscillator and Envelopes Channels, showcasing practical applications for traders and developers.
π Read | Forum | @mql5dev
#MQL5 #MT5 #Indicator
π Read | Forum | @mql5dev
#MQL5 #MT5 #Indicator
β€30π13π9π3π¨βπ»3π2π€―2
Machine learning continues to evolve rapidly, propelled by data growth and complex algorithms. Optimization remains crucial, with the ADAM algorithm emerging as a particularly effective method since its introduction in 2014. It was developed by D. P. Kingma and J. Ba for optimizing neural network weights, owing to its adaptive moment estimates.
ADAM's design offers several advantages: simplicity, computational efficiency, low memory requirements, and independence from gradient rescaling. However, its reliance on analytical gradients limits its application scope. A new proposal suggests a population-based adaptation, extending its use beyond neural networks to broader optimization challenges.
This approach involves transitioning ADAM into a stochastic, population-based algorithm. The C_AO_ADAM class implements a version that integrates randomness and hybrid...
π Read | Calendar | @mql5dev
#MQL5 #MT5 #Algorithm
ADAM's design offers several advantages: simplicity, computational efficiency, low memory requirements, and independence from gradient rescaling. However, its reliance on analytical gradients limits its application scope. A new proposal suggests a population-based adaptation, extending its use beyond neural networks to broader optimization challenges.
This approach involves transitioning ADAM into a stochastic, population-based algorithm. The C_AO_ADAM class implements a version that integrates randomness and hybrid...
π Read | Calendar | @mql5dev
#MQL5 #MT5 #Algorithm
β€62π8π7β‘3π3π¨βπ»3
An Expert Advisor evaluates the closing of the last five candles to identify trends and initiate a buy trade based on the analysis. Users can define stop-loss and take-profit levels in the input parameters to manage risk and potential profit. This setup provides traders with a structured approach to capture market movements by analyzing recent price action, leveraging programmable functions for systematic trading. It's a strategy that encapsulates decision-making in the forex market, emphasizing adaptability and user control over key trading metrics. The simplicity of input adjustments for SL and TP ensures customization for various trading environments and risk management preferences.
π Read | Calendar | @mql5dev
#MQL4 #MT4 #EA
π Read | Calendar | @mql5dev
#MQL4 #MT4 #EA
β€40π8β‘3π¨βπ»3
Dive into the world of MQL5 with Part 19 of the series, focusing on implementing the Wolfe Wave pattern in algorithmic trading. This segment transitions from theory to execution, teaching how to programmatically identify and trade the Wolfe Wave, a critical price reversal structure. Learn to detect key swing points, apply Fibonacci expansions, and draw crucial trend lines for pattern confirmation. Understand symmetry checks to ensure pattern integrity, while using MQL5 to label and visualize waves directly on the chart. Enhance your EA by implementing logic to confirm trades and manage risks effectively, ensuring reliable patterns and clear insights for traders and developers.
π Read | Calendar | @mql5dev
#MQL5 #MT5 #MQL5
π Read | Calendar | @mql5dev
#MQL5 #MT5 #MQL5
β€42π9β4π¨βπ»4
In Part 6, a Dynamic Holographic Dashboard is developed in MetaQuotes Language 5 (MQL5). It displays multi-symbol and timeframe indicators such as the Relative Strength Index (RSI) and volatility based on the Average True Range (ATR). Enhanced with pulse animations, sorting, and interactive controls, the tool optimizes tradersβ analysis processes.
The dashboard architecture integrates real-time data with sorting, alerts, and visual effects, using arrays for data management and indicator functions. A centralized update loop ensures the UI remains responsive.
Implementation begins with defining metadata and inputs, incorporating arrays for symbol lists and error logging. Global variables manage data and indicators, employing classes for efficient object handling. Initialization and update functions maintain real-time data flow for strategic trading.
π Read | AlgoBook | @mql5dev
#MQL5 #MT5 #Dashboard
The dashboard architecture integrates real-time data with sorting, alerts, and visual effects, using arrays for data management and indicator functions. A centralized update loop ensures the UI remains responsive.
Implementation begins with defining metadata and inputs, incorporating arrays for symbol lists and error logging. Global variables manage data and indicators, employing classes for efficient object handling. Initialization and update functions maintain real-time data flow for strategic trading.
π Read | AlgoBook | @mql5dev
#MQL5 #MT5 #Dashboard
β€75π10π¨βπ»8π7π€3π2β‘1
The "Eliot Waves" EA targets trendlines via Zigzag for trading when an Elliot retracement occurs. It's equipped with Trailing Stop Loss, Take Profit, and is versatile across time frames, applicable to major forex pairs and NASDAQ stocks. Designed for execution at open candle prices, its parameter "IncreaseFactor" controls lot size increases after losses.
The EA integrates moving averages and trendlines, although only moving averages work in test mode. In live trading, they function concurrently, with the trendline acting as a filter. For accurate tests, employ the "open prices only" setting. This setup aims to enhance trade success probability.
Key inputs involve take profit settings in money/percent, trailing stop features, and drawdown control. Regular optimization every few months is advised, considering use as hedging grid EA or solo trade EA.
π Read | CodeBase | @mql5dev
#MQL4 #MT4 #EA
The EA integrates moving averages and trendlines, although only moving averages work in test mode. In live trading, they function concurrently, with the trendline acting as a filter. For accurate tests, employ the "open prices only" setting. This setup aims to enhance trade success probability.
Key inputs involve take profit settings in money/percent, trailing stop features, and drawdown control. Regular optimization every few months is advised, considering use as hedging grid EA or solo trade EA.
π Read | CodeBase | @mql5dev
#MQL4 #MT4 #EA
β€43π¨βπ»6π4π₯2β‘1π€1
A new indicator update enables easy tracking of when a price reaches a specified time across any candle or timeframe. Ideal for those monitoring market sessions or specific time zones, this tool aids in executing trades at precise times, e.g., 9.00 am. Version 1.1 introduces the day of the week feature, aiding in recalling the trading day. Customization options include line width, color, and position of the time text relative to the current candle. This update offers enhanced flexibility and convenience. Ensure it aligns with your trading strategies for optimal results.
π Read | Calendar | @mql5dev
#MQL5 #MT5 #Indicator
π Read | Calendar | @mql5dev
#MQL5 #MT5 #Indicator
β€20π4π¨βπ»4β2π1
The SuperTrend Indicator provides a robust tool for accurately detecting market trends, integrating seamlessly within price charts. Designed for traders across various styles, including scalping and swing trading, it adjusts for volatility using the Average True Range (ATR) and adapts swiftly to reversals.
Highlighted features include real-time trend updates, specific buy/sell signals with price line interaction, and built-in noise reduction. It functions across all timeframes and instruments such as forex, stocks, and cryptocurrencies, making it versatile for traders of all experience levels. The indicator can be paired with strategies like EMA or support/resistance approaches.
Key settings include the ATR period, multiplier, price type, line width, and customizable trend colors. For application, a closing price above the SuperTrend line implies a bul...
π Read | VPS | @mql5dev
#MQL5 #MT5 #Indicator
Highlighted features include real-time trend updates, specific buy/sell signals with price line interaction, and built-in noise reduction. It functions across all timeframes and instruments such as forex, stocks, and cryptocurrencies, making it versatile for traders of all experience levels. The indicator can be paired with strategies like EMA or support/resistance approaches.
Key settings include the ATR period, multiplier, price type, line width, and customizable trend colors. For application, a closing price above the SuperTrend line implies a bul...
π Read | VPS | @mql5dev
#MQL5 #MT5 #Indicator
β€25π6π4π1π¨βπ»1
Explore the evolution of trading analytics through Candle-Range Theory (CRT) in MetaTrader 5, a groundbreaking framework that defines market movements with precision. By categorizing each completed candle into Large-Range, Small-Range, Inside Bar, or Outside Bar based on ATR, CRT offers an innovative toolset. The CRangePattern class, CRT Indicator, and CRT Expert Advisor collectively enable advanced, non-repainting trading signals, with minimal CPU usage and full customizability. Suitable for diverse instruments, CRTβs modular architecture enhances strategy portability, empowering traders and developers to seamlessly integrate actionable insights into their trading systems while ensuring robust compatibility with future trading environments.
π Read | Docs | @mql5dev
#MQL5 #MT5 #Algorithm
π Read | Docs | @mql5dev
#MQL5 #MT5 #Algorithm
β€24π10π¨βπ»3π1
The exploration into enhancing a News Headline EA has revealed promising strategies for trading around high-impact news like Non-Farm Payroll releases. By developing a MetaTrader 5 Expert Advisor (EA), the goal was to automate post-news trading by observing historical chart data to understand market behaviors following such events. The EA utilizes algorithmic precision to highlight NFP release times, allowing traders to study and identify patterns in price movements. By leveraging custom logic for NFP event identification and dynamic back-testing, developers can refine entry setups that target sustained post-event momentum, enhancing strategy efficacy and precision for algorithmic trading solutions.
π Read | Quotes | @mql5dev
#MQL5 #MT5 #EA
π Read | Quotes | @mql5dev
#MQL5 #MT5 #EA
β€24π7π¨βπ»4π₯1
Python and MQL5 provide alternatives for task scheduling beyond repetitive tasks. In MQL5, OnTimer provides basic scheduling for functions, a method with limited flexibility for tasks requiring different time intervals. For algorithmic trading, Python's schedule module offers a human-friendly approach to scheduling tasks with more precision based on day or week timings. This module's advantage lies in its ability to handle various scheduling needs without sacrificing code simplicity.
MQL5 can adopt a similar structure, creating a system where schedules are managed with a class, allowing task execution based on user-defined intervals. This can be beneficial for trading activities that require precise timing for actions like opening trades or sending trading reports.
π Read | VPS | @mql5dev
#MQL5 #MT5 #Algorithm
MQL5 can adopt a similar structure, creating a system where schedules are managed with a class, allowing task execution based on user-defined intervals. This can be beneficial for trading activities that require precise timing for actions like opening trades or sending trading reports.
π Read | VPS | @mql5dev
#MQL5 #MT5 #Algorithm
β€33π10β4π¨βπ»4
Traders who favor minimalistic charts can benefit from this lot size calculation script for Forex and CFD instruments. Choose between RiskByPercent for percentage-based risk or RiskByAmount for a fixed value. Enter your stop loss in pips suitable for 4-digit brokers; the script adapts for 5-digit brokers. If the calculated lot size falls below or above broker limits, the script adjusts to the nearest allowable value. Alerts provide details on the calculated lot size, risk amount, converted stop loss, and tick value. This tool aids in precise trade entry and can be customized or integrated with existing Expert Advisors for enhanced functionality.
π Read | NeuroBook | @mql5dev
#MQL4 #MT4 #Forex
π Read | NeuroBook | @mql5dev
#MQL4 #MT4 #Forex
β€32π₯6π5π¨βπ»4β3π2
Efficient trade management is crucial for optimizing returns and minimizing risk. This script is designed for traders who prefer uncluttered charts, enabling precise lot size calculation for Forex or CFD trading. Choose between two options: RiskByPercent for managing risk by a percentage of equity, or RiskByAmount for a fixed monetary risk. Input your stop loss in pips, especially relevant for 4-digit brokers. The script intelligently adapts for 5-digit brokers and respects broker-imposed lot size restrictions. Upon calculation, it provides an alert detailing the lot size, risk amount, adjusted stop loss, and instrument tick value. This versatile script can be customized or incorporated into an existing Expert Advisor to align with specific trading strategies.
π Read | NeuroBook | @mql5dev
#MQL5 #MT5 #script
π Read | NeuroBook | @mql5dev
#MQL5 #MT5 #script
β€39π5π3π¨βπ»2π1
Explore the innovative approach to elevating your MetaTrader 5 logging with the Logger class, providing structured message outputs for enhanced readability. Discover how connecting logs to the Seq system enables real-time analysis with an intuitive JSON format and SQL queries, streamlining the identification of application issues. Learn how to implement the autonomous Logger class, using clear severity levels, which fits seamlessly within your code without additional dependencies. Delve into importing existing logs into Seq for comprehensive analysis. This technique empowers developers to efficiently debug and grasp application events, transforming how trading systems are monitored and optimized.
π Read | Freelance | @mql5dev
#MQL5 #MT5 #Logging
π Read | Freelance | @mql5dev
#MQL5 #MT5 #Logging
β€57π9π¨βπ»5β3
A new tool is available featuring GUI buttons "Close Buys" and "Close Sells" with options for customizable colors, positions, and text. It integrates dynamic visibility, hiding buttons when no positions exist, which is optional for user preference. The tool provides efficient position closure by allowing traders to close all buy or sell positions with a click. It also displays net profit, taking into account profit, swap, and commissions. Event handling is executed through a 100ms timer for updates and utilizes chart events for button clicks. The tool calculates net profit by incorporating commission data from trade history, facilitating simplified trade management on specific symbols. Users are encouraged to provide feedback or report issues on the MQL5 CodeBase page or via the MQL5 community for future enhancements.
π Read | Calendar | @mql5dev
#MQL5 #MT5 #Trading
π Read | Calendar | @mql5dev
#MQL5 #MT5 #Trading
β€38β‘4π4π¨βπ»3
The MT5 indicator identifies bearish spike formations through a specific three-candle pattern: Red-Green-Red. The first and third candles are strong bearish spikes with bodies over 70% of the candle range. The middle candle is a bullish retracement. When detected, the indicator visually marks this "supply zone" with a box around the high/low of these candles. An entry line is plotted at the middle candle's open price. The line remains until the price returns to that level, indicating a potential re-entry point.
This tool operates on the Smart Money Concept, highlighting mitigation zones and supply/demand imbalances. Traders can leverage this visual aid for return-to-zone trading opportunities, especially in Crash or inverted Boom markets. It provides insights when combined with other indicators such as EMA or order block confirmations. This systema...
π Read | Docs | @mql5dev
#MQL5 #MT5 #Indicator
This tool operates on the Smart Money Concept, highlighting mitigation zones and supply/demand imbalances. Traders can leverage this visual aid for return-to-zone trading opportunities, especially in Crash or inverted Boom markets. It provides insights when combined with other indicators such as EMA or order block confirmations. This systema...
π Read | Docs | @mql5dev
#MQL5 #MT5 #Indicator
β€38π5π3π¨βπ»3β2
The CBitBuffer class is vital for bit-level data serialization in MQL5, essential for efficient data storage and retrieval, especially in network communication or file compression. With support for a wide range of data types, the class optimizes space using techniques like Variable-Length Quantity (VLQ) with ZigZag encoding. This approach can significantly save space when dealing with frequently small integer values.
Robust error handling is ensured through an ENUM_BIT_BUFFER_ERROR enum alongside GetLastError() and GetLastErrorString() methods. The class design is optimized with features like internal buffering and exponential array growth to enhance performance. Updates as of 2025 improve operations by eliminating restrictions on mixed read/write processes and enhancing clarity. Such updates contribute to maintaining data integrity, thereby broadening ...
π Read | Docs | @mql5dev
#MQL5 #MT5 #Data
Robust error handling is ensured through an ENUM_BIT_BUFFER_ERROR enum alongside GetLastError() and GetLastErrorString() methods. The class design is optimized with features like internal buffering and exponential array growth to enhance performance. Updates as of 2025 improve operations by eliminating restrictions on mixed read/write processes and enhancing clarity. Such updates contribute to maintaining data integrity, thereby broadening ...
π Read | Docs | @mql5dev
#MQL5 #MT5 #Data
β€37π4π¨βπ»4π€1