The implementation of the martingale strategy in expert advisors (EAs) based on signals from any indicator can significantly impact trading performance. This approach involves increasing position sizes following losses to potentially recover past deficits when a winning trade occurs. Careful consideration should be given to risk management, as martingale can lead to substantial drawdowns. It is crucial to ensure that the underlying strategy and signals provide reliable entries. Traders should thoroughly test and optimize the EA, possibly on historical data, to evaluate its effectiveness and adaptability across various market conditions. Caution is advised due to the inherent risks associated with this strategy.
π Read | Calendar | @mql5dev
#MQL4 #MT4 #EA
π Read | Calendar | @mql5dev
#MQL4 #MT4 #EA
β€32π13π4β2π¨βπ»2π€―1
Discover how to enhance MetaTrader 5 development by seamlessly integrating custom indicators into Expert Advisors. This guide delves into creating subwindows and utilizing the iCustom command to maintain clear chart views without clutter. By exploring object-oriented programming principles like class inheritance, developers can extend existing functionalities securely and effectively. Learn to incorporate general-purpose indicators within EAs, enabling robust and modular trading solutions. This approach not only maximizes code efficiency but ensures tested components remain stable, allowing traders and developers to leverage sophisticated algorithmic trading strategies with minimal custom adjustments.
π Read | Forum | @mql5dev
#MQL5 #MT5 #EA
π Read | Forum | @mql5dev
#MQL5 #MT5 #EA
β€55π18π€―4π4π¨βπ»3β‘2
The Pending_tread Expert Advisor (EA) is engineered for automating grid-based scalping and breakout strategies with ease. It initializes a grid of pending buy and sell orders around the current market price, optimizing both for rapid market dynamics and stable execution on any time frame or currency pair, with a noted effectiveness on XAUUSD.
Key Features:
1. Configurable Grid: Establish customizable pending orders above and below the market with flexible order count settings, optimized by the PipStep for precise spacing.
2. Customized Orders: Choose between buy stop/sell limit above and sell stop/buy limit below the market price, ensuring strategic positioning.
3. Profit Management: Implement automated take profit levels in pips for each order, eliminating the need for manual supervision.
4. Risk Control: Modify lot size and slippage parameters to match risk...
π Read | Docs | @mql5dev
#MQL5 #MT5 #EA
Key Features:
1. Configurable Grid: Establish customizable pending orders above and below the market with flexible order count settings, optimized by the PipStep for precise spacing.
2. Customized Orders: Choose between buy stop/sell limit above and sell stop/buy limit below the market price, ensuring strategic positioning.
3. Profit Management: Implement automated take profit levels in pips for each order, eliminating the need for manual supervision.
4. Risk Control: Modify lot size and slippage parameters to match risk...
π Read | Docs | @mql5dev
#MQL5 #MT5 #EA
β€42π11β‘3β1π¨βπ»1
A script has been developed to manage chart objects efficiently in MT5. This tool scans the current chart and identifies all chart objects present. It systematically counts each object and deletes them as required. During this process, the names of the objects are logged to maintain a record of what was present before deletion. Such functionality is essential for managing chart clutter and ensuring a clean workspace. Implementing this script allows for automation in maintaining chart hygiene, enhancing user focus and resource management without manual intervention or oversight. This process boosts efficiency in handling multiple chart objects effectively.
π Read | CodeBase | @mql5dev
#MQL5 #MT5 #script
π Read | CodeBase | @mql5dev
#MQL5 #MT5 #script
β€24π10π3π¨βπ»2π1π1
A new chart overlay feature is now available for technical analysis, allowing historical candle data to be displayed alongside current chart activities. The tool accurately adjusts replay zones to mirror live chart dynamics, providing dynamic tooltips with comprehensive candlestick data including open, high, low, close, range, and volume metrics. Users can customize colors for clearer bullish and bearish differentiation.
This utility is designed for intraday trading on timeframes such as M1 to H1. It involves an easy three-step process to visualize how current market behavior compares to selected historical data. Simply attach the indicator, choose a past date, and observe the marketβs behavior for potential pattern recognition.
Important notes to consider include potential performance impacts when using large ranges on low-end devices, absence of can...
π Read | Quotes | @mql5dev
#MQL5 #MT5 #Indicator
This utility is designed for intraday trading on timeframes such as M1 to H1. It involves an easy three-step process to visualize how current market behavior compares to selected historical data. Simply attach the indicator, choose a past date, and observe the marketβs behavior for potential pattern recognition.
Important notes to consider include potential performance impacts when using large ranges on low-end devices, absence of can...
π Read | Quotes | @mql5dev
#MQL5 #MT5 #Indicator
β€40π10β2π¨βπ»1
In our continued enhancement of the Multi-Timeframe Scanner Dashboard using MQL5, we added dynamic positioning and toggle functionality, allowing users to drag the dashboard across the chart and switch between minimized and maximized states. This improves usability and keeps the chart organized, essential features for effective analysis in trading environments.
Implementing these changes involved defining additional UI elements and global variables to track states and mouse events, along with update functions to manage the dashboard's responsive behavior. Testing confirmed that the dashboard's reactivity is enhanced, allowing for substantial interactivity improvements. Future work will address event handler conflicts to refine the priority for chart vs. dashboard updates, optimizing user interaction further.
π Read | NeuroBook | @mql5dev
#MQL5 #MT5 #MQL5
Implementing these changes involved defining additional UI elements and global variables to track states and mouse events, along with update functions to manage the dashboard's responsive behavior. Testing confirmed that the dashboard's reactivity is enhanced, allowing for substantial interactivity improvements. Future work will address event handler conflicts to refine the priority for chart vs. dashboard updates, optimizing user interaction further.
π Read | NeuroBook | @mql5dev
#MQL5 #MT5 #MQL5
β€29β9π7π₯3π1π¨βπ»1
Enhance your MetaTrader 5 experience by integrating HTTP requests directly with MQL5. This capability empowers traders to communicate with external websites, facilitating actions like data retrieval, sending notifications, and more. The new module mimics Python's requests, allowing seamless GET, POST, PUT, and DELETE actions with minimal effort. Simplify uploads with file type detection and binary encoding, while session and cookie handling emulate HTTP sessions effortlessly. Enhance security through basic authentication and manage URL parameters with ease. Explore the nuances of this setup and streamline trading operations while accessing practical applications in algorithmic trading.
π Read | Signals | @mql5dev
#MQL5 #MT5 #WebRequests
π Read | Signals | @mql5dev
#MQL5 #MT5 #WebRequests
β€28π9π¨βπ»5β‘1β1π1
The Awesome Oscillator and Envelopes Channel form an exceptional pair for algorithmic trading, meshing trend-following with support/resistance analytics. The strategy explores 10 nuanced signal patterns, particularly effective for USD/JPY on a 30-minute chart. The Awesome Oscillator (AO), created by Bill Williams, distinguishes short-term from long-term price trends and identifies divergences. Its histogram reveals trend clarity and potential reversals. Paired with the Envelopes Channel, which identifies overbought/oversold areas and adapts to volatility, the coupling balances range-bound and trend strategies. Implemented in MQL5, these combinations enhance trading accuracy by confirming signals through AO, improving risk-reward by targeting momentum shifts effectively.
π Read | Signals | @mql5dev
#MQL5 #MT5 #Indicator
π Read | Signals | @mql5dev
#MQL5 #MT5 #Indicator
β€34π31π¨βπ»6π3π₯2π1
An expert advisor is developed using a Bollinger band crossover strategy. It focuses on identifying price movements relative to Bollinger bands to assist in trading decisions. An essential feature of this EA is its capability to ensure lot sizes remain within the restrictions imposed by brokers, promoting compliance with trading conditions. Strategies like this are crucial for maintaining disciplined trading within established parameters, helping to manage risk effectively. By aligning lot sizes with broker limitations, it aids in preventing issues related to oversized trades. This is important for sustaining long-term trading success while using Bollinger bands for technical analysis.
π Read | Docs | @mql5dev
#MQL4 #MT4 #EA
π Read | Docs | @mql5dev
#MQL4 #MT4 #EA
β€26π5π¨βπ»3π€1
Reducing lag in moving average crossover trading strategies can be achieved without advanced modeling tools. One approach uses different periods on price types rather than price prediction. A promising strategy is the dual time-frame moving average crossover. It involves observing higher timeframe crossovers and aligning trades on the lower timeframe. The strategy employs trend-following and mean-reverting entry modes, with exits determined by higher or lower timeframe signals.
Challenges remain in achieving stable strategies, as initial backtest results often do not translate to forward tests. Improved stability might require allowing optimizers to adjust risk parameters dynamically. While this strategy shows potential, repeated optimizations with varying parameters could yield more stable results.
π Read | Signals | @mql5dev
#MQL5 #MT5 #Algorithm
Challenges remain in achieving stable strategies, as initial backtest results often do not translate to forward tests. Improved stability might require allowing optimizers to adjust risk parameters dynamically. While this strategy shows potential, repeated optimizations with varying parameters could yield more stable results.
π Read | Signals | @mql5dev
#MQL5 #MT5 #Algorithm
β€24π6β5π3π¨βπ»3
Integration of automated trade execution in the News Headline Expert Advisor (EA) seeks to fill a critical functionality gap by employing the CTrade class. This advances the EA from merely providing alerts and insights to executing trade orders autonomously during news events. Previous iterations already delivered features such as direct chart display of economic events, real-time news headlines, technical indicator insights, and AI-driven market analysis.
The introduced strategy implements time-based pending orders, allowing for reaction to market volatility driven by economic news. Key changes include leveraging the economic calendar to time trade entry, using pip-accurate price calculations, and deploying CTrade for streamlined order management, which covers packaging, tracking, and error handling.
Enhanced risk management is crucial, incorporating...
π Read | Signals | @mql5dev
#MQL5 #MT5 #Strategy
The introduced strategy implements time-based pending orders, allowing for reaction to market volatility driven by economic news. Key changes include leveraging the economic calendar to time trade entry, using pip-accurate price calculations, and deploying CTrade for streamlined order management, which covers packaging, tracking, and error handling.
Enhanced risk management is crucial, incorporating...
π Read | Signals | @mql5dev
#MQL5 #MT5 #Strategy
β€28π¨βπ»8π4π€―2π1
The introduction of automation using TA-Lib significantly enhances candlestick pattern detection in Python. TA-Lib, with its ability to automatically identify over 60 candlestick patterns, integrates seamlessly into Python, making it a preferred tool for many developers. The library, originally crafted in ANSI C, supports more than 200 technical indicators, facilitating complex trading strategies.
Combining TA-Lib with mplfinance and matplotlib allows for the automatic plotting of financial charts. This system leverages a Flask web service to facilitate real-time data processing and visualization. Its integration with MQL5 ensures chart I/O remains streamlined, focusing on efficient data processing and pattern recognition.
Understanding the roles of essential libraries such as Flask, NumPy, Pandas, and Matplotlib is crucial for developers aiming to c...
π Read | Docs | @mql5dev
#MQL5 #MT5 #TA-Lib
Combining TA-Lib with mplfinance and matplotlib allows for the automatic plotting of financial charts. This system leverages a Flask web service to facilitate real-time data processing and visualization. Its integration with MQL5 ensures chart I/O remains streamlined, focusing on efficient data processing and pattern recognition.
Understanding the roles of essential libraries such as Flask, NumPy, Pandas, and Matplotlib is crucial for developers aiming to c...
π Read | Docs | @mql5dev
#MQL5 #MT5 #TA-Lib
β€73π10π¨βπ»8π4β2
The EA implements a Relative Vigor Index (RVI) crossover strategy, providing an example of how such crossovers can be automated within a trading environment. It features a trailing stop mechanism to manage trade exits efficiently. This addition helps to lock in profits as market conditions fluctuate, offering a pragmatic approach to risk management. The EA serves both as a tool for executing the RVI crossover strategy and as a learning aid for incorporating trailing stops into algorithmic trading systems, encouraging developers to integrate similar techniques into their own projects for enhanced trading performance and security.
π Read | Forum | @mql5dev
#MQL4 #MT4 #EA
π Read | Forum | @mql5dev
#MQL4 #MT4 #EA
β€30π7π5π¨βπ»5β‘2π2π1
In recent developments in the library's graphical class improvements, emphasis has been placed on refining functionality for easier manipulation of pivot points in composite graphical objects. Enhancements were introduced to streamline the management of form objects that handle these pivot points, ensuring they can be conveniently relocated alongside their graphical counterparts.
To facilitate debugging, modifications in error-handling during graphical resource creation were integrated, aiding in rapid error identification. Improvements in class file implementation involved optimizing method structures, adjusting object naming conventions, and refining coordinate calculations to ensure precise rendering on charts.
Advanced methods now provide better management of form objects, offering the capability to redraw these forms in sync with graphical ob...
π Read | Docs | @mql5dev
#MQL5 #MT5 #Indicator
To facilitate debugging, modifications in error-handling during graphical resource creation were integrated, aiding in rapid error identification. Improvements in class file implementation involved optimizing method structures, adjusting object naming conventions, and refining coordinate calculations to ensure precise rendering on charts.
Advanced methods now provide better management of form objects, offering the capability to redraw these forms in sync with graphical ob...
π Read | Docs | @mql5dev
#MQL5 #MT5 #Indicator
β€65π11π¨βπ»11π4β‘1π1
A service has been developed to create custom symbols featuring non-standard timeframes. This enables developers and traders to configure and visualize data beyond conventional timeframe limitations. Custom symbols enhance the flexibility of data analysis and strategy testing by allowing tailored timeframe definitions. This functionality caters to the needs of users seeking more detailed or unique periodic data breakdowns. It serves as a valuable tool for those refining trading strategies or conducting precise backtesting. The adaptability of custom timeframes is a significant advancement, offering more control and customization in data representation and analysis tasks.
π Read | Quotes | @mql5dev
#MQL5 #MT5 #AlgoTrading
π Read | Quotes | @mql5dev
#MQL5 #MT5 #AlgoTrading
β€45π10π5π¨βπ»4π2
Explore the fundamentals of the Average True Range (ATR) indicator and its impact on trading strategies with this in-depth guide. ATR, a staple for measuring market volatility, is delved into from its calculation and interpretation to practical applications. Discover how to integrate ATR into MetaTrader 5 using MQL5, enabling precise volatility assessments and strategic trading decisions. Gain insights into simple yet effective ATR-driven strategies, such as dynamic stop-loss and take-profit levels, that enhance trading efficiency. Whether you're a seasoned developer or new to algorithmic trading, this well-crafted breakdown equips you with the knowledge to optimize your trading system's performance using ATR.
π Read | Freelance | @mql5dev
#MQL5 #MT5 #ATR
π Read | Freelance | @mql5dev
#MQL5 #MT5 #ATR
β€33π8β‘4π¨βπ»3π2
The book "MQL5 Programming for Traders" is now available in four languages. In addition to English and Russian, translations into Spanish and Chinese have been released. Learn algorithmic trading in your native language. The book is available online, as well as in PDF and CHM.
Whether you're completely new to programming or already have some experience, this book is suitable for all skill levels. Beginners will learn fundamental concepts, the development environment, and the basics of OOP, while more advanced users will explore practical solutions and advanced APIs.
The book also includes numerous source code examples to help you both learn the language and start building your own applications.
Start learning MQL5 today and step into the world of professional algorithmic trading. The skills you gain will allow you to bring your own trading ideas to life β and potentially turn them into a business by selling applications on the Market or taking Freelance orders.
Read the Book...
Whether you're completely new to programming or already have some experience, this book is suitable for all skill levels. Beginners will learn fundamental concepts, the development environment, and the basics of OOP, while more advanced users will explore practical solutions and advanced APIs.
The book also includes numerous source code examples to help you both learn the language and start building your own applications.
Start learning MQL5 today and step into the world of professional algorithmic trading. The skills you gain will allow you to bring your own trading ideas to life β and potentially turn them into a business by selling applications on the Market or taking Freelance orders.
Read the Book...
β€64π36π10π6π¨βπ»6π€―3π2
A new script is available to streamline the setup process when creating charts. Time spent on adjusting color themes is minimized by offering three pre-configured options: Green/Red, Aqua/Pink, and Black/White. These themes can be customized according to your preferences by modifying the color variables, which are clearly annotated in the script. The variables start with 'clr' followed by the color name. To apply your selected theme, create a new chart and drag the script onto it, then simply choose your desired theme and confirm. This script enhances efficiency by automating a repetitive task, allowing for more focus on analysis and strategy development.
π Read | Calendar | @mql5dev
#MQL5 #MT5 #script
π Read | Calendar | @mql5dev
#MQL5 #MT5 #script
β€41π8π¨βπ»7
N-BEATS offers a sophisticated deep learning approach for time series forecasting, standing out with its blend of simplicity and accuracy. It challenges traditional models such as ARIMA by employing modular neural networks that provide interpretable results. This model excels in capturing complex patterns, offering adaptability for both univariate and multivariate tasks. N-BEATS supports multi-series forecasting, making it an optimal choice for financial data with multiple features. It boasts fast, scalable training and requires no domain-specific tweaks, learning patterns directly from data. Practical for traders and developers, it integrates seamlessly with platforms like MetaTrader 5, enhancing decision-making through precise forecasts.
π Read | Signals | @mql5dev
#MQL5 #MT5 #NBEATS
π Read | Signals | @mql5dev
#MQL5 #MT5 #NBEATS
β€48π¨βπ»7π6
Explore a revolutionary approach to market analysis with the innovative concept of 3D bars in MetaTrader 5. These bars integrate price, volume, and time into a single snapshot, offering a comprehensive view of market structure and dynamics. By visualizing data as 3D figures, traders can identify volume-supported movements and detect potential reversals early. This approach addresses the signal lag issue of classic technical analysis by utilizing real-time metrics. Through advanced algorithms and Python integration, traders and developers can harness this model to improve predictive accuracy and decision-making. Discover how 3D analysis transforms traditional chart reading into robust market insights.
π Read | Freelance | @mql5dev
#MQL5 #MT5 #Algorithm
π Read | Freelance | @mql5dev
#MQL5 #MT5 #Algorithm
β€29π9π¨βπ»8