MQL5 Algo Trading
402K subscribers
2.64K photos
2.64K 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
Introducing a tool designed for technical traders focusing on delta metrics: Cumulative Delta, Net Delta, and their divergences. Key features include tracking aggregated buy and sell volumes through Cumulative Delta and analyzing the difference in buying and selling pressure via Net Delta for each bar. The tool also offers a session reset for tailored intraday analysis and includes EMA smoothing for more refined and legible delta curves.

Engineered to meet the needs of traders monitoring order flow dynamics and volume imbalances, these features allow detection of pivotal divergences. Such divergences include bullish and bearish indicators, where potential market reversals are highlighted. Additionally, hidden and exhaustion divergences provide insights into trend confirmations and possible corrections. This solution remains lightweight and fast, focusi...

👉 Read | Calendar | @mql5dev

#MQL5 #MT5 #OrderFlow
23🎉4🔥2👌1
The Liquidity Sweep on Break of Structure (BoS) system builds upon the inverse fair value gap concepts developed in previous articles, leveraging MetaQuotes Language 5 (MQL5) for enhanced functionality. The BoS strategy combines swing point identification with liquidity sweeps for detecting trend changes.

The system identifies swing highs and lows over a defined length, differentiating between higher highs (HH) and lower lows (LL) to set the BoS trend. A liquidity sweep is marked when prices wick beyond a swing but close inside on a directional candle, prompting potential reversals. The strategy executes trades on detected sweeps in accordance with the trend, with dynamic stop levels, trade limits, and pattern visualization.

Implementation in MQL5 involves creating a comprehensive program with dynamic inputs, ensuring readability, and implementing ...

👉 Read | Forum | @mql5dev

#MQL5 #MT5 #Strategy
23😁7👍52
In the latest installment of the MQL5 series, the focus shifts towards developing a more advanced project involving the Binance API and MetaTrader 5. Having previously covered the basics such as retrieving 5 daily BTCUSDT candle data, this segment will focus on extracting and processing data from the last 10 thirty-minute candles.

Initially, MQL5 scripts will leverage the OnTick event to efficiently request new data without exceeding API limits. Data from server responses will be parsed into structured arrays categorizing open, high, low, and close prices. Following extraction, string data undergoes conversion into appropriate datetime and double formats.

This structured approach ensures precision in data handling, facilitating the development of custom indicators capable of visualizing real-time market data efficiently.

👉 Read | Signals | @mql5dev

#MQL5 #MT5 #MQL5
28🎉4👀1
Elevate your algorithmic trading strategy with an innovative approach that integrates the Relative Strength Index (RSI) with market structure awareness to generate high-probability trade entries. Traditionally reliant on breakout and retest models, this method leverages early momentum confirmation for enhanced timing and reliability. By developing a structured system using MQL5, traders can automate the detection of trend channels and RSI divergence, transforming manual strategies into precise, executable algorithms. This programmatic solution offers sophisticated risk management, ensuring more effective entries and reducing reliance on manual signal interpretation. Discover a robust path from market theory to algorithmic practice.

👉 Read | Forum | @mql5dev

#MQL5 #MT5 #Algorithm
19👌2
In modern user interfaces, resizing elements with the mouse is essential. Implementing this feature requires a well-architected approach, typically using the MVC (Model-View-Controller) framework. In the MVC paradigm, the View component handles the visual and interactive aspects of resizing. It tracks mouse movements, determines cursor placement on element boundaries, and displays tooltips indicating resizing directions. The Controller processes events and updates the Model if necessary.

For TableView controls in applications, resizing enhances data adaptability, readability, and creates dynamic interfaces. Implementing resizing involves refining base classes and creating graphical tooltips. By enhancing the Base and Control classes, this functionality becomes integral to modern interface components. This structured approach ensures responsiveness and effective u...

👉 Read | Forum | @mql5dev

#MQL5 #MT5 #UI
30🎉4👀2👌1
The challenge of maintaining a consistent position for chart arrows has been noted. Typically, when an arrow is added, scrolling can result in its displacement, leading to visibility issues. This variability in position can hinder clear analysis, as the arrows might not correspond accurately to specific chart points. The provided code resolves this inconsistency by ensuring that arrows remain in a static, fixed position relative to the bars. This adjustment is crucial for clarity in data representation and analysis, facilitating more reliable decision-making. Consistent arrow placement can significantly enhance the usability of chart observations and historical data analysis.

👉 Read | Quotes | @mql5dev

#MQL4 #MT4 #Indicator
27👍2👌2
Explore the advanced features of MetaTrader 5 by leveraging its integrated chat capabilities. These powerful tools enhance trader communication and collaboration with private messages, group chats, and channels. Streamline interaction with brokers through dedicated support chats directly within the platform. Delve into team projects, exchange trading strategies, or broadcast updates with ease, all while ensuring efficient data usage and swift message delivery. Elevate your algo-trading experience by connecting effortlessly across MetaTrader's desktop and mobile apps. Ideal for both developers and traders, the chat system fosters a dynamic and responsive trading community, promoting proactive trading strategy development and customer engagement.

👉 Read | Freelance | @mql5dev

#MQL5 #MT5 #AlgoTrading
60👍12
RSD Histogram is currently recognized as a versatile indicator in the market, initially completed in 2018. Significant development efforts have transitioned this tool into its final form, which now operates on a subscription basis. While earlier versions are available for experimentation, the latest iteration incorporates all recent enhancements. The final release aims at providing advanced functionality and is designed to meet the evolving needs of trading analysts and developers. Although the legacy version remains accessible, the subscription model offers sustained updates and support for the latest market demands.

👉 Read | Freelance | @mql5dev

#MQL4 #MT4 #Indicator
295👏1
Improving library classes involves handling changes in graphical object properties across multiple charts and simplifying event tracking with a custom indicator. We can control standard graphical object properties in the chart window using an event model. Events are handled via the OnChartEvent() handler, which simplifies code and resolves property filling issues upon object creation. However, events from other charts don't directly reach the primary chart's OnChartEvent(). To overcome this, custom events via EventChartCustom() are sent to the primary chart.

This process involves assigning event IDs and transferring them with chart IDs using the lparam parameter, while the object name is sent through the sparam parameter. Thus, events from all charts can be managed by a program on a single chart. The CChartObjectsControl class helps manage event con...

👉 Read | Docs | @mql5dev

#MQL5 #MT5 #Indicator
61🏆9👍4🎉4👌1
Implementing a button for managing advisor functions can streamline workflow. This example demonstrates how a button is used to close all active positions across various instruments. The example also includes functionality for handling button events. Methods are provided for closing positions based on the symbol name and for counting positions related to each symbol. This allows for efficient control and management of trading positions. By integrating these methods, advisors can enhance their trading logic and improve execution efficiency. Such implementations aid in maintaining structured and responsive trading systems. This systematic approach benefits both new and experienced developers in optimizing code performance.

👉 Read | Forum | @mql5dev

#MQL5 #MT5 #EA
20👍2
The "Quarters Theory" indicator segments price movements around a central reference level, enhancing analysis for multiple assets including Forex, stocks, and commodities. This tool provides visual representation of quarter divisions on the chart, aiding in technical analysis by highlighting potential support and resistance levels.

The indicator calculates a flexible base level, with options including current daily close, previous day, week, and month closes, as well as user-defined levels. It supports various units for quarter size, appropriate for different instruments: pips for Forex, points for other assets, percentages of the base level, or fixed price values.

It adapts automatically to distinguish between Forex and non-Forex assets, adjusts pip calculations accordingly, and manages situations with unavailable timeframes. This makes it a versat...

👉 Read | Signals | @mql5dev

#MQL5 #MT5 #Indicator
21🤡1
Explore the advanced framework for enhancing algorithmic trading with MetaTrader 5. The article introduces a disciplined pipeline that filters noise in indicator selection, highlighting its transformation into a predictive engine using a compact neural network. This network is trained on multi-quarter data, outputting an ONNX model for seamless integration with MQL5. Practical advancements include adaptive indicators like FrAMA and TRIX, alongside a robust feature and label engineering process ensuring reliable predictions. Emphasizing a straightforward multi-layer perceptron (MLP) structure, the approach focuses on efficient, transparent model deployment, minimizing overfitting risks and enhancing real-time trading strategy execution.

👉 Read | AppStore | @mql5dev

#MQL5 #MT5 #Strategy
19👍2🤡1
In this update of our AI-powered trading system in MQL5, we've focused on further modularization and the automation of trading functionalities. The UI components have been separated into a dedicated include file, enhancing code cleanliness and maintainability. This also streamlines development, testing, and integration of new features like dynamic UIs and automatic signal execution.

Automatic signal checks have been implemented for new bars, enabling trade execution based on AI-generated signals parsed from JSON input. These signals outline entry points and Stop-Loss/Take-Profit levels, offering a clear trading strategy devoid of emotional biases, and improving efficiency.

Our visualization system now signals patterns like engulfing or divergences on charts using arrows, lines, and labels, facilitating clear pattern recognition. We've also implemen...

👉 Read | NeuroBook | @mql5dev

#MQL5 #MT5 #AITrading
25