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
Dive into the technical realm of algorithmic trading with a detailed exploration of the Force Index indicator. Developed by Alexander Elder, this indicator uses price and volume to reveal market power and potential trend reversals. The article outlines strategies like trend identification and divergence detection, offering a blueprint to create a robust trading system. By leveraging MQL5 in MetaTrader 5, traders can automate these strategies, gaining precise market insight and decision-making capability. Ideal for seasoned developers or those eager to harness the power of algorithmic trading, this guide emphasizes practical application and strategy testing, ensuring it’s both educational and actionable.

πŸ‘‰ Read | NeuroBook | Share!

#MQL5 #MT5 #Indicator
πŸ‘49❀19πŸ”₯7⚑2πŸ‘Œ2🀑2πŸ‘¨β€πŸ’»2
The development of a simple indicator that adds daily vertical lines to charts aids in clearly identifying the start of each trading day. Additionally, it labels each day with its name, allowing for easy recognition of daily patterns and cycles. This functionality is particularly useful for those who require precise daily segmentation in their trading analysis. By providing a clear visual demarcation, traders can better organize their analysis around daily open and close times, enhancing both strategic and operational planning. The incorporation of day labels ensures clarity in monitoring and evaluating daily market behavior, supporting more informed decision-making processes.

πŸ‘‰ Read | NeuroBook | Share!

#MQL5 #MT5 #Indicator
πŸ‘31❀12πŸ‘¨β€πŸ’»3πŸ€”1πŸ‘Œ1πŸ‘€1
Creating or modifying complex indicators with multiple buffers can be cumbersome. Initial setup involves declaring numerous double arrays, setting up buffers, configuring plot types, and ensuring all elements align correctly. Avoiding errors like 'Array Out Of Range' becomes challenging without careful planning. Handling data across multiple buffers, such as averages, often requires verbose, repetitive code. Strategies to minimize errors include organizing buffers in objects, simplifying data operations, and leveraging object-oriented programming.

Enhancing this approach involves delegating plot configuration to classes and using inheritance to refine data handling. Extending functionality needs flexible class structures to accommodate various plot types, maintaining ease of use and reusability without overwhelming complexity.

πŸ‘‰ Read | Calendar | Share!

#MQL5 #MT5 #Indicator
πŸ‘66❀33⚑3πŸ‘¨β€πŸ’»2πŸ‘Œ1
The Assistant indicator is designed for chart analysis by marking price ranges. With the appearance of a rectangle named "Rice", it automatically projects two lines parallel to the rectangle's upper and lower price. These lines offer a visual aid in chart analysis, persisting even if the indicator is subsequently removed. This feature ensures continuity in analysis without disrupting user-set parameters. Attention must be paid to the naming convention, as only rectangles starting with "Rice" are considered. Monitor these lines for uninterrupted analysis even after the indicator's removal. This systematic approach aids in maintaining clear visual boundaries on price movements.

πŸ‘‰ Read | Calendar | Share!

#MQL5 #MT5 #Indicator
πŸ‘38❀15πŸ‘¨β€πŸ’»3πŸ”₯1πŸ‘Œ1
Dive into the technical intricacies of calculating custom currency indices for algorithmic trading using MetaTrader 5's powerful environment. The article outlines the creation of synthetic instruments like the USDX and EURX through a comprehensive service program. It meticulously details setting up a robust system to continuously update currency indices using latest tick data from a basket of major global currencies. With a focus on practicality, the workflow ensures charts are dynamically updated, providing traders and developers with real-time insights into currency fluctuations. The innovative approach leverages advanced data structures and functional programming within MQL5, enabling the customization of indices with flexible parameters.

πŸ‘‰ Read | NeuroBook | Share!

#MQL5 #MT5 #USDIndex
πŸ‘42❀25πŸ‘¨β€πŸ’»5✍3πŸ‘Œ1
The T3 Indicator offers an efficient method for analyzing market trends by reducing lag and filtering noise. Developed by Tim Tillson, this advanced moving average stands out by combining multiple exponential moving averages (EMAs) to enhance the responsiveness to actual price movements.

The calculation involves a cascade of six sequential EMAs, each using the previous EMA's output. The T3 equation incorporates specific coefficients related to a volume factor, significantly influencing the balance between curve smoothness and responsiveness. With parameters like T3_Length and T3_Factor, users can adjust the period length and responsiveness control to align with their strategy.

Utilize the T3 Indicator for trend identification, trading signals, and understanding support/resistance levels. For implementation, place the file in your MetaTrader 5 indicat...

πŸ‘‰ Read | Calendar | Share!

#MQL5 #MT5 #Indicator
πŸ‘47❀25πŸ†3πŸ‘¨β€πŸ’»3πŸ‘Œ2⚑1✍1
Introducing a callback interface for timing tasks in your projects can enhance reliability and control. Consider utilizing the npm package manager for seamless installations. This interface supports efficient creation and management of timers. Developed by Kuzme Shevelev, it's accessible via GitHub for a comprehensive understanding of its functionalities. By leveraging this resource, developers can facilitate improved time-based operations within their applications. This tool assures more precise scheduling and task execution. For those managing complex systems, integrating such mechanisms can streamline processes and optimize performance. Further details and examples can be found in the provided GitHub repository.

πŸ‘‰ Read | AppStore | Share!

#MQL5 #MT5 #Timer
πŸ‘25❀9πŸ‘Œ5πŸ‘¨β€πŸ’»1
A new implementation enables serialization and deserialization of JSON in MQL5. This function allows developers to handle JSON data directly within MQL5 projects efficiently. Leveraging this function can enhance the integration of MQL5 applications with various data sources and APIs that utilize JSON format. Additionally, developers can opt to use npm for accessing examples and additional support through the project hosted on GitHub. This resource further broadens the potential for developing robust and dynamic trading algorithms. The code and implementation details by Kuzme Shevelev can be accessed through the specified GitHub repository, offering an opportunity for collaboration and innovation in MQL5 coding practices.

πŸ‘‰ Read | Signals | Share!

#MQL5 #MT5 #MQL5
πŸ‘29❀12πŸ‘Œ1πŸ‘¨β€πŸ’»1
Dimensionality reduction is critical in today's data-heavy environment, easing storage and computational needs. By simplifying data structures, methods like Principal Component Analysis (PCA) maintain essential information while reducing complexity. In trading, PCA can help streamline model inputs, making real-time decisions faster, and improving system efficiency. PCA, introduced by Karl Pearson, identifies principal components to capture data variance optimally. Through singular value decomposition, we derive orthogonal vectors ensuring minimal correlation and enhanced model learning. When implementing PCA, data normalization is paramount. In MQL5, matrix operations aid the process, ensuring effective dimensional reduction while preserving 99% of original data information.

πŸ‘‰ Read | CodeBase | Share!

#MQL5 #MT5 #PCA
πŸ‘29❀15πŸ‘¨β€πŸ’»2πŸ‘Œ1
The latest versions of the MetaTrader 5 mobile app for iOS introduce a range of convenient chart features, along with important stability improvements for a smoother user experience.

βœ“ Text object for creating custom labels on charts.
βœ“ Countdown timer that displays the remaining time until the current bar closes.
βœ“ Enhanced crosshair mode – it can now be used as a ruler.
βœ“ Display of position tickets in trading history.
βœ“ Improved quote delay indication if such a delay is used for a trading instrument.
βœ“ Support for new providers in the integrated payment system.
βœ“ Field for entering date of birth when opening demo accounts.
βœ“ Improved chats.

Download the latest version of the app and enhance your trading experience.
πŸ”₯29❀24πŸ‘24✍5πŸ‘¨β€πŸ’»4πŸ€”3πŸ‘Œ2
The latest enhancement to the Strategy Tester's capabilities now includes the functionality to automatically export the history of deals post simulation via an Expert Advisor. This enhancement allows users to save the deal history file in either the shared terminal folder under Common/Files or within the terminal directory at MQL5/Files. The system provides an option for automatic file name generation, while also allowing for manual specification using the Export() method.

For basic usage, begin by instantiating the object within the global scope and incorporate the Export() method call into the OnTester() function. For extended use, instantiate globally and allow for the inclusion of parameter names and values during OnInit(). The Export() method also offers several configurable options, enabling tailored usage scenarios. Such functionality supports the sim...

πŸ‘‰ Read | Quotes | Share!

#MQL5 #MT5 #EA
❀25πŸ‘15πŸ‘¨β€πŸ’»3πŸ‘Œ1
Enhancing algorithmic trading, this article explores the efficient development of the Support and Resistance Strength Indicator (SRSI) with MQL5 in MetaTrader 5. By automating the detection of key levels, traders can improve precision and reduce manual errors. The SRSI processes extensive historical data to identify and differentiate support and resistance zones, providing clear visual indicators and comprehensive alerts. This adaptable solution streamlines technical analysis, enhancing decision-making for traders. The detailed step-by-step guide on custom indicator creation empowers both novice and experienced developers to implement and expand their algorithmic trading strategies efficiently.

πŸ‘‰ Read | Signals | Share!

#MQL5 #MT5 #MetaTrader
πŸ‘25❀17πŸ‘Œ4πŸ’―4πŸ†3✍2πŸ‘¨β€πŸ’»1
Explore an innovative approach for evaluating machine learning models when additional datasets are scarce. This methodology uses resampling techniques, such as cross-validation and bootstrap methods, for reliable model assessment, despite potential computational complexities. By utilizing a single dataset as both training and validation sets, these approaches provide practical solutions for traders and developers facing limited data. The article offers insights into error decomposition, cross-validation, and bootstrap estimation, guiding MetaTrader 5 developers in optimizing algorithmic trading models' performance and ensuring accurate, unbiased error estimation, crucial for robust model evaluation and development. Dive into the intricacies of these sophisticated techniques.

πŸ‘‰ Read | CodeBase | Share!

#MQL5 #MT5 #ML
πŸ‘49❀19πŸ‘Œ4πŸ‘¨β€πŸ’»4⚑3
Analyzing MeanReversionTrendEA reveals a hybrid approach, merging trend following with mean reversion. Essential for traders, it employs Moving Averages (MA) and ATR-based volatility measurements to ensure consistent execution in diverse market conditions.

The dual strategy employs MA crossovers for trend signals and price-to-MA deviations for reversion. With adaptive signals through fast and slow MAs, the system integrates ATR for volatility-based reversion entries. A built-in validator examines volume, margin, and stop levels, ensuring robust trade verification.

Key inputs include MA periods, ATR settings, lot sizing, and risk parameters, facilitating precise configurations. This EA is optimal for major currency pairs on all timeframes, with a preference for H1-H4 for quality signals. Additionally, the robust validation system supports execu...

πŸ‘‰ Read | NeuroBook | Share!

#MQL5 #MT5 #MeanReversion
πŸ‘34❀20πŸ‘Œ2πŸ‘¨β€πŸ’»1
Discover how advanced machine learning techniques can elevate algorithmic trading by integrating them with the Darvas Box Breakout Strategy. This article delves into innovative methods like generating signals using models rather than filtering trades, utilizing continuous over discrete signals, and confirming trades through models trained on varying timeframes. Understand the strategic application of supervised learning in trading, highlighting expert practices like feature engineering and hyperparameter tuning. Explore practical data collection for feature prediction, and learn about model performance analysis on historical data with decision-tree models. Enhance your trading strategies with insights into utilizing machine learning for better predictive accuracy and profit maximization.

πŸ‘‰ Read | Docs | Share!

#MQL5 #MT5 #Strategy
πŸ‘44❀20✍3πŸ‘¨β€πŸ’»3🀝2πŸ‘Œ1
This utility presents a histogram tool for analyzing the durations of custom bars in a subwindow, expressed in minutes. It is specifically designed for custom chart types such as renko boxes, PnF, and equivolume bars, where bar durations vary unlike standard charts organized by fixed timeframes. The limitation of MT5 platform in not supporting variable timeframe charts necessitates using M1 timeframe as the base, offering the highest accuracy in bar alignment due to its granularity. On standard charts, this indicator holds limited value, as it would display identical bar heights. The tool comes with a Directional option, which, when set to true, displays the histogram with positive or negative values based on the bar's price movement, otherwise displays absolute values by default.

πŸ‘‰ Read | Forum | Share!

#MQL5 #MT5 #Indicator
πŸ‘32❀12πŸ‘¨β€πŸ’»4πŸ‘Œ1
The Quarters Board, an advanced tool for traders, simplifies chart analysis by automatically managing quarter level toggles. It introduces a panel on the live chart with buttons for Large Quarters, Small Quarters, Overshoot/Undershoot, and Trend Direction. Activating or deactivating levels is streamlined as a single button press changes their visibility. Moreover, the Trend Direction feature offers real-time market insights using a 50-period simple moving average comparison against current prices, enhancing decision-making.

The EA’s design prioritizes user interaction with an organized interface, cleanly displaying relevant price levels and commentary without clutter. This tool enhances the trading experience with both intuitive controls and analytical depth.

πŸ‘‰ Read | VPS | Share!

#MQL5 #MT5 #EA
πŸ‘19❀11πŸ‘¨β€πŸ’»3πŸ‘Œ2
The previous analysis highlighted several key issues affecting the performance of the replay/simulation service for MetaTrader 5 using MQL5. The primary concerns centered around the handling and optimization of graphical objects, particularly the OBJ_BITMAP_LABEL and the control indicator module's interaction.

To address these challenges, the initial strategy involved implementing minor yet necessary code changes aimed at improving readability and achieving basic performance enhancements. These included refining the naming conventions and restructuring object access mechanics. The objective was to facilitate easier debugging and maintenance while providing slight enhancements in efficiency.

Further groundwork was laid in understanding the integration between different components of the simulation service. The service was adjusted to read data directly from ...

πŸ‘‰ Read | Quotes | Share!

#MQL5 #MT5 #Replay
πŸ‘35❀20πŸ”₯8πŸ‘¨β€πŸ’»7πŸ‘Œ5✍3
The SuperTrend indicator utilizes Average True Range (ATR) volatility to identify market trends, providing insights into potential buying or selling opportunities. It operates on a simple premise: the Upper Band is calculated as the Source Price plus the product of a Multiplier and ATR, while the Lower Band is the Source Price minus this product. A green SuperTrend indicates an uptrend, whereas red suggests a downtrend. This indicator is suitable for trend-following strategies and identifying potential reversals.

To install, copy the indicator file into the MetaTrader 5 indicators folder, then refresh MetaTrader 5. Key parameters include ATRPeriod (default 22), Multiplier (default 3.0), and SourcePrice. Additional functionality includes the option to consider price wicks in calculations. Multi-Timeframe versions are available online.

πŸ‘‰ Read | CodeBase | Share!

#MQL5 #MT5 #Indicator
πŸ‘47❀24⚑5πŸ‘€5πŸ‘¨β€πŸ’»3πŸ‘Œ2πŸ†1
Improving EA systems requires understanding order behavior in MetaTrader 5. For netting accounts, a refined approach is essential to prevent complications like unwanted OCO orders. Implementing robust modifications in the C_Router class can handle order parsing and ensure EA reliability by preventing errors during pending orders. Strategic checks determine if pending orders fall within existing position limits, adapting based on account type. By integrating these systematic improvements, algorithmic trading becomes more secure, mitigating risks like unprotected open positions. Comprehensive handling ensures efficient and error-free trading experiences, leveraging precise MetaTrader 5 functionalities for safe execution of ongoing strategies.

πŸ‘‰ Read | AlgoBook | Share!

#MQL5 #MT5 #EA
πŸ‘60❀28πŸ‘¨β€πŸ’»8πŸ‘Œ6πŸŽ‰5πŸ”₯2