MQL5 Algo Trading
404K subscribers
2.65K photos
2.65K 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
The "Quarters Theory" indicator segments price movements around a central reference level, enhancing analysis for multiple assets including Forex, stocks, and commodities. This tool provides visual representation of quarter divisions on the chart, aiding in technical analysis by highlighting potential support and resistance levels.

The indicator calculates a flexible base level, with options including current daily close, previous day, week, and month closes, as well as user-defined levels. It supports various units for quarter size, appropriate for different instruments: pips for Forex, points for other assets, percentages of the base level, or fixed price values.

It adapts automatically to distinguish between Forex and non-Forex assets, adjusts pip calculations accordingly, and manages situations with unavailable timeframes. This makes it a versat...

πŸ‘‰ Read | Signals | @mql5dev

#MQL5 #MT5 #Indicator
❀25🀑3
Explore the advanced framework for enhancing algorithmic trading with MetaTrader 5. The article introduces a disciplined pipeline that filters noise in indicator selection, highlighting its transformation into a predictive engine using a compact neural network. This network is trained on multi-quarter data, outputting an ONNX model for seamless integration with MQL5. Practical advancements include adaptive indicators like FrAMA and TRIX, alongside a robust feature and label engineering process ensuring reliable predictions. Emphasizing a straightforward multi-layer perceptron (MLP) structure, the approach focuses on efficient, transparent model deployment, minimizing overfitting risks and enhancing real-time trading strategy execution.

πŸ‘‰ Read | AppStore | @mql5dev

#MQL5 #MT5 #Strategy
❀25πŸ‘2🀑2
In this update of our AI-powered trading system in MQL5, we've focused on further modularization and the automation of trading functionalities. The UI components have been separated into a dedicated include file, enhancing code cleanliness and maintainability. This also streamlines development, testing, and integration of new features like dynamic UIs and automatic signal execution.

Automatic signal checks have been implemented for new bars, enabling trade execution based on AI-generated signals parsed from JSON input. These signals outline entry points and Stop-Loss/Take-Profit levels, offering a clear trading strategy devoid of emotional biases, and improving efficiency.

Our visualization system now signals patterns like engulfing or divergences on charts using arrows, lines, and labels, facilitating clear pattern recognition. We've also implemen...

πŸ‘‰ Read | NeuroBook | @mql5dev

#MQL5 #MT5 #AITrading
❀49πŸ”₯4πŸ’”4⚑2😁2πŸŽ‰2πŸ‘Œ1
In the realm of trading automation, an Expert Advisor (EA) can be designed to execute trades randomly based on certain parameters. For instance, consider using variables such as "price_open" for the trade entry point and "price_stoploss" for defining risk thresholds. Determining "risk_percent_equity" allows the EA to calculate risk exposure in terms of percentage of the total deposit. Proper configuration of these parameters is crucial for maintaining a balance between risk management and potential returns. Randomized trading algorithms may illustrate the unpredictability of market conditions and the importance of controlled risk strategies in algorithmic trading environments. Ensure thorough backtesting to evaluate the EA's performance and adjust parameters as needed for optimal outcomes.

πŸ‘‰ Read | Docs | @mql5dev

#MQL5 #MT5 #EA
❀24✍3🀣1
Emergency position management is simplified with a one-click control panel for instant closing of trading positions. This tool introduces a professional Expert Advisor that seamlessly integrates into your chart, allowing for efficient risk management and strategic exits during volatile market conditions. It offers advanced filtering options, including closing all, only buy, only sell, or symbol-specific positions. The panel also features real-time updates with a detailed count of open positions and profit/loss indicators, ensuring clarity and precision.

Safety is prioritized, with each action requiring confirmation to prevent accidental closures. The panel is fully customizable in color and placement, providing a tailored user experience. Implementing the tool is straightforwardβ€”simply drag the EA onto any chart in MetaTrader 5, enable AutoTrading, and follow...

πŸ‘‰ Read | AppStore | @mql5dev

#MQL5 #MT5 #EA
❀13πŸ‘Œ9πŸ‘5πŸ’”4🀣2
Traders often struggle to maintain discipline due to psychological pressures, risking their capital. A cutting-edge solution is the Risk Enforcement Expert Advisor (EA) for MetaTrader 5. This sophisticated tool is an unbiased overseer, not a signal generator. It strictly enforces predefined risk management rules, blocking any trades that defy set parameters. By capturing emotional overrides and preventing excessive trading behaviors, the Risk Enforcement EA provides an automated safeguard. Developers can leverage advanced MQL5 functions like OnTick and OnTradeTransaction to ensure consistent execution across all trading scenarios. This system bridges the gap between theoretical strategy and practical application, enhancing trading discipline effectively.

πŸ‘‰ Read | AppStore | @mql5dev

#MQL5 #MT5 #EA
❀25πŸ”₯1🀣1
The continuation of the MQL5 series focuses on reading pre-saved candle data into an MQL5 program for utilization in indicators and Expert Advisors (EAs). With the data stored in a structured file, the process involves opening the file, extracting candle values, and organizing the information for use in indicators or EAs. This section emphasizes the seamless transfer of data from external sources into MQL5, enabling users to visualize candle data.

Building an indicator to visualize this data involves setting indicator properties, determining the display format on charts, deciding the required buffers, and defining display rules for candles. Configuring these properties ensures the indicator is prepared to process and display data efficiently.

The subsequent step involves reading the saved file to arrange data, focusing on candle times. File access o...

πŸ‘‰ Read | VPS | @mql5dev

#MQL5 #MT5 #Algorithm
❀20⚑1πŸ‘1πŸ‘€1
In the latest article, the MetaTrader 5 library has been expanded to include refined MVC-based table classes, focusing on integrating the View component with the existing Model. The development introduces several classes like Table, Row, Cell, and Header, each interacting with the Panel object for graphical representation. Through these enhancements, the table model now seamlessly links with its visual counterpart, facilitating efficient data handling and display.

The approach employs CBound and CCanvas objects, allowing precise control over drawing coordinates and object sizes. This innovative setup simplifies table cell management, supporting features like sorting and repositioning. The refined structure ensures flexibility and maintains the integrity of graphical elements.

πŸ‘‰ Read | CodeBase | @mql5dev

#MQL5 #MT5 #MVC
❀52πŸ€”2
The described alternative to the EAToMath library presents a streamlined approach to handling tick data for the MQ tester, highly relevant for developers managing significant data volumes in optimization tasks. Traditional MQ tester operations involve creating numerous tick data files, which leads to rapid SSD wear due to extensive write cycles. By employing this alternative library, developers can efficiently consolidate data into a single file, significantly reducing both write times and storage requirements.

This solution utilizes five essential plug-in libraries, which simplifies the codebase, making it easier to comprehend and modify. This approach also offers superior data compression, employing an optimized algorithm to achieve an average tick size of between 3.266 and 8.439 bytes, depending on the level of data included. This results i...

πŸ‘‰ Read | Calendar | @mql5dev

#MQL5 #MT5 #AlgoTrading
❀26🀨1
Discover the essentials of developing a Market Structure Indicator in MQL5, drawing inspiration from Larry Williams' market swing concepts. This indicator identifies short-term, intermediate, and long-term swing points to provide a layered view of market trends, enabling traders to make informed decisions with clarity. By translating price movements into clear visual cuesβ€”using circles for short-term swings, double circles for intermediate points, and arrows for decisive long-term trendsβ€”this tool helps traders spot market shifts at a glance. Dive into the structured process of coding this indicator in MQL5, equipping both MetaTrader 5 developers and aspiring traders with practical algorithms for market analysis.

πŸ‘‰ Read | NeuroBook | @mql5dev

#MQL5 #MT5 #Indicator
❀30πŸŽ‰5
Transfer sensitive data securely in MQL5 by ensuring your Expert Advisor (EA) doesn't internally store critical information. Rely on secure retrieval from trusted servers using hybrid encryption methods. RSA and AES can be implemented directly in MQL5 without external libraries, overcoming the limitations and security risks of DLL usage.

Understanding RSA's roots reveals a cryptosystem founded on the intractability of factoring large numbers. Used widely in encrypting web traffic and securing digital communications, RSA is robust and forms a backbone for various secure systems. Despite ECC's emergence, RSA's long-standing security makes it a continued choice.

Implementing RSA in MQL5 involves creating an RSA class for encryption, incorporating big-integer arithmetic, and utilizing PKCS#1 v1.5 padding to ensure secure data transitions. Modular arithmetic is pi...

πŸ‘‰ Read | CodeBase | @mql5dev

#MQL5 #MT5 #EA
❀69πŸ’―3πŸ†1
The development of a modified stochastic momentum indicator extends traditional concepts with enhanced insights into bar developments. This approach incorporates the analysis of open, high, low, and close prices, providing a comprehensive view of price movements. Two formulas guide the calculation: one showing absolute price movement, the other expressing it as a percentage relative to average values. Both are switchable via InpFormula parameter for flexibility.

The stochastic momentum evaluates how significantly the closing price diverges from the average of the highest and lowest prices over a specified period. Application isn't limited to the close; open, high, and low values can similarly be analyzed. Persisting above or below the center line signals trends, while line crossings may indicate directional changes. Querying the color buffer offers...

πŸ‘‰ Read | AppStore | @mql5dev

#MQL5 #MT5 #Indicator
❀20🀣4πŸ”₯1
Statistical arbitrage frameworks are evolving for retail traders, focusing on probabilistic rather than historical market notions. By leveraging statistical methods like cointegration, relationships between diverse assets can be identified and traded. The challenge remains in the stability of these relationships over time, necessitating continuous monitoring and adjustments in portfolio weights.

Implementing techniques like In-Sample/Out-of-Sample ADF validation and Rolling Windows Eigenvector Comparison enhance detection and assessment of asset relationships. These methods fine-tune portfolio management and risk analysis.

Our scripted automation aids backtesting these strategies, highlighting adjustments needed for optimal real-time trading execution. Emphasis is placed on dynamic updates of portfolio weights using tested parameters, ensuring that ...

πŸ‘‰ Read | AlgoBook | @mql5dev

#MQL5 #MT5 #Algorithm
❀14πŸ‘Œ2😐1
Explore the next level of trading with our MQL5-based solution for dynamic support and resistance zones. This algorithm identifies these zones by analyzing market data in real-time, adapting as market conditions change. By transforming static lines into probability zones, it enhances trade execution and reduces uncertainty. Our approach integrates historical price analysis, identifying and marking extreme and average price reactions to reflect realistic market behavior. This innovative system allows traders to leverage consistent patterns while minimizing emotional trading decisions. Implemented through a tailored MQL5 indicator, it enables precise, real-time analysis, promising more informed and strategic decision-making for developers and traders alike.

πŸ‘‰ Read | Docs | @mql5dev

#MQL5 #MT5 #Algorithm
❀28πŸ‘Œ1