MQL5 Algo Trading
388K subscribers
2.57K photos
2.57K 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
An Expert Advisor (EA) is available that generates trading signals utilizing the Relative Strength Index (RSI) indicator. It functions by identifying when the RSI crosses above an upper threshold, signifying an overbought market condition, or below a lower threshold, indicating an oversold status. When these conditions are detected, the EA automatically initiates corresponding trade actions. This approach can help automate the trading process based on market momentum indicators, potentially optimizing decision-making by reacting promptly to RSI signal changes.

👉 Read | Quotes | @mql5dev

#MQL4 #MT4 #EA
37👍12👨‍💻3🏆2🔥1
In the previous discussion, a Multi-Symbol Strategy using Commodity Channel Index (CCI) and Awesome Oscillator (AO) was created for automated trend reversal trades. The focus now shifts to a neural network-based trading strategy utilizing adaptive learning rates to enhance prediction accuracy. This approach processes various market indicators and adjusts its learning process to optimize trade execution.

The strategy involves constructing a neural network comprising input, hidden, and output layers, complete with weights and biases. The key elements include forward propagation for prediction, backpropagation for refining accuracy, and an adaptive learning rate mechanism to manage weight updates effectively. This ensures stable learning, adapting swiftly to market volatility.

Implementation in MetaQuotes Language 5 (MQL5) begins by setting up neural netwo...

👉 Read | Calendar | @mql5dev

#MQL5 #MT5 #Strategy
31👍7🏆2👨‍💻1
In recent discussions, we examined integrating a CNN with a Rational Quadratic (RQ) Kernel to enhance signal interpretation and application for the MACD and On-Balance-Volume (OBV) indicators. While the classic forward walk test offered limited profitable patterns, exploring machine learning has shown potential in advancing indicator performance.

The RQ Kernel in CNN frameworks emphasizes patterns by adjusting kernel sizes and channel numbers. Adaptive attention masking and distance-aware pooling represent notable use cases. Despite fixed kernels offering robustness, hybrid approaches may offer better adaptability in complex scenarios, such as financial time series analysis.

Our Python-based implementation leverages the RQ-Kernel for a customizable architecture, reflecting data-driven dynamics for efficient feature extraction and analysis.

👉 Read | AlgoBook | @mql5dev

#MQL5 #MT5 #Indicator
30👍4👀4🏆1👨‍💻1
Discover how an innovative MQL5 tool automates price-action trading. Utilizing a dual Commodity Channel Index (CCI), a 34-period EMA, and ATR, this Expert Advisor (EA) refines trading strategies. The system detects momentum shifts via zero-line CCI crossovers, enhanced by a trend-following EMA filter, and uses ATR for dynamic risk management. Practical features like session filters optimize trades during high-volume times, ensuring precise, rule-driven signals. Traders can adjust parameters to match market conditions, benefiting from refined entry/exit strategies. This comprehensive approach exemplifies robust algorithmic execution, offering a blend of innovation and accuracy for algorithmic trading strategies.

👉 Read | AlgoBook | @mql5dev

#MQL5 #MT5 #Trading
69👍13👌6🤣6👨‍💻54
A newly available script provides a streamlined method to compress OHLC data. This enhances data handling efficiency and allows for optimized storage and retrieval processes. The script is designed to convert conventional time-based data into a more concise format, which could be beneficial for high-frequency data analysis and trading strategies. Handling and analyzing financial data requires precision, and this tool meets these criteria by simplifying data complexity. This advancement in script functionality represents a significant step in improving the workflow for developers and traders dealing with extensive datasets. It's a noteworthy development for those looking to enhance their data processing capabilities.

👉 Read | Forum | @mql5dev

#MQL5 #MT5 #script
30👍4👏2👨‍💻2
Explore the integration of the Python sqlite3 module principles into MQL5 for a streamlined database management experience. This approach simplifies interactions with SQLite databases in MQL5 by mimicking familiar Python functions like `execute()`, `fetchone()`, and `fetchall()`. Gain clarity on handling database connections, executing SQL statements, and managing transactions seamlessly. Learn efficient ways to work with text and binary data, ensuring robust data handling and storage. This guide offers a unique bridge for traders and developers familiar with Python, enhancing algorithmic trading capabilities within MetaTrader 5, while providing a comprehensive understanding of the structural adaptions required in MQL5.

👉 Read | Signals | @mql5dev

#MQL5 #MT5 #Python
18👨‍💻11👍4🎉4
Explore the process of creating a seamless auto-optimization system for trading strategies with MetaTrader 5. A single optimizing EA navigates tasks by updating statuses in a structured hierarchy: projects, stages, jobs, and tasks, all centralized in a relational database. Implementing SQL triggers allows real-time updates, ensuring efficiency and clarity. Task management follows a meticulous order, optimized for concurrent projects while avoiding redundancy. Developers can gain insights into leveraging genetic optimizations and dynamically managing project workflows. This approach not only automates optimization but fosters smarter, data-driven algorithmic trading, streamlining for effective strategy deployment.

👉 Read | VPS | @mql5dev

#MQL5 #MT5 #EA
74👍11👨‍💻64🏆2🤔1👌1
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👨‍💻32👌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
43👍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🎉31
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👍62👨‍💻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👌21
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
👍149👨‍💻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👨‍💻108👍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