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
Delve into the intricacies of the Analytics Panel class, designed for MetaTrader 5. We elevate static interfaces by integrating real-time data updates, enabling dynamic trading environments. The advanced design uses MQL5's Standard Library, crafting responsive UI components via class extensions. A standout feature is the Confluence Strategy, where the panel synthesizes multiple technical indicators to form unified trading signals, enhancing decision accuracy. The modular architecture ensures better maintainability and cross-application reuse, while real-time updates facilitate active trading. Ideal for developers and traders, this approach underscores the panel's robustness and adaptabilityβ€”a significant leap in algorithmic trading.

πŸ‘‰ Read | Signals | Share!

#MQL5 #MT5 #AlgoTrading
πŸ‘21❀3πŸ‘¨β€πŸ’»3πŸ€”1
In a new article, the integration of k-means clustering within MQL5 is examined, addressing common limitations when using built-in applications without source codes, particularly with custom indicators. This examination focuses on using OpenCL for parallel computing to enhance performance in model construction and implementation.

The article details the procedures for organizing parallel computation via OpenCL. This encompasses writing kernel programs for calculating distances between data points and cluster centers, clustering data points, updating cluster centers, and calculating the loss function. Each step leverages parallel processing to optimize efficiency and speed.

Additionally, the preparatory work for integrating these processes into a main program through an MQL5 class is outlined. The approach ensures compatibility and readiness for future int...

πŸ‘‰ Read | Docs | Share!

#MQL5 #MT5 #KMeans
❀17πŸ‘8πŸ†3πŸ‘¨β€πŸ’»3πŸ”₯1πŸ‘Œ1πŸ’―1
PointNet++ extends the original PointNet by incorporating local structure awareness, addressing a key limitation in the original design. It partitions point sets into overlapping local regions based on Euclidean distances, allowing for enhanced feature extraction similar to convolutional networks. Multiple abstraction levels allow for progressively capturing local details, and density-adaptive layers ensure effective handling of non-uniform point densities.

Implementation in MQL5 involves creating a local subsampling layer by extending the OpenCL program. This includes the CalcDistance kernel for calculating point distances in feature space and normalizing these distances to define adaptive receptive fields. The approach leverages efficient centroid selection via farthest-point sampling. The methodology circumvents challenges in local displacement calculatio...

πŸ‘‰ Read | VPS | Share!

#MQL5 #MT5 #PointNet
πŸ‘50❀11πŸ‘¨β€πŸ’»5⚑2🀯2πŸ‘€1
The integration of the MACD (Moving Average Convergence Divergence) indicator using the color scheme of the Awesome Oscillator (AO) presents an interesting approach to technical analysis. This adaptation could enhance visual clarity by providing a unified color-coded system, thereby allowing easier interpretation of market trends and momentum. By aligning the color differentiation of MACD with AO, traders might achieve better consistency in identifying bullish and bearish signals. Such a modification may offer improved functionality for analysts who utilize both indicators regularly. The goal is to streamline chart analysis and potentially increase the effectiveness of these combined tools in decision-making processes.

πŸ‘‰ Read | CodeBase | Share!

#MQL5 #MT5 #MACD
πŸ‘34❀20πŸ‘Œ5πŸ”₯3🀑3✍2πŸ‘¨β€πŸ’»2
Explore the power of the Standard Deviation (Std Dev) indicator for crafting advanced trading systems in MetaTrader 5. The article delves into the technical measures, calculations, and applications of Std Dev to enhance volatility assessment and signal generation. Gain insights into creating trading strategies using Std Dev with practical blueprints and system creation techniques using MQL5 coding in MetaEditor. Learn three strategiesβ€”volatility measurement, and buy/sell signals with moving averagesβ€”to streamline algorithmic trading. An essential read for seasoned developers and aspiring traders to refine their trading systems for better market performance.

πŸ‘‰ Read | Signals | Share!

#MQL5 #MT5 #Indicator
πŸ‘50❀22✍9πŸ‘¨β€πŸ’»6πŸ†2😈2
An advanced technical indicator provides visual and audible alerts for Moving Average (MA) crossings. It marks the chart with 'Arrow' objects at specific intersection points. A notable feature is its ability to retain signals even if the intersection condition changes on bar #0, ensuring consistent visual guidance on the chart. Users benefit from versatile alert options, including sound notifications, email alerts, and push notifications. The indicator is designed to enhance monitoring efficiency, offering multiple channels for real-time updates, catering to diverse preferences and ensuring traders remain informed. Its implementation is suitable for environments needing precise and persistent MA crossing alerts.

πŸ‘‰ Read | Forum | Share!

#MQL5 #MT5 #Indicator
πŸ‘23❀21πŸ‘Œ3πŸ’―2πŸ†2πŸ‘€2πŸ‘¨β€πŸ’»1
Explore the latest advancements in panel object management for MetaTrader 5! Delve into enhanced auto-resizing techniques for container-bound objects, ensuring a seamless display without disruptive visual effects. Discover improved batch handling that optimizes size adjustments only after the final object placement, effectively reducing flickers. Learn about new functionality added to WinForms objects and the Symbol library, facilitating advanced sorting and selection capabilities. Streamline graphical object interactions with robust methods for managing properties, enabling precise visual configurations in Expert Advisors. Elevate your algorithmic trading setup with these refined techniques for robust and efficient software development.

πŸ‘‰ Read | Signals | Share!

#MQL5 #MT5 #WinForms
πŸ‘13❀3πŸ‘¨β€πŸ’»2⚑1πŸ‘Œ1πŸ’”1
A new indicator concept focuses on visualizing the area between two lines in a technical analysis subwindow. It calculates the standard 'RSI' line and contrasts it with an 'RSI' line smoothed using a moving average (MA). This setup provides an additional perspective on market movements, highlighting the potential momentum shifts and price reversals. By emphasizing the relationship between the original RSI and its smoothed counterpart, this indicator aims to offer insights that could refine entry and exit strategies within trading systems. Such detailed analysis could be beneficial for those interpreting more nuanced market conditions.

πŸ‘‰ Read | Forum | Share!

#MQL5 #MT5 #Indicator
πŸ‘27❀5πŸ†5⚑4πŸ‘¨β€πŸ’»3πŸ’―2πŸ‘€1
MetaTrader 5, a comprehensive platform for traders, extends capabilities beyond chart monitoring to real-time trading using MQL5 language, similar to C/C++. This advantage empowers those with programming knowledge to analyze and leverage global data that might elude non-programmers. Gathering necessary market data involves creating a capture program to collect information directly from chosen websites. Important steps include enabling the platform to receive external data, understanding data parsing via browsers, and employing tools like hex editors for data modeling. Efficient data capture requires optimization using offset methods, ensuring accurate information retrieval even amidst server response challenges. This methodology lays the groundwork for advanced functionalities within Expert Advisors.

πŸ‘‰ Read | Signals | Share!

#MQL5 #MT5 #Trading
πŸ‘22❀15πŸ‘¨β€πŸ’»3⚑1πŸ‘€1
This analytical indicator evaluates whether price time series follow a Gaussian "random walk," allowing for parametric transformation of price increments into stable time series, primarily focusing on volatility. It measures the expected distance of a "random walk" using standard deviation calculations, helping traders understand market movements. It averages price changes for predefined sub-ranges using an exponent factor F, ranging from 0.1 to 1, to find uniform distribution.

The indicator uses methods such as minimum variance, differences between the triple M's, and Gini coefficient to determine statistical "regularity." Applications include data normalization for machine learning, optimal bar sampling in volatility trading systems, and anomaly detection in symbols or timeframes. Parameters include Period, Factor, Method, and MaxBars, with the opt...

πŸ‘‰ Read | VPS | Share!

#MQL5 #MT5 #Indicator
πŸ‘27❀5πŸŽ‰4πŸ‘€2⚑1
Explore advanced algorithmic trading with an MQL5 trade layering strategy, combining MACD and RSI, elevated by statistical analysis. This sophisticated approach dynamically scales positions in trending markets, leveraging momentum for compounded potential gains. Emphasizing precision, the strategy utilizes MACD for trend confirmation and RSI for optimal entry points, with statistical methods enhancing signal fidelity. Developers can implement the architecture in MQL5, with detailed steps for coding and backtesting. This robust Expert Advisor provides a powerful tool for algorithmic traders, ensuring strategic layering of trades and maximizing market opportunities while maintaining controlled risks. Ideal for developers seeking to refine trading algorithms in MetaTrader 5.

πŸ‘‰ Read | Calendar | Share!

#MQL5 #MT5 #AlgoTrading
πŸ‘27❀4⚑1
The article delves into optimizing replay simulations in MetaTrader 5, specifically addressing timing challenges when combining real and simulated tick data. It examines determining the minimum tick number required, focusing on key criteria like price dynamics that dictate simulation needs. A critical update involves allowing user-configurable tick limits in configuration files, enhancing flexibility and system performance. The article also details necessary code adjustments in key files such as C_Simulation.mqh and C_FileTicks.mqh to ensure accurate data representation and memory management. These improvements facilitate a seamless experience for traders and developers in algorithmic trading by addressing errors and enabling effective system testing and maintenance.

πŸ‘‰ Read | CodeBase | Share!

#MQL5 #MT5 #Simulation
πŸ‘30❀6πŸ‘¨β€πŸ’»2⚑1
The article discusses a method for optimizing trading strategies in MetaTrader 5 by selecting and grouping individual strategy instances for improved performance. Two approaches are considered: full optimization over a period and selecting strategies based on similar results in a shorter interval. The latter demonstrated better results, especially when automated through a genetic algorithm, despite initial database management issues. The article outlines implementing forward period testing to enhance strategy selection, detailing necessary database modifications and error fixes. This approach aims to optimize strategy grouping, ensuring robust strategies that maintain performance over different intervals.

πŸ‘‰ Read | VPS | Share!

#MQL5 #MT5 #Strategy
πŸ‘20❀3✍3πŸ‘¨β€πŸ’»2
In recent developments around the replay/simulator application, a crucial fix was implemented regarding the unexpected automatic pause mode. The incident, initially perplexing, was traced to a custom event inadvertently modifying the OBJPROP_STATE property, misleading the service into pause mode. By leveraging the indicator buffer instead, performance impacts were minimized and the application's reliability improved while laying the groundwork for a future fast-forward feature.

Additionally, another critical issue involving memory dumps was addressed. Errors were traced back to unreleased objects of the C_DrawImage class, highlighting poor pointer management within the C_Controls class. By simply ensuring pointers are properly initialized and deallocated, stability was restored, emphasizing the importance of meticulous memory management in develo...

πŸ‘‰ Read | VPS | Share!

#MQL5 #MT5 #ReplaySystem
✍14❀11πŸ‘9πŸ‘¨β€πŸ’»1
The Expert Advisor (EA) utilizes the custom indicator RSI_MAonRSI_Filling where signals are defined by the intersection of the RSI and MAonRSI lines. Specifically, a crossing below the 50.0 line indicates a BUY signal, while a crossing above signals a SELL. The strategy emphasizes evaluating the distance from the current price to the nearest position via the 'Position Step' parameter, ensuring market entry is strategic.

Focus is placed on parameter optimization according to the selected 'Working timeframe' where indicators and new bar generation are defined. Single market entry per bar is enforced, disconnected from input parameters. Additionally, search modes define the bar context, with options ranging from 'every tick' to 'new bar'.

Trade direction is customizable with three modes: BUY only, SELL only, or both. Trading signals can be time-restricted usi...

πŸ‘‰ Read | Freelance | Share!

#MQL5 #MT5 #Indicator
πŸ‘16❀13πŸŽ‰8πŸ‘¨β€πŸ’»3
The "Text label" control is an essential graphical object for displaying text in program GUIs. It mirrors the functionality of MS Visual Studio's text label, with additional features for flexibility in positioning and resizing. Users have options to set font parameters, and enable the frame feature for visual distinction.

In efforts to enhance library classes, new text messages and indices have been introduced, alongside modifications to incorporate text opacity for visual effects. Adjustments to the class structures include updating properties to improve customization and sorting capabilities.

The development continues with revisions to base and derived classes to support new features. Testing has confirmed the effective integration of these enhancements, ensuring accurate text display.

πŸ‘‰ Read | Quotes | Share!

#MQL5 #MT5 #Library
πŸ‘27❀7πŸ†3⚑1πŸ‘¨β€πŸ’»1
Introducing the Simple Slope Oscillator Normalized with symbol overlay for MT4. This technical indicator offers clear visualization of price movements. The Simple Slope Oscillator calculates the slope of an asset's price, providing traders with potential entry and exit signals by reflecting price momentum. Normalization helps in comparing slopes across different assets, making it a versatile tool.

The symbol overlay feature enhances analysis by providing visual context directly on the chart, reducing the need for multiple charts. This integration facilitates efficient monitoring of multiple currency pairs or assets simultaneously. Understanding the flow and impact of price momentum is crucial for effective decision-making. Enhance your MT4 toolkit with this oscillator to streamline trading analysis.

πŸ‘‰ Read | CodeBase | Share!

#MQL4 #MT4 #AlgoTrading
πŸ‘23❀10πŸ‘¨β€πŸ’»2πŸ‘Œ1
Portfolio consistency and robust risk management are crucial in professional trading. Over-reliance on singular assets or strategies increases exposure during market shifts. Over-leveraging correlated instruments also heightens risk. A diversified, optimized portfolio mitigates emotional decision-making and volatile profitability. Implementing a systematic framework with multi-asset diversification and breakout trading strategies, confirmed by oscillators, ensures resilience. A breakout strategy across currency pairs capitalizes on momentum while diversifying risk. Validating entry signals with oscillators reduces false trades. This approach ensures portfolio stability and alignment with macroeconomic conditions. Employ rigorous execution, monitoring multiple symbols, and adjusting trade parameters for consistent performance.

πŸ‘‰ Read | AlgoBook | Share!

#MQL5 #MT5 #Algorithm
πŸ‘12❀11πŸ”₯3πŸ‘Ύ2✍1πŸ‘¨β€πŸ’»1
Object detection in point clouds is critical for applications like autonomous driving and robotics. Point clouds provide detailed geometric data but pose challenges due to their irregularity. The Pointformer model addresses these issues by combining Transformer-based architectures, which are effective in learning context-dependent representations, with a U-Net structure for efficient feature learning. The Pointformer architecture comprises Local, Local-Global, and Global Transformer modules that model dependencies on various scales. This approach harnesses both local and global information, improving feature extraction in complex scenes. Implementation in MQL5 involves creating new classes and methods to integrate Pointformer functionalities, leveraging existing structures like PointNet++.

πŸ‘‰ Read | Freelance | Share!

#MQL5 #MT5 #3DDetection
πŸ‘24❀9πŸ†2πŸ‘¨β€πŸ’»2
RadixSort algorithm efficiently organizes numeric data by sorting from the least significant to the most significant digit. This approach works well for both integer and float data types. The time complexity of RadixSort is O(n * k), where 'n' is the number of elements and 'k' represents the maximum number of bytes in the elements. The method iterates over each byte position to sort the data accordingly.

In conjunction with MQL, a highly-optimized LSD RadixSort implementation is available, leveraging radix 256 (8-bits). This version is capable of handling large arrays with millions of numbers efficiently. Stemming from Pierre Terdiman's work, it incorporates various optimizations for enhanced performance, attaining speeds of 3-10 times faster than MQL's native ArraySort() function.

This implementation accepts arrays of different types but sorts them b...

πŸ‘‰ Read | Docs | Share!

#MQL5 #MT5 #Algorithm
πŸ‘21❀12πŸ†3πŸ‘¨β€πŸ’»2πŸ‘€2