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 development of a trendline trading system using MQL5 introduces an advanced mechanism for automated trading based on technical trendline analysis. Building on previously implemented systems, this iteration employs a least squares fit to establish support and resistance trendlines. These lines trigger buy and sell signals when prices intersect them, enhanced with visual indicators and adjustable trade parameters for clarity and efficiency.

Implementing this system involves designing a framework for trendline detection and management within MQL5, requiring the setup of input parameters and structures to enhance the dynamism of the trading program. This setup enables precise execution of trades while adhering to robust risk management protocols.

Through comprehensive backtesting processes, this strategy ensures reliable performance under various mark...

πŸ‘‰ Read | Freelance | @mql5dev

#MQL5 #MT5 #Algorithm
❀67πŸ‘11πŸ”₯8πŸŽ‰2πŸ†2πŸ‘¨β€πŸ’»2πŸ‘€1
The ATR% is a volatility indicator expressed as a percentage, showing the average true price range over a specific period. Unlike basic measures that only consider daily highs and lows, ATR% includes price gaps for a more comprehensive analysis. A reading of 100% represents the maximum potential volatility of the asset. In lower timeframes, ATR% typically remains below 3%, whereas higher timeframes can yield larger values. The calculation uses the formula: ATRP = ATR / close * 100. Here, ATR represents the average largest price spread over a given period, and close stands for the current asset price.

πŸ‘‰ Read | Freelance | @mql5dev

#MQL5 #MT5 #Indicator
❀48πŸ‘3πŸ‘¨β€πŸ’»3
Multivariate time series forecasting is critical in fields such as meteorology, energy, anomaly detection, and financial analysis. Recent advancements in artificial intelligence have yielded sophisticated models to enhance forecasting accuracy. Transformer-based architectures, known for effectiveness in NLP and computer vision, are valuable in time series forecasting. These models, when pre-trained on large datasets, significantly boost predictive performance.

Despite their complexity, simple linear models effectively compete with their Transformer-based counterparts, often preferred due to lower complexity and reduced overfitting risk. They efficiently capture stable patterns with even limited data. The PatchTST approach introduces patching techniques for local semantics extraction, highlighting scope for efficiency improvements with channel-ind...

πŸ‘‰ Read | Calendar | @mql5dev

#MQL5 #MT5 #DeepLearning
❀70πŸ‘¨β€πŸ’»7πŸ‘6πŸŽ‰3
The described indicator allows for customization in defining fractals, where users specify the number of bars forming the structure. In this setup, using 5 bars to the left and 2 bars to the right constructs a fractal pattern representing a top or a bottom. This approach provides flexibility in identifying key price reversal points effectively within market analysis. Adjusting the count of bars tailors the sensitivity and frequency of fractal signals. Implementing such a tool can enhance analysis precision, especially in recognizing pivotal market movements. Users can adapt settings based on their specific trading strategies and market conditions.

πŸ‘‰ Read | Calendar | @mql5dev

#MQL5 #MT5 #Indicator
❀35πŸ‘¨β€πŸ’»6πŸ‘2✍1πŸŽ‰1🀨1
Sorting a list of structures by a specific field is a fundamental task in programming. Different algorithms can accomplish this, each with unique characteristics. Quick Sort and Merge Sort are efficient algorithms commonly used for this purpose. Quick Sort works by partitioning the data and sorting the partitions independently. Merge Sort divides the list into smaller sublists, sorts them, and then merges them back together. Both offer reliable performance in various scenarios.

Customization may be required based on specific use cases. The sort can be tailored to accommodate different data types and sorting criteria. Understanding the mechanisms of these algorithms can aid in effectively organizing data structures. Implementing these algorithms requires a clear grasp of their operation and adaptability for specific sorting needs.

πŸ‘‰ Read | AlgoBook | @mql5dev

#MQL5 #MT5 #algorithm
❀33πŸ‘4πŸ‘¨β€πŸ’»2✍1
New Indicator Overview: Introducing an advanced custom indicator combining Bollinger Bands with actionable Buy/Sell arrows. This tool automatically tracks market movements, signaling potential reversal points when prices interact with the bands' thresholds. Calculations are done using the iBands function.

Operational Details: The indicator provides a Buy signal when a blue arrow appears after a candle closes below the lower band and then above it. A Sell signal is marked by a red arrow following a candle closure above the upper band and then below it. Arrows are only displayed once per signal direction until reversed, avoiding excessive signals.

Indicator Options: Users can customize the display of the Bollinger Bands and adjust parameters such as period, deviation, and price type. It is compatible across symbols and timeframes, employing non-repaint...

πŸ‘‰ Read | AlgoBook | @mql5dev

#MQL5 #MT5 #Indicator
❀26πŸ‘€9πŸ‘3⚑1πŸ‘¨β€πŸ’»1
Explore the intricate workings of the DispatchMessage procedure in the C_ChartFloatingRAD class, vital for MetaTrader 5's Chart Trade operations. This procedure handles events without creating objects, focusing on managing MetaTrader 5's responses. Delve into the mechanics of event handling, particularly the CHARTEVENT_CHART_CHANGE and CHARTEVENT_MOUSE_MOVE events, ensuring optimized MetaTrader 5 performance. Discover practical insights on managing complex data within strings, crucial for transmitting significant information efficiently. This detailed exploration offers invaluable guidance for developers enhancing their algorithmic trading systems, optimizing event-driven architecture in algorithmic trading and improving interaction with trading interfaces.

πŸ‘‰ Read | Docs | @mql5dev

#MQL5 #MT5 #Indicator
❀32πŸ‘Œ5⚑3πŸ‘3πŸ‘¨β€πŸ’»2
The integration of Python with MQL5 offers an advanced framework for algorithmic trading, overcoming several common challenges. This hybrid system directly interfaces MetaTrader 5 with Python for seamless data flow and machine learning operations without relying on manual data handling. By utilizing Python's advanced feature engineering and native libraries, the system ensures real-time signal generation based on comprehensive data analysis.

The architecture simplifies complexity by allowing Python to act directly as a MetaTrader 5 client, facilitating efficient data ingestion and computation. MQL5 handles user interaction and trade execution through an Expert Advisor, ensuring minimal latency and real-time processing.

This system enables automated, statistically-backed trading, comprehensively addressing data fragmentation, delayed insights, and inconsist...

πŸ‘‰ Read | CodeBase | @mql5dev

#MQL5 #MT5 #EA
❀30πŸ‘4✍3πŸ‘¨β€πŸ’»3
Master the art of using definitions in MQL5 to enhance algorithmic trading capabilities. The article delves into the effective use of compilation directives, exploring #define and #undef to control code execution and improve performance. Learn how to utilize these tools to modify code safely and swiftly, allowing for seamless integration of complex functionalitiesβ€”like importing external C/C++ code into MetaTrader 5. Ideal for developers looking to streamline coding processes without sacrificing speed. Discover how these techniques can facilitate version control and improve code granularity, offering practical insights for both beginner and seasoned programmers in the meta-trading ecosystem.

πŸ‘‰ Read | Signals | @mql5dev

#MQL5 #MT5 #Programming
❀27⚑2πŸ‘2πŸ‘¨β€πŸ’»2πŸ‘Œ1
The article discusses advanced techniques for implementing the PSformer framework, a transformative approach in the algorithmic trading domain, using MetaTrader 5. Emphasized are innovative features such as the Parameter Sharing (PS) mechanism and Spatial-Temporal Segmented Attention (SegAtt), which enhance prediction accuracy by organizing multidimensional time series into segments. This structure facilitates effective spatial-temporal relationship identification, essential for high-performance forecasting. The article highlights the methodical approach to implementing the PSformer Encoder using MQL5, focusing on efficient data handling through transposition layers and parameter-sharing blocks. Key benefits include a reduction in overfitting risks and computational efficiency, demonstrating notable performance in trading algorithms.

πŸ‘‰ Read | AlgoBook | @mql5dev

#MQL5 #MT5 #AI
❀21πŸ€”4⚑3πŸ‘¨β€πŸ’»2πŸ‘1
Technical indicators are critical tools for market analysis. They convert complex data into graphical formats, aiding strategic planning and timely decision-making. These automated systems update with real-time market data, eliminating manual recalculations and ensuring current analysis. Indicators vary widely: some highlight trends and assess market volatility, while others focus on trading volume dynamics. Utilizing these tools ensures decisions are based on objective data, not just intuition.

A new oscillator synthesized from the Parabolic SAR and Fractal indicator combines trend direction with price extremes to measure market momentum and volatility. This approach offers a structured framework for developing advanced trading strategies.

πŸ‘‰ Read | NeuroBook | @mql5dev

#MQL5 #MT5 #Indicator
❀33πŸ‘¨β€πŸ’»5⚑3πŸ‘2πŸ‘Œ1
A new library enables enhanced testing of Expert Advisors in MT5's mathematical mode. To activate math trading capability in your EA, include a specific line of code and permit DLL usage, ensuring safety via open-source code.

Initially, execute a single EA pass to save ticks with the defined input parameter. Post-execution, consult the log for tick-saving confirmation. Subsequently, proceed with EA running in both trading and math modes within the MT5 Tester. Relevant data will be available in the Tester's log.

The performance metrics display optimization capabilities in different modesβ€”real ticks (pips), real ticks with a virtual setup, and mathematical. The increased speed of the math mode is evident.

The library boosts MT5 testing efficiency substantially with two significant indicators: heightened performance and minimal memory usage. Specific libraries...

πŸ‘‰ Read | Docs | @mql5dev

#MQL5 #MT5 #EA
❀31πŸ‘9πŸ‘¨β€πŸ’»3πŸ‘€2
This post highlights a technical tool for traders dealing with multiple currency pairs. The indicator measures the correlation between two chosen pairs. Its settings include SecSymbol, Type, and iPeriod. SecSymbol specifies the second symbol for correlation. Type determines the correlation method employed. iPeriod sets the indicator's timeframe. This tool helps traders assess divergence and convergence between two symbols. Such analysis can be crucial for informed trading decisions. By understanding the relationship between different currency pairs, traders can better anticipate market movements and optimize their strategies accordingly.

πŸ‘‰ Read | NeuroBook | @mql5dev

#MQL5 #MT5 #Indicator
❀26πŸ‘3πŸ‘¨β€πŸ’»2⚑1πŸ‘Œ1
Explore the power of the Stochastic Oscillator in MetaTrader 5 for algorithmic trading. The article introduces the Stochastic Oscillator, a key indicator in technical analysis, which assesses the relationship between current closing prices and their historical range. Learn to leverage its %K and %D lines for market trend detection. Discover practical strategies for uptrend, downtrend, and sideways markets, and see how these strategies transition into trading systems through MQL5 coding. This integration enables automated, emotion-free trading, allowing precise execution of trading strategies. Ideal for traders and developers looking to enhance their trading systems using advanced technical indicators.

πŸ‘‰ Read | NeuroBook | @mql5dev

#MQL5 #MT5 #Indicator
❀56πŸ‘8✍4πŸ‘¨β€πŸ’»3
Customize your chart analysis by adding high and low lines based on a specific number of previous bars. Utilize an input field to define the desired number of bars for calculating the lines. This feature allows for precise control over the range of historical data considered, enhancing the accuracy of trend assessments. Adjust the number of bars in the settings to tailor the analysis to the requirements of the trading strategy or technical analysis approach. This flexibility fosters a more informed decision-making process by allowing for detailed examination of past market prices, providing valuable insights into potential support and resistance levels.

πŸ‘‰ Read | NeuroBook | @mql5dev

#MQL5 #MT5 #Indicator
❀26πŸ‘6πŸ‘¨β€πŸ’»2πŸ‘1πŸ‘Œ1
Explore the power of the CCanvas class in MQL applications for versatile graphics handling. Essential for advanced UI designs, CCanvas provides direct pixel manipulation capabilities on MetaTrader 5 charts. This tool equips developers with methods to skillfully create, modify, and manage visual elements such as UI components, images, and indicator overlays. By organizing pixel data into an array, developers can implement comprehensive chart interactionsβ€”drawing lines, shapes, and text via versatile algorithms including antialiasing and BΓ©zier curves. Practical for both traders and developers, CCanvas ensures high customization and control for dynamic algorithmic trading environments.

πŸ‘‰ Read | AppStore | @mql5dev

#MQL5 #MT5 #CCanvas
❀43πŸ‘10πŸ”₯4🀣3πŸ‘¨β€πŸ’»3πŸ‘€3πŸ†2
An expert advisor simplifies trade management effectively with specific functionalities. Automatic setting of take profit and stop loss based on pre-defined parameters enhances efficiency. Implementing an auto trailing stop ensures adaptability across any device placed order. The functionality to close all trades for the current symbol streamlines the trading process.

Usage involves adding the expert advisor to any symbol and configuring essential variables like take profit, stop loss, and trailing settings accordingly. There is no dependency on specific magic numbers, allowing orders placed on mobile devices to be modified by the EA. For currency symbols, standard pip values are used, while adjustments are necessary for XAUUSD and Boom/Crash synthetic symbols.

Efficient setup examples are available for XAUUSD and other currencies like EURUSD to enhance tr...

πŸ‘‰ Read | Quotes | @mql5dev

#MQL5 #MT5 #EA
❀39πŸ‘¨β€πŸ’»5πŸ‘Œ2
Dive into the world of algorithmic trading with the MACD indicator, a powerful tool for identifying market trends and momentum. Understand the calculation of MACD using exponential moving averages, and discover how its componentsβ€”the MACD Line, Signal Line, and Histogramβ€”help traders discern bullish or bearish market conditions. Learn how simple strategies, like MACD line crossovers with the zero-level and Signal Line, can provide actionable trading signals. This guide also covers designing trading systems in MetaTrader 5 with MQL5, showcasing practical applications for both developers and traders aiming to enhance their trading performance with automated insights.

πŸ‘‰ Read | Freelance | @mql5dev

#MQL5 #MT5 #Trading
❀75πŸ‘7✍4πŸ‘¨β€πŸ’»4⚑3πŸŽ‰3πŸ‘Œ1
Breakout Trader 1.0 is a tool designed for trading breakouts from established ranges, executing according to specific trading times. Key settings include start date configuration, magic number, and initial capital. Volume input and risk percentage per order offer customizable risk management. Users can toggle reverse trading and opt for automation during the day.

Additional parameters such as negative orders per day, profit formulas, and stop-loss techniques are available. The software allows trailing stops and tailors take-profit strategies based on equity levels. Partial sells and monthly trade settings provide further flexibility.

Users can configure trading days and times, with options to pause or end trading based on daily or weekly capital performance. Panel and design settings ensure the tool is user-friendly. Testing in demo accounts is advised...

πŸ‘‰ Read | Forum | @mql5dev

#MQL5 #MT5 #Trading
❀37πŸ‘6πŸ‘¨β€πŸ’»4πŸ‘Œ2πŸ€”1
Explore the intricate world of MQL5 programming with this engaging guide to utilizing the #define directive for inline macros. Discover how to transform repetitive code into efficient procedures, saving both time and space in your projects. Learn the art of passing arguments to macros, a powerful yet cautious approach to enhance your algorithmic trading scripts. Mastering these techniques ensures optimized code performance, crucial for high-frequency trading strategies. By understanding the subtle differences in compiler behavior, programmers can achieve faster execution while minimizing memory usage. This knowledge is pivotal for developers seeking to deepen their understanding of resource management in MetaTrader 5.

πŸ‘‰ Read | Freelance | @mql5dev

#MQL5 #MT5 #Macro
❀26πŸ‘3πŸ‘¨β€πŸ’»2