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
Overfitting in machine learning occurs when a model becomes too tailored to noise in the dataset, reducing its generalization capability. This leads to poor performance on unseen data. Traditional solutions like early stopping help but can limit model potential. A 2019 paper from Harvard suggests that for certain tasks, overfitting could be mitigated by training models for extended iterations, observing a "double descent" in test error. This approach can outperform perpetual fine-tuning but demands significant computational resources.

Practical applications using models like neural networks reveal inconsistencies, emphasizing the importance of parameter selection. Advancements in structured exploration of algorithmic landscapes can optimize these efforts.
#MQL5 #MT5 #ML #AITrading

Read more...
πŸ‘18❀8πŸ‘¨β€πŸ’»4✍2πŸ”₯1
Recent updates to the replay/simulator system address stability and security concerns highlighted in developing the control indicator. Integration with modules like the mouse indicator is refined, ensuring consistent functionality without reliance on redundant code. The control indicator now leverages inheritance for improved performance, and changes in access patterns to the C_Terminal class facilitate better interaction with charts, handling mixed usage involving LIVE, DEMO, and replay systems.

The mouse indicator source code sees subtle yet significant updates, emphasizing the importance of leaving critical inputs untouched to avoid system instability. Developers are encouraged to thoroughly understand these new structures. Familiarity with module integration and class inheritance will be crucial for effective implementation and future-proofing of...
#MQL5 #MT5 #Indicator #Algorithm

Read more...
❀21πŸ‘14πŸ‘¨β€πŸ’»3⚑2
A new MT5 version of the indicator has been developed and is now available. This version has been specifically optimized for the MetaTrader 5 platform, ensuring seamless integration and enhanced performance. Users can expect improved accuracy and efficiency. The development process focused on compatibility and reliability, catering to the needs of traders seeking robust analytical tools. This updated indicator offers users additional features that can aid in making more informed trading decisions. To take advantage of these enhancements, ensure your trading platform is updated to support the latest developments.
#MQL5 #MT5 #Indicator #Trading

Read more...
πŸ‘28❀12πŸ’―4πŸ‘¨β€πŸ’»2πŸ‘Œ1
The article discusses reinforcement learning through the lens of Deep Q-learning, focusing on advancements since the publication by the DeepMind team in 2013. Deep Q-learning enhances the standard Q-function environment interaction model by incorporating neural networks to address trading-related challenges. Q-functions are explained as methods for linking current states, actions, and rewards, approximated through interaction cycles.

Moving beyond the basics, Deep Q-learning utilizes neural networks to overcome limitations of finite state-action pairs encountered in previous models, employing methods like dynamic programming and Bellman optimization. Experience replay is crucial, enabling agents to optimize learning by shuffling states stored in memory buffers for randomness and long-term accuracy.

Supervised learning concepts are contrasted with...
#MQL5 #MT5 #DeepLearning #AITrading

Read more...
πŸ‘24❀18πŸ‘¨β€πŸ’»5πŸ‘Œ1
The Hammer Indicator analyzes candlestick formations on MetaTrader 5 charts, specifically focusing on hammers and inverted hammers, which are indicators of potential reversal points. This indicator evaluates candlestick structure based on three customizable parameters: MaxRatioShortWick, MinRatioLongWick, and MinCandleSize. These parameters help in identifying patterns by setting thresholds for the size and ratios of wicks to the candlestick body, filtering out less significant formations.

Hammers, featuring a small body and long lower wick, point to buying pressure after a downtrend, while inverted hammers, with a long upper wick, suggest reversals after an uptrend. Arrows indicate identified patterns on the chart, signaling possible price changes. This tool aids traders in spotting reversals and complements various strategies by providing visual cue...
#MQL5 #MT5 #Indicator #Strategy

Read more...
πŸ‘25❀10πŸŽ‰4πŸ‘¨β€πŸ’»2✍1
Discover how the Connexus library streamlines HTTP requests in MetaTrader 5 with its innovative use of the Facade design pattern. The new CHttpRequest class acts as a simplified interface, integrating URL, header, body, and method components for seamless request creation. This approach not only simplifies code readability but also enhances maintainability and reduces coupling in complex systems. Additionally, CHttpResponse complements this by efficiently managing server response data. These enhancements provide MetaTrader 5 developers with a powerful toolset for algorithmic trading, offering clarity and ease in handling HTTP communications. Stay ahead in trading tech with Connexus' structured, accessible solutions.
#MQL5 #MT5 #HttpRequest #DesignPattern

Read more...
πŸ‘20❀9πŸ‘¨β€πŸ’»3⚑1πŸ”₯1
To address challenges in analyzing trading history within MetaTrader 5, a mechanism is presented for efficient visualization of closed positions. This tackles the cluttered chart issue caused by numerous position labels. The aim is to streamline trading history analysis, enabling traders to focus on individual deals with enhanced understanding.

Functions will be developed to:
- Navigate closed positions using keyboard keys.
- Enhance tooltips with detailed deal information.
- Ensure key chart elements remain visible.

Understanding the creation of a position involves tracking trade orders and executed deals within netting or hedging account types. The historical position management requires constructing a list of closed positions from existing deals using a structured approach involving deal, position, and historical management classes.

The "Deal...
#MQL5 #MT5 #TradingTech #MetaTrader

Read more...
πŸ‘22❀16πŸ”₯4πŸ‘¨β€πŸ’»3πŸ†1
Developing a news-trading expert in MetaTrader 5 involves implementing stop orders to capitalize on market movements post-news events. The strategy focuses on managing slippage and ensuring trades open only when conditions are optimal. Stop orders are employed to capture breakouts by triggering trades at predefined price levels, minimizing the risk of market whipsaws. Classes like CAccountProperties and CSessions manage account limits and trading session timings, respectively. Efficient risk management further automates decision-making and safeguards against volatility, while careful session tracking avoids the pitfalls of overnight trading. These features offer traders and developers robust mechanisms for automating and optimizing news-related trading strategies.
#MQL5 #MT5 #Strategy #AlgoTrading

Read more...
πŸ‘36❀23πŸ‘Œ6πŸ‘¨β€πŸ’»4✍2
The LazyBear Squeeze Momentum Indicator, originally available on TradingView, is now converted to MQL4, allowing users to integrate this tool into their MetaTrader 4 platform. This technical indicator assists traders in identifying periods of squeezed volatility and potential price momentum shifts. The conversion retains the core logic of the original script, providing users with familiar analytical capabilities within a different trading environment. Deployment on MT4 now enables traders to use this volatility indicator alongside other dedicated forex tools, enhancing market analysis and decision-making processes within their custom trading strategies.
#MQL4 #MT4 #Indicator #AlgoTrading

Read more...
πŸ‘28❀15πŸ”₯3πŸ†3πŸ‘¨β€πŸ’»1
Effective portfolio risk management is crucial in today's complex investment environment. Analyzing asset allocations and managing risk becomes even more challenging as markets expand. A statistical approach, such as Principal Components Analysis (PCA), can be utilized to manage a portfolio's variance effectively.

PCA can assist in handling investments of volatile digital assets like cryptocurrencies. By applying PCA to cryptocurrency returns, it's possible to determine optimal trading strategies with varying risk levels. This method helps traders decide on asset positions and capital allocations, potentially leading to more informed decision-making.

Implementing these strategies in trading applications like MetaTrader 5 enhances risk management. The use of tools like PCA effectively supports trading application development, fostering smarter trad...
#MQL5 #MT5 #Portfolio #AlgoTrading

Read more...
❀19πŸ‘12✍4πŸ‘¨β€πŸ’»2⚑1
Stepwise feature selection has been a traditional method in machine learning for optimizing variable subsets, but it often struggles with overfitting and interaction captures. This article introduces an advanced algorithm implemented in MQL5 that addresses these issues by exploring multiple promising feature combinations, using cross-validation to prevent overfitting, and integrating with various models. This method efficiently identifies powerful feature interactions without exhaustive searches, offering enhanced reliability for traders leveraging algorithmic strategies. It improves model robustness by focusing on statistical significance and adaptability, streamlining the feature selection process for more accurate predictions in complex data scenarios.
#MQL5 #MT5 #AI #ML

Read more...
πŸ‘20❀13πŸ‘¨β€πŸ’»4✍3😁1
The Ichimoku Kinko Hyo, often known as the Ichimoku Cloud, is a robust technical analysis system offering insights into market trends, support and resistance levels, and momentum. Originating in Japan, it provides a holistic view using five lines: Tenkan-sen, Kijun-sen, Senkou Span A, Senkou Span B, and Chikou Span, each capturing distinct price behaviors.

Key patterns include the Tenkan-Sen and Kijun-Sen crossover, Kumo breakout, and Chikou span confirmation. While useful, each pattern has limitations such as susceptibility to market noise and delayed signals in volatile conditions. Optimal use involves understanding broader market contexts and Ichimoku elements, ensuring comprehensive analysis.
#MQL5 #MT5 #Ichimoku #AlgoTrading

Read more...
πŸ‘43❀22πŸ†11πŸŽ‰6πŸ”₯3πŸ€”3πŸ‘¨β€πŸ’»3
The code provides a basic framework where variable names are descriptive for ease of understanding. It includes functionality for toggling the Hull Method on or off. Additionally, raw values for speed and acceleration can be graphed. For experimentation, values can be plotted as absolute numbers to create a usable oscillator. It is suggested to use the square of the period (period*period) for the AVG_PERIOD to improve functionality. Note: A bug in the calculation cycles was corrected on September 6, 2022. While optimisation may be necessary, the structure and variable naming contribute to readability and enhance maintenance. Ensure that all implementations are validated for accuracy.
#MQL4 #MT4 #AlgoTrading #Oscillator

Read more...
πŸ‘21❀18πŸ‘Œ5⚑2πŸ‘¨β€πŸ’»2
Machine learning models require precise handling of data transformation to enhance performance. Sensitivity to data input relationships emphasizes the need for feature creation from existing datasets. Adjustments in transformation or feature engineering can significantly alter error levels. Each model responds differently to these modifications, demanding specific transformation decisions based on the architecture.

In trading strategies, calculating price change angles aids in trend confirmation. However, traditional trend lines remain subjective, and slopes calculated from price differences face challenges due to market closure periods. An alternative slope calculation, using opening and closing prices, offers a different approach but is sensitive to Doji candles, requiring further refinement.

Exploratory data analysis, examining market data, challenges th...
#MQL5 #MT5 #ML #Strategy

Read more...
❀19πŸ‘18πŸ‘¨β€πŸ’»4✍2🀩2πŸ‘Œ2πŸ†1
Explore the fusion of quantum-inspired concepts with trading in this in-depth article. Begin with fundamental quantum computing principles and progress through a step-by-step guide to implementing these in an MQL5 trading system. While exploiting the unique strengths of quantum phenomena, such as multiple states and entanglement, these models enhance market behavior prediction. Python's Qiskit simulates quantum constructs, while MQL5 adapts them for real-time application, providing practical trading solutions. This informative piece offers traders and developers an edge by integrating quantum insights within traditional architectures, balancing precision with execution efficiency for optimized algorithmic trading.
#MQL5 #MT5 #QuantumComputing #AITrading

Read more...
❀27πŸ‘13πŸ‘¨β€πŸ’»4πŸ‘Œ2πŸ‘1πŸ†1
Discover how ATFNet leverages the dual analysis power of time and frequency domains for improved time series forecasting. By integrating complex number operations and advanced neural network architectures, ATFNet addresses challenges in spectral prediction and local-global dependencies. The method includes an extended DFT for better frequency alignment and a unique energy weighting mechanism to optimize predictions. Transformative features like Complex Spectral Attention allow the collection of diverse frequency combinations, while specialized blocks handle local time dependencies and global frequency characteristics independently. Trials on real datasets show ATFNet surpasses many existing models, offering significant advancements for traders and developers in algorithmic trading.
#MQL5 #MT5 #ATFNet #TimeSeries

Read more...
❀32πŸ‘19πŸ‘Œ4πŸ‘¨β€πŸ’»4✍2⚑1
Indicator A provides a dynamic visual representation on the current chart by plotting an area between the 'Open', 'High', 'Low', and 'Close' prices. As market data updates throughout the day, this dynamic area is automatically recalculated and redrawn. Each new price data point triggers the rebuild of the dynamic region, ensuring that traders are working with the most current market analysis. This method allows for a continuous reflection of price fluctuations within the trading period. The visual model can assist traders in identifying potential trading signals and market trends in real time without manual recalibration.
#MQL5 #MT5 #Indicator #Strategy

Read more...
πŸ‘28❀5πŸ‘Œ3πŸ‘¨β€πŸ’»3⚑2✍1πŸ‘1
Explore the latest updates to the MetaTrader 5 library with enhanced header scrolling functionality. This advancement allows for smooth left-right and up-down navigation using event-driven models. By meticulously organizing graphical elements and cleverly utilizing flags, visibility is finely controlled, ensuring a seamless user experience for developers. The introduction of a display flag property allows for nuanced control over object visibility, even for complex structures. This development supports not only current scrolling needs but also future systems like drop-downs and other interactive elements. These enhancements offer traders and developers refined tools for better interface interaction and event management in algorithmic trading applications.
#MQL5 #MT5 #Algorithm #LibraryDev

Read more...
πŸ‘22✍17❀13πŸ‘Œ3πŸ†3πŸ‘¨β€πŸ’»3😁1
A new function is available for handling various statistical computations: slope, variance, standard deviation, and mean. Additionally, it offers a "Fake Graphs" feature, allowing you to plot actual data points from an indicator within MT4. This enhancement is especially useful for developers coding and testing Expert Advisors, as MT4's strategy tester lacks the capability to display real-time graphs from indicators. By populating an array with the desired values, you can utilize the "Fake Graph" function to visualize data directly in the main window, enhancing the accuracy of your testing environment. Note an update from 6th August 2022, which fixed a cycle bug in the graph generation process.
#MQL4 #MT4 #Indicator #Script

Read more...
πŸ‘36❀24πŸ”₯4🀯4🀝4πŸ‘¨β€πŸ’»3πŸ‘Œ2
Explore the innovative expansion of the TabControl WinForms object with enhanced scrolling functionality for MetaTrader 5 developers. The article delves into refining the object structure to mimic MS Visual Studio behaviors regarding tab header arrangement. Focus on optimizing user interactionsβ€”header shifts when selected, and strategic button placements for improved navigation. Enhanced library management segments auxiliary controls into distinct folders, streamlining code structure. By implementing precise event-driven models, efficient message handling across multiple classes is ensured, allowing seamless control interactions. These developments not only enhance functionality but also set a foundation for future comprehensive scroll control implementations.
#MQL5 #MT5 #WinForms #UIUX

Read more...
πŸ‘41❀32πŸ‘¨β€πŸ’»7πŸ‘4🀯4😎4πŸ‘Œ2