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 Bias Ea expert advisor facilitates dynamic risk management by enabling the setting of daily, weekly, and monthly profit and loss limits that can adjust according to account balance changes. This adaptive feature enhances performance control. It includes the COcoOrder class for managing OCO orders and a comprehensive Array Functions library, offering over 50 functions for array manipulation, date handling, and basic mathematical operations.

Moreover, three additional classes support operations such as equipment suspension, pixel-to-price conversion, and precise ATR calculation. The integration of the ICT Daily Bias method assists in trade direction determination. The system also comprises a foundational "Base Strategies" file for crafting new trading strategies and a Bias file for assessing market bias across various timeframes.

This modular structure op...

πŸ‘‰ Read | NeuroBook | @mql5dev

#MQL5 #MT5 #EA
❀47πŸ‘5πŸ‘¨β€πŸ’»3⚑2πŸ‘Œ1
Explore the power of association rules in algorithmic trading, offering a modern solution for identifying complex market relationships. This innovative approach, adapted from retail analytics, utilizes historical Forex data to uncover patterns, transforming them into actionable trading signals. The synergy of MQL5 for data handling and Python for analytical prowess enhances system development. Key technical indicators like SMA, RSI, and MACD play vital roles. The Apriori algorithm, expertly adapted, identifies significant patterns, forming the backbone of this system. Practical applications include creating robust trading signals through careful signal sorting, dynamic filters, and a comprehensive evaluation of rule strength.

πŸ‘‰ Read | Forum | @mql5dev

#MQL5 #MT5 #Algorithm
❀28πŸ‘6πŸ‘¨β€πŸ’»3πŸ‘Œ2πŸ‘€2
Explore the world of statistical arbitrage in financial trading with a focus on cointegration, a method offering potential for market-neutral strategies. Unlike traditional views, these strategies aren't zero-risk, but with proper risk management, they yield consistent returns. Backtests show strategy viability theoretically, but real-world execution reveals the importance of high-quality data and rapid execution, areas where retail traders face challenges against big players. By shifting from correlation to cointegration, traders can move beyond pairs trading to a wider asset portfolio, leveraging advanced Python libraries and optimization techniques to harness long-term asset dynamics. Cointegration tests like Engle-Granger offer a robust framework for identifying trading opportunities devoid of speed constraints.

πŸ‘‰ Read | NeuroBook | @mql5dev

#MQL5 #MT5 #StatArb
❀27πŸ‘6πŸ‘¨β€πŸ’»3πŸ‘€3
Explore algorithmic trading with a powerful pairing: Ichimoku Kinko Hyo and ADX-Wilder indicators. This article dives into support/resistance and trend-identification dynamics, revealing 10 indexed signal patterns. Each pattern is rigorously tested for efficacy, focusing on strong trends and avoiding common pitfalls like signal overlap. From price crossovers of Senkou Span A to Tenkan-Sen/Kijun-Sen crossovers, these strategies leverage the Ichimoku's holistic approach alongside ADX's trend strength metrics. Ideal for MetaTrader 5 developers seeking robust entry signals, this exploration offers insights into tailoring Expert Advisors for enhanced market engagement. Practical applicability spans various asset classes and timeframe nuances.

πŸ‘‰ Read | Forum | @mql5dev

#MQL5 #MT5 #Indicator
❀48πŸ‘¨β€πŸ’»13πŸ‘7
Momentum indicators are essential tools for market analysis, providing insights into price movements and potential trend reversals. The period for momentum calculation determines the number of candles analyzed, with a recommended setting of 14 for optimal balance between smoothness and responsiveness. A similar period is suggested for volatility analysis, ensuring that the momentum calculation reflects the market's current state accurately.

The scaling factor, typically set to 100000, ensures the momentum curve is easy to interpret. Overbought and oversold levels are crucial in predicting market corrections and recoveries, set by default at 100.0 and -100.0 respectively. Indicators signal a bullish trend with positive values and a bearish trend with negative ones, providing traders with actionable insights. When market conditions indicate overbought o...

πŸ‘‰ Read | AlgoBook | @mql5dev

#MQL5 #MT5 #Indicator
❀42πŸ‘7πŸ‘¨β€πŸ’»2
Enhance your algorithmic trading strategies with the power of matrices in MetaTrader 5! Understand how matrices seamlessly manage numerous independent variables, simplifying complex calculations for traders. Explore matrix applications in machine learning, focusing on linear regression models. Discover the inner workings of design matrices and efficient data handling using transposed matrices. Dive into multiple regression complexities, leveraging the Gauss-Jordan elimination for matrix inversions. This method offers scalability without substantial code changes. Learn practical implementations for seamless algorithmic adjustments, optimizing model accuracy without overfitting. Ideal for developers aiming to integrate mathematical precision into their trading algorithms.

πŸ‘‰ Read | Forum | @mql5dev

#MQL5 #MT5 #ML
❀65πŸ‘12πŸ‘¨β€πŸ’»5πŸ‘€4πŸŽ‰3⚑1
The "Set Auto TP and SL" functionality is fundamental for effective trading, providing critical support in automating Take Profit and Stop Loss settings. By allowing traders to establish predetermined price points, this feature enables trades to close automatically to either lock in profits or minimize losses. This automation limits the necessity for ongoing manual oversight and guards against emotional decision-making during volatile market shifts.

Key advantages include automatic risk management through the active limitation of potential drawdowns, securing profits at desired levels, and maintaining emotional discipline. Time efficiency is achieved by eliminating repetitive manual tasks, crucial for scalpers or high-frequency traders. This contributes to a coherent, disciplined trading method applicable to all traders, from novices to seasoned profes...

πŸ‘‰ Read | AlgoBook | @mql5dev

#MQL4 #MT4 #Strategy
❀27πŸ”₯14🀯6πŸ‘¨β€πŸ’»3πŸ‘2πŸ‘Œ2πŸ‘€2
The strategy utilizes a combination of three moving averages alongside the Average True Range (ATR) to determine market direction and set trade exit points. The system uses a Weighted Moving Average (WMA), High Moving Average, and Low Moving Average to signal market trends. An upward trend is identified when the WMA crosses above the High Moving Average, while a downward trend is indicated when the WMA crosses below the Low Moving Average. ATR is incorporated as a multiplier to establish the channel's upper and lower boundaries, aiding in calculating take profit levels and dynamic stop loss points. This method aims to provide structured trade exits based on market volatility.

πŸ‘‰ Read | Quotes | @mql5dev

#MQL4 #MT4 #Strategy
❀35πŸ‘6✍2πŸ‘¨β€πŸ’»2
Dive deep into the technical intricacies of the Parabolic SAR indicator, a tool essential for traders in trending markets. Explore how this trend-following indicator, conceived by Welles Wilder, aids in setting effective trailing stops, enhancing your trading precision on the MetaTrader 5 platform. Learn the mathematical underpinning of the SAR calculation for both rising and falling markets, providing insights into its operational mechanics. Delve into practical strategies, including buy/sell signals and trailing stops, each tailored to leverage SAR's capabilities. Lastly, enrich your algorithmic trading skills by coding a SAR-based expert advisor using MQL5 for automated operations, elevating your MetaTrader expertise.

πŸ‘‰ Read | Freelance | @mql5dev

#MQL5 #MT5 #Parabolic
❀82πŸ‘15πŸ‘€6πŸ‘¨β€πŸ’»5πŸ†1
A technical solution for financial chart analysis includes several key features. Firstly, dynamic watermarking provides real-time display of the current trading symbol and active timeframe. This feature also includes a clear description of the asset, ensuring all necessary information is visible without interfering with analysis.

Secondly, the responsive design automatically adjusts to screen resolution, repositioning centered elements as needed, and ensuring optimal readability in any MetaTrader 5 window size.

Customization is straightforward, with options to set watermark color using RGBA and adjust font size through an input parameter.

Efficiency is prioritized, with no reliance on buffers or technical plots, thereby minimizing resource consumption. The code remains modular and easy to integrate. Additionally, the tool supports full compatibility w...

πŸ‘‰ Read | Signals | @mql5dev

#MQL5 #MT5 #Forex
❀33πŸ‘5πŸ‘¨β€πŸ’»3πŸ‘Œ2✍1
In our latest exploration of MetaTrader 5 development, we focus on implementing a robust Zone Recovery System combined with an Envelopes-based trend-trading strategy using MQL5. This system intelligently manages trades by employing a "zone" strategy to recover from potential losses, automatically placing counter-trades when needed. By integrating Relative Strength Index and Envelopes indicators, the strategy identifies optimal entry and exit points, maintaining low risk and maximizing profitability. Designed for dynamic market conditions, this setup offers flexibility and precision for both novice and seasoned developers looking to automate and enhance their trading algorithms. Dive into the intricacies of our structured MQL5 implementation for deeper insights.

πŸ‘‰ Read | NeuroBook | @mql5dev

#MQL5 #MT5 #AITrading
πŸ‘14❀9πŸ‘¨β€πŸ’»5
Open-source AI models present an opportunity to enhance algorithmic trading tools, specifically by integrating them into MQL5 Expert Advisors like the News Headline EA. This integration begins by understanding foundational AI components, setting up hardware and software environments, and utilizing tools like llama.cpp and FastAPI.

Hosting an AI model locally involves several steps: downloading the model using a Python script from Hugging Face, creating and activating a dedicated Conda environment for dependencies, and deploying a FastAPI server to serve AI insights.

Finally, the integration process involves updating the EA to incorporate AI-derived insights, involving new input parameters, HTTP request handling for text generation, and incorporating outputs into the trading workflow. This setup offers real-time AI-enhanced commentary for traders.

πŸ‘‰ Read | Freelance | @mql5dev

#MQL5 #MT5 #AI
❀72πŸ‘¨β€πŸ’»10⚑8πŸ‘8
This script efficiently identifies the peak and trough values between specified bars on a chart. Users can set both a start and an end bar for the analysis. Initially, the program locates the candle with the maximum high within the defined range. It then extracts the highest value from this candle. The process is mirrored for finding the lowest point, identifying the candle with the minimum low and extracting its value. This approach ensures precise detection of both extremes within the specified bar range, aiding in technical analysis or further computation. Suitable for implementations where precise high and low values are necessary for decision making.

πŸ‘‰ Read | VPS | @mql5dev

#MQL4 #MT4 #Algorithm
❀27πŸ‘7πŸ‘¨β€πŸ’»2
Discover the transformative approach to graph generation with the Hyperbolic Latent Diffusion Model (HypDiff). This model leverages hyperbolic geometry to address key challenges in graph diffusion processes, maintaining topological integrity while efficiently handling non-Euclidean anisotropy. By employing a hyperbolic autosystem, it abstracts graph hierarchy and introduces geometric constraints to preserve essential properties. Unique implementation in MetaTrader's MQL5 extends versatility in algorithmic trading by projecting data into hyperbolic space and intelligently introducing noise via tangent planes. This innovative approach promises enhanced accuracy and computational efficiency, highlighting its practical applications for traders and developers alike.

πŸ‘‰ Read | NeuroBook | @mql5dev

#MQL5 #MT5 #AI
❀28πŸ‘7πŸ‘¨β€πŸ’»4πŸ”₯3
Unions play a significant role in programming languages like C and C++, offering an efficient way to manage memory by allowing different data types to share the same location. This ability is particularly useful for optimizing memory usage, as exemplified by compact data structures in low-level programming.

The concept of unions is rooted in the notion of shared memory structures, enabling programmers to manipulate data at the byte level effectively. Through a union, various types such as integers, arrays, or larger data types can coexist, aiding in the control and manipulation of complex data without the overhead of multiple variables.

Understanding how unions work is crucial for those tackling memory-sensitive applications or system-level coding, aiding significantly in tasks like data transformation, efficient parsing, and low-level data manipulat...

πŸ‘‰ Read | Calendar | @mql5dev

#MQL5 #MT5 #Programming
❀26πŸ‘5πŸ‘¨β€πŸ’»3πŸ‘€2
Discover efficient algorithmic trading with an advanced multi-symbol Expert Advisor for MetaTrader 5, combining mean reversion and momentum strategies to adapt to dynamic market conditions. This system addresses the challenge of signal fatigue by implementing Z-score calculations and momentum thresholds, ensuring precise trade entries while managing risk across different currency pairs. It independently monitors each symbol, using moving averages, standard deviations, and ATR-based volatility to generate signals when market conditions are optimal. With its layered decision-making, this EA supports scalable, risk-managed strategies suitable for both scalping and swing trading, offering a robust foundation for developing adaptive trading systems.

πŸ‘‰ Read | Freelance | @mql5dev

#MQL5 #MT5 #AlgoTrading
❀32πŸ‘11πŸ‘¨β€πŸ’»4πŸ”₯2πŸ‘€2
The Arithmetic Optimization Algorithm (AOA) leverages basic arithmetic operations for solving complex optimization challenges with a metaheuristic approach, introduced by Laith Abualigah in 2021. It employs principles like population-based strategies, randomness, and a balance between exploration and exploitation, effectively expanding search horizons to find global optima. The algorithm’s simplicity and flexibility, with minimal parameters and straightforward implementation in algorithmic trading, make it appealing for enhancement. The existing test results of AOA highlighted a 21.18% efficiency, indicating room for refinement. Modifications such as randomizing the displacement ratio and altering key equations are underway to enhance the algorithm's robustness.

πŸ‘‰ Read | VPS | @mql5dev

#MQL5 #MT5 #Algorithm
❀19πŸ‘4✍3πŸ‘€2
Hyperbolic geometric spaces are essential for representing hierarchical structures in various graph learning tasks. They address structural anisotropy challenges in latent graph diffusion processes. The HypDiff framework introduces a method for generating hyperbolic Gaussian noise, tackling issues with Gaussian distributions in hyperbolic spaces. This approach applies geometric constraints based on angular similarity to preserve local graph structures.

Implementation of HypDiff in MQL5 began with OpenCL program development. Key components include data projection into hyperbolic space via hyperProjection and HyperProjectionGrad kernels. Further progress involves creating a neuronal class for hyperbolic projection, emphasizing systematic initialization and validation.

The original algorithm demanded centroid determination from training datasets, unsuitab...

πŸ‘‰ Read | AlgoBook | @mql5dev

#MQL5 #MT5 #GraphLearning
❀33πŸ‘6πŸ‘¨β€πŸ’»4πŸ‘€4
A new indicator offers a sophisticated approach by plotting multiple signals based on MACD analysis. It evaluates whether the MACD is positive or negative, assesses the crossover between the MACD main line and its signal line, and monitors the interaction between MACD and closing prices. This multiple signal plotting can assist traders in identifying potential trends and market shifts more effectively. The additional layers of analysis provide a nuanced view of the market, aiding in more informed decision-making. Stay informed with these advanced tools to enhance your market analysis strategy.

πŸ‘‰ Read | VPS | @mql5dev

#MQL4 #MT4 #Indicator
❀42πŸ‘8πŸ‘Œ3⚑2πŸ‘¨β€πŸ’»2πŸ‘1
Explore the enhanced Zone Recovery System in MQL5: Now featuring a smart trailing stop and multi-basket mechanism for algorithmic trading. These upgrades ensure dynamic profit protection with trailing stops, while multi-basket handling optimizes trade management by tracking separate trade signals. By refining the integration of RSI and Envelopes indicators, the strategy maintains precise entries and maximizes profit opportunities, making it robust in volatile markets. Discover how to implement these enhancements in MQL5 and elevate your trading system's adaptability and efficiencyβ€”ready for real-world application and testing. Dive into a technically sound transformation of trend trading strategies with advanced customization possibilities.

πŸ‘‰ Read | CodeBase | @mql5dev

#MQL5 #MT5 #Trading
❀36πŸ‘10πŸ‘Œ4πŸ”₯3πŸ‘¨β€πŸ’»2