MQL5 Algo Trading
388K subscribers
2.57K photos
2.57K links
The best publications of the largest community of algotraders.

Subscribe to stay up-to-date with modern technologies and trading programs development.
Download Telegram
Exploring new trading strategies and indicators can significantly enhance your trading approach. This latest article introduces the Bill Williams' Market Facilitation Index (BW MFI), a technical tool designed to measure market direction by analyzing price and volume changes. Understanding this indicator can provide valuable insights into the strength of price movements and potential market reversals.

The article outlines a strategy blueprint for using the BW MFI in combination with other indicators on the MetaTrader 5 platform, employing the MQL5 programming language for system development. It's important to note that these strategies require testing and optimization before live implementation to ensure they align with individual trading styles.

Moreover, it's crucial to apply these strategies in a simulated environment first, as they are intended for educational purposes and come w...

Read more...
πŸ‘6πŸ”₯2πŸ‘1
Introducing a streamlined script ideal for financial markets, specifically designed for MetaTrader 5 platforms. This compact script, spanning just 1.62 KB, offers a robust solution for tracking the highest trading prices within a specified time frame. It employs a function titled "RangeHighs" which accepts four integer inputs defining the start and end hours and minutes of a trading period.

The functionality begins with the initialization of an 'MqlDateTime' structure to capture the current time. Adjustments are then made to align the date-time values with the provided parameters, formulating the desired time frames for analysis. By leveraging the 'StructToTable' function, these structured times are converted into usable 'datetime' variables.

To capture the trading high within the defined period, an array is prepared and set as a series, followed by the implementation of 'CopyHigh' ...

Read more...
πŸ‘9πŸ‘2
In this discussion on category theory, we continue our series by analyzing the concepts of Limits and Colimits, focusing specifically on Products and Coproductions. These foundational aspects of category theory provide a structured way of understanding composite and joint behaviors in various domains, which is critical in the development of robust trading systems using MQL5.

By applying category theory to financial systems, specifically in trading, developers can design strategies that utilize a more abstract and generalized approach to modeling financial risk. For instance, using the product of domains, such as market indicators, allows trading systems to maintain integral properties of each constituent while assessing overall behavior.

Moreover, our exploration covers how these theoretical constructs translate into practical applications, such as constructing Expert Advisors in MQ...

Read more...
πŸ‘4πŸ‘1πŸ‘€1
In environments where chart clarity is crucial, removing unwanted objects without having to reload the entire chart is a critical feature. A specialized script can be used for this purpose, effectively clearing the chart by removing all objects. This functionality is analogous to using a "clear" or "cls" command in a programming environment, specifically tailored for chart management.

To implement this functionality, the script should be added to the MQL5/Scripts directory. This location enables the script to be directly applied to the chart, providing a quick and efficient way to maintain a clean graphical interface, essential for accurate analysis and decision-making in fast-paced settings. This script is a product of extensive development and dedication, designed to enhance workflow efficiency in trading platforms.

Read more...
πŸ‘4πŸ‘2❀1
Sell your apps on the Market!

Register as a seller and monetize your trading programs. Publish your product in the Market, set the desired price and sales model, and reach a vast interested audience – your offer will be viewed daily by tens of thousands of visitors!

Our Market's proven system, trusted by sellers and buyers, will protect your applications from piracy and provide a secure payment system.

Become a seller in just 5 minutes: complete a quick registration by providing an ID and taking a selfie.

Register now!
❀9πŸ‘4πŸ”₯4πŸ‘2πŸ€”1
In a recent development, a multi-currency Expert Advisor (EA) utilized dual strategies based on the same trading principles but varying in parameter values. Originally designed to maintain a 10% maximum drawdown, alterations were necessary when merging these strategies to adhere to drawdown constraints. The scenario posed a challenge when scaling to tens or hundreds of strategies, as position sizes could potentially diminish below the broker's minimum requirements, preventing strategy execution.

To address this, the approach shifted from allowing strategies to independently execute trades, to managing positions on a virtual basis initially. Strategies would now simulate trades, indicating volume and position openings as needed, while an overarching system calculates the required total volume, preserving the desired drawdown level.

Key enhancements include the creation of the CAdviso...

Read more...
πŸ‘4❀1πŸ‘1
Understanding the Parameters and Functionalities of Trading Robots

In the realm of automated trading, setting the right parameters is crucial for effective operation. One such parameter is 'Tp' which helps determine the profit goals as a multiplier of the invested amount. For optimal usage, setting Tp between 0.01 to 0.1 is advisable, aiming to strike a balance between risk and return.

The 'SlowMovingAverage' parameter assists in identifying market trends based on specified periods, essential for decision making in trading strategies. Additionally, the 'Multiplier' parameter influences the trading volume by increasing the size of consecutive orders in the grid based on a predefined factor.

For timing strategies, 'TimeFrame', expressed in minutes, helps specify the period for analysis with common settings being either 15 minutes or 60 minutes.

On the functional side, the Expert Ad...

Read more...
πŸ‘5πŸ‘3❀1
In the realm of financial market trading, accurate prediction of asset trajectories is crucial for formulating effective strategies. A recent paper titled "Enhancing Trajectory Prediction through Self-Supervised Waypoint Noise Prediction (SSWNP)" introduces a methodology that addresses the prevalent challenge of oversimplified forecasts in financial modeling. The SSWNP method utilizes a dual-module system comprising a Spatial Consistency Module and a Noise Prediction Module to enhance the prediction accuracy of future asset movements.

The Spatial Consistency Module generates two types of trajectory views from historical data: a clean view and a noise-augmented view. This distinction allows the model to bypass the narrow interpretations often seen in traditional training datasets, thereby fostering a richer exploration of potential future scenarios. The Noise Prediction Module further...

Read more...
✍2πŸ‘2πŸ‘2❀1🀯1
In the continuation of the "News Trading Made Easy" series, this article integrally employs object-oriented programming (OOP) principles to enhance the functionality of its forex trading tools, focusing on the implementation of inheritance and risk management. The adjustments aim to transform the existing news/calendar database to be more practical by incorporating inheritance to optimize the code reuse and maintainability, promoting a more logical and expandable codebase.

Moreover, the upcoming segments will also address the customization of risk profiles tailored to various risk tolerances, a refinement aimed at providing traders with personalized trading strategies. In the context of practical OOP application, the article introduces the concept of inheritance to structure code hierarchically, facilitating easier management and extension of the existing class functionalities.

Th...

Read more...
✍2πŸ‘2πŸ‘1
Crude oil, an indispensable commodity, is central to various industries, from agriculture to pharmaceuticals. The global oil trade mainly revolves around two benchmark grades: West Texas Intermediate (WTI) and Brent. WTI, extracted predominantly in Texas, is notable for its low sulfur content and ease of refinement due to its lightness and sweetness. Conversely, Brent, sourced from the North Sea, also possesses low sulfur and density, making it desirable for easy refining.

Analyzing and trading these benchmarks involves understanding their pricing dynamics. The price differential, or spread, between Brent and WFI can be indicative of various economic factors. Leveraging machine learning techniques to model and predict this spread could offer significant forecasting advantages. By employing supervised machine learning, traders can develop models that predict future price movements ba...

Read more...
πŸ‘€3❀1😁1
Understanding the key functions of automated trading strategies is central to optimizing performance in financial markets. This system is designed to initiate buy or sell orders based on price action analysis, ensuring decisions are made on real-time market movements. Additionally, the strategy enhances risk management by automatically calculating the optimal lot size for each trade, tailoring investment proportionate to account balance and market conditions.

Further refining trade execution, the system employs an Automatic Trailing Stop adjusted by the Average True Range (ATR), allowing trades to lock in profits while adapting to volatility. This feature is essential for managing the risks associated with price fluctuations and securing potential gains without manual intervention.

The robustness of this automated strategy can be assessed through backtesting, where historical data i...

Read more...
πŸ‘4πŸ‘2❀1
In the dynamic realm of trading technology, developers continue to focus on automation and efficiency. Recent developments have introduced new functions that can significantly simplify the trading process. Key features now include the automatic calculation of lot sizes and the implementation of ATR-based trailing stops, which help in optimizing trade exits based on market volatility.

Furthermore, the integration of volume and moving average indicators into trading algorithms allows for more data-driven decision-making regarding entry and exit points. These technical tools facilitate the identification of market conditions that favor either buying or selling.

For those involved in the development and testing of trading systems, the backbone of such enhancements rests in the robust coding of these functions. The declaration of volume indicators and the design of tick functions are fun...

Read more...
πŸ‘3❀2πŸ‘1
The recent development in automated trading focuses on optimizing the decision-making process by executing trades based on specific price actions. This automation includes calculating the appropriate lot size dynamically and implementing an automatic trailing stop that is adjusted according to the Average True Range (ATR) indicator. These features combine to enhance trade management and risk assessment capabilities.

Additionally, the effectiveness of these functions is verifiable through comprehensive backtesting results, providing insights into the predictive accuracy and reliability of the strategy under historical market conditions.

The core of this automation lies within three main functions: managing trailing stops and position counts, calculating lot sizes accurately, and executing trades via the main tick function. This structured approach allows for meticulous control over t...

Read more...
πŸ‘4πŸ‘1
Algorithmic traders often seek robust functionalities in trading platforms to enhance their strategy efficiency. A vital capability includes the main function for calculating lot sizes which ensures appropriate risk management tailored to the trader's specific risk appetite and account balance. Enhancing this feature are trailing stops and position counting functionalities that provide dynamic management of open positions to lock in profits and prevent excessive losses.

Another critical function is enabling trading commands to only execute at the opening of a new candle, maximizing the relevance of technical analysis signals. Additionally, the ability to automatically draw support and resistance levels gives traders visual cues for better decision-making directly on their charts.

Overall, incorporating these functionalities into trading scripts fundamentally aids in creating more pr...

Read more...
πŸ‘5❀4πŸ‘1
In the intricate world of secure trading, predicting the movement of currency pairs is essential. A new method titled "LatΓ©nt Variable Sequential Set Transformers" (AutoBots), offering a promising solution, is based on the Encoder-Decoder architecture. This model generates sequences of trajectories for multiple agents, applicable in both robotic system control and financial markets.

The AutoBots model processes sequences of environmental states across time steps, infusing each with temporal and contextual information via transformations in its Encoder. This integration allows the model to predict future trajectories of agents, adapting to dynamic scenario conditions typical in market environments.

The Decoder aspect of AutoBots extends its utility by generating socially and temporally consistent predictions about multiple future scenarios from the same initial scene data. This metho...

Read more...
πŸ‘8❀1πŸ‘1
A new indicator has been developed to identify support and resistance levels on trading charts, tailored for traders who need precise tools for their trading strategies. The unique aspect of this indicator is its method of determining the highest and lowest price points over a specified window of time, thereby marking potential support and resistance zones.

The indicator operates by comparing price points over two overlapping ranges: the primary 'Period' and an extended 'Overlook' period. For instance, if configured with a 'Period' of 20 and an 'Overlook' of 10, it evaluates the highest and lowest prices within these intervals to confirm true peaks and troughs before plotting them on the chart.

Additionally, the indicator ensures consistency by maintaining displayed levels as long as the current price remains between the identified support and resistance. This could be particularly...

Read more...
πŸ‘7❀1πŸ‘1
The latest update of MetaTrader 5 build 4380 introduces important improvements and fixes:

β€’ Added Alt+X hotkey for experts list and fixed potential Live Update issue in the desktop platform
β€’ Fixed Bitmap object bugs in the strategy tester
β€’ Introduced new requirements for the MQL5 Cloud Network: agents running in virtual environments and with no AVX support are not accepted anymore
β€’ Improved one click trading panel on the chart in the web platform

Read more...
πŸ‘7πŸ”₯4
In modern trading, multiple methods are utilized for building trading systems, categorized into graphical analysis, computing systems, and news systems. Each method has its own specific tools and approaches. Graphical analysis, favored for its simplicity in placing orders based on visible chart patterns, allows traders to create visual reference points based on price and time.

Computing systems use a range of automated tools like EAs, harnessing indicators and neural algorithms to inform trading decisions. News systems analyze broad market trends through global news and insider information, influencing trading strategies.

Traders commonly select one primary method while employing others as supplementary tools. Combining these methods can provide a comprehensive view of market conditions, aiding in more informed decision-making processes in trading strategies. Efficient trading rel...

Read more...
❀8πŸ‘4✍1πŸ†1
This Expert Advisor (EA) operates as a sample multicurrency system for Metatrader 5, utilizing basic candlestick logic on daily charts (D1) to determine entry points. The simplicity of its design is intended to assist other developers in learning and understanding the fundamentals of EA construction and application in financial trading environments. This tool is especially useful for those looking to implement and test multicurrency strategies in a simulated or live trading scenario.

Read more...
❀6
In the evolving realm of algorithmic trading, the emphasis on efficiency has propelled the utilization of optimization algorithms to a crucial status. These algorithms are key to developing trading strategies that not only meet desired standards of profitability but also minimize risks. Central to the practical application of such optimizations is the concept of self-optimization in Expert Advisors (EA). This process entails the adaptation of trading strategy parameters in response to market changes, optimizing for elements like profit maximization or risk reduction.

An effective system for EA self-optimization involves multiple steps starting with extensive data collection and analysis, followed by goal setting and the application of appropriate optimization algorithms. Post-optimization, rigorous backtesting and validation ensure the strategy's ongoing relevancy against current mar...

Read more...
πŸ‘5πŸ”₯2πŸ‘1