MQL5 Algo Trading
389K subscribers
2.58K photos
2.58K 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
Continuing the examination of MQL5 wizard capabilities, Bayesian inference emerges as a significant statistical tool for updating probabilities with new data. This method remains particularly useful in forecasting time series, critical in financial markets where traders primarily analyze security prices and trade histories. The premise of Bayesian inference is to increase the adaptability of trading systems by continuously updating hypotheses, which potentially reduces curve-fitting errors during historical data tests and future applications.

Bayesian Inference operates on the formula P(H|E) = [P(E|H) * P(H)] / P(E), where H symbolizes the hypothesis and E stands for evidence. This formula facilitates recalibrations based on new data, though challenges remain in determining P(E|H) effectively.

Practical applications in trading using Bayesian inference can be typified through signal,...

Read more...
❀6πŸ‘2πŸ‘1
The updated "Simple Yet Effective Breakout Strategy" now incorporates additional functionalities tailored for proprietary trading firm challenges. Given the essential criteria for such challengesβ€”achieving target profits, adhering to maximum daily loss limits, and maintaining overall loss thresholdsβ€”the script now includes two key functions.

These functions are designed to automatically close all positions and cancel pending orders if the target profit is achieved or if the trades are nearing the maximum daily loss limit. It is important to note that the handling of the maximum loss criterion is dependent on individual trading strategies and risk management practices, and as such, is not integrated into this script.

The updated script requires users to configure specific parameters, enhancing its utility and adaptability in meeting the rigorous demands of prop firm trading challenge...

Read more...
πŸ‘5πŸ‘3
Introducing a versatile trading tool that enhances the functionality of your trading platform by alerting you when the market price crosses a specified value. This tool is designed for traders looking to monitor specific price thresholds that have not yet been reached, aiding in the validation of trading theories or alerting key price levels in real-time.

Users can configure the indicator to create bearish or bullish alerts and adjust the default time zone from GMT+3 to GMT, GMT+1, or GMT+2 according to their geographical or trading preferences. The interface allows for easy setup where users can simply click on the chart to set an alert at a desired price point. Once set, the alert locks in place, but can be adjusted with a simple keyboard command to change or reset the alert's position.

The indicator supports notifications through several channels, including basic on-screen alerts...

Read more...
πŸ‘7πŸ‘1
Understanding the core functionalities of a trading algorithm is essential for implementing effective strategies. Key elements include:

1. Verifying conditions for trade entry is crucial. This ensures trades are only executed when certain predefined conditions are satisfied, reducing unnecessary risk.
2. It is advisable to initiate buy or sell orders only at the start of a new candle to capitalize on fresh market conditions.
3. Automatically managing the count of open positions and applying trailing stops can help secure profits and limit losses.
4. Setting a fixed lot size in the input parameters helps maintain consistency in trade volume, crucial for risk management.

Each component plays a vital role in the architecture of a trading system, enhancing its operational efficiency and effectiveness.

Read more...
πŸ‘6πŸ‘3
In current algorithmic trading strategies, ensuring precise execution and management of trades is paramount. A sophisticated script often includes various key functionalities like condition verification upon entry, initiating trades only at the commencement of a new candle, automatic trailing stops, and fixed lot sizes defined in the initial parameters.

By integrating these features, traders can automate their processes, which helps in maintaining consistency and reducing human errors in trading activities. These capabilities are critical, especially in fast-moving markets, as they aid in risk management and can enhance overall trading performance. This approach emphasizes a structured trading strategy that brings both discipline and efficiency to algorithmic trading systems.

Read more...
πŸ‘5πŸ‘1
Understanding the implementation of trading algorithms is crucial for automating buy and sell orders on financial markets. This guide focuses on a systematic approach to trading functions:

1. Confirmation of condition entry is essential. This involves validating specific market conditions or trading signals before executing trades.
2. It's advisable to execute buy or sell orders only at the start of a new candle to capture the most recent market movements accurately.
3. An automatic trailing stop is useful for managing risk and securing profits as it adjusts the stop loss level according to the market's movements.
4. Setting a fixed lot size in the input parameters helps in maintaining consistency in the trade volume, reducing the impact of emotion-driven decisions on trading performance.

This structured approach aids in enhancing the precision and effectiveness of trading algorithms.

Read more...
πŸ‘6πŸ‘1
Understanding the core functionality of trading algorithms is crucial for developers involved in financial technology. This brief guide outlines the main functions necessary for implementing specific trading strategies:

1. Creating conditions for recognizing bullish and bearish patterns in market data is essential for initiating trades.
2. Ensuring that the algorithm only executes buy or sell orders at the opening of a new candle can prevent slippage and improve order execution.
3. Implementing a method to count positions and automatically apply a trailing stop ensures that gains are secured and losses are minimized as market conditions change.
4. Setting a fixed lot size in the input parameters helps maintain consistency in trade volume and risk management.

This framework assists in building robust trading algorithms capable of performing under various market conditions.

Read more...
πŸ‘8πŸ‘3❀1
Quantile Regression and Its Implementation in MQL5 for Enhanced Reward Prediction in Distributed Q-learning

Quantile regression significantly advances distributed Q-learning by modeling the probabilistic distributions of expected rewards which, unlike traditional methods, does not break the range of reward values into discrete sections, but rather divides the set of received rewards into several equally likely quantiles. This approach eliminates zero-probability rewards typically seen in sparse reward distributions and provides a more accurate depiction of possible outcomes at different quantile levels.

This article introduces the implementation of the quantile regression algorithm through MQL5, aiming to optimize expert advisors by integrating a robust framework for predicting median rewards values across various action outcomes. The unique method divides a dataset into equal proba...

Read more...
πŸ‘6⚑2πŸ‘€2❀1πŸ‘1
A new library is available that simplifies the creation and plotting of Volume Profiles in trading software. One of the key functionalities includes the `GetHVPrice` method, which identifies the price point associated with the highest volume within a specified range. This allows for a quick visual representation and analysis of market activity, crucial for data-driven trading strategies.

For developers interested in integrating this functionality, the library offers straightforward methods to instantiate and plot the required Volume Profile. This tool is designed to enhance analytical capabilities without complicated procedures, making it an efficient addition to any trading system development toolkit.

Read more...
πŸ‘11πŸ‘3
In the field of programming and data management, the utilization of SQLite within MQL5 has revolutionized the approach to handling macroeconomic calendar data. As of build 2265, direct SQLite support enables developers to manage databases without the need for external connectors. This advancement simplifies procedures like opening, closing, importing, exporting, and executing databases, enhancing the efficiency of data operations.

The article underlines the creation and manipulation of databases using a structured CDatabase class. This class facilitates various database interactions such as table management, data requests, and views handling, tailored suitably through native SQLite functions provided by MQL5. The class allows developers to handle complex queries and operations on data tables efficiently, demonstrated through comprehensive examples ranging from creating and updating t...

Read more...
πŸ‘5❀2πŸ‘1πŸ€”1πŸ‘Œ1
Discover an advanced trading algorithm that enhances decision-making in the forex markets. This expert advisor utilizes MACD divergence to identify potential buy signals when the stochastic main line surpasses the signal line and remains within specified oversold levels. Tailor your strategy with adjustable settings including control over the duration the stochastic indicator sustains within these levels, along with selectable candle periods.

The tool efficiently manages open trades, implementing closure based on the upper Bollinger band level at the trade initiation time. Stops are strategically set to match 100% of the target, enhancing risk management. Its multi-timeframe capability allows for the integration of signals from different timelines: detect divergence on a 4-hour chart, verify stochastic confluence on a 30-minute chart, and set targets and stops using 5-minute Bollinge...

Read more...
πŸ‘3⚑2πŸ‘1
This article delves into the integration and practical application of REST APIs in systems, focusing on the development of an advanced tic-tac-toe game using MQL5 functions and Python, facilitated by FastAPI. The primary enhancement discussed involves automating game moves to elevate the challenge and interactive aspect of the game. Additionally, considerable emphasis is placed on developing MQL5 test scripts to validate the interaction reliability and efficiency between the integrated systems.

For a seamless installation and execution, detailed instructions, particularly for Windows users encountering scripting restrictions, are provided. By constructing a comprehensive step-by-step guide, users can overcome potential installation and setup hurdles.

Key enhancements aim to make the tic-tac-toe game more autonomous through smart algorithmic decisions and to strengthen testing protoc...

Read more...
πŸ‘3πŸ”₯2πŸ‘1
In the latest review of genetic algorithms, insight is provided into the diverse methods used to represent features in optimization problems, highlighting real and binary data representations, each with distinct benefits for use in genetic algorithms. It elaborates on how real numbers, often encoded using standards like IEEE 754, facilitate a direct approach to encoding solutions for optimization tasks, allowing for a wide range of continuous values to be handled effectively. Conversely, binary representations play a crucial role in uniting multidimensional aspects of an optimization challenge into a cohesive search landscape, simplifying operations like mutation due to their straightforward elementary nature.

Moreover, the discussion introduces the Gray binary code as a strategic enhancement over traditional binary encoding, mitigating issues related to large bit variations between ...

Read more...
πŸ‘8πŸ”₯2πŸ‘1
Bollinger Bands are a widely utilized indicator in trading, and this variation builds upon the standard model by incorporating a linear weighted average alongside weighted deviation. This advanced version adjusts for the changes in price data more dynamically, potentially providing traders with a more sensitive means to gauge market volatility compared to the simple moving average used in traditional Bollinger Bands.

Traders are advised to utilize this modified indicator similarly to the original Bollinger Bands. It serves as a tool to assess market conditions, identify potential overbought or oversold states, and pinpoint possible price breakout points. Proper understanding and application of this tool can enhance trading strategies significantly.

Read more...
πŸ”₯5πŸ‘1πŸ‘1πŸ€“1
Explore tens of thousands of trading apps on the Market.

Find robots to automate your trades, indicators for analyzing quotes and identifying trends, and other applications to make your trading more informed, effective, and convenient.

Purchases are completely safe. Moreover, before you pay, you can run a demo version of the product and test it in the strategy tester.

Go to Market
πŸ‘11❀1πŸ”₯1πŸ‘1🀩1
Understanding the intricacies of developing an expert advisor based on the Fair Value Gap (FVG) strategy is fundamental for traders looking to enhance their algorithmic trading tools. This discussion delves into creating an expert advisor that leverages the imbalance and Smart Money concepts to optimize trading outcomes in volatile markets. By utilizing MetaQuotes Language 5 (MQL5) within the MetaTrader 5 (MT5) trading platform, traders can build robust trading systems tailored to identify and exploit market imbalances depicted through Fair Value Gaps.

The approach starts by defining what a Fair Value Gap is - a price gap that occurs due to significant imbalances between buying and selling pressures, often highlighted by long directional candlesticks. This strategy not only involves analyzing market dynamics through candlestick patterns but also requires a solid understanding of mark...

Read more...
πŸ‘6πŸ‘4
Triangular arbitrage in Forex and cryptocurrencies is a strategy that exploits discrepancies between three currencies to make a risk-free profit. The technique operates on the principle that the product of three exchange rates should logically equal one, but due to market inefficiencies, this isn't always true, creating opportunities for arbitrage.

The recent integration of deep learning models into triangular arbitrage strategies enhances the ability to predict and capitalize on these market inefficiencies more effectively. For instance, using ONNX models with Python allows traders to implement these strategies on platforms like MT5. This method requires an initial setup including the installation of Python and Visual Studio Code, followed by specific libraries essential for running the predictive models.

The application, detailed through a provided expert advisor (EA), demonstrate...

Read more...
πŸ‘Œ4πŸ”₯2πŸ‘1
Offline Reinforcement Learning (ORL) provides a pathway for training models using pre-collected environmental interaction data, significantly optimizing environmental interaction during training phases. This methodology leverages data from various agents to train models comprehensively. However, ORL uses a static dataset which may not fully represent environmental diversity, potentially leading the model to operate outside of the data distribution without appropriate environmental feedback or adequate evaluations from the Critic.

Addressing this issue, the Supported Policy Optimization (SPOT) method incorporates a Variational AutoEncoder (VAE) to enhance policy regularization. This approach adheres strictly to the data distribution by adjusting policy operations within the distribution constraints established by the training dataset. SPOT has demonstrated superior performance over co...

Read more...
πŸ‘7πŸ‘1πŸ‘¨β€πŸ’»1
The Weighted Deviation indicator presents an advanced method for assessing market volatility, employing a linear weighting process at every calculation stage. This new technique differentiates itself by integrating linear weights consistently, unlike the typical deviation calculations which may not always do so, particularly when a linear weighted moving average is applied in the moving average methodology. Its responsiveness surpasses that of the standard deviation, making it a robust tool for traders who seek to gauge volatility with greater precision. The Weighted Deviation can be utilized in the same manner as other deviation indicators, enhancing trading strategies by providing a clearer understanding of market dynamics.

Read more...
πŸ‘5πŸ‘1
If you haven't found the perfect trading app, order a custom solution on the Freelance. Professional developers can bring your idea to life quickly and efficiently.

Simply create the technical specifications, set your budget, and choose a developer based on their profile and ratings. All payments are completely secure, protecting both parties from fraud.

Are you an experienced MQL5 programmer confident in your skills? Register easily, verify your identity, and start applying for jobs to earn from your expertise.

Go to Freelance
πŸ‘9❀3πŸ‘2🀩1