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
Matrix factorization is a crucial technique for calculations, but improper modeling can lead to inefficiencies and errors. The key is to properly understand how to represent and manipulate matrices in code. Earlier discussions emphasized understanding calculations without focusing on the correct modeling of matrices.

In the previous setup, matrices were specified only by columns, creating confusion. Correct matrix modeling requires recognizing them as dynamic entities, not static arrays, applicable across multiple dimensions. For clarity, matrices should be seen as one-dimensional arrays in a multidimensional space.

Consideration of element ordering in arrays directly affects matrix operation implementations. Element arrangement dictates necessary code transitions. Aligning these orders to computation needs is essential. Enhancing code for larger matrices...
#MQL5 #MT5 #Matrix #Coding

Read more...
πŸ‘28❀16πŸŽ‰5πŸ‘¨β€πŸ’»5
The TimeServerDaylightSavings() function addresses a gap in built-in functionalities, offering server-specific DST information. Complemented by an mqh-file, it includes other time-related server functions, notably determining if brokers implement DST adjustments universally. This methodology stems from statistical analysis of broker quote histories, as outlined in an algorithmic trading guide. By examining weekly opening hours, it identifies GMT offsets to differentiate between standard and daylight-saving times.

Recent updates enhance script accuracy by incorporating a fix for the October 2024 release, mitigating US market DST impacts. This refinement ensures consistent time detection. Notably, Northern and Southern Hemisphere DST adjustments differ, which should be accounted for in global trading strategies.

For optimal results, execute the code on...
#MQL5 #MT5 #Script #AlgoTrading

Read more...
❀15πŸ‘12⚑7πŸ‘¨β€πŸ’»4πŸŽ‰2
The Advantage Actor-Critic (A2C) algorithm efficiently combines Q-learning and policy gradient methods for reinforcement learning models. A2C uses two modelsβ€”Actor and Critic. The Actor decides actions based on policy approximations, allowing for stochastic and adaptive strategies, while the Critic evaluates action choices using Q-learning methods.

This collaboration enables reduction in data variance by training the model with less bias and minimized error. The Critic assesses potential rewards from environments, refining the Actor’s decisions compared to expected outcomes. Implementing A2C doesn't necessitate significant structural changes and can be executed using common neural network architectures for practical deployment.
#MQL5 #MT5 #AI #ReinforcementLearning

Read more...
πŸ‘30❀17πŸ‘¨β€πŸ’»7πŸ‘€6πŸŽ‰3⚑2
A new indicator allows for the visualization of higher timeframe candles on the current working chart. This functionality is demonstrated by overlaying daily (D1) candles on an hourly (H1) timeframe for enhanced analytical insights. It aids traders in identifying longer-term trends while working within shorter timeframes, facilitating more informed decision-making. The transparent overlay of the larger candle provides an immediate context of the larger market movement, assisting in recognizing prevailing trends or potential reversals. This tool can improve strategic planning by maintaining a broader market perspective, even while engaging with short-term data. It enhances the trading interface with clarity and utility.
#MQL4 #MT4 #Indicator #Strategy

Read more...
πŸ‘36❀25πŸ†3πŸŽ‰2πŸ‘Œ2πŸ‘¨β€πŸ’»2✍1
Swarm intelligence, initially conceptualized in StanisΕ‚aw Lem's novel "The Invincible," serves as a foundational idea in algorithmic optimization. This concept is characterized by systems operating without centralized control. The Particle Swarm Optimization (PSO) algorithm, inspired by this notion, models optimization tasks by simulating the behaviors of autonomous particles within a swarm environment. Each particle aims to reach the optimal solution through position and velocity updates, leveraging both individual and collective knowledge about the problem space. The algorithm has demonstrated efficacy in optimizing complex, continuous functions, but faces challenges with discrete functions unless adapted accordingly. Stay current with developments in swarm-based algorithms for enhanced optimization techniques.
#MQL5 #MT5 #Algorithm #AI

Read more...
πŸ‘33❀28πŸ‘¨β€πŸ’»7πŸ‘Œ5
The Expert Advisor (EA) operates based on signals generated by the custom indicator "WPR Custom Cloud." It signals a 'BUY' position when the indicator exits the lower zone and a 'SELL' position when it exits the upper zone. The EA evaluates signals only at the birth of a new bar. Traditional risk management tools such as 'Stop loss', 'Take profit', or 'Trailing Stop' are not incorporated in this EA. Positions are closed when an opposite signal is detected, ensuring that trades remain in alignment with the dynamic signals provided by the "WPR Custom Cloud" indicator. This approach prioritizes adherence to indicator-based strategies over fixed profit or loss parameters.
#MQL5 #MT5 #EA #Indicator

Read more...
❀30πŸ‘21⚑7πŸ‘¨β€πŸ’»4πŸ‘€4πŸ‘Œ3
Explore the intricacies of implementing Policy Gradient in MetaTrader 5 with a focus on enhancing reinforcement learning for algorithmic trading. This article delves into using the SoftMax function in MQL5, transforming neural network outputs into probabilistic behavior strategies for trading agents. Key insights cover effectively leveraging OpenCL for parallel computation, optimizing the learning balance between exploration and exploitation, and ensuring model robustness against dynamic market conditions. Through adept use of neural networks, developers can create strategies that maximize profitability by refining action selection over time. Ideal for developers seeking to advance their algorithmic trading strategies using cutting-edge reinforcement learning techniques.
#MQL5 #MT5 #ReinforcementLearning #PolicyGradient

Read more...
πŸ‘36❀27πŸ‘5πŸ‘Œ4πŸ‘¨β€πŸ’»2
The RSI adaptive EMA custom indicator has been updated to include several types of alert signals triggered by color changes. These enhancements provide multiple notification options to ensure users stay informed of market movements. Sound alerts offer immediate auditory feedback. Email notifications enable users to receive updates directly in their inbox, ensuring they never miss critical changes. Push notifications are designed for those who prefer real-time alerts on mobile devices, facilitating swift reactions. This comprehensive alert system aims to improve user engagement and market awareness by delivering timely and varied notifications.
#MQL5 #MT5 #RSI #Indicator

Read more...
❀34πŸ‘12πŸ‘Œ2πŸ‘¨β€πŸ’»2πŸ†1
Explore efficient LoRA-Tuning techniques for enhancing GPT-2 models tailored to financial data, utilizing the peft library for straightforward implementation. This article details the essential components such as LoraConfig and PeftModel class usage, aiding developers in optimizing model performance under varying market conditions. It emphasizes accurate environment configuration, simplifying troubleshooting. Practical insights on setting key parameters like lora_alpha and lora_dropout are shared, guiding traders and developers in achieving optimal results. Leverage these robust methodologies to refine your algorithmic trading models and enhance decision-making accuracy.
#MQL5 #MT5 #FineTuning #LoRA

Read more...
πŸ‘19❀11πŸ‘¨β€πŸ’»4πŸ‘Œ3πŸ‘€1
CatBoost is an open-source gradient boosting library developed by Yandex in 2017, optimized for handling categorical features efficiently. It offers performance advantages in real-world machine learning applications, leveraging target-based encoding and ordered boosting to prevent data leakage and overfitting.

Unlike its contemporaries, XGBoost and LightGBM, CatBoost utilizes symmetric decision trees, ensuring balanced growth and faster predictions. This design contributes to its robustness against data perturbations, providing reliable accuracy across various datasets.

When comparing performance, CatBoost excels in datasets rich with categorical features, though it may train slower than LightGBM on larger sets. Despite its recent introduction, CatBoost has gained popularity for its ease of use and consistent results.
#MQL5 #MT5 #CatBoost #AITrading

Read more...
❀23πŸ‘18⚑3πŸ‘¨β€πŸ’»2πŸ‘1πŸ‘Œ1
Discover the technical evolution of the Chart Trade indicator in MetaTrader 5, a vital tool for algorithmic traders and developers. This article delves into enhancing its functionality by integrating it directly with Expert Advisors, mirroring true indicator behavior. The process involves creating a dedicated data buffer, refining the C_ChartFloatingRAD class, and ensuring seamless synchronization between the indicator and the EA via buffered communication. This upgrade not only preserves critical data during re-initialization but also optimizes command execution. By leveraging MetaTrader 5's architecture, developers can achieve modular standardization, ensuring reliable trading automation without sacrificing control or performance.
#MQL5 #MT5 #Indicator #EA

Read more...
πŸ‘29❀14πŸ‘Œ7πŸ”₯3πŸ‘2πŸ‘¨β€πŸ’»1
The Crossover Vortex EA focuses on identifying pivotal moving average crossovers, delivering precise buy and sell indicators during crucial market conditions. With fully adjustable settings for moving averages, take profit, stop loss, and slippage, it allows traders to tailor their approach, heightening efficiency and reducing risk. Ideal for those looking to leverage market momentum with accurate and timely trades.

Key parameters include the Position Size to manage risk per trade, and "Use Entry to Exit," which offers the option to exit on the next crossover or predetermined TP and SL levels. Define the Stop Loss in pips for effective risk management, and set the Take Profit to ensure strategic exits. Adjust slippage tolerance for precise execution in volatile markets. Configure MA Fast and Slow Periods to align with your trading strategy.
#MQL4 #MT4 #EA #AlgoTrading

Read more...
πŸ‘22❀11πŸ‘¨β€πŸ’»4πŸ‘3⚑1πŸ‘Œ1
Explore the intricacies of HTTP request bodies and their vital role in client-server data exchange. This article sheds light on configuring HTTP body formats like JSON in the Connexus library for MetaTrader 5, facilitating algorithmic trading development. Delve into the advantages of using char arrays over strings for performance in high-volume data scenarios. The newly introduced CHttpBody class in the Connexus library simplifies managing request bodies, supporting text and binary data without complex formatting issues. The insights provided streamline integration with REST APIs, essential for modern trading applications, enhancing data transmission efficiency and compatibility for developers. Discover more in this ongoing series.
#MQL5 #MT5 #HTTP #JSON

Read more...
❀15πŸ‘10πŸ‘¨β€πŸ’»4πŸ†2⚑1πŸ”₯1πŸ‘Œ1
Unlock the potential of MetaTrader 5 with our guide on building an interactive trading dashboard using MQL5's Controls class. Enhance your trading efficiency with a structured GUI panel featuring essential buttonsβ€”Trade, Close, and Information. The Trade section integrates functionality for volume, price, SL, and TP controls, alongside actions like Buy and Sell. The Close section streamlines trade management with options to close all profits or pending orders. Meanwhile, the Information panel provides vital market insights and status updates. Learn to assemble this panel within MetaEditor, utilizing key MQL5 libraries, thereby creating a seamless and user-friendly trading experience. Embrace innovation in algorithmic trading by developing sophisticated interfaces that cater to practical trading needs.
#MQL5 #MT5 #Dashboard #AlgoTrading

Read more...
❀20πŸ‘14πŸ†3πŸ‘Œ2πŸ‘¨β€πŸ’»2⚑1
The article delves into the predictive capabilities of the MACD indicator on EURUSD, assessing whether AI can address its inherent lag. Using a customized MQL5 script to gather extensive data, the analysis discovered that MACD might not effectively predict future price levels due to its non-linear relationship with prices. Through cross-validation and feature importance tests, OHLC data was found more informative. The article experimented with deep learning models, but simple models like linear regression outperformed complex neural networks. Ultimately, a Support Vector Machine model was optimized and exported to ONNX format, facilitating its integration with MetaTrader 5 for enhanced trading strategies.
#MQL5 #MT5 #MACD #AITrading

Read more...
πŸ‘18❀8✍7πŸ‘¨β€πŸ’»4⚑3πŸ‘Œ3
To address a coding anomaly related to neural network visualization, trigonometric functions, specifically the secant, play a critical role. An error causing data points to display incorrectly on the X and Y axes is identified. The inversion stems from incorrect index handling in the code, an issue resolved by adjusting even and odd indices in global arrays. Fixing this aligns data representation and prevents unauthorized memory access errors. Implementing a revised code version allows for correct graph depiction. Such meticulous attention to array element positioning is crucial for precise computational outcomes and effective debugging in programming practices.
#MQL5 #MT5 #NeuralNet #AI

Read more...
πŸ‘34❀25πŸ‘¨β€πŸ’»5πŸ‘Œ3⚑2πŸŽ‰2πŸ†2
The Colored SAR indicator provides enhanced visibility into price trends by changing colors with direction shifts. This tool supports various alert types for maximum flexibility: an audible alert for immediate attention, email notifications for those who prefer updates in their inbox, and push notifications for instant alerts on mobile devices. It's designed to ensure traders receive timely information on market movements without constant screen monitoring. Adjustable settings cater to individual preferences, aiding efficient decision-making. With its user-friendly alerts system, the Colored SAR indicator streamlines market analysis and improves responsiveness to trend changes.
#MQL5 #MT5 #Indicator #TradingAlert

Read more...
❀22πŸ‘22πŸ‘¨β€πŸ’»4πŸ‘Œ3🀝1
Discover a streamlined approach to analyzing historical trades with a custom MetaTrader 5 script. Designed to minimize manual tasks, this script automates data collection from historical trades, generating comprehensive charts for enhanced decision analysis. Whether you prefer analyzing single deals or multiple trades over a specified period, the script flexibly caters to all needs. Optimize your analysis by setting multiple timeframes and customize chart templates for a richer visual display. This tool significantly reduces time spent on technical tasks, allowing traders to focus on strategy refinement. Ideal for developers and algorithmic traders aiming to bolster trading efficiency and explore new algorithmic ideas.
#MQL5 #MT5 #script #AlgoTrading

Read more...
πŸ‘24❀8✍3πŸ‘Œ3πŸ‘¨β€πŸ’»2
Explore the creation of a comprehensive Pending Orders Management library for MetaTrader 5, designed specifically with algorithmic traders in mind. This article delves into structuring a functional EX5 library using standard MQL5 functions to open, modify, and manage pending orders efficiently. Discover how to streamline the development process by importing this library, which significantly reduces code redundancy and accelerates project timelines. Learn to implement practical error-handling strategies and ensure trading permissions are met. With a focus on enhancing trading efficiency, this library is an essential toolkit for both novice and experienced MQL5 developers aiming to optimize their algorithmic strategies.
#MQL5 #MT5 #MQL5 #Libraries

Read more...
πŸ‘23❀11πŸ‘¨β€πŸ’»3πŸ‘Œ2πŸ†1
In the recent update on developing a replay system, the focus shifted to enhancing the Chart Trade Project. The initial attempts to integrate a control indicator on the chart using a service proved challenging, emphasizing the need to convert MQL5 scripts into services effectively. A service can operate independently from a specific chart, which facilitates ongoing chart monitoring.

The article highlights differences between scripts and services, illustrating how a simple moving average script can be transformed into a service. This involves crucial property adjustments in the code to ensure functionality even without direct chart linkage. The enhanced service can automatically reintroduce indicators if removed, offering an innovative method for maintaining chart configurations.

Additionally, the discourse extends to the practical application, such as...
#MQL5 #MT5 #ReplaySystem #MQL5

Read more...
πŸ‘44❀17πŸ€“7πŸ‘¨β€πŸ’»4πŸ‘Œ3✍2πŸ†1