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
Analytics Master EA offers advanced trading insights and automates market metric analysis. Unlike the previous script, it updates metrics every two hours, providing continuous market monitoring. It calculates market volatility, spread, and optimal lot sizes based on account balance, enhancing risk management. The EA integrates support and resistance levels, offering real-time market direction analysis. Key functionalities include drawing trend lines, determining trade sizes, and analyzing market direction based on prior data. Implementing it on MetaTrader 5 requires steps like compiling code and enabling AutoTrading. Regular updates and backtesting ensure adaptability in diverse market conditions.
#MQL5 #MT5 #EA #Strategy

Read more...
πŸ‘27❀15✍7πŸ‘¨β€πŸ’»6πŸ€”3⚑2πŸ‘Œ2
Understand market dynamics better with an indicator that highlights market highs and lows across multiple timeframes. By displaying daily, weekly, and monthly highs and lows on lower timeframes like H1, M30, and M40, it provides traders with valuable insights into historical price levels and potential breakout points.

This tool is particularly beneficial for analyzing support and resistance zones, enabling traders to make informed decisions in breakout scenarios. Period separators further enhance this by clearly delineating the timeframe segments, allowing for a structured view of price movements over different periods.

A beneficial addition for those looking to refine their trading strategies by focusing on key market levels and optimizing entry and exit points in active trading sessions.
#MQL4 #MT4 #Algorithm #AI

Read more...
❀29πŸ‘16πŸ‘¨β€πŸ’»5πŸ‘Œ2⚑1
MetaTrader 5 developers will find this article insightful for understanding the creation of technical indicators through linear functions. The process involves four fundamental steps: selecting price readings, applying ratios, summing results, and charting the output. Emphasizing ratio integrity, the article explores various innovative sequences, including Fibonacci and other mathematical series, to create and customize indicators. It further delves into the concept of oscillators, highlighting their construction by leveraging two distinct indicator sequences. Practical applications include designing unique trading strategies and customizing indicators, providing a robust basis for algorithmic trading development and experimentation.
#MQL5 #MT5 #Indicator #Algorithm

Read more...
πŸ‘62❀18πŸ‘¨β€πŸ’»6πŸ‘€4✍3πŸ‘Œ3⚑1
A recent attempt involved utilizing the "speed" or correction factor of the Kalman filter as an indicator in technical analysis. This approach includes a smoothing elementβ€”a signal line based on the moving average of the "speed." The signal line allows adjustments through parameter shifts, which can be set to positive or negative values to fine-tune its position relative to the main data. Additionally, buffers have been carefully named to clarify their function and enhance comprehension of the ongoing calculations. This method offers a structured approach to integrating Kalman filtering techniques into indicator development within technical analysis.
#MQL4 #MT4 #Indicator #AlgoTrading

Read more...
πŸ‘27❀13πŸ‘¨β€πŸ’»4πŸ‘Œ2
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