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
The Fibonacci Bollinger Bands indicator has been converted from Pine Script to the MQL5 language. This tool merges Bollinger Bands with Fibonacci levels, enabling traders to spot support and resistance zones more effectively. Key features include automatic Fibonacci level calculations on Bollinger Bands, offering a distinct viewpoint for breakout and reversal trading strategies. This indicator is fully compatible with MetaTrader 5, catering to those seeking advanced technical analysis instruments. Suitable for traders aiming to refine their market analysis with integrated Fibonacci insights. Consider evaluating its utility in your trading strategy.
#MQL5 #MT5 #Indicator #Strategy

Read more...
πŸ‘21✍10❀10πŸ‘Œ3πŸ‘¨β€πŸ’»3
A new time utility library offers over 80 functions to efficiently handle time variables. Designed for high-performance applications, the library's performance mode is optional and can be activated at compile time using a #define directive. By enabling this mode, the library substitutes MQL's TimeToStruct and StructToTime functions with more efficient versions, enhancing performance in software requiring heavy time-related processing. Users can quantify speed improvements by compiling the "performance_mode.mq5" script with and without the performance mode.

Key additions include functions for calculating business days, finding the Nth weekday in a month, and optimized time calculations. Usage examples are available through "basic.mq5" and "advanced.mq5" scripts, showcasing both fundamental and advanced functionality. The latest update introduces the Ti...
#MQL5 #MT5 #Script #Performance

Read more...
❀26πŸ‘16πŸ‘Œ3⚑2✍2πŸ‘¨β€πŸ’»2
Explore innovative algorithmic trading solutions with the cutting-edge MLKV method for MetaTrader 5. This advanced technique capitalizes on multi-layer Key-Value sharing to significantly reduce memory usage without sacrificing performance. By efficiently distributing Key and Value entities across neural layers, MLKV offers a superior balance between memory consumption and model accuracy. Designed with developers in mind, this approach integrates seamlessly with existing MQL5 frameworks, enhancing the implementation of algorithmic trading strategies. Discover how MLKV and underlying techniques like MQA and GQA present scalable, resource-efficient solutions, empowering traders and developers to tackle complexities in trading technology with ease.
#MQL5 #MT5 #MLKV #AI

Read more...
πŸ‘40❀25πŸ‘Œ4🀣4πŸ‘¨β€πŸ’»2πŸ”₯1
The Double ZigZag indicator offers an analytical tool for visualizing buy and sell levels on price charts. Users can configure take profit (TP) and stop loss (SL) parameters in the settings. The indicator features two distinct ZigZag patterns: one representing buy price movement and the other representing sell price movement. Each pattern marks price extremes for respective movements. Additionally, the chart includes horizontal lines indicating the last levels reached by each ZigZag model, providing clear reference points for potential entry and exit levels. This setup aids in comprehending market trends and making informed trading decisions.
#MQL4 #MT4 #Indicator #Strategy

Read more...
πŸ‘30❀11✍9πŸ‘Œ2πŸ‘¨β€πŸ’»2
Discover the future of algorithmic trading with MetaTrader 5 and Python! Automate your trades using a model-based algorithm, setting strategic stop-losses and take-profits to manage risk effectively. Utilize online trading functions for real-time decisions, enhancing trading precision. Implement intelligent risk management to protect against drawdowns, adapting dynamically to market changes and utilizing optimal lot sizing based on the Kelly criterion. Experience the benefits of multi-currency trading through parallel computing for enhanced performance. Prepare for future advancements with insights into quantum machine learning, reinforcement learning, and swarm intelligence for optimized trading strategies. Stay ahead in the evolving landscape of trading technology.
#MQL5 #MT5 #Algorithm #AITrading

Read more...
πŸ‘23❀12πŸ†4⚑2πŸ‘Œ2πŸ‘¨β€πŸ’»2
Explore the intricate world of neural networks and uncover the mechanics behind pseudoinverse calculations with MQL5. Delve into the mathematics that fuel these computations and grasp how to implement them effectively without relying on built-in functions. While utilizing arrays instead of matrices, this article clarifies how pseudoinverse is achieved through matrix multiplication and dynamic memory handling. With a focus on educational value over efficiency, the guide walks through each step, offering insights for both seasoned and aspiring MetaTrader 5 programmers. This understanding empowers developers to integrate these techniques into more diverse trading algorithm applications, enhancing their analytical and practical skills.
#MQL5 #MT5 #ML #AI

Read more...
πŸ‘46❀25πŸ‘Œ10😁3✍2πŸ‘¨β€πŸ’»2πŸ†1
A new trend change indicator uses arrows (Up and Down) to signal potential shifts in market direction. When a trend change is detected and the corresponding icon appears in the indicator buffer, alerts are triggered to notify users. This ensures that users are promptly informed of potential market changes, enabling timely decision-making. The indicator's real-time alerts help in keeping track of market dynamics efficiently. It's crucial for users to monitor these signals closely to capitalize on emerging trends and adjust their strategies accordingly.
#MQL5 #MT5 #Indicator #Trend

Read more...
πŸ‘34❀20⚑5πŸ‘Œ3πŸ‘¨β€πŸ’»3🀣1
The Kelly Criterion has long been used in trading to optimize capital allocation and manage risk. Yet, reliance on a single backtest carries dangers due to diminishing trading edges over time. The Leverage Space Trading Model offers a framework incorporating leverage to determine risk per trade using factors like probability and leverage ratios.

Applying the Kelly Criterion involves calculating an optimized risk fraction, balancing risk and reward. Using Monte Carlo simulations, traders can better estimate maximum drawdown tolerances, reflecting more realistic market scenarios.

For portfolio optimization with multiple EAs, correlations between strategies need to be considered, aiming for diversified risk exposure. By recalculating risk based on actual portfolio performance and correlations, traders can enhance growth potential while maintaining a ma...
#MQL5 #MT5 #Algorithm #Trading

Read more...
πŸ‘34❀11πŸ‘¨β€πŸ’»3πŸ‘Œ2
MetaTrader 5 build 4755 provides a fix to an error in triple swap calculations in the strategy tester, which occurred under certain combinations of testing conditions.

Additionally, some minor enhancements and fixes have been implemented in this new version to further improve the platform's overall stability.

Discuss the update...
πŸ‘42❀22πŸ”₯21πŸ‘¨β€πŸ’»5πŸ‘Œ3πŸ‘€3
An expert advisor executes pending orders at Pivot Point levels automatically. It targets R1, R2, R3, and S1, S2, S3 for precision. Customization options include defining lot size, stop loss (SL), and take profit (TP). This aids in executing strategies with exact parameters. It enhances analysis by displaying pivot levels on charts, allowing traders to visualize key points directly.

Parameters:
- Lot Size: Adjust order volume aligning with account capacity.
- Take Profit in Points: Set profit capture points for automatic trade closure at targets.
- Stop Loss in Points: Predefine risk management to close unfavorable positions.
- Pivot Visualization: Enable or disable chart display for R1, R2, R3, S1, S2, and S3 to facilitate analysis.
#MQL4 #MT4 #EA #AlgoTrading

Read more...
πŸ‘24πŸ‘€10❀8⚑5πŸ‘¨β€πŸ’»4πŸ‘Œ1
Explore advanced MQL5 and MetaTrader 5 development in our latest dive into algorithmic trading. We're breaking down complex systems, focusing on effective use of messaging. By structuring our applications modularly, we're enhancing flexibility and control within the platform. Key changes include adapting mouse indicators and the introduction of a common header file, Defines.mqh, to streamline communication between applications.

The article explains message handlers and their implementation, ensuring seamless interaction between bespoke indicators and broader applications. As developers, you'll appreciate the shift towards message-driven architectures, which promises improved system integration. This understanding opens up possibilities for more refined trading automation solutions within MetaTrader 5.
#MQL5 #MT5 #Strategy #MetaTrader

Read more...
πŸ‘¨β€πŸ’»14πŸ‘12❀9✍2πŸ‘Œ1πŸ‘€1
Explore innovative approaches to enhance predictive models in algorithmic trading using MetaTrader 5. The article delves into ensemble learning techniques, focusing on combining model outputs for improved accuracy. Simple averaging is highlighted for its computational efficiency and robustness against overfitting, making it suitable for diverse datasets. Advanced techniques, like linear regression and variance-weighted combinations, address issues of overfitting and model bias by optimizing prediction weights and considering model variance. For noisy data, General Regression Neural Networks offer enhanced generalization through non-linear modeling. Practical MQL5 implementations are discussed, providing traders and developers with scalable solutions to refine algorithmic trading strategies.
#MQL5 #MT5 #ML #Ensemble

Read more...
πŸ‘32❀8πŸ‘Œ5πŸ‘¨β€πŸ’»5
An advanced version of the ZigZag indicator introduces step size adjustments in price points. This enhancement offers options to visualize level lines that align with the most recent maximum and minimum extremes. It also allows displaying wave sizes in points, reflecting how many points the price traversed between levels. The indicator settings offer customization with color options for each element of the ZigZag. Users can choose to display a standard ZigZag, a ZigZag with level display enabled, or fully utilize all functions, including level lines and wave size in points. This flexibility offers users granular control over the analysis of market movements.
#MQL4 #MT4 #Indicator #Strategy

Read more...
❀30πŸ‘22πŸ‘Œ7✍2πŸ‘¨β€πŸ’»2πŸŽ‰1
The recent updates in the "Developing a trading Expert Advisor from scratch" series focus on enhancing the robustness of trading systems. This installment addresses critical issues impacting order management, particularly the catastrophic entry point error in trading algorithms. The solution involves modifying order handling logic to prevent discrepancies between chart data and server information during market interactions. The adjustment ensures stability by accurately managing stop and limit orders, crucial for minimizing financial risk.

The implementation introduces a method to modify trading volume without removing orders from the chart. The process involves integrating indicator objects and improving the interface for a seamless trading experience. This approach reduces manual intervention and potential errors, making the EA more efficient.

Overall, th...
#MQL5 #MT5 #EA #Strategy

Read more...
πŸ‘39❀20πŸ‘Œ2πŸ‘¨β€πŸ’»2πŸŽ‰1
The initial version of DeMarker Pending advisor focused on core functionalities. In its second iteration, enhancements include two adjustable parameters: 'Maximum number of positions' and 'Minimum step of positions'. These options allow for increased control and flexibility in position management. Setting either parameter to '0' effectively disables it, providing tailored user customization. These additions are integral for users requiring specific trading strategies and position handling capabilities. The advisor demonstrates continued commitment to refining tools for precision and adaptability within trading environments. Further details are illustrated in the accompanying visual, Pic.1. DeMarker Pending 2.
#MQL5 #MT5 #EA #Algorithm

Read more...
❀25πŸ‘13✍3πŸ‘Œ3πŸ†1πŸ‘¨β€πŸ’»1
In the previous article, we explored modifications to enhance EA system reliability. We focused on separating functionalities to maintain efficiency and performance. This article extends that approach by emphasizing the importance of not embedding indicators in EAs. An EA should purely manage orders and observe prices, without reliance on indicators.

MetaTrader 5 separates indicators, services, scripts, and Expert Advisors to optimize performance. Indicators should operate on separate threads for parallel efficiency. Services can access data efficiently, which isn't ideal directly within an EA. Scripts perform specific tasks temporarily, while EAs should focus solely on trading system operations.

To improve EA reliability, remove non-trading system code, converting such elements into indicators. This reduces EA complexity and increases its agili...
#MQL5 #MT5 #ExpertAdvisor #Algorithm

Read more...
πŸ‘54❀17πŸ‘¨β€πŸ’»6⚑4πŸ‘Œ4
The concept centers on identifying moments when a completed candlestick intersects with the 'Moving Average' indicator. The next step involves locating the last prior intersection point. By marking the period between these intersections, a rectangle can be drawn. This rectangle’s upper and lower borders serve as potential Stop Loss and Take Profit levels. This approach combines technical analysis and strategic planning, presenting a method to refine trading decisions with clearer entry and exit points. Implementing this strategy could lead to enhanced precision in managing risk and maximizing reward potential through informed decision-making based on historical price movements and trend analysis.
#MQL5 #MT5 #Indicator #Strategy

Read more...
πŸ‘34❀19πŸ‘Œ4πŸ†2πŸ‘¨β€πŸ’»2
The Volatility Navigator is a new tool crafted with MQL5 to enhance trading precision by optimizing entry points, stop loss, and take profit targets. It leverages advanced indicators like Bollinger Bands, RSI, and ATR to adjust strategies dynamically in volatile markets. The tool's structure adheres to MQL5 standards, using the OnInit(), OnTick(), and OnDeinit() functions to initialize, monitor, and manage trades efficiently. This approach is crucial for responding to market changes swiftly. The integrated audio and visual alert system ensures traders receive timely notifications to make informed decisions, ultimately boosting trade effectiveness and strategy formulation.
#MQL5 #MT5 #Volatility #EA

Read more...
πŸ‘26πŸ‘€4❀2πŸ‘Œ2
Algorithmic trading frequently grapples with pinpointing optimal entry points, especially in daily trends where fluctuations can disrupt accuracy. Divergence acts as a filter, distinguishing potential reversals or continuations via discrepancies in price movements and momentum indicators. By integrating divergence detection into the Trend Constraint Expert Advisor, traders can significantly improve precision.

Incorporating divergence into an MQL5 Expert Advisor entails using tools like RSI and MACD to detect deviations. Regular divergence signals potential trend reversals, while hidden divergence indicates trend continuation. An Expert Advisor can utilize divergence signals by enhancing execution conditions with indicators such as MACD, RSI, or others.

Back-testing validates the practical application, showing effective positioning strategies with di...
#MQL5 #MT5 #Algorithm #Trading

Read more...
πŸ‘40❀18πŸ‘¨β€πŸ’»9πŸ‘Œ2
Introducing the open-source project MarketPredictor for MetaTrader 5. This innovative Expert Advisor leverages advanced mathematical models to analyze and predict market movements. It focuses on developers, math enthusiasts, and traders interested in the intersection of technology and financial markets.

Key mathematical components include:

1. Sinusoidal Functions: Aid in modeling cyclical price movements.
2. Fast Fourier Transform (FFT): Uncovers dominant frequency patterns in historical data.
3. Sigmoid Functions: Addresses nonlinear market movements, factoring in volatility.
4. Monte Carlo Simulations: Provides forecasts by modeling random deviations.

Current challenges include implementing the trading logic. Contributions are sought for parameter optimization, trading logic improvements, bug fixing, performance enhancements, and advanced analytical i...
#MQL5 #MT5 #EA #AlgoTrading

Read more...
πŸ‘29❀13πŸ‘¨β€πŸ’»4πŸ‘Œ1
Metaheuristic evolutionary algorithms, such as Across Neighborhood Search (ANS), continue to advance optimization capabilities in tackling complex numerical problems. ANS, established by Guohua Wu in 2014, utilizes multi-agent systems to enhance exploration within a solution space, combining local and global strategies. The algorithm models agents moving through solution neighborhoods, guided by normal distribution to update positions based on current optima. Key parameters include population size, solution collections, and standard deviation for defining search intensity.

Testing shows ANS achieves strong results across diverse functions, though it faces issues with population diversity and potential degeneration. Enhancements, such as introducing mutation operators, could stabilize performance and prevent solution convergence. ANS ranks highly among conte...
#MQL5 #MT5 #algorithm #AI

Read more...
πŸ‘28❀6πŸ‘¨β€πŸ’»2πŸ‘Œ1