An Expert Advisor was developed solely for testing a specific trading strategy mentioned by a forum member. The primary goal is strategy evaluation, not code quality assessment. The underlying algorithm operates as follows: Pending orders, Buy Stop and Sell Stop, are automatically placed at 15:00 Moscow time, 100 points from the current price. Each order comes with a Stop Loss set at 200 points, while TakeProfit is not employed. If an order is triggered, the other remains active until 16:00, when pending orders are cancelled if not executed. At 16:00, any open positions are closed, irrespective of their profit or loss status. This procedure ensures objectivity in testing the described strategy's profitability.
π Read | Docs | @mql5dev
#MQL5 #MT5 #EA
π Read | Docs | @mql5dev
#MQL5 #MT5 #EA
β€52
Time management is pivotal for algorithmic trading, yet daylight saving and time zone shifts pose significant challenges. Developers crafting MetaTrader 5 strategies cannot rely solely on broker-set time, especially in the strategy tester where function results may prove inconsistent. Key is understanding regional offsets β such as winter/summer time changes β and how brokers define server time. This article outlines efficient macros and functions enabling precise conversion to GMT and local times, even in testing scenarios. By managing these complexities, traders can optimize strategies like night scalping and London breakout, maintaining accuracy and performance across varying global markets.
π Read | NeuroBook | @mql5dev
#MQL5 #MT5 #Forex
π Read | NeuroBook | @mql5dev
#MQL5 #MT5 #Forex
β€58β11
A custom tester was developed to address limitations in standard strategy testing methodologies. The main issue identified was reliance on symbol-specific pip values rather than a uniform pip sum, which caused inconsistencies due to variable pip values across different symbols. Furthermore, the dependency on current swap points added variability, especially as brokers offer different swaps and these have fluctuated more recently.
This custom solution organizes testing by pre-filtering results through a set of defined rules. Rule1 modifies the maxDD function according to lot sizes, while rules2 and 3 evaluate trades within the AnalyzeTrades function pre-storage. The system offers an initial code base with customizable JavaScript functions stored in a separate file.
Testing configurations can be adjusted by incorporating OnTick() content from sample sc...
π Read | Signals | @mql5dev
#MQL4 #MT4 #EATrading
This custom solution organizes testing by pre-filtering results through a set of defined rules. Rule1 modifies the maxDD function according to lot sizes, while rules2 and 3 evaluate trades within the AnalyzeTrades function pre-storage. The system offers an initial code base with customizable JavaScript functions stored in a separate file.
Testing configurations can be adjusted by incorporating OnTick() content from sample sc...
π Read | Signals | @mql5dev
#MQL4 #MT4 #EATrading
β€48β5π4
Efficient input parameter management is crucial in software development, especially in trading system design. Working with input parameters traditionally involves repetitive code prone to errors. This library simplifies those routines by focusing on object-oriented programming (OOP) principles. In the context of a trading advisor, using OOP enhances code readability and integration into complex systems.
When handling input parameters, consider an OOP-alternative approach. It reduces code complexity by encapsulating repetitive tasks and ultimately limiting error probability. This reduction enables more focus on trade logic rather than technical overhead. The library enables storing and retrieving parameter sets as strings, facilitating quick adjustments and clear parameter set visualization.
Additionally, the modular nature of OOP allows hiding repetitive code in...
π Read | VPS | @mql5dev
#MQL5 #MT5 #OOP
When handling input parameters, consider an OOP-alternative approach. It reduces code complexity by encapsulating repetitive tasks and ultimately limiting error probability. This reduction enables more focus on trade logic rather than technical overhead. The library enables storing and retrieving parameter sets as strings, facilitating quick adjustments and clear parameter set visualization.
Additionally, the modular nature of OOP allows hiding repetitive code in...
π Read | VPS | @mql5dev
#MQL5 #MT5 #OOP
β€42β‘3
Discover how to enhance the functionality of your MetaTrader 5 library classes by integrating a sophisticated graphical object collection mechanism. This concept introduces unique object identifiers and a dynamic system for managing graphical objects, whether created programmatically or manually within the MetaTrader terminal. By refining existing structures and adding new properties, such as object affiliation, developers can track and manage graphical entities with precision. This structured approach not only manages the creation and removal of objects but also establishes a foundation for future expansions, thereby improving the efficiency and reliability of algorithmic trading strategies.
π Read | Quotes | @mql5dev
#MQL5 #MT5 #Library
π Read | Quotes | @mql5dev
#MQL5 #MT5 #Library
β€55π6
Concept Builov RSI Pro is a sophisticated automated trading system utilizing the Relative Strength Index (RSI) complemented by additional filters to enhance signal quality and reduce false entries. The strategy foundation includes a smoothed RSI with a configurable period and key levels set at 35 for oversold and 65 for overbought zones.
For buy signals, the RSI crossing above 35 signals potential entry, and sell signals are triggered when RSI crosses below 65. There are optional momentum confirmations for both. Protection systems include a spread filter that blocks trades when the spread exceeds a configurable maximum and a momentum filter requiring a minimum RSI direction change, enhancing signal quality.
Risk management features include a trailing stop to secure profits, fixed lot size, risk percentage settings, and configurable stop loss and take ...
π Read | AlgoBook | @mql5dev
#MQL5 #MT5 #Trading
For buy signals, the RSI crossing above 35 signals potential entry, and sell signals are triggered when RSI crosses below 65. There are optional momentum confirmations for both. Protection systems include a spread filter that blocks trades when the spread exceeds a configurable maximum and a momentum filter requiring a minimum RSI direction change, enhancing signal quality.
Risk management features include a trailing stop to secure profits, fixed lot size, risk percentage settings, and configurable stop loss and take ...
π Read | AlgoBook | @mql5dev
#MQL5 #MT5 #Trading
β€45π4β3
A newly developed indicator has been created based on specific requests. The design process considered user feedback, ensuring tailored functionality to meet specific needs. This new tool aids in enhancing analytical capabilities and can streamline various technical analysis processes effectively. It aims to provide more accurate insights and assist in better decision-making for users. Users will experience efficient interaction and improved workflow when adopting this indicator. This development illustrates the importance of addressing user-driven requirements within the technical and programming community.
π Read | Freelance | @mql5dev
#MQL5 #MT5 #Indicator
π Read | Freelance | @mql5dev
#MQL5 #MT5 #Indicator
β€40π3
Discover the potential of fractal functions in trading with our latest insights on MetaTrader 5. This comprehensive overview explores innovative constructions of universal fractals, offering simplified formulas to predict pricing processes. Three types of fractalsβsymmetrical, asymmetrical, and borderedβenable accelerated trade simulations to evaluate probability and profitability scenarios. The article delves into a robust MQL5 implementation that expertly calculates these fractals, returning a data container filled with all necessary variables. Practical applications include estimating step averages and testing trade outcomes. Ideal for developers and traders seeking advanced tools and techniques to enhance algorithmic strategies.
π Read | Quotes | @mql5dev
#MQL5 #MT5 #Fractals
π Read | Quotes | @mql5dev
#MQL5 #MT5 #Fractals
β€63π9π2
Bollinger Bands are a useful tool for assessing price volatility through their phases of narrowing and widening. This indicator provides a straightforward visual representation of these patterns. By utilizing iBands data, it calculates colors to depict price movements effectively. Although this approach may seem unconventional, it efficiently highlights changes in volatility. Such insights can assist in identifying potential trading opportunities and understanding market dynamics. Implementing Bollinger Bands in technical analysis can offer a clearer perspective on market trends and price behavior, aiding in more informed decision-making processes.
π Read | Signals | @mql5dev
#MQL5 #MT5 #Indicator
π Read | Signals | @mql5dev
#MQL5 #MT5 #Indicator
β€50π€―6π3π1
Learn how to seamlessly integrate graphical elements into MetaTrader 5 with a focus on enhancing trading tools. By embedding graphical objects within library structures, starting with the bar object, functionality expands to display and interact with data. Implement a management class to handle graphical creation, enabling each object to autonomously generate and control visuals. This integration allows developers to create dynamic, interactive trading platforms. Enhance object visibility with methods for showing and hiding forms, pivotal for user interactivity. Developers gain a versatile graphic component tool, adding a "visual" dimension to trading libraries, offering enhanced usability and intricate data presentations.
π Read | Quotes | @mql5dev
#MQL5 #MT5 #Graphical
π Read | Quotes | @mql5dev
#MQL5 #MT5 #Graphical
β€57β7π7π3π3π₯1
Efficiently navigate timeframes using keyboard hotkeys 1 through 9, excluding the number pad. Assignments are as follows: 1 for M1, 2 for M5, 3 for M15, 4 for M30, 5 for H1, 6 for H4, 7 for D1, 8 for W1, and 9 for MN. This setup optimizes analysis workflow, allowing quick transitions between different time intervals essential for detailed data examination. Such shortcuts enhance productivity, facilitating rapid switching without mouse interaction. Adopting this practice aids in maintaining focus on data trends and patterns without the distraction of manual menu navigation. Ensure consistency in setup across systems for seamless operation in diverse environments.
π Read | Forum | @mql5dev
#MQL4 #MT4 #Hotkeys
π Read | Forum | @mql5dev
#MQL4 #MT4 #Hotkeys
β€53π4π4π¨βπ»2
The article provides valuable guidance for developers aiming to improve efficiency and quality in coding practices. Key takeaways include the importance of thorough planning, utilizing existing code bases to avoid redundancy, and focusing solely on necessary project components. Developers are encouraged to embrace challenging tasks to enhance skill versatility and maintain good health for sustained productivity. Immediate action on ideas, setting clear deadlines, and understanding personal peak productivity moments are emphasized. Regular self-reflection, objective performance measurement, and exploring resources beyond current work are recommended to refine skills and increase project efficiency. Lastly, optimizing testing procedures is vital for effective project development.
π Read | CodeBase | @mql5dev
#MQL5 #MT5 #Strategy
π Read | CodeBase | @mql5dev
#MQL5 #MT5 #Strategy
β€65π15β‘6π6π4π2
Introducing Fox Wave Clean - a streamlined order manager EA designed for efficient trade management with a single-click operation. The tool features a straightforward interface with substantial functionality, ideal for traders seeking effective management solutions.
Key capabilities include removing all pending orders with instant effect, supported by a confirmation dialog to ensure user consent and accuracy in order count. For profit and loss management, it provides one-click solutions for closing profitable trades with additional safeguards, as well as an option to close loss positions with a risk warning system.
Equipped with a comprehensive live dashboard, it delivers real-time data on position statistics, pending orders, and profit/loss tracking, all displayed in account currency. The professional-grade dark theme enhances user interaction experienc...
π Read | CodeBase | @mql5dev
#MQL5 #MT5 #EA
Key capabilities include removing all pending orders with instant effect, supported by a confirmation dialog to ensure user consent and accuracy in order count. For profit and loss management, it provides one-click solutions for closing profitable trades with additional safeguards, as well as an option to close loss positions with a risk warning system.
Equipped with a comprehensive live dashboard, it delivers real-time data on position statistics, pending orders, and profit/loss tracking, all displayed in account currency. The professional-grade dark theme enhances user interaction experienc...
π Read | CodeBase | @mql5dev
#MQL5 #MT5 #EA
β€48π4π₯2π2
The transition from chart analysis to automated trading requires a solid understanding of market structures and algorithms. Traders struggle when translating visual observations into precise rules. Identifying swing points visually is intuitive, but automating this for consistent decision-making poses challenges. This is especially true when aiming to eliminate personal bias by relying on objective, testable rules.
Larry Williams' market structure concepts form the core of this automated trading strategy. Using MQL5, an Expert Advisor is developed to interpret market structure data from a custom indicator, making it actionable. Key elements include automating trade execution upon confirmation of swing points, managing risk through structured stop-loss placement, and ensuring trades align with robust market analysis.
All components are designed to ensure effi...
π Read | NeuroBook | @mql5dev
#MQL5 #MT5 #Trader
Larry Williams' market structure concepts form the core of this automated trading strategy. Using MQL5, an Expert Advisor is developed to interpret market structure data from a custom indicator, making it actionable. Key elements include automating trade execution upon confirmation of swing points, managing risk through structured stop-loss placement, and ensuring trades align with robust market analysis.
All components are designed to ensure effi...
π Read | NeuroBook | @mql5dev
#MQL5 #MT5 #Trader
β€49π10π€―4β‘3π3π₯1
The Billiards Optimization Algorithm (BOA), introduced by Hadi Givi and Marie HubΓ‘lovskΓ‘ in 2023, offers a unique approach to solving optimization problems by drawing inspiration from billiards. It models the search space as a pool table with solutions represented as balls moving towards optimal pockets. The iterative refinement process aims to balance global and local search using a stochastic method.
Implementation details reveal a method influenced by a combination of random and deterministic movement, guided by an equation that adjusts positions based on the proximity to target pockets. The algorithm runs through multiple iterations to refine solutions and approach optimality.
Initial test results suggested room for improvement, particularly in navigating large-dimensional problems or avoiding local minima. Revising the movement equation for...
π Read | VPS | @mql5dev
#MQL5 #MT5 #Algorithm
Implementation details reveal a method influenced by a combination of random and deterministic movement, guided by an equation that adjusts positions based on the proximity to target pockets. The algorithm runs through multiple iterations to refine solutions and approach optimality.
Initial test results suggested room for improvement, particularly in navigating large-dimensional problems or avoiding local minima. Revising the movement equation for...
π Read | VPS | @mql5dev
#MQL5 #MT5 #Algorithm
β€54β6π₯6π€¨5π4π3
A new indicator has been developed for a more streamlined presentation of the Parabolic SAR. It operates in a separate window, offering a different view that may enhance clarity for some users. Additionally, this tool includes a feature for traders who use the SAR as a moving StopLoss. When applied to a trading pair, it actively monitors open positions and provides immediate alerts if the Parabolic SAR shifts unfavorably against the position. This functionality aims to support more effective decision-making by ensuring that traders are promptly informed of potential changes in trend direction as indicated by the Parabolic SAR.
π Read | AlgoBook | @mql5dev
#MQL4 #MT4 #Indicator
π Read | AlgoBook | @mql5dev
#MQL4 #MT4 #Indicator
β€57β7π6β‘4π3π2π₯1
Enhancing the library classes involves optimizing existing code to improve readability and reduce redundancy by formalizing repetitive logic into functions or methods. This approach streamlines code management, ensuring a cleaner and more efficient structure.
The addition of a geometric animation frame object class enables easier construction of regular polygons by calculating their vertex coordinates using geometric equations, improving precision and reducing manual calculations.
Adjustments have been made to accommodate geometric shapes, including changes in animation frame naming conventions and the addition of new enumeration types for geometric animations. This ensures consistent handling of all animation frames regardless of their shape or type.
Geometric animation frames now facilitate inserting regular polygons into circumscribed circles, e...
π Read | AlgoBook | @mql5dev
#MQL5 #MT5 #Algorithm
The addition of a geometric animation frame object class enables easier construction of regular polygons by calculating their vertex coordinates using geometric equations, improving precision and reducing manual calculations.
Adjustments have been made to accommodate geometric shapes, including changes in animation frame naming conventions and the addition of new enumeration types for geometric animations. This ensures consistent handling of all animation frames regardless of their shape or type.
Geometric animation frames now facilitate inserting regular polygons into circumscribed circles, e...
π Read | AlgoBook | @mql5dev
#MQL5 #MT5 #Algorithm
β€83π13π6π4π3π€―1
John Ehlers has proposed an enhanced RSI in the January 2022 issue of TASC using Hann windowing, resulting in a smoother RSIH indicator with a zero mean. This approach eliminates the need for additional filtering due to inherent smoothing in the calculation. RSIH can be applied like any other RSI indicator. Its momentum nature suggests potential momentum shifts when color changes occur. Furthermore, zero crossings could serve as indicators of long-term trend estimations. The development signifies a potential alternative to traditional RSI, offering insights in momentum and trend analysis with improved performance characteristics.
π Read | VPS | @mql5dev
#MQL5 #MT5 #Indicator
π Read | VPS | @mql5dev
#MQL5 #MT5 #Indicator
β€39π4β‘3π3π3β2π1
Explore the next phase of algorithmic trading with MetaTrader 5 as we enhance support and resistance zones with decision-making intelligence. Building on earlier work, we're shifting from passive analysis to active decision making. The focus is on programmable entry logic using candlestick patterns within specific zones, vital for precise trading in smaller accounts. Automating detection and notifications ensures traders capture every opportunity efficiently. We present a modular system leveraging MQL5 for real-time alerts, zone-awareness, and advanced candlestick detection. This innovation paves the way for future automated solutions, offering both traders and developers a robust framework to refine and execute trading strategies.
π Read | Freelance | @mql5dev
#MQL5 #MT5 #Algorithm
π Read | Freelance | @mql5dev
#MQL5 #MT5 #Algorithm
β€94π7π4π―2β1
A new indicator implementation focuses on candlestick analysis without further modernization plans. The current design identifies when a candlestick body breaks through the blue line, offering insights for decision-making processes in trading or data analysis. The approach remains static, prioritizing stability over feature expansion at this stage. It provides a straightforward tool for users seeking reliable pattern identification in their technical analysis workflows. Suitable for those requiring a consistent performance in monitoring specific market movements, this implementation allows for clear visualization of key trading signals.
π Read | AlgoBook | @mql5dev
#MQL5 #MT5 #Indicator
π Read | AlgoBook | @mql5dev
#MQL5 #MT5 #Indicator
β€50π4π2β1
Analyzing financial time series through clustering provides a strategic advantage in trading system development. By segmenting data into distinct clusters characterized by unique features, one can fine-tune trading models for more consistent results. This technique aids in separating distinct market regimes, enabling trading systems to adapt to specific market conditions, such as trends and volatility levels.
The integration of clustering methods with mean reversion labeling enhances model training. Implementing filters like Savitzky-Golay, along with adding Moving Averages and Splines, supports robust labeling. This refines the learning environment, allowing for precision in trade decision-making. Employing Python for handling these processes, and using packages like Numba, underscores flexibility and computational efficiency in model training.
π Read | Signals | @mql5dev
#MQL5 #MT5 #MachineLearning
The integration of clustering methods with mean reversion labeling enhances model training. Implementing filters like Savitzky-Golay, along with adding Moving Averages and Splines, supports robust labeling. This refines the learning environment, allowing for precision in trade decision-making. Employing Python for handling these processes, and using packages like Numba, underscores flexibility and computational efficiency in model training.
π Read | Signals | @mql5dev
#MQL5 #MT5 #MachineLearning
β€49π3π2π1