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
In delving into advanced machine learning, this article addresses a critical but often overlooked component: irreducible error. Beyond the inherent variability and model bias commonly acknowledged, it introduces a third source of error, obscured by abstraction. By examining models from a geometric perspective, practitioners can better understand the manifold mismatch, where predictions poorly align with target realities in their own domains. This discussion extends into practical trading applications, demonstrating enhanced profitability and reduced risk using an improved feedback controller approach. Both developers and traders can benefit from these insights, offering a more intelligent application of machine learning in trading strategies.

πŸ‘‰ Read | Forum | @mql5dev

#MQL5 #MT5 #ML
❀27✍8πŸ‘4πŸ”₯2πŸ‘¨β€πŸ’»2πŸ‘Ύ2
Explore the groundbreaking Multi-Agent and Self-Adaptive portfolio optimization framework integrated with Attention mechanisms and Time series (MASAAT) for dynamic trading. This sophisticated framework harnesses attention mechanisms to extract trend features from noisy time series, utilizing Cross-Sectional Attention (CSA) and Temporal Attention (TA) for superior asset and temporal insight. Agents analyze market trends at various granularities, enhancing portfolio adaptability in volatile conditions. An MQL5 implementation showcases its practical application, emphasizing modular object structure for parallel operation. Leveraging OpenCL, multi-agent trend detection is optimized, paving the way for refined portfolio strategies in computational finance. Ideal for developers keen on algorithmic trading innovations.

πŸ‘‰ Read | Signals | @mql5dev

#MQL5 #MT5 #Portfolio
❀28πŸ‘9πŸ‘¨β€πŸ’»3πŸ†1😎1
Explore the cosmic-inspired Big Bang-Big Crunch (BBBC) algorithm, a global optimization method that simplifies complex problem-solving for algorithmic traders and developers. Drawing parallels to cosmic phenomena, this method uses a dynamic population of candidates, adapting through chaotic exploration and focused refinement phases. Innovative implementation balances randomness with precise targeting, ensuring robust solutions. Despite impressive outcomes on standard benchmarks, deeper analysis reveals limitations due to its over-reliance on central optima. By revising the approach, we enhance objectivity, leading to true optimization results. Whether adjusting algorithm parameters or testing new strategies, BBBC offers an intriguing perspective on iterative problem-solving.

πŸ‘‰ Read | Signals | @mql5dev

#MQL5 #MT5 #Algorithm
❀30🀑8πŸ‘6πŸ‘Œ2🀨2πŸ‘¨β€πŸ’»2
The development of a replay system requires careful handling of futures contracts, particularly with assets that have both full and mini contract types. When designing an Expert Advisor to interpret Chart Trade instructions, programmers encounter challenges with assets like futures that have expiration dates. Addressing these challenges involves understanding contract types and ensuring historical data is correctly applied, as traders often rely on historical accuracy when strategizing.

While adapting the cross order system for varying contracts, establishing naming conventions is crucial. This involves a systematic method for identifying active contracts and mapping historical data to them, ensuring consistency in the display and execution of trades. The focus here is on extended timeframes and the continuity of data for long-term strategies.

Prog...

πŸ‘‰ Read | AlgoBook | @mql5dev

#MQL5 #MT5 #Strategy
❀48⚑5πŸ‘¨β€πŸ’»4πŸ‘2πŸ‘Ύ2
HedgeCover EA is engineered for meticulous risk management in trading operations. It stands out from high-risk martingale systems by providing a controlled environment to protect losing positions. Key functionalities include the One-Hedge-Per-Position method, which avoids infinite hedging loops and prevents excessive trades. It distinctly uses Magic Number Separation to differentiate main positions from hedges.

Configurable Loss Threshold allows traders to establish loss levels between 30 and 100 pips before hedge activation. A Cooldown Protection feature mandates a minimum period between hedges, ranging from 5 to 15 minutes, and Max Hedges Limit caps the total hedge count.

To prevent over-leverage, Margin Safety Checks enforce an 80% free margin requirement, and Symbol Filtering confines hedging to the current chart. It incorporates lot size validation and no...

πŸ‘‰ Read | Quotes | @mql5dev

#MQL5 #MT5 #EA
❀33πŸ‘13⚑3πŸ‘¨β€πŸ’»2πŸŽ‰1πŸ‘€1
Orthogonal polynomials serve as a robust method for analyzing market data, thanks to their unique mathematical properties. In trading, they can efficiently simulate time series by filtering out noise and highlighting trends. Polynomials such as Legendre and Chebyshev can be applied in technical analysis for smoothing data, trend detection, and constructing complex trading indicators.

Their independence and adaptability enhance model stability and interpretability. Strategies using orthogonal polynomials, like polynomial regression and adjusted technical indicators, can significantly improve prediction accuracy and market adaptability. Moreover, they integrate well with machine learning to capture complex data relationships and reduce overfitting.

πŸ‘‰ Read | VPS | @mql5dev

#MQL5 #MT5 #Indicator
❀39πŸ‘6πŸ‘¨β€πŸ’»4
Discover how to build a robust MQL5 system that enhances price-action trading by transforming fractal pivots into reliable signals. This technical guide presents a practical approach to using fractal pivots as stable anchors, detecting pivotal market shifts through Changes of Character (ChoCH) and Breaks of Structure (BOS). These signals provide early warnings and confirmations of trend reversals, using closed-bar logic to ensure non-repainting and backtestable accuracy. The article delves into the complete algorithm design and MQL5 implementation, offering features like alerts, logging, and multi-channel notifications. It’s a powerful tool for traders seeking to streamline their strategy with automated alerts and effective market analysis.

πŸ‘‰ Read | Quotes | @mql5dev

#MQL5 #MT5 #Trading
❀48πŸ‘7πŸ‘¨β€πŸ’»3
The latest update enhances the News Headline EA by incorporating a multi-chart visualization feature for multiple-symbol management. A new class, CChartMiniTiles, was developed to enable traders to view multiple charts within a single chart space, customizable in size and easily controlled via a toggle button. This feature supports real-time decision-making during volatile market events by allowing easy access and quick toggling of price views for selected trading pairs. The modular and maintainable design focused on separate testing, reducing errors during integration into complex systems.

An example EA, MiniChartsEA, was used to validate this functionality. Initial tests confirmed the seamless toggling of mini-chart views, adjusted to broker-specific symbol formats. This functionality will be integrated into the main EA, enhancing the trading workspace by...

πŸ‘‰ Read | VPS | @mql5dev

#MQL5 #MT5 #EA
❀81✍9πŸ‘8πŸ‘¨β€πŸ’»4🀯3πŸ‘€3⚑2
Risk Calculator is a valuable resource for traders prioritizing swift and precise calculations. It eliminates the need for manual computations of financial values related to Stop Loss and Take Profit. This Expert Advisor provides an intuitive chart panel that allows for quick visualization of trade risk and reward, prior to order placement. With a streamlined and performance-optimized interface, it integrates smoothly into trading setups, offering essential information without chart clutter or system slowdown.

Key features include:

- Instant Calculation: Input lot size and point distances for Take Profit and Stop Loss to immediately view values in your account's currency.
- On-Chart Interface: User-friendly, positioned to not obstruct technical analysis.
- Real-Time Point Value: Displays monetary value per point for the current symbol, clarifying volatil...

πŸ‘‰ Read | Calendar | @mql5dev

#MQL5 #MT5 #EA
❀44πŸ†3πŸ‘¨β€πŸ’»2✍1πŸ‘Ύ1
The MA of Custom RSI indicator integrates a moving average into the RSI framework to reduce erratic signals. This tool is beneficial for those seeking smoother trend analysis and reliable entry and exit points. Key features include a dual-layer analysis presenting both raw and smoothed data for comprehensive evaluation. Customize settings such as MA Period, Method, and Shift for tailored strategies. The intuitive design includes adjustable overbought and oversold levels with clear visual guidance.

For traders working with MetaTrader 5, ensure the RSI example indicator is located in the correct directory. The MA of Custom RSI enhances established strategies, including MA crossover, trend confirmation, divergence detection, and level rejection, by providing a clear momentum perspective.

πŸ‘‰ Read | Signals | @mql5dev

#MQL5 #MT5 #Indicator
❀31πŸ‘4✍3πŸ‘¨β€πŸ’»2⚑1πŸ‘Œ1
The MACD (Moving Average Convergence/Divergence) indicator is a staple in algorithmic trading for identifying momentum. Employ the MACD signal line as a momentum filter to refine trading strategies. For buy logic, consider it enabled when the signal line remains above the zero threshold and the latest bar of the signal line surpasses the preceding bar. This condition inherently incorporates upward crossovers. Conversely, activate sell logic when the signal line falls below the zero threshold and the latest bar closes lower than the prior bar, ensuring inclusion of downward crossovers. Implementing these conditions can enhance decision-making in automated trading systems.

πŸ‘‰ Read | CodeBase | @mql5dev

#MQL5 #MT5 #Indicator
❀31πŸ‘Œ9πŸ‘¨β€πŸ’»2πŸ‘€2
Explore the intricacies of algorithmic trading with the newly developed AB=CD Pattern system in MQL5. Designed for MetaTrader 5, this system identifies bullish and bearish harmonic AB=CD patterns using precise Fibonacci ratios for dynamic trading execution. It handles trade entries, stop-loss, and multi-level take-profit targets with sophisticated chart visualizations featuring triangles, trendlines, and labels that clearly present patterns. Understand the implementation, from the foundational MQL5 coding practices to effective pivot point analysis, ensuring you can harness this strategy for enhanced trading decisions. Learn how it integrates robust trade execution and visualization techniques aimed at improving trading efficiency.

πŸ‘‰ Read | AlgoBook | @mql5dev

#MQL5 #MT5 #HarmonicTrading
❀37πŸ‘¨β€πŸ’»3
Version control is essential for medium to large projects to track changes, organize code, and revert to previous versions using systems like Git or SVN. Despite MetaEditor supporting SVN-based MQL Storage, Git is preferred due to its robust branching and merging features. MetaQuotes plans to integrate Git with MetaEditor and launch MQL5 Algo Forge, an in-house Git alternative.

To transition, create a new Git repository, clone it locally, and configure with .gitignore for efficient file management. Utilize tools like VSCode and Git for repository management. Store projects in separate branches or repositories depending on project dependencies. Transition involves creating a main repository, configuring branches, and managing changes smoothly.

πŸ‘‰ Read | AlgoBook | @mql5dev

#MQL5 #MT5 #Git
❀29πŸ‘Œ8✍4πŸ‘2πŸ‘¨β€πŸ’»1
Traders often encounter inconsistency in strategies due to reliance on multiple indicators without a cohesive framework. A single Expert Advisor (EA) integrating Smart Money Concepts (SMC) strategies offers a powerful solution. SMC includes understanding market behavior through Order Blocks (OB), Break of Structure (BOS), and Fair Value Gaps (FVG). The EA simplifies workflow, automates trading decisions, and enhances focus on high-probability price-action signals. By unifying these concepts, traders achieve efficient, consistent, and adaptive trading aligned with changing market conditions, reducing guesswork and enhancing trade execution in the process. This approach fosters disciplined, rule-based market engagement.

πŸ‘‰ Read | VPS | @mql5dev

#MQL5 #MT5 #EA
❀59πŸ‘Œ19πŸ’―9πŸ‘¨β€πŸ’»9⚑2
An indicator is available that assigns distinct colors to bullish and bearish candles, enabling clear visualization of market trends. By differentiating between bullish and bearish candles through color, this tool eliminates confusion that arises from candles with identical colors. The design facilitates quick identification of market movement by visually distinguishing between upward and downward trends. This simplifies the process of reading charts, making it easier to interpret market signals accurately. Users can utilize this feature to enhance the precision of their chart analysis without misinterpretations.

πŸ‘‰ Read | AppStore | @mql5dev

#MQL4 #MT4 #Indicator
❀34πŸ‘3🀑2πŸ‘¨β€πŸ’»2
Updating our cointegration model in real-time is crucial for dynamic portfolio management. Real-life trading requires adjusting stock weights with every new data point. Our approach caters to retail traders with modest resources, applying statistical arbitrage techniques to identify correlated assets and cointegrated stocks.

We've restructured our Python scripts for efficiency. The database now acts as the main interface, updating our trading model and storing relevant parameters. The pipeline includes statistical tests like Pearson correlation, Engle-Granger, ADF, and KPSS for comprehensive analysis.

On the MQL5 side, we've made strategy parameters flexible by integrating JSON parsing and global variables, facilitating seamless database interaction for real-time updates. Maintaining a clean architecture with most functions in an MQL5 header f...

πŸ‘‰ Read | AlgoBook | @mql5dev

#MQL5 #MT5 #Cointegration
❀30πŸ‘7πŸ‘¨β€πŸ’»4✍1
Navigating complex market dynamics is streamlined with the innovative Market Sentiment indicator for MetaTrader 5. This tool amalgamates signals across multiple timeframes into a cohesive, visual panel, differentiating market sentiments into five categories: bullish, bearish, risk-on, risk-off, and neutral. It leverages moving averages and swing analysis to identify dominant trends and potential breakouts, providing a comprehensive view of market conditions. Multi-timeframe integration ensures traders can align short-term entries with broader trends, enhancing strategic decision-making and trade consistency. Efficient sentiment visualization reduces uncertainty, offering a structured approach that aids in quick market assessments and informed trading decisions.

πŸ‘‰ Read | Forum | @mql5dev

#MQL5 #MT5 #Indicator
❀35πŸ‘¨β€πŸ’»4πŸ‘2
The ongoing transition from SVN-based MQL5 Storage in MetaEditor to the Git version control with MQL5 Algo Forge offers increased flexibility, particularly through repository branching. Initially, a new repository was created, and a local development setup with Visual Studio Code was established. The archival of existing projects and preparation of the main branch facilitated structured project organization. Recent enhancements in MetaEditor now provide integrated support for Algo Forge, simplifying workflows previously reliant on external tools.

Crucially, the introduction of Shared Projects in MetaEditor resolves previous dilemmas regarding repository handling. The mql5 repository remains for traditional users, while other repositories are accessible via the Shared Projects folder. This enables seamless integration of separate libraries and project files....

πŸ‘‰ Read | Freelance | @mql5dev

#MQL5 #MT5 #Algorithm
❀55πŸ‘9πŸ†4πŸ‘¨β€πŸ’»4✍1πŸ”₯1
An alternative version of the Average Directional Index (ADX) is utilized across various prominent trading platforms. This variant presents differences compared to the standard ADX provided with certain trading software tools. Traders leveraging diverse platforms may encounter this ADX version differing in functionality and analytical outputs. Such variations can offer a unique perspective on market trends and movement strength, enhancing the decision-making process. Understanding these distinctions is essential for optimizing strategy implementation and obtaining accurate market analysis. It is beneficial for traders to explore different tools to align with specific trading needs and strategies effectively.

πŸ‘‰ Read | AlgoBook | @mql5dev

#MQL4 #MT4 #ADX
❀38πŸ‘6⚑3πŸ‘¨β€πŸ’»2πŸ€”1
Explore the latest MQL5 innovation with our 3 Drives pattern system. Leveraging Fibonacci retracements, this system identifies bullish and bearish harmonic patterns to streamline algorithmic trading. It automates trade execution with flexible stop loss and multi-level take-profit options, enhancing strategy precision. Visualize pattern structures effectively with integrated charting tools like trendlines and labels. Dive into the mechanics behind detecting pivotal price movements, and backtest to refine your trading approach. Perfect for developers and traders aiming to harness advanced pattern recognition and expand their MetaTrader 5 strategies. Discover the transformative potential of structured trading methodologies today.

πŸ‘‰ Read | Docs | @mql5dev

#MQL5 #MT5 #Strategy
❀35πŸŽ‰8πŸ‘¨β€πŸ’»4⚑1