MQL5 Algo Trading
388K 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
There are innumerable ways AI can enhance trading strategies, yet evaluating each one before adoption is impractical. Let's revisit the strategy of multiple symbol analysis to see how AI can improve it.

Trading strategies with multiple symbol analysis rely on correlations between symbols. Correlation measures linear dependency between variables but does not imply a relationship. For instance, the USDZAR currency pair correlates with oil and gold prices. Understanding these correlations helps gauge risk and guide decisions.

For this analysis, market data from MetaTrader 5 was exported and used to train models with OHLC quotes and a combination of oil and gold prices. Results showed oil having a stronger correlation with USDZAR than gold. Models like linear regression and KNeighborsRegressor performed best, with hyperparameter tuning improving accurac...
#MQL5 #MT5 #AITrading #FinanceAI

Read more...
πŸ‘25❀16πŸ‘¨β€πŸ’»4🀯3⚑2
Regularization is crucial in machine learning algorithms to enhance the performance of neural networks. It addresses the issue of biasing towards specific parameters, which can hinder network performance on out-of-sample data.

The primary methods of regularization include Lasso (L1), Ridge (L2), Elastic-Net, and Drop-Out. Each method introduces different benefits when correctly paired with activation and loss functions, thus preventing exploding or vanishing gradients.

For classifier networks, L1 regularization (Lasso) is useful as it promotes sparsity. For regressor networks, L2 regularization (Ridge) is favored for balanced weight distribution.

Drop-out regularization is beneficial for deeper networks as it improves generalization by forcing the network to learn redundant representations, making it robust and resilient to noisy data.

When testing o...
#MQL5 #MT5 #RegEx #ML

Read more...
πŸ‘23❀4πŸ‘3πŸ‘¨β€πŸ’»3
Dynamic Time Warping (DTW) offers powerful pattern recognition in financial time series, surpassing traditional methods like Euclidean distance. Originating from speech recognition, DTW aligns sequences with flexible timing, ideal for non-linear financial data.

DTW's strength lies in its ability to account for temporal distortions, enabling identification of unique patterns. The MQL5 implementation focuses on calculating distance scores with customizable step patterns, distance measures, and global constraints, improving alignment accuracy.

Key features include:
- Versatile alignment of sequences with different rhythms.
- Application-specific constraints for meaningful analysis.
- Essential class structures (CStepPattern, CConstraint, Cdtw) for DTW calculations.

This technique provides a robust tool for sophisticated financial market analysis.
#MQL5 #MT5 #trading #fintech

Read more...
❀16πŸ‘15πŸ‘¨β€πŸ’»4πŸ”₯3πŸŽ‰1
A notable advancement in trading automation: the same code is compatible with both MT4 and MT5 platforms. This code fetches news automatically from FXStreet servers, allowing for thorough filtering by importance level, currency, and keyword. Key features include filtering news by High, Low, or Medium volatility, currency-specific filtering, keyword-based filtering, and an auto GMT offset check. It also includes a customizable dashboard to display upcoming news, which can be enabled or disabled as required. Additionally, lines indicating upcoming events are displayed on the chart. The code is flexible and can be modified to place trades at specific times related to events or to suspend trading during those periods. Access the MT5 version at the provided link.
#MQL4 #MT4 #FXNews #Forex

Read more...
πŸ‘44❀23⚑13πŸ‘€5πŸ‘¨β€πŸ’»4
Discover the power of non-linear methods in financial time series analysis! This article delves into innovative techniques for creating non-linear indicators on MetaTrader 5, transforming linear indicators using logarithmic price transformations to provide robust solutions where linear indicators fall short. Learn to utilize measures like the median and Bayesian smoothing to enhance sensitivity to price changes. Explore practical applications like robust trend analysis with the Weighted Median Ichimoku and improved pattern recognition using ordinal statistics. Ideal for both traders and developers, this comprehensive guide enhances algorithmic trading strategies and indicator accuracy comprehensively.
#MQL5 #MT5 #Trading #Finance

Read more...
πŸ‘26❀8πŸ‘¨β€πŸ’»6πŸ‘€6
This indicator offers clear visualization of bid and ask prices, aiding in trade entry and exit decisions. It includes custom bid and ask lines that are labelled for easy identification. Unlabeled lines can cause confusion, making this a useful addition for clarity.

A buy order will execute at the current ask price, while a sell order will execute at the current bid price. Seeing the ask line clearly allows for more strategic buying near the low of a candle rather than the high. Similarly, a labelled bid line assists in selling near the high of a candle, maximizing potential gains. This utility simplifies the trading process and enhances decision-making efficiency.
#MQL5 #MT5 #Trading #Forex

Read more...
πŸ‘69❀23πŸ‘¨β€πŸ’»8✍5πŸ’”5πŸ‘3πŸ‘Œ3
Concept:

Continuing from the previous article, the development of the ProgressBar control advances. The control comprises an underlay and a progress bar. Future iterations will support additional design elements on the underlay, such as texts and images. Currently, it exists as a static WinForms object.

Today, programmatic control functionality for the ProgressBar will be developed. This allows usage in applications to indicate progress during extensive operation sequences. Visual effects, such as moving glare, can provide indications of process continuation or completion.

Once complete, the ProgressBar control may remain visible until manually closed, enabling observation of process completion through ongoing visual effects. Multiple progress bars can indicate subprocess completion while the main process continues.

Visual effects will be ...
#MQL5 #MT5 #ProgressBar #UIDevelopment

Read more...
πŸ‘40❀15πŸ‘Œ2πŸ‘¨β€πŸ’»2πŸ‘€2
The code in discussion is compatible with the mt4 platform. It automatically retrieves news from FXStreet servers, allowing users to filter by importance level, currency, and keywords. The mt4 version is available at the provided link.

Key features include:
- Filtering news by high, low, or medium volatility.
- Filter by currencies.
- Filter by news keywords.
- Automatic GMT offset check.
- A dashboard to show upcoming news (optional).
- Lines on the chart for all upcoming events.

The code can be easily modified to place trades at specific times before or after events or to halt trading during events.
#MQL5 #MT5 #FXNews #TradingTech

Read more...
πŸ‘65❀32✍6⚑4πŸ‘¨β€πŸ’»3
Bird Swarm Algorithm (BSA) is a bioinspired evolutionary algorithm developed by Meng and colleagues in 2015. It utilizes swarm intelligence based on social interactions and behavior of bird flocks.

The algorithm integrates three aspects of bird behavior: flight, foraging, and vigilance. Individual birds employ unique strategies, leading to effective cooperation and support in optimizing solutions. Different individuals within the BSA algorithm can switch between these behaviors to balance exploration and exploitation, aiming to avoid premature convergence.

Flight behavior and foraging are dependent on global and individual fitness. BSA models flock behavior, where birds exhibit adaptations such as flocking, communication, adaptability, and leadership-following dynamics to find optimal solutions.

BSA combines these principles for an optimization ap...
#MQL5 #MT5 #birds #optimization

Read more...
πŸ‘27❀18πŸ‘¨β€πŸ’»4πŸ’―3πŸ‘1
This indicator provides alerts on MT4, mobile, and email, enhancing signal management efficiency. Press "N" to generate a new signal, and "D" to delete a signal. Customize your message preferences directly. The MT5 version is available at the provided link for enhanced compatibility.

Stay updated without constant screen monitoring, leveraging advanced alert functionalities. This tool is designed for streamlined communication and better trading decisions. Access the MT5-compatible version to optimize your trading strategy and ensure timely alerts across platforms.

For additional details, visit the link for comprehensive information on functionality and customization options.
#MQL4 #MT4 #trading #alerts

Read more...
❀48πŸ‘40✍6πŸ”₯4πŸ‘4πŸ‘Œ4πŸ‘¨β€πŸ’»2
Explore how Multiple Time-Frame Analysis and AI converge in MetaTrader 5. By integrating EURUSD price predictions, this series evaluates the predictive power of AI across various strategies. Data and models built with open, high, low, and close price information revealed that while Linear Regression provided the best benchmark, the Gradient Boosting Regressor (GBR) showed potential after optimization. Despite challenges in achieving superior accuracy, this study illustrates AI's capabilities and provides practical tools and scripts for developers. Implement and visualize AI in your trading strategies with clear guidance on exporting models to ONNX and integrating them into MQL5 Expert Advisors.
#MQL5 #MT5 #AITrading #Investing

Read more...
πŸ‘28❀9⚑7πŸ”₯4πŸ‘Œ4πŸ‘¨β€πŸ’»2
Dive into the future of trading with machine learning and predictive analytics, now seamlessly integrated with MetaTrader 5! By leveraging Python’s powerful libraries like scikit-learn and combining them with MQL5, traders can transition from static rule-based systems to dynamic, data-driven models that adapt to market fluctuations.

The step-by-step guide covers gathering historical data, processing it with Jupyter Lab, training a Random Forest model, and deploying it within MQL5 using ONNX for enhanced decision-making. Experience improved prediction accuracy, robust trade execution, and real-time adaptability. This revolutionary approach bridges financial analysis with AI, automating strategies that respond dynamically to market conditions.
#MQL5 #MT5 #MachineLearning #PredictiveAnalytics

Read more...
πŸ‘19❀12πŸŽ‰5πŸ‘Œ4✍2πŸ‘¨β€πŸ’»2
Discover invaluable insights into regression analysis for time series trading with our latest guide. We demystify the impacts of non-stationarity on regression models, using Monte Carlo simulations to highlight the pitfalls of spurious correlations. Learn how to leverage MQL5's powerful statistical and graphics libraries for precise calculations. We showcase the correct application of ordinary least squares and matrix algebra to estimate model parameters and how to diagnose model misspecification using residual analysis and auto-correlation functions. Enhance your algorithmic trading strategies by ensuring your regression models meet stationarity requirements for reliable predictions. Perfect for both seasoned and aspiring MetaTrader 5 developers!
#MQL5 #MT5 #Regression #Statistics

Read more...
❀17πŸ‘11πŸ‘2πŸ‘¨β€πŸ’»2πŸ‘Œ1
Explore the power of Gaussian Process (GP) Kernels in algorithmic trading without diving into machine learning. This post simplifies how GP Kernels measure relationships in time series data, producing forecasts with confidence estimates - a key advantage over traditional methods like ARIMA.

Learn about the Radial Basis Function (RBF) kernel, its flexibility in modeling non-linear relationships, and how it handles noisy data with accuracy. Also, discover practical MQL5 coding for leveraging RBF kernels in predicting financial metrics.

Step up your trading strategy by incorporating uncertainty quantification from GP Kernels, enhancing decision-making and managing risks effectively. Perfect for both novice and expert MetaTrader 5 developers.
#MQL5 #MT5 #Gaussian #Statistics

Read more...
πŸ‘17❀11πŸ‘¨β€πŸ’»3πŸ‘2
Stay informed with this useful MT5 indicator that sends alerts to your mobile and email. Easily manage signals by pressing "N" for new alerts and "D" to delete them. Tailor your alert preferences for seamless integration into your workflow. MT4 version is available at mql5.com/en/code/40575. Operate efficiently without the need to constantly monitor your screen. Ideal for those requiring reliable updates on market movements without direct supervision. Ensure you stay ahead with timely and customized notifications.
#MQL5 #MT5 #trading #forex

Read more...
❀12πŸ‘9πŸ‘¨β€πŸ’»5✍2πŸ‘2πŸ”₯2⚑1
Our growing channel audience has shown that delivering information via messenger is highly convenient and valued by our community. So, we decided to launch three more dedicated channels for our global audience:

β€’ Trading AlgorΓ­tmico MQL5 in Spanish
β€’ MQL5 Trading Algorithmique in French
β€’ MQL5 АлготрСйдинг in Russian

You can now receive timely notifications about the latest algorithmic trading updates and cutting-edge technological trends in your native language.

In these channels, we publish daily materials from the Articles and CodeBase sections, as well as important information: announcements of MetaTrader 5 platform updates, top forum discussions, and other news from the world of trading.

Subscribe, and we will deliver the most useful and interesting content directly to your favorite messenger's feed. Share the channel links with colleagues and add reactions to our posts.
❀59πŸ‘32πŸ”₯10✍7πŸ‘7πŸ’―4πŸ€”3
This Expert Advisor (EA) originated as a task to trail equity. Subsequent additions included managing individual trades and manually setting prices to initiate a grid of pending orders. This EA does not contain conditions to open trades autonomously. Users must identify market areas where they would manually open a grid of orders. Upon identifying such an area, input the desired price for the EA to open a grid of pending orders. When the market reaches the specified price, the EA will send the grid and manage trades according to user-defined parameters, including Stop Loss and trailing actions. As of 13 Sep 2022, the EA compiles without errors.
#MQL5 #MT5 #trading #EA

Read more...
πŸ‘30❀15πŸ‘4πŸ†3πŸ‘¨β€πŸ’»3πŸ”₯1
Optimizing trading strategies across multiple time periods helps assess their robustness. The period of 2018-2022 includes diverse market conditions and is sufficiently short for practical testing. MetaTrader 5’s forward period testing divides this span into main and forward sections, effectively evaluating strategies on unseen data.

Instances are optimized on past data and tested against future data. This serves as Out-Of-Sample (OOS) testing. Although initially overlooked, forward period analysis helps verify strategy performance beyond the optimization phase.

Observations indicate performance degradation in EAs during the forward period. Increased drawdown and elongated recovery times are common but manageable, suggesting room for further parameter refinement. Future work should include parameter clustering to mitigate these issues and ensure more r...
#MQL5 #MT5 #backtest #forex

Read more...
πŸ‘35❀6✍4πŸ‘¨β€πŸ’»3⚑2πŸŽ‰2πŸ‘€2
Direct interaction with system users from MetaTrader 5 is now possible. Admins can share real-time system performance insights and validate recent signals on social channels.

Given the rise in reliance on instant messaging platforms like Telegram, integrated communication is essential. Over 70% of traders use these platforms for real-time updates, highlighting the need for seamless communication solutions.

This guide discusses creating an admin panel in MetaTrader 5 using MQL5. It covers GUI development, library file usage, algorithm creation, and Telegram API integration. This comprehensive system facilitates effective signal management and immediate communication.

Understanding the MetaTrader 5 coordinate system is vital for GUI development, ensuring precise element positioning and sizing.

MQL5’s modular header files (.mqh) enhance code organiza...
#MQL5 #MT5 #MetaTrader #Trading

Read more...
πŸ‘57❀17✍7πŸ‘¨β€πŸ’»5πŸ‘4πŸ†4πŸ’”2
Analyzing trade history can significantly contribute to evaluating and improving trading strategies. The default history period of three months allows for a comprehensive short-term review. Regular assessment of past trades over this period aids in recognizing patterns and identifying both strengths and weaknesses in trading approaches.

To optimize performance, consider adjusting the history period based on individual trading frequency and market conditions. Detailed examination of this history ensures informed decision-making and promotes continuous improvement in trading activities. Regularly update and refine trading strategies using historical data for better outcomes.
#MQL5 #MT5 #trading #forex

Read more...
πŸ‘34❀11⚑5πŸ‘¨β€πŸ’»2✍1🀯1