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
Creating specialized WinForms objects in a library requires structuring categories similar to MS Visual Studio. Standard controls, containers, and other elements should inherit from a shared base object, CWinFormBase, to ensure consistent attributes and methods. Developing a GroupBox within the containers category and a CheckBox in standard controls facilitates identifying shared properties necessitating a common class for each category to streamline code development for future objects.

Incorporating macro substitutions for default properties upon object creation and refining enum lists to reflect categories supports library enhancement. GroupBox, designed to visually group objects, incorporates a frame, while CheckBox, inheriting from the Label object, allows states like checked, unchecked, or undefined using a label. Future implementations will conside...

πŸ‘‰ Read | NeuroBook | Share!

#MQL5 #MT5 #WinForms
πŸ‘45❀26✍7⚑6πŸ‘Œ3πŸ‘¨β€πŸ’»3πŸ’”2
A new update now allows automatic export of trade history after running an Expert Advisor in the Strategy Tester. The exported file is stored in either the shared terminal folder (Common/Files) or the terminal folder (MQL4/Files). Users have the option to either let the file name be generated automatically or manually set it using the Export() method. This history file is useful for replicating the trade sequence on another trading server with the Simple History Receiver EA.

Basic usage involves instantiating the object in the global scope and adding the Export() method call to OnTester(). For extended usage, instantiate the object in the global scope, add parameter names and values in OnInit(), and include the Export() method call in OnTester(). The Export() method provides additional options for customization.

πŸ‘‰ Read | VPS | Share!

#MQL4 #MT4 #EA
πŸ‘38❀22πŸ‘¨β€πŸ’»3πŸ”₯2πŸ†2πŸ‘Œ1
The adaptation of large-scale models to new tasks has been significantly influenced by the use of transformers, particularly due to their Self-Attention mechanism. While this offers robust modeling within a specific context window, it faces limitations in scale and context length. Sequence modeling can benefit from State Space Models (SSMs), which efficiently handle long-range dependencies with linear scaling. The Mamba algorithm introduces a novel class of selective SSMs that selectively process input data, allowing for efficient sequence transformations. The key lies in its unique selection mechanism that adjusts state interactions based on the input, thus enhancing performance in handling large sequences.

πŸ‘‰ Read | Freelance | Share!

#MQL5 #MT5 #Algorithm
πŸ‘46❀30πŸ‘¨β€πŸ’»4⚑2😁1πŸŽ‰1πŸ‘Œ1
The EA utilizes a custom indicator called 'CHO Smoothed', which integrates the Chaikin Oscillator (CHO) line and a smoothed version using 'Moving Average'. It operates on a specified timeframe, known as the 'Working timeframe'. Key to its operation is the intersection of the two lines, which generates trading signals. When the 'Use ZeroLevel' parameter is set to 'true', only signals that meet specific conditions are permittedβ€”β€˜BUY’ signals below zero and β€˜SELL’ ones above zero.

The EA’s settings allow for optimization on the specified timeframe, limiting one market entry per bar. Different modes determine signal searching, with bar #0 considering each tick and bar #1 focusing on new bar births. Trade directions can be limited to BUY, SELL, or both, based on the β€˜Trade mode parameter’.

Time controls manage the intervals during which signals are searched. Th...

πŸ‘‰ Read | NeuroBook | Share!

#MQL5 #MT5 #EA
πŸ‘28❀23✍8πŸ‘¨β€πŸ’»3πŸ‘Œ2⚑1πŸ‘Ύ1
In recent developments, emphasis has been placed on enhancing encapsulation within the C_FilesTicks class to prevent data leakage. The class's prior exposure of critical information posed security risks, necessitating adjustments for improved encapsulation. A private variable was introduced, safeguarding against unwarranted modifications. A constructor was added for proper initialization, while the C_ConfigService class also underwent refinement to align with these changes.

Further adjustments were made to the control indicator module. Code modifications ensure its stability and resilience against runtime data inaccuracies. These updates are essential for maintaining system integrity and preventing service interruptions.

Overall, these strategic updates significantly elevate the system's security, stability, and performance, laying a robust fou...

πŸ‘‰ Read | Docs | Share!

#MQL5 #MT5 #Encapsulation
πŸ‘20❀10πŸ‘¨β€πŸ’»3πŸ‘Œ2
Dive into the world of Receiver Operating Characteristic (ROC) graphs and discover how they enhance classifier performance evaluation. Explore how ROC curves provide critical insights into the trade-offs between true positive rates and false positive rates, particularly in financial datasets with skewed distributions. Learn about the importance of confusion matrices in encapsulating classification outcomes and calculating metrics like sensitivity and specificity. Understand how ROC curves visualize model performance across different thresholds, and leverage the area under the ROC curve (AUC) for simplified performance comparisons. This knowledge is invaluable for MetaTrader 5 developers and algorithmic traders seeking to refine their predictive models.

πŸ‘‰ Read | Quotes | Share!

#MQL5 #MT5 #Algorithm
πŸ‘17❀11πŸ‘Œ2πŸ‘¨β€πŸ’»1
Part 11 focuses on implementing a multi-level grid trading system in MQL5. This system strategically places buy and sell orders at various price intervals, profiting from market volatility without predicting direction. The architecture separates signal detection, order execution, and risk management. Key parameters like moving averages guide trade signals, while a basket structure manages trade details like lot sizes and grid spacing.

The implementation involves setting up in MetaEditor, declaring metadata and global variables, using the "CTrade" object for trade execution, and defining functions for basket initialization and position management. The system dynamically adjusts to market conditions, with Moving Averages filtering trade opportunities. The structured plan ensures robust backtesting and trading deployment, leveraging market fluctuatio...

πŸ‘‰ Read | AppStore | Share!

#MQL5 #MT5 #AlgoTrading
πŸ‘18❀14πŸ‘Œ4⚑2πŸ‘¨β€πŸ’»2πŸŽ‰1🀝1
Seasonal decomposition is a powerful MQL5 tool to dissect time series data, revealing trend, seasonality, and residual components. By isolating these elements, traders gain insights into market behavior and remove seasonal noise for clearer trend analysis. Implementing this in MQL5 involves using moving averages for trend extraction and separating seasonal patterns through additive or multiplicative models. This technique is invaluable for identifying recurrent market patterns, applicable in trading strategy development. Practical applications include analyzing stocks like Apple's, unearthing seasonal trends in intraday, monthly, or long-term data. This method enhances algorithmic trading by informing machine learning-based forecasts and strategies.

πŸ‘‰ Read | CodeBase | Share!

#MQL5 #MT5 #Forecasting
πŸ‘Œ22❀19πŸ‘14πŸ”₯5✍3πŸŽ‰1πŸ‘¨β€πŸ’»1
An analysis of indicator line shapes using three distinct formulas reveals consistent patterns across variations in values. Applying the Fast-Slow, Fast/Slow, and (Fast-Slow)/Slow Rice formulas, each method deploys two moving averages within its structure. When reviewing data visually, three distinct indicators on a chart may appear similar in form, but they convey different value sets due to their underlying calculations. Each technique provides unique insights despite their visual congruence, contributing to a more comprehensive understanding of market dynamics for informed decision making in technical analysis.

πŸ‘‰ Read | NeuroBook | Share!

#MQL5 #MT5 #Indicator
πŸ‘26❀8πŸ‘¨β€πŸ’»3πŸ‘Œ2
Efficient coding practices demand an understanding of passing by value and by reference. The concept of passing by value involves a function receiving a variable copy, ensuring the original data remains unchanged. This is often safer and crucial in scenarios where data integrity is a priority.

In contrast, passing by reference involves providing a function direct access to a variable. While this method is powerful, it carries the risk of unintentional data modifications, often leading to complex debugging challenges.

For programmers, especially those using C or C++ inspired languages like MQL5, mastering these distinctions is key to writing clean, efficient, and error-free code. Prioritize value passing unless modification is absolutely necessary.

πŸ‘‰ Read | Forum | Share!

#MQL5 #MT5 #Education
πŸ‘24❀9πŸ†3⚑2πŸ”₯2πŸ‘Œ1πŸ‘¨β€πŸ’»1
The article explores the Traj-LLM algorithm, designed to enhance trajectory prediction using Large Language Models. Developed initially for autonomous vehicle applications, Traj-LLM harnesses Sparse Contextual Joint Encoding, high-level interaction modeling, and Lane-aware probabilistic learning, ensuring improved prediction accuracy. By utilizing pre-trained LLMs, the model overcomes traditional constraints of feature engineering, providing a robust approach to model temporal dependencies and interactions among traffic elements. The article also discusses implementing Traj-LLM in algorithmic trading using MQL5, highlighting modifications to existing neural network components for improved data processing efficiency and accuracy.

πŸ‘‰ Read | AppStore | Share!

#MQL5 #MT5 #AITrading
πŸ‘25❀16πŸ‘¨β€πŸ’»5πŸ‘Œ3⚑1
Enhancements to expert advisors (EAs) for real account trading are essential, focusing on factors beyond acceptable strategy tester results. Key improvements include restoring EA operation post-terminal restart, handling varied trading instrument names, and automating trading upon indicator thresholds.

A robust system involves retrieving necessary initialization strings from a multi-gigabyte database storing optimization results. Only vital information is extracted for efficient EA execution, avoiding full database integration.

Optimization involves three stages: single trading strategy optimization, group parameter selection, and final group selection across symbols and timeframes. Optimizing group sizes and forming a strategy group library entail detailed study. Automation streamlines results entry and library formation in databases, eliminating manual ef...

πŸ‘‰ Read | AppStore | Share!

#MQL5 #MT5 #EA
πŸ‘60❀24⚑4πŸ‘4πŸ‘Œ2πŸ‘¨β€πŸ’»2
Experience the enhanced functionality in MT4 with the Chaikin Oscillator, now featuring a smoothing option. This tool easily integrates into your technical analysis toolkit, offering a smoothed version of the traditional Chaikin Oscillator. It maintains the core purpose of measuring the momentum of the Accumulation/Distribution line over time, providing traders with the ability to better visualize trends and potential divergence.

With this addition, users can eliminate some of the noise that often accompanies volatile market movements, leading to clearer, more actionable insights. This improvement is particularly useful for those requiring precise analysis in dynamic trading environments. The oscillator remains an essential indicator in volume-based analysis, and the smoothing option enhances its utility, particularly for long-term strategy evaluations.

πŸ‘‰ Read | VPS | Share!

#MQL4 #MT4 #AI
πŸ‘29❀17πŸ‘Œ3πŸ‘¨β€πŸ’»2
CCommunicationDialog to create it, giving it m_chatId and m_botToken so it knows about Telegram. After creation, we call m_commPanel->Create() with parameters to place it on the screen.

Once we have a communication panel, we call m_commPanel->Toggle() every time the button is clicked. This shows or hides the panel, letting you interact with it as needed.

This method ties the communication dialog to the home dialog, ensuring it appears and disappears when requested, integrating into the overall system behavior fluidly, and handling user interactions cleanly within the modular structure.

πŸ‘‰ Read | Freelance | Share!

#MQL5 #MT5 #MQL5
πŸ‘25❀11🀣2πŸ‘Œ1πŸ‘¨β€πŸ’»1
TrendLoom EA supports traders by generating quick, reliable signals across multiple timeframes without manual switching. Its graphical interface features buttons linked to distinct trading strategies such as Short-Term Focus and Long-Term Trend. Each strategy employs SMAs to determine market signals. By pressing a button, the EA compares the closing price against SMAs, summing signals to issue a BUY, SELL, or NEUTRAL outcome. This aids in confirming overall trends and reducing entry mistakes. Efficient signal updates ensure timely decision-making and enhance analytical precision. The EA's coded framework utilizes MQL5 elements for an interactive yet maintainable interface, streamlining market analysis for traders.

πŸ‘‰ Read | Signals | Share!

#MQL5 #MT5 #EA
πŸ‘35❀15πŸ‘Œ9πŸ‘¨β€πŸ’»1
An indicator displays signals in the main window using Arrow objects based on the iCHO indicator (Chaikin Oscillator, CHO) and its smoothed variant, iCHO Rice. The main feature is the CHO Smoothed Arrow which guides users through visual signal cues. Please remember that indicators in the subwindow are manually added solely for visualization purposes, aiding in interpreting the data. This setup allows for a clear representation of market trends and helps in making informed trading decisions. The combination of these elements can streamline analysis for technical analysts and traders.

πŸ‘‰ Read | Freelance | Share!

#MQL5 #MT5 #Indicator
πŸ‘24❀13πŸ‘¨β€πŸ’»5πŸ‘Œ4πŸ†3
Explore the potential of MetaTrader 5 by leveraging MQL wizard to experiment with simple trading patterns efficiently. By combining the Moving Average with the Stochastic Oscillator, traders can generate high-probability trading signals. Delve into the three machine learning phases: Supervised Learning for model training, Reinforcement Learning for optimizing decision-making, and Inference for applying learned insights to new data. Advanced Python integration with neural networks offers significant efficiency gains, enabling cross-validation and forward testing of predictive models. These methods enhance automated trading strategies, providing traders and developers with robust, data-driven decision-making tools for financial markets.

πŸ‘‰ Read | Signals | Share!

#MQL5 #MT5 #EA
πŸ‘24❀2πŸ‘¨β€πŸ’»2πŸ‘Œ1
The article delves into the innovative adaptation of the Tabu Search algorithm for optimizing continuous search spaces. Initially renowned for efficiently solving combinatorial problems using adaptive memory, this modified version introduces a discretization technique, categorizing search parameters into sectors managed by "white" and "black" lists. This structure enhances adaptive exploration by dynamically adjusting search priorities based on previous successes or failures, thereby preventing redundant cycles and promoting diversification. Practical applications include optimizing complex algorithmic trading strategies, offering developers a robust tool to explore diverse solution spaces without excessive parameter tuning, while ensuring efficiency in finding optimal trading strategies.

πŸ‘‰ Read | CodeBase | Share!

#MQL5 #MT5 #Algorithm
πŸ‘30❀9πŸ‘¨β€πŸ’»2πŸ‘Œ1
Optimizing algorithmic models demands precision and stability in parameter selection. The complexity increases with the integration of strict parameters from proprietary firms. Developing a Custom Criterion allows for targeted optimization without extensive manual analysis. However, caution is needed to avoid issues like the misuse of return(0) in optimization processes that could lead to discarding viable results.

Adapting principles from Neural Networks, such as Activation Functions, can refine parameter selection by offering structured ways to handle data ranges and improve scoring methods. Functions like Sigmoid and Tanh are particularly beneficial due to their constrained and stable output ranges, preventing issues like exploding or vanishing gradients.

This approach advances the capability to harness genetics-based algorithms for superior optimizatio...

πŸ‘‰ Read | Calendar | Share!

#MQL5 #MT5 #AI
πŸ‘30❀7πŸ‘¨β€πŸ’»5✍4πŸ†3πŸ€“2πŸ‘Œ1
BreakRevertPro introduces a sophisticated set of features for modern trading environments. It emphasizes statistical analysis using Weibull, Poisson, and Exponential distributions to identify trades. The system is designed for validation with a built-in safety mechanism that adjusts position sizing, particularly for precious metals, ensuring robust performance.

The software supports multi-timeframe analysis, from M1 to H1, providing a thorough market overview. It utilizes dynamic stop loss and take profit validation, ensuring trades align with market conditions. BreakRevertPro automatically detects validation environments, incorporating a highly integrated validator class for broker compliance.

Risk management remains a priority with multiple margin safety checks. The system adapts execution based on real-time market conditions and uses persistent ...

πŸ‘‰ Read | CodeBase | Share!

#MQL5 #MT5 #Strategy
πŸ‘31❀11πŸ”₯5πŸ‘¨β€πŸ’»2πŸ‘Œ1