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
XAUUSD is a key trading instrument in the forex market, known for its volatility and potential returns. However, the impact of economic news events like Non-Farm Payrolls or Fed interest rate decisions can lead to abrupt price fluctuations, affecting automated trading strategies. This prompts the need for a News Filter in an Expert Advisor to pause trading during high-impact news.

News events related to USD, GBP, or EUR often result in significant XAUUSD price movements. An effective News Filter can temporarily halt trading, thus reducing risk and improving trading consistency. It acts by holding trades before and after major news to mitigate exposure to market swings.

The filter's functionality involves a simple MQL5 code snippet incorporating variables like MinutesBeforeNews and MinutesAfterNews to specify when trading should pause around predefined news tim...

πŸ‘‰ Read | AlgoBook | Share!

#MQL5 #MT5 #Gold
πŸ‘45❀29πŸ‘¨β€πŸ’»4πŸ‘€2⚑1πŸ†1
This indicator calculates a multi-day Volume Weighted Average Price (VWAP), which starts from the daily timeframe by default but is fully customizable. VWAP is beneficial for pinpointing support and resistance levels, confirming trends, and identifying mean reversion signals. Unlike simple averages, VWAP indicates the average price weighted by volume over a set period, essential for institutional insights. It dynamically updates the VWAP level and includes market close prices plotted with the Heiken Ashi trend for visual trend analysis.

In a downtrend, when the price is below VWAP, it acts as resistance, indicating seller control. In an uptrend, when the price is above VWAP, it acts as support, indicating buyer dominance. Momentum is suggested when the price moves strongly away from VWAP, signaling potential trade opportunities. Breakout signals occur whe...

πŸ‘‰ Read | Calendar | Share!

#MQL5 #MT5 #VWAP
πŸ‘17❀12⚑4πŸ‘Œ2πŸ‘¨β€πŸ’»2πŸ‘€2πŸŽ‰1
The new installment in the MQL5 Economic Calendar series introduces enhancements to optimize news-driven trading systems. The focus is on implementing a visual chronograph for efficient event processing and logging. This setup integrates smart event filtering and targeted logging to streamline backtesting, achieving faster and clearer results akin to live trading conditions.

In MQL5, the trading library inclusion facilitates seamless trade execution. The event filtering mechanism pre-selects crucial news events within defined date ranges, significantly reducing computational load. The introduction of a unified dashboard for both live and offline testing enhances the strategy development process by providing unobstructed visualization.

Enhanced backtesting is enabled by loading historical news events as resources, ensuring robust event datasets. Efficie...

πŸ‘‰ Read | CodeBase | Share!

#MQL5 #MT5 #Trading
❀14πŸ‘10πŸ†2πŸ‘¨β€πŸ’»1
The previous exploration revealed the intricacies of managing time tracking in low-liquidity scenarios within MetaTrader 5. A highlighted issue was the dependence on the OnCalculate event, which limits updating the mouse indicator when liquidity is low or during auctions.

The primary challenge is ensuring accurate timing updates regardless of trading activity. Proposed solutions include modifying service code to accommodate low-liquidity environments, deploying test services to assess feasibility, and utilizing 32-bit spread values to transmit time information effectively even during periods of sparse trading.

Strategically, integrating bit-level control in the spread values offers a sophisticated, resource-efficient approach to monitor and relay time accurately, crucial for maintaining synchronization in the replay/simulation application. Adjustm...

πŸ‘‰ Read | Forum | Share!

#MQL5 #MT5 #Indicator
πŸ‘21❀12⚑3✍3πŸ‘¨β€πŸ’»2
Educational content helps programmers comprehend fundamental concepts. The prior article, "From Basic to Intermediate: Arrays and Strings (II)," demonstrated practical applications for array and string manipulation, accessible even for beginners. Despite its simplicity, the article’s applications reveal a common beginner's pitfall: understanding why simple text manipulations work.

Understanding data translation is central in programming, where computers interpret binary data into human-readable formats. Early processors dealt with BCD systems, but transitioning to binary operations proved more efficient. Thus, programmers often handle numeric translations, using ASCII tables and similar encodings for data manipulation.

MQL5 showcases translation functions, yet developing comprehension of data manipulation basics enhances programming acumen. Understan...

πŸ‘‰ Read | Freelance | Share!

#MQL5 #MT5 #Programming
πŸ‘52❀24✍4⚑2πŸ‘Œ1πŸ‘¨β€πŸ’»1
A refined version of the GARCH volatility indicator is now available. It incorporates various enhancements designed to improve the accuracy and reliability of volatility estimations. These updates optimize the algorithm's ability to model financial markets' volatility changes, providing users with a more precise analytical tool. The improvements address previous limitations, offering a more stable and responsive performance. This version aims to facilitate better risk management and decision-making processes for analysts and traders. Users can now experience increased confidence in volatility forecasts, critical for strategic market assessments.

πŸ‘‰ Read | CodeBase | Share!

#MQL4 #MT4 #Indicator
πŸ‘22❀8πŸ‘¨β€πŸ’»2πŸ‘€2✍1
Explore the power of execution algorithms in MQL5 for seamless trading! Discover how TWAP, VWAP, and Iceberg Orders can transform your strategy by mitigating slippage, enhancing execution precision, and ensuring minimal market impact. Each algorithm serves a specific trading environment: TWAP for stable markets, VWAP for volume-predictive trades, and Iceberg for minimizing visibility in illiquid settings. Our implementation and detailed performance analytics allow seamless integration within your automated scripts, offering optimized order execution and strategic flexibility. Elevate your trading efficiency by implementing these sophisticated algorithms, once exclusive to institutional investors, using advanced yet accessible MQL5 code.

πŸ‘‰ Read | Freelance | Share!

#MQL5 #MT5 #Algorithm
πŸ‘31❀12πŸŽ‰2πŸ‘¨β€πŸ’»2
3D Referring Expression Segmentation (3D-RES) is advancing with a method called 3D-GRES, tackling challenges of interpreting instructions involving multiple targets in real-world scenarios. Traditional 3D-RES models fall short in addressing cases with no matching target or multiple objects, limiting their practical use. 3D-GRES aims for a comprehensive approach, utilizing a Multi-Query Decoupled Interaction Network (MDIN) to enhance interaction between queries and superpoints, thus managing multiple targets effectively. Additionally, the Text-Guided Sparse Query (TSQ) and Multi-Object Decoupling Optimization (MDO) strategies ensure distinctiveness and semantic consistency across queries. This approach fosters accurate multi-object identification within complex scenes.

πŸ‘‰ Read | Calendar | Share!

#MQL5 #MT5 #3DRES
❀25πŸ‘16πŸ‘¨β€πŸ’»3πŸ‘€2
Discover how Fibonacci retracement levels can transform trading strategies using MetaTrader 5 with a focus on machine learning. Gain insights into generating target variables with Fibonacci sequences for both classifier and regressor models. Learn to train and utilize Random Forest models to predict market trends. See how these models fare when applied in a strategy tester to assess their effectiveness in real trading environments. The results highlight the potential of integrating Fibonacci-based insights with algorithmic trading to optimize strategies, offering a practical approach for traders and developers seeking to enhance their understanding and performance in the market.

πŸ‘‰ Read | Docs | Share!

#MQL5 #MT5 #Fibonacci
πŸ‘43❀22πŸ‘¨β€πŸ’»7πŸ‘3
To define a range based on specific parameters, focus on the time frames and size conditions. The Range Start Time and Range End Time establish the initial boundaries for range creation within a specified period. The Trade End Time extends the high/low lines of the range zone to a predetermined point, providing a clear visual guide for traders. Size constraints are crucial; ranges must fall between the Minimum Size and Maximum Size. Should the range size be within these limits, the indicator will display the first designated color (blue), allowing for quick identification of suitable trading zones. This approach aids in maintaining consistency when establishing trading ranges.

πŸ‘‰ Read | Forum | Share!

#MQL4 #MT4 #Indicator
❀29πŸ‘15πŸ‘¨β€πŸ’»2
The BBMA trading strategy, created by Malaysian trader Oma Ally, integrates Bollinger Bands with Moving Averages to pinpoint trading opportunities. It is distinguished by its precise entry points and capacity for managing multiple entries, making it adaptable for markets such as Forex, stocks, and cryptocurrency. This approach leverages the analytical power of both tools to enhance decision-making in various trading environments. The strategy’s focus on precision and versatility increases its applicability across different financial markets, providing traders with a structured method to navigate complex market conditions effectively.

πŸ‘‰ Read | CodeBase | Share!

#MQL4 #MT4 #BBMA
❀27πŸ‘10πŸ‘2πŸ‘¨β€πŸ’»1
The range creation process requires precise inputs for accurate results. Start by setting the Range Start Time to define when data collection for the range begins. Next, determine the Range End Time to conclude this period. The Trade End Time indicates the duration until which the range boundaries (high/low) will remain visible on the chart.

A crucial parameter is the range size, expressed in points. Define both Minimum Size and Maximum Size to establish acceptable boundaries. When the calculated range size falls within these specified limits, the system will visually represent this range using the first color, blue. Proper configuration of these parameters is essential for enhanced trading analysis and effective decision-making.

πŸ‘‰ Read | AppStore | Share!

#MQL5 #MT5 #Indicator
πŸ‘19❀11✍5⚑2πŸ‘Œ2πŸ†1πŸ‘¨β€πŸ’»1
BBMA is a trading strategy gaining attention in the financial markets, notably developed by Malaysian trader, Oma Ally. This strategy effectively utilizes Bollinger Bands in conjunction with Moving Averages to pinpoint trading opportunities with precision. Renowned for its capability to manage multiple entry points, the BBMA strategy is adaptable to various financial markets, including Forex, stocks, and cryptocurrencies. Its application promises enhanced precision in entry, making it a favorable choice among traders seeking reliable methods to navigate volatile market conditions. Its multifaceted approach caters to traders aiming for versatility across asset classes.

πŸ‘‰ Read | AppStore | Share!

#MQL5 #MT5 #BBMA
πŸ‘24❀12✍2πŸ‘¨β€πŸ’»2⚑1
Understanding currency strength is crucial for forex trading. This EA analyzes individual currency movements across multiple pairs and timeframes (M15, H1, H4) using parameters like Lookback_M15, Lookback_H1, Lookback_H4, and Update_Seconds. It calculates a single strength value for each currency by averaging percentage changes. The dashboard updates frequently, providing current strengths and visual curves for account equity and drawdown.

Our development uses MQL5 to assess currency strength reliably. We track major currencies across pairs, compute percentage changes, normalize signs, and average results to generate strength scores. This methodology identifies strong and weak currencies, aiding confident trading decisions based on real-time market data.

πŸ‘‰ Read | Docs | Share!

#MQL5 #MT5 #EA
πŸ‘21❀9πŸ‘¨β€πŸ’»4⚑1
The combination of the Fractal Adaptive Moving Average (FrAMA) and Force Index Oscillator offers promising indicators for trend analysis. FrAMA, being responsive to price changes, acts as a trend signal, while the Force Index measures trend strength through volume. Key patterns include:

1. FrAMA and Force Index Divergence: Captures potential reversals by detecting trend and volume divergences.
2. FrAMA Crossover: Relies on crossover signals validated by volume shifts in Force Index.
3. Trend Continuation: Uses FrAMA to define trends, focusing on sustained movements post-corrections with Force Index support.
4. Volatility Contraction: Detects breakout opportunities by identifying contraction followed by volume expansion.

These patterns are suitable for volatile markets, offering adaptability through careful configuration and confirmation with addit...

πŸ‘‰ Read | Calendar | Share!

#MQL5 #MT5 #Indicator
πŸ‘19❀14⚑4πŸ‘¨β€πŸ’»4
Enhancing the MQL5 Economic Calendar, this article delves into creating a dynamic vertical scrollbar, aiming to refine user interaction with economic news. By crafting a responsive User Interface, developers ensure seamless navigation for both live and backtesting environments. Key components include a dynamic scrollbar offering visual cues for navigation, a robust event storage system for comprehensive news access, and an efficient update mechanism that redraws the dashboard only when necessary. Developers will appreciate detailed implementation steps in MQL5, emphasizing a polished execution that elevates trading experiences and integrates seamlessly into the existing interface.

πŸ‘‰ Read | Calendar | Share!

#MQL5 #MT5 #UI
❀40πŸ‘19⚑6✍4πŸ‘¨β€πŸ’»4πŸ‘Œ1
A useful utility that was once available for Metatrader 4, the VPS-Monitor by Taiwo Okunbanjo, has recently been removed from MQL5. This tool monitored VPS performance. Due to its absence, replicating its functionality for Metatrader 5 is feasible. By creating an indicator for MT5, users can attach it to any chart, configure the periodic hour and desired message. After the set interval, the indicator sends a notification or email to the user's mobile Metatrader application. Configuration is straightforward. Navigate to Tools, Options, and then the Notification or Email tab. To enable this feature, users need their MetaQuotes ID, found in the mobile app under the Chat menu. This setup provides a seamless alert system akin to the original tool.

πŸ‘‰ Read | AlgoBook | Share!

#MQL5 #MT5 #Indicator
πŸ‘24❀17πŸ‘¨β€πŸ’»5πŸŽ‰2
The previous article introduced a basic system for using templates in floating windows. The objective was to simplify things, but now it’s time to tackle more complex usage involving objects for CHART TRADE interfaces. The challenge stems from MetaTrader 5's limitations, which were not designed for such custom interfaces.

The basic code functionality meets expectations, yet further modifications make it interesting by integrating objects within objects. This implies internal objects remain confined, aiding control logic in floating windows. However, the complication arises as internal object events can't be sent due to these nested structures.

Optimization of processing time is essential, focusing on reducing operations rather than time taken. Splitting the floating window creation into steps aids code reuse. Configuring flexible code ensures su...

πŸ‘‰ Read | VPS | Share!

#MQL5 #MT5 #AlgoTrading
πŸ‘56❀27⚑7πŸ‘¨β€πŸ’»3πŸ‘€3✍1
A new script has been designed to provide comprehensive details on brokers, accounts, and instrument specifications. It builds upon the "MQL4 Reference / Constants, Enumerations and Structures / Environment State / Symbol Properties." This script also derives inspiration from the "Market Info" script by Sergey Mechanic, which can be found in code repository 11223.

Through detailed comparison, the script's output has been matched against the "contract specification" available via platform navigation (View / Symbols / Properties), ensuring accuracy and reliability. The results from this comparison confirm the script’s consistency and usefulness in extracting essential data. This tool proves beneficial for developers and analysts in checking and verifying the contract details of trading instruments directly within the trading environment.

πŸ‘‰ Read | VPS | Share!

#MQL4 #MT4 #script
πŸ‘31❀18πŸ‘Œ2πŸ‘¨β€πŸ’»2πŸ‘€2
Custom MACD, a modern variant of the traditional Moving Average Convergence Divergence, brings advanced functionality to traders using MetaTrader 5. This refined indicator retains the core strength of the classic MACD in recognizing trends and reversals while providing real-time signal alerts to traders' smartphones. This feature is crucial for timely market reactions, enhancing trading efficiency even when traders are away from their trading stations.

Custom MACD employs the conventional MACD calculation method, with a Fast EMA set to 12, a Slow EMA at 26, and a Signal SMA at 9. The MACD line appears in Dodger Blue, the Signal Line in Orange, and the Histogram in Lime Green, simplifying trend strength analysis. The alert functionality is a significant enhancement, triggering immediate notifications when bullish or bearish crossovers occur.

Traders be...

πŸ‘‰ Read | Docs | Share!

#MQL5 #MT5 #Indicator
πŸ‘33❀12πŸ‘¨β€πŸ’»6πŸ‘Œ5
Explore the power of the Ichimoku indicator in algorithmic trading using MetaTrader 5. This comprehensive guide reveals how to utilize Ichimoku's componentsβ€”Tenkan-Sen, Kijun-Sen, Senkou Spans, and Chikou Spanβ€”to determine market trends, support/resistance levels, and momentum. Detailed coding blueprints show how to implement trading systems in MQL5 for strategies like trend identification and strength measurement. Learn to generate actionable insights by coding a practical trading system. This resource serves both seasoned traders and developers, offering a logical framework to enhance trading strategies with Ichimoku within MetaTrader 5's environment.

πŸ‘‰ Read | Forum | Share!

#MQL5 #MT5 #Ichimoku
πŸ‘61❀22πŸ‘Œ8⚑7πŸ‘¨β€πŸ’»4