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
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
In the previous article, we examined merging MetaQuotes Language 5 (MQL5) with Telegram for signal generation and relay. This streamlined the sending of trading signals to Telegram. We now take a further step in integrating MQL5 with Telegram by sending a screenshot of the trading signal chart.

Instead of only the text portion, a visual representation, such as a chart screenshot, can add context and clarity to the signal. This article focuses on converting image data into a format compatible for embedding in HTTPS requests. This conversion is essential for including images in our Telegram bot.

The article is organized into four parts: overview of image encoding and transmission over HTTPS, implementation in MQL5, testing the integration, and conclusion. By the end, we will have developed an Expert Advisor (EA) that sends chart screenshots with trading i...
#MQL5 #MT5 #trading #finance

Read more...
πŸ‘30❀18πŸ‘¨β€πŸ’»6πŸ”₯1🀯1πŸ‘Œ1
MetaTrader 5 just leveled up algorithmic trading! Dive into how Restricted Boltzmann Machines (RBM), traditionally used with probability-based Energy-Based Models, are now optimized with Backpropagation thanks to GPU acceleration.

Explore how RBMs, acting as price-embedders, streamline price data complexities, providing a robust foundation for Multi-Layer Perceptrons (MLP). This approach facilitates dimension reduction and uncovers hidden data properties, empowering MLPs for better trade decisions.

Optimize your trading strategy with this innovative technique and see practical gains in trading stability during trend reversals. Learn how combining RBMs with MLPs can lead to diversification and a distinct trading edge.
#MQL5 #MT5 #TraderTips #RBMs

Read more...
πŸ‘55❀23⚑6πŸ‘5πŸ‘¨β€πŸ’»5✍3
Charts display trading activity using various visual indicators: Blue Zone as TP Zone, Red Zone as SL Zone, Blue Arrow for Buy signals, and Red Arrow for Sell signals. Blue Ticks represent Wins, while Red Crosses indicate Losses. To configure these on the desired chart, follow these steps:

1. Open the chart for the respective symbol.
2. Enter the magic number to filter trades by a specific identifier. A magic number of 0 will display all historical trades for the selected symbol.

This setup helps in tracking and analyzing trading performance visually, making historical trade review more efficient.
#MQL4 #MT4 #Forex #Trading

Read more...
❀25πŸ‘22πŸ‘¨β€πŸ’»4πŸ‘2
Applying mathematical theories can provide strategic advantages. One significant concept is Nash Equilibrium, formulated by John Forbes Nash Jr. Leveraging Nash's game theory in trading, especially through Python scripts and advanced statistics, can optimize strategies and decision-making.

Nash Equilibrium assumes each player knows the strategies of others, ensuring no unilateral gain from changing their strategy. This principle can guide trading in financial markets, albeit these markets are dynamic and rarely in perfect equilibrium.

Python scripts and a demo account with MetaTrader 5 can help identify negatively correlated symbols. By using the Hidden Markov Model (HMM) for predictive analytics, traders can refine strategies for better outcomes.

Integrate the HMM output with an Expert Advisor's (EA) strategy on MetaTrader 5. Key fu...
#MQL5 #MT5 #NashEquilibrium #AlgorithmicTrading

Read more...
πŸ‘14❀13πŸ‘¨β€πŸ’»7πŸ‘1
Artificial Intelligence and Neural Networks

Artificial intelligence and neural networks are often a subject of fascination. However, their core is not as mysterious as perceived. A neural network is a thoughtfully designed program that aims to achieve specific goals. Understanding this requires examining the algorithms and mathematical equations such as linear regression used in these networks.

Linear regression is an affine function, essential for neural network development. When constructing a neural network, it’s crucial to find values that best fit the data set, thus simplifying computation and optimizing performance.

In these articles, the focus will be on demonstrating these processes using MQL5 exclusively. This approach will illustrate that the right understanding and method can be applied across various programming languages, showcasing the c...
#MQL5 #MT5 #AI #NeuralNetwork

Read more...
πŸ‘27❀12πŸ‘¨β€πŸ’»5πŸ‘2
Algorithmic trading strategies enable quick, informed decisions, minimizing human error and emotional biases. Automated systems like MetaTrader 5 offer consistency by following predetermined parameters. Creating an Expert Advisor (EA) utilizing the Parabolic SAR indicator can successfully automate trade execution.

The Parabolic SAR tracks potential market trend reversals, using dots on a chart. Sensitivity is controlled by SAR Step and Maximum settings, aiding traders in identifying entry and exit points. This strategy excels in trending markets such as forex and commodities.

Implementation in MQL5 involves defining input parameters such as LotSize, SAR_Step, and SAR_Maximum, and handling trade operations through the Trade.mqh library. With properly tuned parameters, the strategy shows promise but requires continuous monitoring and optimization to ens...
#MQL5 #MT5 #AlgoTrading #Forex

Read more...
πŸ‘34❀17πŸ‘¨β€πŸ’»5✍1πŸ‘1
To analyze trading signal performance:

1. Access the provided URL.
2. Select a signal of interest.
3. Navigate to the Trading History tab.
4. Scroll to the bottom and select the History link.
5. Open your MT4 terminal and go to File > Open Data Folder.
6. Place the CSV file downloaded in step 4 into the MQL4\Files directory.
7. Input the file name (without the .csv extension) into the FILENAME field when loading the script.

This workflow enables efficient review and assessment of trading history, facilitating better decision-making based on historical data.
#MQL4 #MT4 #trading #forex

Read more...
πŸ‘34❀21πŸ‘¨β€πŸ’»4⚑3πŸŽ‰1
Markov chains are effective for modeling and forecasting time series data in finance. Their simplicity is a primary advantage, relying on probabilistic models without complex assumptions. They are beneficial for financial data, which often exhibit non-stationary behavior.

There are four main types of Markov chain models: discrete-time, continuous-time, Hidden Markov models, and Switching Markov models. The primary types are discrete-time, modeling a system over discrete steps, and continuous-time, modeling over an interval. Probability estimation, often via expectation maximisation, is key for using these models.

Markov chains predict future states based on current status and transition probabilities, making them suitable for various fields like finance, weather, and biology.
#MQL5 #MT5 #finance #forecasting

Read more...
❀37πŸ‘30πŸ”₯6πŸ‘¨β€πŸ’»6πŸŽ‰4
To use the script effectively on a Daily timeframe, review the results on both the D1 and M1 charts. Although the script wasn't initially designed to calculate support and resistance lines, it appears capable of doing so.

Key inputs:
- `Prediction_Bar >= -1`: 0 refers to the current bar, -1 to the next bar, +1 to the previous bar, and so on.
- `Win > 0`: Represents the length of the comparison window for stream similarity.
- `Num > 0`: Indicates the number of illustrated bars.

Color indicators:
- Aqua: The best match stream (shifted).
- DarkOrange: Bar close.
- Lime: Predicted bar.
- Red: Bar high.
- Blue: Bar low.
- Yellow: Predicted area.

Bar text indicates the similarity error for further analysis. The script's flexibility provides potential additional applications beyond its original scope.
#MQL5 #MT5 #trading #forex

Read more...
❀28πŸ‘18⚑6πŸ‘¨β€πŸ’»4😁1
Enhancing Tooltip and ProgressBar Controls in MQL5

Concept:
The aim is to refine the ToolTip control to function more like MS Visual Studio by introducing smooth appearance and disappearance behaviors. This requires implementing timers for graphical elements, using a list of active objects to track items needing timer processing. This approach supports animated interfaces with interactive visual effects. For this work, a timer event handler will be created for ToolTip and later for ProgressBar control.

Improvements:
1. Adding timer parameters for graphical elements on canvas.
2. Default values for ProgressBar control; adding progress line glare effect similar to Windows.
3. Describing control states and animation sequences for ToolTip.
4. Updated object property lists for enhanced sorting and selection.
5. Improved pointer handling and pause countdown meth...
#MQL5 #MT5 #Code #Library

Read more...
πŸ‘43❀30⚑5πŸ‘€5🀑4✍1πŸ‘1
Introducing a comprehensive indicator for plotting key Pivot Points: "Classic," "Camarilla," "Woodie," "Floor," "Fibonacci," and "Fibonacci Retracement." Users can select various timeframes for pivot calculation, offering flexibility in analysis. The tool allows for customization in width, color, and style, enhancing visual clarity. Additionally, the indicator supports multiple pivots with different timeframes on a single chart, providing a layered view of market levels. This all-inclusive approach aids in more robust technical analysis and decision-making processes.
#MQL5 #MT5 #PivotPoints #TradingIndicator

Read more...
πŸ‘33❀11πŸ‘¨β€πŸ’»5πŸ‘Œ1
Discover the power of alternative data with our latest analysis, focusing on VISA's Spending Momentum Index (SMI) as a predictor for EURUSD price movements. Delve into the utilization of a deep neural network to process intricate datasets and unlock potential market insights. Our robust methodology includes leveraging the FRED API for diverse economic data, optimizing neural network parameters, and employing feature selection to enhance model reliability. We highlight practical steps for integrating this approach within MetaTrader 5 using MQL5, and ensuring scalable implementation via ONNX format for seamless machine learning deployment. A must-read for enhancing your trading strategies!
#MQL5 #MT5 #AlternativeData #TradingAI

Read more...
πŸ‘28❀8πŸ”₯5πŸ‘¨β€πŸ’»3😱1πŸŽ‰1