Recent evaluations have highlighted performance and accuracy issues with the standard API functions ChartXYToTimePrice and ChartTimePriceToXY. ChartXYToTimePrice fails to function correctly when X and Y parameters fall outside the visible chart window, defaulting to zero values. Additionally, ChartTimePriceToXY experiences inaccuracies in certain scenarios. Both functions exhibit slow performance.
To address these issues, a revised script demonstrates improved accuracy across all parameter ranges. It utilizes a method where X and Y coordinates are translated to time and price and then reverted back. Accuracy is validated if input coordinates match the output. A discrepancy indicates functional errors, notating the issue during execution. The script concludes by reporting the final outcome, remaining silent if functionality is assured.
👉 Read | AppStore | @mql5dev
#MQL5 #MT5 #script
To address these issues, a revised script demonstrates improved accuracy across all parameter ranges. It utilizes a method where X and Y coordinates are translated to time and price and then reverted back. Accuracy is validated if input coordinates match the output. A discrepancy indicates functional errors, notating the issue during execution. The script concludes by reporting the final outcome, remaining silent if functionality is assured.
👉 Read | AppStore | @mql5dev
#MQL5 #MT5 #script
❤25👌1
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
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
❤24🎉4🔥2👌2
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
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
❤26😁7👍5✍3
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
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
❤30🎉4👍1👀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
👉 Read | Forum | @mql5dev
#MQL5 #MT5 #Algorithm
❤22👌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
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
❤32🎉4👀2👌1
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
👉 Read | Freelance | @mql5dev
#MQL5 #MT5 #AlgoTrading
❤63👍12
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
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
❤66🏆10👍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
👉 Read | Forum | @mql5dev
#MQL5 #MT5 #EA
❤25👍4
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
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
❤25🤡3