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
The article provides an in-depth exploration of the mathematical models for calculating the profits and losses of forex orders, crucial for developing efficient trading systems using MetaTrader 5. It outlines precise equations accounting for spreads, commissions, and swaps, enhancing the understanding of these often-overlooked factors. By dissecting core concepts like Bid, Ask, and spread calculations, it offers traders and developers insights into improving their algorithmic trading strategies. This methodical approach empowers developers to effectively integrate these calculations into Expert Advisors, ensuring more accurate performance analysis and trading decision-making. Understanding these fundamentals is key to optimizing forex trading systems.
#MQL5 #MT5 #Trading #ProfitCalc

Read more...
πŸ‘41❀31πŸ‘Œ4πŸ‘¨β€πŸ’»3πŸ”₯2😁2
The subwindow showcases two RSI lines referred to as 'Fast' and 'Slow'. The design incorporates shaded areas extending from the window borders to these lines, both above and below. This visualization includes three rendering modes: Fast, Slow, and an additional mode combining the highest and lowest points for comprehensive analysis. This approach enhances clarity in monitoring relative strength trends, enabling better decision-making by emphasizing significant RSI movements with clear visual distinctions. The indicator's dual-line system offers nuanced insights beyond traditional single-line RSI applications, making it a valuable tool for experienced traders and analysts in assessing market momentum.
#MQL5 #MT5 #Indicator #RSI

Read more...
❀24πŸ‘20🀯3πŸ‘Œ3πŸ‘¨β€πŸ’»3
Generative Adversarial Networks (GANs) are crucial for enhancing financial data reliability in algorithmic trading. Introduced by Ian Goodfellow in 2014, GANs generate synthetic data to address issues of unbalanced samples, enhancing dataset diversity. In finance, GANs help modelers overcome data scarcity and noise by producing realistic copies of stock price sequences. However, training GANs is resource-intensive, requiring careful validation to maintain relevance to real market conditions.

The GAN framework consists of two neural networks: the Generator and Discriminator, which engage in an adversarial interaction. The Generator mimics actual data using random noise inputs, while the Discriminator differentiates real from synthetic data, boosting the Generator's improvement. This process relies on iterative feedback to achieve high-quality synthetic data.

In ...
#MQL5 #MT5 #GANs #ML

Read more...
πŸ‘51❀21πŸ‘Œ6✍4πŸ†4πŸ‘¨β€πŸ’»4πŸ€“3
Position sizing based on risk management is crucial for traders. To display your position size directly through a comment on any symbol chart, consider using a function that calculates this based on your specified risk percentage and the Average True Range (ATR) on a daily timeframe. You have the option to calculate this using either your account balance or equity, giving flexibility based on your trading strategy. This approach helps in maintaining consistency and discipline in your trading decisions. Integrating this functionality can enhance your trading platform's utility, allowing for quick adjustments and informed decision-making. Make sure your trading software is capable of executing custom scripts.
#MQL5 #MT5 #RiskManagement #TradingTools

Read more...
πŸ‘31❀14πŸ’―7πŸ‘Œ6πŸ‘¨β€πŸ’»5
Enhancements have been made to the MQL5 Economic Calendar dashboard, which now includes live update functionality for continuous display of critical events. Previous designs included a filter by currency, importance, and time. With real-time updates, timely decision-making is improved as the calendar reflects the latest data. Real-time news updates are implemented by comparing periodically stored economic events. Two arrays, "current_eventNames_data" and "previous_eventNames_data," manage and compare event data. Live refresh ensures updates reflect current events in real-time. This setup supports dynamic updates to the dashboard, making it a valuable tool for traders in MetaTrader 5. Further improvements will focus on integrating news into trading strategies.
#MQL5 #MT5 #RealTime #AlgoTrading

Read more...
πŸ‘41❀25πŸ‘¨β€πŸ’»5πŸ†4πŸ‘Œ3🀨2πŸ‘€2
This indicator identifies and draws key price levels within a user-defined range on financial charts. Users can set the range in either points or percentages. The process begins with the user inputting the desired price range through the indicator's settings. The indicator then actively scans the chart data. Once the price fluctuationβ€”the difference between maximum and minimum pricesβ€”meets the specified criteria within a given observation period, the scanning process halts. The relevant price levels are then visually displayed on the chart, offering a clear representation of the specified range. This tool aids in technical analysis by highlighting significant price zones.
#MQL4 #MT4 #Indicator #Strategy

Read more...
πŸ‘28❀23πŸ‘Œ4πŸ‘¨β€πŸ’»4⚑2πŸ‘2
ProfitTrail Pro is a tool designed to manage stop-loss orders effectively. It automatically adjusts the stop-loss as the price changes, maintaining a specified distance between the stop-loss and the market price. This ensures that traders can protect their gains and mitigate potential losses. Key parameters include the number of pips needed for the trailing stop to activate and the distance maintained between the stop-loss and the market price. It is suitable for traders seeking a method to safeguard profits without the need for constant market monitoring, offering more strategic trade management.
#MQL4 #MT4 #EA #Strategy

Read more...
πŸ‘22❀13πŸ‘¨β€πŸ’»4⚑3πŸ‘Œ2πŸ†1
Explore the integration of built-in indicators in MQL5, focusing on developing a Relative Strength Index (RSI)-based Expert Advisor (EA) for automated trading. This part guides through utilizing indicator handles and buffers to access RSI values and associated candlestick data. The EA strategically interprets these values to identify overbought or oversold conditions, utilizing a step-by-step EA construction process. Leveraging functions like iRSI and CopyBuffer, the tutorial ensures precise data retrieval for reliable market analysis. The approach emphasizes risk management and modification, providing clear, practical insights for traders and developers aiming to enhance their algorithmic trading strategies.
#MQL5 #MT5 #Indicator #EA

Read more...
πŸ‘43❀26πŸ‘¨β€πŸ’»3πŸ‘Œ2
A colored histogram indicator, specifically designed using DRAW_COLOR_HISTOGRAM2, is now formulated to display cumulative candles composed of bars moving in the same direction. This technique provides a clear visualization of trend dynamics in a subwindow, where bars representing identical directional movement are aggregated into a single entity. This approach allows for more efficient tracking of consistent price movement patterns and offers a consolidated view of market trends. It is particularly useful for identifying sustained rallies or declines, enhancing decision-making processes in technical analysis by simplifying the visual representation of price momentum.
#MQL5 #MT5 #Indicator #Strategy

Read more...
πŸ‘20❀18πŸ‘Œ3πŸ€”2πŸ‘¨β€πŸ’»2
Chemical Reaction Optimization (CRO) continues to demonstrate its effectiveness in solving optimization problems through its complex algorithm inspired by chemical reactions. The algorithm operates on principles of molecules and elementary reactions, employing processes such as decomposition, synthesis, and both intra- and intermolecular collisions to explore search spaces effectively.

Implementation involves initializing molecules, calculating kinetic energy, and conducting operations based on algorithm parameters. Random selection for synthesis or decomposition plays a critical role in identifying optimal solutions.

In testing, CRO was evaluated against Hilly, Forest, and Megacity functions, showcasing decent results although with occasional convergence slowdowns. The performance highlights its potential while also pointing to areas for furthe...
#MQL5 #MT5 #Algorithm #Optimization

Read more...
❀16πŸ‘14✍8πŸ‘¨β€πŸ’»4πŸ‘Œ2
MetaTrader 5 build 4730 introduces new features in the MQL5 language, including support for additional OpenBLAS library functions, as well as the new TransposeConjugate and CompareEqual functions. These enhancements provide even greater flexibility for matrix and vector operations.

We've also resolved compatibility issues with the MQL5 integration package for Python. The package is now fully compatible with all Python versions up to 3.13.

Additionally, we've optimized and accelerated platform operations involving price data, improved the account opening dialog, and corrected the display of position values.

Read more...
❀37πŸ‘26πŸ‘Œ5⚑3πŸ‘¨β€πŸ’»3
Discover an automated tool that optimizes the closing of open positions by integrating Bollinger Bands and RSI, two robust technical analysis indicators. This tool is tailored for closing residual trades efficiently at the end of trading sessions, offering precise identification of overbought and oversold levels. It excels in pinpointing optimal exit points, especially in low volatility environments. This combination enhances decision-making for traders seeking to maximize returns and manage risks more effectively. Suitable for those looking to fine-tune their trading strategies with data-driven insights.
#MQL5 #MT5 #AlgoTrading #Indicator

Read more...
❀23πŸ‘13✍2πŸ‘Œ2πŸ‘¨β€πŸ’»1
Learn to seamlessly integrate MetaTrader 5 with Telegram for real-time market insights! This guide elevates the Analytics Forecaster EA by enabling it to deliver key trading metrics directly to your Telegram chat. Discover how to create & manage a Telegram bot, fetch chat IDs, and use MQL5 to automate alerts about market trends, volume changes, and support/resistance levels. This setup empowers traders with instant, actionable data, enhancing decision-making speed and agility. Follow step-by-step instructions to leverage this integration for improved trading strategies and boosted efficiency. Ideal for those aiming to stay ahead in dynamic market environments.
#MQL5 #MT5 #EA #AlgoTrading

Read more...
❀14πŸ‘9πŸ‘¨β€πŸ’»2πŸ”₯1πŸ€”1πŸ‘Œ1
Today's financial markets present significant challenges, especially when distinguishing authentic movements from market noise. An advanced trend confirmation approach has been proposed to address these challenges, focusing on breakout trading. Combining price action with volume analysis, this method uses a dual-confirmation strategy that verifies both price breakouts and volume surges. This integration helps filter out false signals and enhances the identification of viable trading opportunities, improving trade quality and success rates. Incorporating dynamic risk management using the Average True Range (ATR) ensures adaptability to market volatility, enhancing trade execution reliability. This comprehensive approach, with rigorous technical components and machine learning integration, offers a robust framework for navigating volatile markets. Howev...
#MQL5 #MT5 #AlgoTrading #Trading

Read more...
πŸ‘15❀14πŸ‘¨β€πŸ’»3πŸ‘Œ2
Building a breakout trading strategy in MQL5 involves using technical analysis to identify and capitalize on market trends. The focus is the EUR/USD pair over the H1 timeframe, employing a combination of moving averages and the Average True Range (ATR) to guide trade decisions.

The strategy aims to detect breakouts by monitoring prices against predefined high and low levels, confirmed through price action and crossover points of fast-moving (5-period EMA) and slow-moving averages (60-period EMA). Orders are executed based on directional bias validated by these indicators.

Backtesting with historical data from January 2020 to November 2024 is critical to evaluate the strategy's effectiveness and profitability. Monitoring additional pairs, like EUR/GBP and GBP/USD, helps filter false breakouts, enhancing trade accuracy.
#MQL5 #MT5 #Algorithm #Forex

Read more...
πŸ‘38❀17🀨5πŸ‘¨β€πŸ’»4✍2πŸ‘Œ2πŸ‘€1
An update has been made to enhance the EA's functionality by adding several key components. A comprehensive signal buffer has been established, which integrates a full "speed" data buffer for improved performance analysis. Additionally, a buffer specifically for "error" data has been implemented, allowing for more precise identification and handling of discrepancies.

Further refinement includes the introduction of ENUMs for selecting price data efficiently. These enhancements are intended to streamline EA operations, offering a more robust analytical capability and facilitating quicker, more reliable decision-making processes. The update aims to address previous limitations by enhancing data management and utilization within the EA framework.
#MQL4 #MT4 #EA #Trading

Read more...
πŸ‘23❀3πŸ‘¨β€πŸ’»3πŸ‘Œ2πŸŽ‰1
Enhance your trading automation with a revamped order system in MetaTrader 5. Addressing previous flaws, the new system provides clear visualization of order types and expected movements, facilitating decision-making for traders. The updates include intuitive bitmap indicators for easy identification of buy/sell orders and position durations, distinguishing between Day Trade and Swing Trade. By using a message-driven architecture, the system efficiently processes platform events, ensuring precise order management. Suitable for both novice and experienced algorithm developers, this approach offers a practical framework for further customization, fostering better trading strategies and system robustness.
#MQL5 #MT5 #EATrading #AlgoTrading

Read more...
πŸ‘36❀22⚑2πŸŽ‰2πŸ‘Œ2πŸ‘¨β€πŸ’»1
The described indicator provides functionality to track price movements over a set number of bars by plotting significant price levels. It features the ability to draw a channel based on the minimum price of Low and the maximum price of High, offering insights into price extremes over the period. Furthermore, the indicator is capable of constructing a channel using the lowest Close prices and the highest Open prices, providing an alternate view on price volatility and potential areas of support and resistance. This dual capability allows for a comprehensive analysis of price patterns, aiding in more informed decision-making for traders and analysts.
#MQL5 #MT5 #Indicator #Strategy

Read more...
❀26πŸ‘20πŸ‘Œ2πŸ‘¨β€πŸ’»2
The current project focuses on enhancing the management of tab controls in a graphical user interface. If a tab control has more tabs than its width can accommodate, headers can either be cropped with scrolling buttons or arranged in multiple rows if a multiline mode is enabled.

Tab size modes determine header sizing: Normal adjusts based on text and padding, Fixed uses preset sizes, and FillToRight stretches tabs to fit the control width. Currently, only tabs on top of the control using Normal or Fixed modes are supported.

A new TabField object, extending from a container class, is introduced to manage tab interactions. Library classes are updated with new properties for sorting graphical elements and ensuring error handling consistency during graphical object creation.

Furthermore, the development includes implementing inheritance for properties like a...
#MQL5 #MT5 #UXDesign #Tabs

Read more...
πŸ‘27❀17😁4πŸ‘Œ3πŸ‘€2πŸ‘Ύ2πŸ‘¨β€πŸ’»1
The MetaTrader 5 Web Terminal is an advanced, fast, and reliable trading solution. It operates on any device across all operating systems and does not require additional software installations. All you need to access your account is a web browser.

To help you get acquainted with the web terminal features, we have created a short video. In just 4 minutes, you will learn how to:

βœ“ Connect to your account
βœ“ View quotes and charts
βœ“ Execute trades
βœ“ Analyze markets using indicators and objects
βœ“ Monitor your account status and trading history

Watch the video
πŸ‘57❀11✍8πŸ”₯4πŸ‘€3🀑2πŸ‘¨β€πŸ’»2