The Simple_Grid Expert Advisor is a straightforward tool designed to manage a grid of pending orders around the current market price. The system configures either stop or limit orders in both directions, determined by the input parameters. Notably, it operates without a Stop Loss. Between 23:30 and 4:00, non-activated pending orders are removed, with a new grid established after 4:00.
Key adjustable parameters include the grid step size, initial distance from the current price, the quantity of orders per direction, and the type of pending orders (stop or limit). Users can also set the expected profit level (Take Profit), fixed lot size, and the Expert Advisor's magic number. This tool was developed for educational purposes in MQL5 and is unsuitable for real account trading or profit generation, now available for placement in CodeBase.
π Read | Quotes | @mql5dev
#MQL5 #MT5 #EA
Key adjustable parameters include the grid step size, initial distance from the current price, the quantity of orders per direction, and the type of pending orders (stop or limit). Users can also set the expected profit level (Take Profit), fixed lot size, and the Expert Advisor's magic number. This tool was developed for educational purposes in MQL5 and is unsuitable for real account trading or profit generation, now available for placement in CodeBase.
π Read | Quotes | @mql5dev
#MQL5 #MT5 #EA
β€27π4π3π¨βπ»2β‘1π1π―1
MetaQuotes has once again demonstrated its leadership in creating innovative solutions for the financial industry. At the Forex Expo Dubai 2025, held on October 6β7, the company received two prestigious awards:
β’ MetaTrader 5 was named 'Best Multi-Asset Trading Platform Including Web and Mobile'.
β’ www.mql5.com was awarded 'Best Educational Tools Portal' for its continuously growing knowledge base: 60 new articles each month, trading applications, signals, and much more.
We are grateful to our clients and all traders for their continued trust β the driving force behind our commitment to developing advanced trading technologies.
Read more...
β’ MetaTrader 5 was named 'Best Multi-Asset Trading Platform Including Web and Mobile'.
β’ www.mql5.com was awarded 'Best Educational Tools Portal' for its continuously growing knowledge base: 60 new articles each month, trading applications, signals, and much more.
We are grateful to our clients and all traders for their continued trust β the driving force behind our commitment to developing advanced trading technologies.
Read more...
β€171π₯14π10π¨βπ»10π8β‘6π5
Presenting a newly developed experimental indicator, designed with volatility awareness in mind. Unlike the traditional Donchian Channel, this indicator incorporates the Average True Range (ATR) values at indices where extreme highs and lows occur. This integration aims to create channel lines that serve as a closer representation of price movement extremes. Notably, the result is channel lines expected to remain untouched by price candles, making them potential candidates for tight stop-loss placements. The green line could be considered for tight stop loss in buy scenarios, while the red line may serve a similar purpose in sell scenarios. It is crucial to note that this tool should not be used in isolation when making trading decisions, given the dynamic nature of qualitative price contexts.
π Read | Docs | @mql5dev
#MQL5 #MT5 #Indicator
π Read | Docs | @mql5dev
#MQL5 #MT5 #Indicator
β€37π¨βπ»4β‘1
For traders and developers looking to refine their strategies with adaptable, data-driven insights, the integration of Deep Q Networks (DQNs) with the TRIX and Williams Percent Range (WPR) indicators offers a promising approach. This combination bypasses static trading rules by incorporating reinforcement learning to dynamically adjust decision thresholds, thereby enhancing long-term profitability. Our article delves into the practical implementation of DQNs, explaining how these networks, trained on historical data, transform technical indicator signals into actionable insights. This method not only optimizes trading strategies through adaptability and foresight but also highlights challenges and solutions in deploying reinforcement learning models on platforms like MetaTrader 5.
π Read | AlgoBook | @mql5dev
#MQL5 #MT5 #atsignal
π Read | AlgoBook | @mql5dev
#MQL5 #MT5 #atsignal
β€32π¨βπ»3
The study presents significant insights into trading systems using random win-rate management and Monte Carlo simulation. Traders often exit trades at random profit levels, affecting the overall profitability due to variable win-rates and RRRs.
Monte Carlo simulation effectively models random trade outcomes, illustrating how different RRRs impact equity curves and drawdowns. The analysis emphasizes the importance of expectancy in assessing system profitability, showing that a positive expectancy leads to overall gains, while a negative expectancy results in losses.
Visual inspections and analyses highlight that higher win-rate strategies, although potentially profitable, often carry higher drawdowns. Effective strategy optimization requires managing win-rates and RRRs to sustain long-term profitability.
π Read | Signals | @mql5dev
#MQL5 #MT5 #Strategy
Monte Carlo simulation effectively models random trade outcomes, illustrating how different RRRs impact equity curves and drawdowns. The analysis emphasizes the importance of expectancy in assessing system profitability, showing that a positive expectancy leads to overall gains, while a negative expectancy results in losses.
Visual inspections and analyses highlight that higher win-rate strategies, although potentially profitable, often carry higher drawdowns. Effective strategy optimization requires managing win-rates and RRRs to sustain long-term profitability.
π Read | Signals | @mql5dev
#MQL5 #MT5 #Strategy
β€25π5π3π1π¨βπ»1
The Multitask-Stockformer framework is detailed in a multi-part analysis of its theoretical and practical aspects, focusing on MQL5 implementation. It integrates discrete wavelet transformation for time series analysis with multitask self-attention models to capture complex financial data dependencies. The framework consists of three core modules: time series decomposition, a dual-frequency spatio-temporal encoder, and a dual-frequency fusion decoder. Each module enhances the analysis and prediction accuracy by focusing on different frequency components. The system is designed to handle diverse market conditions effectively, providing trend analysis, anomaly detection, and dynamic market adaptability. Implementation efforts continue with key system components optimized for time series analysis.
π Read | Calendar | @mql5dev
#MQL5 #MT5 #TimeSeries
π Read | Calendar | @mql5dev
#MQL5 #MT5 #TimeSeries
β€23π7π€£3π¨βπ»3
Explore the innovative Time Evolution Travel Algorithm (TETA) designed for optimization without relying on parameters or constants. Mimicking the journey through parallel universes, TETA refines anchorsβkey decision pointsβcreating a unique self-balancing mechanism. This algorithm excels in locating promising solutions quickly and fine-tuning them across various test scenarios, including the complex GoldsteinPrice functions. Striking a balance between high-impact changes and stability, TETA ranks among the top optimization tools. Suitable for traders and developers alike, TETA offers a fresh perspective on problem-solving, simulating balance in dynamic, multi-dimensional systems.
π Read | Forum | @mql5dev
#MQL5 #MT5 #Algorithm
π Read | Forum | @mql5dev
#MQL5 #MT5 #Algorithm
β€30π¨βπ»11π5
A dual display system offers precise calculations of price changes, detailing both in pips below the candle and as a percentage above the candle. Two distinct measurement modes are available: the default Close-to-Close mode, which assesses the volatility between the closing prices of consecutive candles, and the Close-to-Open option, designed to analyze the same candle's body size by comparing its close and open prices.
This tool allows for flexible customization, offering the option to modify colors indicative of gains or losses and the ability to set a PipsLimit to ignore minor price changes. Performance is enhanced through a MaxBars setting, enabling users to define the number of historical bars processed, ensuring optimal efficiency.
Input parameters include CloseToClose for previous vs. current candle analysis, PipsLimit for filtering minimal...
π Read | AlgoBook | @mql5dev
#MQL5 #MT5 #Indicator
This tool allows for flexible customization, offering the option to modify colors indicative of gains or losses and the ability to set a PipsLimit to ignore minor price changes. Performance is enhanced through a MaxBars setting, enabling users to define the number of historical bars processed, ensuring optimal efficiency.
Input parameters include CloseToClose for previous vs. current candle analysis, PipsLimit for filtering minimal...
π Read | AlgoBook | @mql5dev
#MQL5 #MT5 #Indicator
β€36π2π¨βπ»2π₯1
In our previous technical development updates, we integrated an advanced ChatGPT module into MetaTrader 5 using MQL5, enhancing the user interface with scrollable chat and timestamp features. This time, our focus shifts to overcoming multiline input limitations and ensuring efficient chat history storage using AES256 encryption and ZIP compression.
Implementation involves refining multiline text rendering, integrating a sidebar for navigating preserved chat histories, and leveraging AI for real-time trade signal generation. We've modularized our MQL5 code and enhanced the bitmap handling, ensuring a seamless integration of UI elements like scalable icons and images.
Additionally, we improved prompt handling to accept multiline inputs effectively, using logic to append or create new paragraphs based on user input. This is crucial for detailed market queri...
π Read | Signals | @mql5dev
#MQL5 #MT5 #AITrading
Implementation involves refining multiline text rendering, integrating a sidebar for navigating preserved chat histories, and leveraging AI for real-time trade signal generation. We've modularized our MQL5 code and enhanced the bitmap handling, ensuring a seamless integration of UI elements like scalable icons and images.
Additionally, we improved prompt handling to accept multiline inputs effectively, using logic to append or create new paragraphs based on user input. This is crucial for detailed market queri...
π Read | Signals | @mql5dev
#MQL5 #MT5 #AITrading
β€32π5π¨βπ»3π2
The Volume-Weighted Moving Average (VWMA) is gaining traction as a crucial tool for traders, providing an edge by integrating trading volume into price analysis for trend verification. Unlike traditional moving averages like SMA and EMA, the VWMA assigns more significance to price movements with substantial trading volume, capturing genuine market momentum.
For algorithmic trading, VWMA's practical application offers enhanced trend confirmation by focusing on significant volume-backed price changes. The MQL5 implementation of VWMA crossovers involves using both a fast and slow VWMA to identify bullish and bearish market conditions. These signals help in constructing Expert Advisors (EAs) that streamline trade execution, monitor market conditions, and generate actionable alerts. Such advancements bolster traders' capability to differentiate between meaningfu...
π Read | AlgoBook | @mql5dev
#MQL5 #MT5 #Trading
For algorithmic trading, VWMA's practical application offers enhanced trend confirmation by focusing on significant volume-backed price changes. The MQL5 implementation of VWMA crossovers involves using both a fast and slow VWMA to identify bullish and bearish market conditions. These signals help in constructing Expert Advisors (EAs) that streamline trade execution, monitor market conditions, and generate actionable alerts. Such advancements bolster traders' capability to differentiate between meaningfu...
π Read | AlgoBook | @mql5dev
#MQL5 #MT5 #Trading
β€37π¨βπ»2π1
The article provides a comprehensive guide for MetaTrader developers to publish their programs on CodeBase efficiently. It covers essential guidelines for preparing the code, including formatting, commenting key logic decisions, and creating concise descriptions. Specific steps for uploading various types of programs, such as scripts, indicators, and services, are detailed with focus on a structured directory organization using MQL5 pathways. The guide emphasizes the importance of attaching explanatory images and undergoing code validation to ensure professional standards. This resource aids developers in showcasing their work, offering valuable contributions to the trading community while maintaining high-quality, accessible code publishing practices.
π Read | Freelance | @mql5dev
#MQL5 #MT5 #EA
π Read | Freelance | @mql5dev
#MQL5 #MT5 #EA
β€59π₯8π6π5β‘4π¨βπ»3π2
The indicator utilizes two standard deviations to compute a ratio, primarily highlighting areas of high activity rather than indicating price direction. To effectively use this tool, it should be paired with other indicators or price action analysis. Signal potential arises when the indicator crosses the threshold line, signaling changes in slope direction. Specifically, signals occur when the indicator crosses the line upwards or downwards. Additionally, when it falls below the threshold, it could suggest a trending market. Consider this indicator as a supplementary tool within a broader technical analysis strategy for more comprehensive market insights.
π Read | Forum | @mql5dev
#MQL5 #MT5 #Indicator
π Read | Forum | @mql5dev
#MQL5 #MT5 #Indicator
β€35π¨βπ»2β1
In the ongoing development of our market simulation system, key challenges arise from ensuring system security, reliability, and performance. An essential step in this process is to address information leakage through proper encapsulation. Within the C_Mouse class, we identified a flaw in the SetBuffer function's accessibility, which was rectified by relocating it, thereby enhancing system integrity.
Further, system performance issues became apparent during extensive feature use, traced back primarily to the mouse indicator's intensive buffer reading. This was mitigated by isolating buffer accesses and optimizing class variable storage versus repetitive function calls.
The system's updated architecture now reflects a more robust class hierarchy aimed at maintaining performance levels while allowing for scalability and adaptability in future developme...
π Read | Freelance | @mql5dev
#MQL5 #MT5 #AlgoTrading
Further, system performance issues became apparent during extensive feature use, traced back primarily to the mouse indicator's intensive buffer reading. This was mitigated by isolating buffer accesses and optimizing class variable storage versus repetitive function calls.
The system's updated architecture now reflects a more robust class hierarchy aimed at maintaining performance levels while allowing for scalability and adaptability in future developme...
π Read | Freelance | @mql5dev
#MQL5 #MT5 #AlgoTrading
β€21π¨βπ»2
Smart Money Concepts (SMC) trading leverages orderblocks as vital zones of institutional trading. Notably, when these zones are breached, they morph into mitigation blocks, offering unique insights into price retracements and market behavior. The article dives into implementing an Expert Advisor (EA) in MetaTrader 5 to intelligently identify and utilize these orderblock transformations. Key elements include leveraging libraries for efficient data handling, clear graphical representations for orderblock status, and robust trade management. With adaptive logic for real-time market shifts, this EA ensures precise entry points and risk control, promising advanced tools for traders and developers exploring algorithmic solutions in volatile markets.
π Read | AlgoBook | @mql5dev
#MQL5 #MT5 #SMC
π Read | AlgoBook | @mql5dev
#MQL5 #MT5 #SMC
β€24β‘10β2π¨βπ»2π1π€¨1
Elevate your MetaTrader 5 trading experience with the Market Periods Synchronizer Indicatorβan innovative tool for traders and developers seeking detailed market insights. This custom MQL5 indicator provides full customization of vertical period markers, aligning higher-timeframe boundaries within lower-timeframe charts. Explore intra-period price action with clarity, and analyze how smaller candles form larger structures. Key features include customizable marker intervals, color schemes, and performance optimization. The indicator supports major and minor timeframes, highlighting price action beyond candle bodies for a comprehensive view of market dynamics. An indispensable resource for algorithmic traders seeking a nuanced understanding of market behavior.
π Read | AppStore | @mql5dev
#MQL5 #MT5 #Indicator
π Read | AppStore | @mql5dev
#MQL5 #MT5 #Indicator
β€20β4π¨βπ»3π2π2
The previous discussion introduced the 5-0 Harmonic Pattern in MQL5, moving beyond the common Gartley pattern. This entry will cover the identification of points C and D to finalize the 5-0 structure. Recognizing the 5-0 pattern involves detecting specific points on a price chart programmaticallyβ0, X, A, and B have been identified, and now points C and D need to be established.
For point C, check for a rally that follows B, aiming for a Fibonacci extension between 161.8% and 224% of the AB leg. This corrective action often highlights a strong market reaction, offering clues for the eventual completion of the structure.
Finally, identify point D as it forms a retracement from C, typically between 50% and 55% of the BC leg. This zone represents potential trading opportunities. The program should connect the detection logic with trade execution to visually ve...
π Read | AppStore | @mql5dev
#MQL5 #MT5 #Strategy
For point C, check for a rally that follows B, aiming for a Fibonacci extension between 161.8% and 224% of the AB leg. This corrective action often highlights a strong market reaction, offering clues for the eventual completion of the structure.
Finally, identify point D as it forms a retracement from C, typically between 50% and 55% of the BC leg. This zone represents potential trading opportunities. The program should connect the detection logic with trade execution to visually ve...
π Read | AppStore | @mql5dev
#MQL5 #MT5 #Strategy
β€21π3π2π1π€―1π¨βπ»1π1
The transition to MQL5 Algo Forge emphasizes leveraging community-contributed code. A crucial step involves integrating third-party libraries while ensuring code remains modifiable through personal forks. In Part 3, SmartATR was integrated into the SimpleCandles Expert Advisor, highlighting challenges in direct cloning. A structured workflow using forks resolved these issues, with changes proposed to original repositories via Pull Requests.
Publishing modifications involves committing or releasing new versions. For efficient version control, obsolete branches should be managed to prevent repository clutter. A branch is essentially a sequence of commits, which remain intact post-deletion. Locating prior branch states involves identifying specific commits and understanding Git concepts like tags and the HEAD pointer. Tags, especially lightweight ones, ...
π Read | CodeBase | @mql5dev
#MQL5 #MT5 #AlgoTrading
Publishing modifications involves committing or releasing new versions. For efficient version control, obsolete branches should be managed to prevent repository clutter. A branch is essentially a sequence of commits, which remain intact post-deletion. Locating prior branch states involves identifying specific commits and understanding Git concepts like tags and the HEAD pointer. Tags, especially lightweight ones, ...
π Read | CodeBase | @mql5dev
#MQL5 #MT5 #AlgoTrading
β€29π4π2π¨βπ»2
The described Expert Advisor employs a specific approach combining a Martingale strategy with initial breakout/range-reversal entries. Key parameters allow traders to adjust and control the execution logic of EAs, such as trade directions, lot sizes, and trading schedule.
General parameters define unique trade identifiers, initial lot sizes, and allow the configuration of buy/sell capabilities, take profits, and order reset conditions. The Martingale strategy section specifies reverse Martingale logic, lot multipliers, profit targets, pip distances, and trade limits within a series.
The EA's core functions initiate and manage trades. Initialization (OnInit) arrays ensure readiness, while deinitialization (OnDeinit) handles clean-ups. Trading permissions hinge on specified dates and weekdays. Market execution processes validate trade parameters, uphold ma...
π Read | Calendar | @mql5dev
#MQL5 #MT5 #EA
General parameters define unique trade identifiers, initial lot sizes, and allow the configuration of buy/sell capabilities, take profits, and order reset conditions. The Martingale strategy section specifies reverse Martingale logic, lot multipliers, profit targets, pip distances, and trade limits within a series.
The EA's core functions initiate and manage trades. Initialization (OnInit) arrays ensure readiness, while deinitialization (OnDeinit) handles clean-ups. Trading permissions hinge on specified dates and weekdays. Market execution processes validate trade parameters, uphold ma...
π Read | Calendar | @mql5dev
#MQL5 #MT5 #EA
β€41π5π¨βπ»2π2π1
Unravel the potential of Bollinger Bands in trading with expert insights on its construction and strategic applications. The Bollinger Bands indicator, created by John Bollinger, offers a dynamic approach to trading, adjusting itself with the volatility of market conditions. Unlike fixed-percentage methods, it uses a standard deviation of a moving average, expanding or contracting based on market fluctuations. Discover practical strategies for uptrends, downtrends, and sideways markets, enhancing entry and exit precision. Furthermore, learn how to design an algorithmic trading system using MQL5 in MetaTrader 5, elevating your trading efficiency with automation and refined decision-making processes.
π Read | Forum | @mql5dev
#MQL5 #MT5 #Bollinger
π Read | Forum | @mql5dev
#MQL5 #MT5 #Bollinger
β€60π¨βπ»6β‘3π€¨2π2