MQL5 Algo Trading
387K subscribers
2.56K photos
2.56K links
The best publications of the largest community of algotraders.

Subscribe to stay up-to-date with modern technologies and trading programs development.
Download Telegram
Explore StockFormer, a cutting-edge hybrid trading system that leverages predictive coding and reinforcement learning (RL) to tackle complex financial market challenges. StockFormer integrates modified Transformer branches to capture long-term trends, short-term fluctuations, and cross-asset dependencies, using Diversified Multi-Head Attention (DMH-Attn) for enhanced data analysis. By combining predictive coding with policy learning through an Actor-Critic approach, StockFormer extracts hidden patterns from noisy market data effectively. Experiments reveal its superior predictive accuracy and profitability in volatile markets. Delve into its MQL5 implementation to understand how StockFormer revolutionizes trading strategy development through its novel multi-head convolutional layer and efficient OpenCL programming.

👉 Read | CodeBase | @mql5dev

#MQL5 #MT5 #RL
33👍5🎉3👨‍💻1
In the ongoing development of our automated optimization pipeline for Expert Advisors (EA), we've yet to fully automate the decision-making process. When implementing strategies, it's crucial to balance automation with the tactical choice of parameters to ensure long-term profitability. The Validate EA by @fxsaber is a notable tool in this realm, facilitating periodic re-optimization over extensive periods.

Analyzing code bottlenecks is essential. The SymbolInfo methods were frequently called, highlighting inefficiencies. Replacing redundant calls with a shared CSymbolsMonitor class, using Singleton patterns, improved performance by managing symbol-related operations at a higher level, thus reducing unnecessary resource consumption.

The VirtualAdvisor and CVirtualOrder classes were refined, enhancing the code's efficiency by limiting symbol informati...

👉 Read | AlgoBook | @mql5dev

#MQL5 #MT5 #automation
74👍11👌733🔥3👨‍💻1
This trading algorithm offers four distinct price action strategies: High-Frequency Trading (HFT) Tick Momentum, Candlestick Engulfing Patterns, RSI Reversals, and EMA Crossover. Each strategy addresses different trading needs, providing flexibility for diverse market conditions. Traders can enter the market with immediate Market Orders or planned entries using Stop and Limit Orders.

The advanced Martingale System introduces three variations: Classic Multiplier, Multiplier with Sum, and Sum with Initial, offering enhanced control over trade size management. With dynamic lot sizing, users can select a fixed lot size or allow automatic calculations based on account balance and stop-loss parameters.

Comprehensive trade management tools include setting stop-loss in points and defining targets with a Risk:Reward Ratio. Version 1.10 introduces a dual-mode Trailin...

👉 Read | Signals | @mql5dev

#MQL5 #MT5 #Strategy
4210👍4🔥4👨‍💻1
The integration solution for traders leveraging MetaTrader 5 enables streamlined communication via Telegram. This package supports real-time trading notifications, delivering instant alerts for trade actions and automatic chart captures, complete with annotations. Risk management tools provide alerts on critical conditions, such as drawdowns and stop-out levels. The system's architecture includes a message queue for reliable delivery and supports broadcasting to multiple Telegram channels.

Customization options include a template system for tailored messaging while smart rate limiting ensures compliance with API constraints. Essential system requirements entail MetaTrader 5 build 2375 or higher, a Telegram Bot Token, and an active internet connection. The implementation begins with creating a Telegram Bot via @BotFather and retrieving necessary C...

👉 Read | VPS | @mql5dev

#MQL5 #MT5 #EATrading
28👍7🎉6🤩4👨‍💻1
Discover how a new 5 Drives pattern system in MQL5 leverages harmonic trading strategies using precise Fibonacci ratios and pivot points. This advanced setup automates trade executions with flexible entry, stop-loss, and multi-level take-profit options, all visualized through detailed chart objects like triangles, trendlines, and labels. The framework identifies bullish and bearish reversals with specific retracement sequences, ensuring accuracy in trade decisions. Ideal for developers seeking robust, customizable algorithmic trading strategies, this system provides clarity and efficiency in detecting and trading harmonic patterns, backed by thorough backtesting results for effective deployment.

👉 Read | NeuroBook | @mql5dev

#MQL5 #MT5 #AlgoTrading
688👌3👨‍💻1👀1
The indicator is designed to enhance signal detection capabilities. It sends a push notification to a mobile device if notifications are enabled and plays an alert if alerts are activated when the specified trigger level is crossed within the deviation limits. Users can customize the horizontal lines representing the trigger level and deviation limits in terms of style, color, and thickness. Multiple instances of the indicator can be added to a chart, each with distinct levels, to receive signals from their intersections. The trigger activates only once per bar, ensuring reduced frequency of signals by allowing reactivation only with the opening of a new bar. This minimizes the noise from frequent tick triggers.

👉 Read | CodeBase | @mql5dev

#MQL5 #MT5 #Indicator
37😱7🔥2👨‍💻1
Quantum computing is transforming the landscape of algorithmic trading. By leveraging principles like superposition and entanglement, quantum systems analyze multiple market scenarios simultaneously, offering a new way to understand market dynamics. Unlike traditional computing, which processes information sequentially, quantum models consider simultaneous possibilities, allowing for complex inter-market correlations analysis.

The integration of quantum algorithms with classical technical analysis can break new ground in financial markets. Quantum Phase Estimation (QPE) and other quantum methods enable the modeling of complex market relationships. Despite initial hurdles, early tests show promise in improving prediction accuracy beyond random guesses.

Combining quantum computing with machine learning metrics like accuracy and precision can capture p...

👉 Read | NeuroBook | @mql5dev

#MQL5 #MT5 #Quantum
35👍84🤡2👨‍💻1
Explore the innovative Market DNA concept, which creates a unique price-action signature for each currency pair, using metrics like volatility and session rhythms. The MQL5 implementation builds a "DNA passport" on MetaTrader 5, compressing market data into actionable insights. This robust system quantifies market regimes, aids in strategic adaptation, and flags significant shifts through mutation detection. Designed for both developers and traders, it automates analysis, enhances decision-making, and records signals for further use. By integrating Market DNA into trading workflows, gain a strategic edge with data-driven adaptability, consistent entries, risk-aware sizing, and efficiency in trade selection.

👉 Read | Signals | @mql5dev

#MQL5 #MT5 #AITrading
28🎉4👨‍💻1
Trading around major economic announcements like the Non-Farm Payroll (NFP) release poses significant risks for traders due to the rapid, volatile price movements. Professional traders avoid chasing initial spikes that can lead to swift reversals and losses. Instead, they strategically plan safer entry points by leveraging technical analysis tools, such as Fibonacci retracement.

Fibonacci retracement, derived from the Fibonacci sequence, helps traders identify potential reversal or continuation zones during market pullbacks. Common retracement levels, like 23.6%, 38.2%, and especially 61.8%, serve as psychological areas where prices may react before continuing their trend.

For a practical application, implementing an algorithmic strategy using these principles can guide traders to navigate post-NFP market conditions effectively. Through analysis a...

👉 Read | Calendar | @mql5dev

#MQL5 #MT5 #Fibonacci
71🏆53👌3👨‍💻1
A script has been developed to automatically set the stop-loss level for all open orders to a user-defined value. It streamlines risk management by allowing users to input a specific stop-loss parameter across multiple positions. This automation enhances trading efficiency and reduces the need for manual adjustments, potentially improving overall trading strategy effectiveness. Users should carefully evaluate the entered stop-loss value to ensure it aligns with their risk management protocols, market conditions, and overall trading strategy to ensure optimal performance and risk control. Always consider testing in a safe environment before deployment.

👉 Read | Freelance | @mql5dev

#MQL4 #MT4 #script
291👌1👨‍💻1
Discover the Parafrac V2 Oscillator, a cutting-edge tool for technical analysis. This innovative oscillator merges the Parabolic SAR with the Average True Range (ATR) to offer a more stable system for identifying trend dynamics and potential reversal zones. By replacing the Fractal component with ATR, it overcomes limitations like noise from extreme price spikes found in its predecessor. Practical for both short-term scalpers and long-term trend traders, the Parafrac V2 offers clear signals while reducing interpretive complexity. Its cross-market normalization and adjustable settings make it a versatile choice for bespoke trading strategies, elevating both trading analysis and decision-making.

👉 Read | Docs | @mql5dev

#MQL5 #MT5 #Oscillator
32👍711👨‍💻1
Traders often face challenges such as overtrading and emotional decision-making, especially under strict rules. The Account Performance Matrix indicator offers an effective solution by acting as an in-built risk manager. It automatically monitors account metrics and enforces risk discipline through real-time tracking of equity, profit/loss, and drawdowns. This tool closes positions when risk limits are breached, preventing further trading and protecting capital. With customizable settings, it caters to different risk appetites and enhances decision-making. By visualizing critical performance data, this system supports traders in achieving consistent results, whether targeting prop-firm challenges or growing personal accounts sustainably.

👉 Read | Quotes | @mql5dev

#MQL5 #MT5 #Indicator
473👀3👨‍💻1
In the realm of AI-powered forecasting systems, the importance of data pre-processing cannot be underestimated. Effective pre-processing techniques such as standard scaling, min-max scaling, robust scaling, and one-hot encoding are crucial for enhancing the performance of machine learning models. These techniques ensure that raw financial data becomes 'model-ready,' addressing issues like differing scales, outliers, and categorical features. Within the Python ecosystem, sci-kit learn provides powerful tools for pre-processing. However, MQL5 lacks these native methods, prompting developers to build reusable classes that emulate this functionality. Such pipelines improve data consistency, maintainability, and ultimately the robustness of trading algorithms, blending Python's proficiency with MQL5's capabilities.

👉 Read | Quotes | @mql5dev

#MQL5 #MT5 #Data
59👌10👍5👀4🤔21👨‍💻1
The ability to cycle through timeframes using the 'N' and 'M' hotkeys in MT4 and MT5 offers an efficient method for navigating chart data quickly. Users can utilize 'N' for the next timeframe and 'M' for the previous one, streamlining the analysis process without manual menu selections. This functionality is beneficial for those who require rapid access to various timeframes during analysis. Efficient navigation between timeframes assists in maintaining focus on data interpretation and decision-making. Customization of workflow through such shortcuts can significantly enhance productivity for traders and analysts. Regular use of these shortcuts can lead to a more streamlined and effective chart analysis experience.

👉 Read | Freelance | @mql5dev

#MQL5 #MT5 #Hotkeys
32👨‍💻4🎉3👍2
Welcome to the continuation of the MQL5 series, focusing on automating the detection of the Gartley harmonic pattern. This relies heavily on Fibonacci levels, price swings, and chart objects. The EA will evaluate price swings, calculate significant Fibonacci retracement and extension levels, and identify possible Gartley formations on a chart. These concepts also apply to other harmonic patterns, including the Bat and Butterfly.

For buy logic, the EA detects bullish Gartley patterns by analyzing points X, A, B, C, and D to match specific retracement rules, then generates a buy order anticipating price reversals. Users can adjust retracement and extension settings.

In the bearish logic, the EA searches for a swing high at point X, followed by identifying points A, B, C, and D to confirm a valid bearish Gartley pattern based on predefined criteria and...

👉 Read | Calendar | @mql5dev

#MQL5 #MT5 #Trading
32👌4👍2👨‍💻2👀2
Integrating AI into trading systems using MQL5 begins with a JSON parsing framework for API interactions. JSON's role as a data interchange format is crucial for AI API communication, exemplified by OpenAI's ChatGPT. Our focus is on developing a robust foundation for JSON data processing, enabling seamless AI-driven trading integrations.

Implementation involves creating the "JsonValue" class to handle JSON data types with functions for parsing and serialization. This class manages child elements, manipulates JSON structures, and handles errors efficiently. Methods for serializing and deserializing JSON further enhance interaction capabilities.

The understanding and handling of JSON structures are essential for the integration of AI into trading strategies. A solid groundwork is set, preparing for the advanced AI applications in trading automation.

👉 Read | Docs | @mql5dev

#MQL5 #MT5 #AI
29🏆4👍3🎉1👨‍💻1
Various securities interact through the lens of financial correlation, a dynamic concept, particularly during high-impact news events. The recent evolution of the News Headline EA introduces advancements aimed at incorporating correlation measures for informed trading. The expanded setup involves a two-step approach: enhancing the CTradingButtons class to compute and visualize correlation; integrating these features into the EA without disrupting existing components.

Financial correlation, expressed via the correlation coefficient (-1 to +1), is pivotal in assessing how two securities move relative to each other over selected time frames. This involves calculating the Pearson correlation coefficient over specified periods. The EA identifies if a security is a leader or a follower, which aids in strategy formulation.

Initial testing of these enhancement...

👉 Read | Signals | @mql5dev

#MQL5 #MT5 #Strategy
37👨‍💻32👌2💯1
The recent article continues research on neural networks, specifically focusing on supervised learning using activation functions. By implementing a multilayer perceptron (MLP) with an embedded ADAM optimization algorithm, the article evaluates how different activation functions affect interpolation accuracy and convergence rate in neural networks. The neural network employs the hyperbolic tangent and various other functions.

Key components of the MLP implementation include the C_Neuro class for neurons, the S_NeuronLayer structure for neuron layers, and methods for importing and exporting weights. The study tests the modified ADAMm optimization method against the classical ADAM to determine the impact of activation functions on training efficiency.

👉 Read | Signals | @mql5dev

#MQL5 #MT5 #NN
44👍6👨‍💻54👌3🔥1💯1
The EA is equipped with key features focused on entry strategies, confirmation filters, dynamic exit logic, and configurable settings. It offers multiple entry strategies, such as classic overbought/oversold reversals and advanced RSI divergence signals. Confirmation accuracy is enhanced by utilizing an RSI centerline cross, helping reduce false entries.

Dynamic exit logic supports both Stop Loss and Take Profit, with trades closable based on RSI levels. Configurability allows for customization of RSI parameters, trade management settings, and strategy rules. Independent trade management is ensured through a unique Magic Number, avoiding conflicts with other robots or manual trades.

Entry signals options include RSI Divergence, Overbought/Oversold Reversal, and Centerline Confirmation as an optional filter. The EA's exit strategy employs both fixed and dyn...

👉 Read | NeuroBook | @mql5dev

#MQL5 #MT5 #EA
37👨‍💻3👀1
The enhanced ZigZag tool is engineered to serve as a reliable visual reference for balancing or analyzing other indicators on both main and sub-charts. It operates exclusively with confirmed ZigZag values, ensuring that identified points maintain high reliability. Each movement detected by the ZigZag is supplemented with crucial information, including periods defined by the ZigZag, precise top or bottom pricing, directional movement, and pip count.

Customizable features include adjustable color, thickness, and style for the ZigZag, along with optional display controls. Visual markers use distinct colors for highs and lows, aligned perfectly with bars. Dynamic labels provide a clear display of prices and movements, representing direction with triangles and detailing pip counts.

Full control is granted through boolean parameters, allowing independ...

👉 Read | Freelance | @mql5dev

#MQL5 #MT5 #Indicator
24👍4👨‍💻4