Part 2 of our MetaTrader 5 series advances MQL5 Economic Calendar integration by crafting a sleek News Dashboard. Designed for real-time market insights, this interface aids in decision-making with effortless access to vital economic data. The process involves structuring a user-friendly dashboard, emphasizing readability with contrast for quick impact recognition. Key functionalities leverage MQL5's object creation capabilities to set up elements like labels and buttons efficiently. This modular approach enhances UI setup, streamlines code, and optimizes event monitoring, offering a pragmatic tool for algorithmic traders to manage and react to economic events as they unfold.
#MQL5 #MT5 #Trading #Dashboard
Read more...
#MQL5 #MT5 #Trading #Dashboard
Read more...
👍25❤22👨💻4👌2⚡1
The Chart Projector tool is developed to streamline market analysis for price action traders by overlaying the previous day's chart on the current one. This method provides traders an immediate context of market conditions by visualizing price movements and key levels, supporting more informed decision-making. The overlay helps traders identify trends and simplifies trade planning, focusing on actual price actions instead of relying on traditional indicators.
Code implementation uses MetaEditor, where a script is developed to create the ghost overlay effect. The script includes several functions such as DrawGhostCandles for overlaying prices and DrawHorizontalLine for marking key levels. Outcomes show an enhanced market understanding through customizable visual representation, aiding in identifying trends and risk management.
In conclusion, t...
#MQL5 #MT5 #ChartProjector #AlgoTrading
Read more...
Code implementation uses MetaEditor, where a script is developed to create the ghost overlay effect. The script includes several functions such as DrawGhostCandles for overlaying prices and DrawHorizontalLine for marking key levels. Outcomes show an enhanced market understanding through customizable visual representation, aiding in identifying trends and risk management.
In conclusion, t...
#MQL5 #MT5 #ChartProjector #AlgoTrading
Read more...
❤31👍26👌5👨💻5⚡1
The indicator visualizes the status of two indicators, MACD and Stochastic, as lines of squares, providing a clear comparison of their signal line positions. It helps in determining the relationship between these two indicators within the main chart window. The MACD line, often used for trend assessment, and the Stochastic line, which identifies momentum, are shown alongside each other. Being represented as squares, these lines offer quick visual confirmation of current market conditions, aiding in more informed decision-making. Users can easily interpret the market status with this combined indicator visualization, simplifying analysis in trading environments.
#MQL5 #MT5 #Indicator #MACD
Read more...
#MQL5 #MT5 #Indicator #MACD
Read more...
👍24❤14👨💻5🏆4⚡2👌2
Discover how MetaTrader 5's limitations have driven innovation in algorithmic trading with a newly-designed, multi-functional Admin Panel. This enhanced interface allows for seamless management of orders and positions while incorporating robust market analysis, data display, and risk management features directly on a single chart. By restructuring the Admin Panel into distinct sub-panels – Communications and Trade Management – we streamline user experience without switching charts. This reimagined panel utilizes modified MQL5 libraries to avoid compatibility issues, ensuring efficient navigation and execution. Stay tuned as we delve into the Trade Management Panel for enhanced trading operations.
#MQL5 #MT5 #MT5 #Algorithm
Read more...
#MQL5 #MT5 #MT5 #Algorithm
Read more...
❤25👍14👌3👨💻3⚡2
The Alligator indicator, developed by Bill Williams, helps traders identify market trends using three smoothed moving averages (SMAs), referred to as the Jaws, Teeth, and Lips. These SMAs are set at different periods and shifted forward to identify market phases, categorizing them as trending, consolidating, or transitioning. The indicator suggests that markets only trend strongly about 15-30% of the time, with the rest being directionless. The "waking up" phase occurs when the SMAs diverge, signaling trend potential. Important patterns like Alligator Awakening and Eating use these SMAs to signal potential market shifts and trends.
#MQL5 #MT5 #Indicator #Strategy
Read more...
#MQL5 #MT5 #Indicator #Strategy
Read more...
👍58❤31👌5👨💻4
The DeMarker Pending 2 version update has been finalized. In this update, the handling of 'SELL' and 'BUY' positions has been optimized for enhanced trading operations. The new protocol dictates that upon initiating a 'SELL' position, all existing 'BUY' positions will be closed immediately. Conversely, when starting a 'BUY' position, all current 'SELL' positions will be closed promptly. This approach aims to streamline the strategy, ensuring that conflicting positions are not held simultaneously, which can reduce risk and improve the efficiency of trading operations. This update is critical for maintaining a balanced portfolio and better market responsiveness.
#MQL5 #MT5 #DeMarker #AlgoTrading
Read more...
#MQL5 #MT5 #DeMarker #AlgoTrading
Read more...
👍18❤15👨💻8✍7👌2👾2
process is now complete and ready for testing. This section outlines the procedure for preparing neural network models using Transfer Learning principles combined with previously established tools. Two variational autoencoder models are used as donors to create new models, integrating existing layers with additional decision-making layers. The focus is on evaluating models with consistent architecture while utilizing a universal Expert Advisor (EA) template for testing. Testing involves training models in synchronized environments, ensuring compatible training datasets and historical data, crucial for accurate Transfer Learning. This structured approach aims for efficiency and comparability in model performance evaluations.
#MQL5 #MT5 #TransferLearning #NeuralNet
Read more...
#MQL5 #MT5 #TransferLearning #NeuralNet
Read more...
❤30👍28🤩5👨💻4👌2
An indicator has been developed that places arrows on each bar to signal trend strength and identifies "PEAK" or "EXTREM peak" points on a chart, based on Williams %R (WPR) and Relative Strength Index (RSI) signals. It calculates by averaging the sum of WPR(4) + 100 and RSI(2), with values below or above 50 indicating trend strength.
Notably, this indicator updates signals only on the last bar and is compatible across all timeframes and symbols. Additionally, it integrates with four other chart indicators: Bollinger Bands (9,2,0) for volatility, a Clock for timing, FiboPiv_v2 for pivot points, and PL4 CandleTime for countdowns to new bars. Users should exercise caution as it is an introductory release.
#MQL4 #MT4 #Indicator #Trading
Read more...
Notably, this indicator updates signals only on the last bar and is compatible across all timeframes and symbols. Additionally, it integrates with four other chart indicators: Bollinger Bands (9,2,0) for volatility, a Clock for timing, FiboPiv_v2 for pivot points, and PL4 CandleTime for countdowns to new bars. Users should exercise caution as it is an introductory release.
#MQL4 #MT4 #Indicator #Trading
Read more...
👍40❤26👨💻8👀3⚡2✍2👌2
Dive into the latest steps in building the Connexus library for MetaTrader 5! This installment reveals the CHttpClient class, designed to streamline HTTP requests using the WebRequest function. By transforming CHttpRequest objects into HTTP calls, it simplifies complex web interactions, returning CHttpResponse with comprehensive data. To avoid tight coupling issues, the library introduces interfaces and dependency injection, enhancing maintainability and flexibility. This approach allows easy testing with mocks, simulating real scenarios without network dependence. Connexus is evolving into a robust, adaptable tool for developers interfacing MQL5 with external APIs efficiently.
#MQL5 #MT5 #HttpLibrary #Algorithm
Read more...
#MQL5 #MT5 #HttpLibrary #Algorithm
Read more...
👍40❤32👨💻7👌2🤔1💯1
Developers focusing on technical indicators may find interest in a tool for marking extremums with lines. Key features include setting periods to define highest highs and lowest lows, using both OHLC data and bid/ask prices for a comprehensive analysis. It incorporates a lookback function to restrict processing to a selected number of bars, optimizing performance. A unique capability is its ability to hide line segments during break of structure, ensuring visibility only on real support and resistance areas. This feature is adjustable, allowing preference for displaying lines on extreme prices and indicating trends. Note: An initial upload contained a logic mistake, but has been corrected with a revised version now available.
#MQL5 #MT5 #Indicator #Strategy
Read more...
#MQL5 #MT5 #Indicator #Strategy
Read more...
👍29❤18👨💻4👌2👏1
Returning to test automation, focus shifts to the second stage of optimizing trading strategies. The first stage involved optimizing parameters for individual strategy instances, with results stored in a database. Next, a selection of strategy groups is undertaken to improve trading metrics like reduced drawdown and increased balance curve linearity.
Implementations involve manual and automated selection from database-stored parameters, utilizing genetic optimization for grouping strategies. Modifications to the CDatabase class are necessary for managing multiple databases, enhancing flexibility in switching between primary and task databases for storing results.
The development of EA for the second optimization stage is discussed, utilizing database management to extract relevant data and create efficient test tasks. The EA setup relies on a structured ap...
#MQL5 #MT5 #EA #Algorithm
Read more...
Implementations involve manual and automated selection from database-stored parameters, utilizing genetic optimization for grouping strategies. Modifications to the CDatabase class are necessary for managing multiple databases, enhancing flexibility in switching between primary and task databases for storing results.
The development of EA for the second optimization stage is discussed, utilizing database management to extract relevant data and create efficient test tasks. The EA setup relies on a structured ap...
#MQL5 #MT5 #EA #Algorithm
Read more...
❤23👍21👌5👨💻3🔥2✍1💯1
The latest update in Version 2 introduces a 'Time control' feature and removes the 'Profit limit for close all' and 'Withdrawal' parameters. Enhancements include a trailing lot size control, detailed in the RSI Dual Cloud EA code. Trading signals are now verified with the emergence of new bars, analyzing the iAMA (Adaptive Moving Average) and iRSI (Relative Strength Index) indicators.
The process for generating a signal follows two steps. For an "Open Buy" signal:
1. RSI should be below 30, as set in the 'RSI Level Down' parameter.
2. The price needs to surpass the AMA indicator.
To optimize the indicator relationship, the 'Step Length' parameter defines the bar interval between these steps. Regarding the Martingale strategy, upon receiving a trading order, the system checks BUY and SELL positions' profits. For an "Open Buy," if BUY profits are negative,...
#MQL5 #MT5 #RSI #Strategy
Read more...
The process for generating a signal follows two steps. For an "Open Buy" signal:
1. RSI should be below 30, as set in the 'RSI Level Down' parameter.
2. The price needs to surpass the AMA indicator.
To optimize the indicator relationship, the 'Step Length' parameter defines the bar interval between these steps. Regarding the Martingale strategy, upon receiving a trading order, the system checks BUY and SELL positions' profits. For an "Open Buy," if BUY profits are negative,...
#MQL5 #MT5 #RSI #Strategy
Read more...
👍52❤29👨💻2🎉1👌1
Discover a refined solution for managing Take Profit (TP) and Stop Loss (SL) levels directly on the MetaTrader 5 chart using an Expert Advisor (EA). This approach enhances order management efficiency by leveraging the platform's tickets system to swiftly correct TP and SL values without external dependencies. By integrating a new drag-and-drop feature for stop levels, you can intuitively visualize and modify them while circumventing common pitfalls like negative TP values. Simplify your trading workflows with improved accuracy and speed, thanks to well-defined macros and functions, making efficient order adjustments accessible for traders and developers alike.
#MQL5 #MT5 #ExpertAdvisor #StopLoss
Read more...
#MQL5 #MT5 #ExpertAdvisor #StopLoss
Read more...
👍34❤28👌5👨💻4🏆3
The built-in economic calendar of MetaTrader 5 often faces synchronization challenges with historical quotes. This is primarily because the quotes use timestamps based on the server's time zone at the formation of the bar, which remain static, while the economic calendar events are linked to the current server time. Events may appear shifted due to daylight saving time adjustments or more significant time zone changes by brokers. This leads to misalignments of historical events with associated bars, complicating news-based strategy testing.
Addressing this, an extended solution has been developed using CalendarCache.mqh and CalendarMonitorCachedTZ.mq5. This updated indicator dynamically updates event information on charts and automatically corrects time discrepancies using the TimeServerDST.mqh library. Comparing CSV files with and without correctio...
#MQL5 #MT5 #AlgoTrading #Backtest
Read more...
Addressing this, an extended solution has been developed using CalendarCache.mqh and CalendarMonitorCachedTZ.mq5. This updated indicator dynamically updates event information on charts and automatically corrects time discrepancies using the TimeServerDST.mqh library. Comparing CSV files with and without correctio...
#MQL5 #MT5 #AlgoTrading #Backtest
Read more...
👍30❤23👨💻4⚡2🎉1👌1
Enhancing graphical UI elements in development environments requires meticulous adjustments to object visibility and containment methods. Each graphical component remains confined within its designated boundaries, with overflow parts obscured. The edges of the container or the inner frame outline these visibility limits.
The challenge lies with canvas elements, as typical bitmap cropping techniques fall short due to memory constraints. An alternative approach involves custom scoping, manually concealing overflow sections by coloring them with transparency. This solution necessitates development of auxiliary button objects featuring arrows for UI controls like scrollbars.
Adjust library classes with updates to graphical object properties, sorting methods, and introducing auxiliary object types. Modifications ensure objects respond accurately ...
#MQL5 #MT5 #Algorithm #GraphicalElements
Read more...
The challenge lies with canvas elements, as typical bitmap cropping techniques fall short due to memory constraints. An alternative approach involves custom scoping, manually concealing overflow sections by coloring them with transparency. This solution necessitates development of auxiliary button objects featuring arrows for UI controls like scrollbars.
Adjust library classes with updates to graphical object properties, sorting methods, and introducing auxiliary object types. Modifications ensure objects respond accurately ...
#MQL5 #MT5 #Algorithm #GraphicalElements
Read more...
👍36❤35👨💻3🔥2👌1
The Expert Advisor (EA) focuses on several core trading and technical principles designed for effective trade replication across multiple accounts and brokers. The trade copying or mirror trading concept is central, enabling fund managers or traders to replicate trading activities from a master account to multiple slave accounts. This system facilitates risk distribution and strategy execution across various brokerage platforms.
At its core, this solution operates within a two-tier architectural setup: the master account, which serves as the source, and the slave accounts, which replicate the positions. Communication between these accounts is executed through a binary file system, allowing for faster and more efficient data transfer than conventional text files.
Position management within the EA is executed in real-time, ensuring open positions, stop...
#MQL5 #MT5 #TradeCopy #RiskMgmt
Read more...
At its core, this solution operates within a two-tier architectural setup: the master account, which serves as the source, and the slave accounts, which replicate the positions. Communication between these accounts is executed through a binary file system, allowing for faster and more efficient data transfer than conventional text files.
Position management within the EA is executed in real-time, ensuring open positions, stop...
#MQL5 #MT5 #TradeCopy #RiskMgmt
Read more...
❤30👍28✍5⚡2👌2👨💻2
The article discusses advancements in a tool for neural network model editing, particularly enhancing its usability for MetaTrader 5 developers. Key updates include comprehensive neural layer information display, enabling better management of model architectures. With adjustments in the CListView class, the tool now offers clearer visualization of neural layers, aiding developers in model selection and modification. Moreover, by refining input fields, developers can better configure neural layer parameters, enhancing accuracy and reducing errors in algorithmic trading setups. The improvements aim to empower traders and developers to experiment with neural network architectures efficiently without altering source code, thus facilitating streamlined algorithmic trading processes.
#MQL5 #MT5 #AI #NeuralNet
Read more...
#MQL5 #MT5 #AI #NeuralNet
Read more...
👍41❤27👌3👨💻3🤡2
An efficient solution for automated trading, this expert advisor reads commands from a text file to execute orders. This method facilitates streamlined order management by allowing traders to place, modify, or close trades without manual input in the trading platform. This approach can be particularly useful for those integrating external systems or scripts to influence trading actions. By processing text-based instructions, the expert can offer enhanced flexibility and automation in trading operations. It's essential to ensure that the text file is correctly formatted and continuously monitored for the system to function seamlessly.
#MQL5 #MT5 #EA #Algorithm
Read more...
#MQL5 #MT5 #EA #Algorithm
Read more...
👍28❤15⚡2👌2👨💻2
Recent improvements in the Replay/Simulator system involved refining a mouse pointer for enhanced integration with chart objects using MQL5 programming. The distinction between ChartOpen and ChartID functions was emphasized, showing their long-term implications for broader applications. Integration challenges were identified due to prior oversights during development, particularly in the interaction of the mouse pointer with the control indicator.
To address this, small but crucial adjustments were made in the mouse pointer code, such as modifying buffer index values to extend coverage. This refinement aids in integrating the pointer functionality into projects, creating a tailored, stable study system. The control indicator and its supporting code were updated for better alignment with price-time coordinates, ensuring smooth operation within gra...
#MQL5 #MT5 #Programming #AlgoTrading
Read more...
To address this, small but crucial adjustments were made in the mouse pointer code, such as modifying buffer index values to extend coverage. This refinement aids in integrating the pointer functionality into projects, creating a tailored, stable study system. The control indicator and its supporting code were updated for better alignment with price-time coordinates, ensuring smooth operation within gra...
#MQL5 #MT5 #Programming #AlgoTrading
Read more...
👍30❤17👨💻4👌1
In the subsequent stage of implementing the script for visualizing deals, focus is on selecting data for an individual deal and rendering the necessary chart objects. Utilize the HistorySelectByPosition() method to obtain historical data by a unique POSITION_IDENTIFIER from MetaTrader 5, which is input through a global variable. The procedure mirrors the logic from the previous selection but simplifies historical order requests.
Opening charts entails verifying symbol validity to prevent errors associated with "non-existent symbols," often arising from variations in broker account types or Market Watch window settings. This includes deviations like commission charges and spread variations contingent on account and instrument types. Symbols are validated using the SymbolSelect() function, ensuring availability in Market Watch.
Once symbols are confirme...
#MQL5 #MT5 #script #DealVisual
Read more...
Opening charts entails verifying symbol validity to prevent errors associated with "non-existent symbols," often arising from variations in broker account types or Market Watch window settings. This includes deviations like commission charges and spread variations contingent on account and instrument types. Symbols are validated using the SymbolSelect() function, ensuring availability in Market Watch.
Once symbols are confirme...
#MQL5 #MT5 #script #DealVisual
Read more...
❤42👍37✍5👌4
Consider a straightforward indicator designed to create a smoother line chart while utilizing tick volume to assess market direction. The primary objective is to deliver an accurate depiction of market movements. Unlike the traditional line chart, this indicator filters out minor, volatile fluctuations for clearer insights. Users have the option to modify smoothing levels via input adjustments. Graphical elements enhance the depiction of market trends, providing visual clarity on directional shifts. It is recommended to exercise caution and avoid making trading decisions when the line signifies horizontal movement, as this may indicate a lack of clear market direction.
#MQL5 #MT5 #Indicator #AlgoTrading
Read more...
#MQL5 #MT5 #Indicator #AlgoTrading
Read more...
❤23👍19🤔2👌2👨💻2