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
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
The described indicator aims to evaluate autocorrelation in price series. When values exceed 0, this suggests autocorrelation in the returns, implying a consistent direction in movement. This could signal the start of a trend or a potential reversal. Conversely, values below 0 suggest uncertainty, potentially indicating the conclusion of trends or reversals. Values near 0 suggest the price behaves like a random walk, offering little actionable insight. This indicator should complement other tools, as it doesn't provide explicit trade direction. Use it to enhance analysis rather than relying on it solely for trading decisions.
#MQL5 #MT5 #Indicator #AlgoTrading

Read more...
πŸ‘28❀19✍6πŸ‘¨β€πŸ’»3⚑2πŸ‘Œ2πŸ‘€2
An innovative reimagining of moving average cross-over strategies in algorithmic trading is presented, utilizing MetaTrader 5. By structuring a strategy using two Exponential Moving Averages, a Stochastic oscillator, and an Average True Range, a back-test revealed historical limitations in traditional approaches. Transitioning to AI-enhanced models transformed these strategies, leveraging dummy encoding to redefine state changes within indicators. This novel application allowed for a significant improvement in trading metrics, demonstrating enhanced profitability, a higher Sharpe ratio, and successful trades 55% of the time. This insightful exploration encourages developers to optimize traditional and new strategies with innovative AI techniques.
#MQL5 #MT5 #AITrading #Strategy

Read more...
❀18πŸ‘15πŸ€”4πŸ‘¨β€πŸ’»3πŸ‘Œ2⚑1
Part 2 of our MetaTrader 5 series advances MQL5 Economic Calendar integration by crafting a sleek News Dashboard. Designed for real-time market insights, this interface aids in decision-making with effortless access to vital economic data. The process involves structuring a user-friendly dashboard, emphasizing readability with contrast for quick impact recognition. Key functionalities leverage MQL5's object creation capabilities to set up elements like labels and buttons efficiently. This modular approach enhances UI setup, streamlines code, and optimizes event monitoring, offering a pragmatic tool for algorithmic traders to manage and react to economic events as they unfold.
#MQL5 #MT5 #Trading #Dashboard

Read more...
πŸ‘25❀22πŸ‘¨β€πŸ’»4πŸ‘Œ2⚑1
The Chart Projector tool is developed to streamline market analysis for price action traders by overlaying the previous day's chart on the current one. This method provides traders an immediate context of market conditions by visualizing price movements and key levels, supporting more informed decision-making. The overlay helps traders identify trends and simplifies trade planning, focusing on actual price actions instead of relying on traditional indicators.

Code implementation uses MetaEditor, where a script is developed to create the ghost overlay effect. The script includes several functions such as DrawGhostCandles for overlaying prices and DrawHorizontalLine for marking key levels. Outcomes show an enhanced market understanding through customizable visual representation, aiding in identifying trends and risk management.

In conclusion, t...
#MQL5 #MT5 #ChartProjector #AlgoTrading

Read more...
❀31πŸ‘26πŸ‘Œ5πŸ‘¨β€πŸ’»5⚑1
The indicator visualizes the status of two indicators, MACD and Stochastic, as lines of squares, providing a clear comparison of their signal line positions. It helps in determining the relationship between these two indicators within the main chart window. The MACD line, often used for trend assessment, and the Stochastic line, which identifies momentum, are shown alongside each other. Being represented as squares, these lines offer quick visual confirmation of current market conditions, aiding in more informed decision-making. Users can easily interpret the market status with this combined indicator visualization, simplifying analysis in trading environments.
#MQL5 #MT5 #Indicator #MACD

Read more...
πŸ‘24❀14πŸ‘¨β€πŸ’»5πŸ†4⚑2πŸ‘Œ2
Discover how MetaTrader 5's limitations have driven innovation in algorithmic trading with a newly-designed, multi-functional Admin Panel. This enhanced interface allows for seamless management of orders and positions while incorporating robust market analysis, data display, and risk management features directly on a single chart. By restructuring the Admin Panel into distinct sub-panels – Communications and Trade Management – we streamline user experience without switching charts. This reimagined panel utilizes modified MQL5 libraries to avoid compatibility issues, ensuring efficient navigation and execution. Stay tuned as we delve into the Trade Management Panel for enhanced trading operations.
#MQL5 #MT5 #MT5 #Algorithm

Read more...
❀25πŸ‘14πŸ‘Œ3πŸ‘¨β€πŸ’»3⚑2