MQL5 Algo Trading
387K subscribers
2.56K photos
2.56K 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 article delves into enhancing MetaTrader 5's library classes to manage the complete history of graphical object changes on trading charts. This innovative approach enables recording every property change within a graphical object, providing a comprehensive snapshot of its historical data. Developers can effectively restore any object to a previous state, facilitating nuanced technical analysis by recognizing past object configurations. By introducing new properties and updating existing ones like Group and Species, the framework is optimized for sorting and accessing change history effectively. This is particularly beneficial for developers aiming to create sophisticated tools for analyzing market trends with precision and efficiency.

πŸ‘‰ Read | Signals | @mql5dev

#MQL5 #MT5 #EA
❀50πŸ‘9πŸ‘Œ6πŸ‘€5πŸ‘¨β€πŸ’»4πŸ†2
The article explores the integration of the AutoCorrelation Function (ACF) as a filter in enhancing the Moving Average Crossover strategy for algorithmic trading. It utilizes sixteen years of M15 currency data to assess the effectiveness of the ACF, which identifies time series patterns by measuring correlations within price data. Unlike conventional indicators like ATR and Bollinger Bands, the ACF is not influenced by volatility, showing potential to differentiate profitable from non-profitable trades. When applied to the SMA Crossover Strategy, the ACF threshold requirement significantly bolstered profitability for both EURUSD and GBPUSD pairs, highlighting its utility for expert advisors and algorithmic traders.

πŸ‘‰ Read | AppStore | @mql5dev

#MQL5 #MT5 #EA
❀67πŸ‘9✍5πŸ”₯3πŸ‘Ύ3⚑2πŸ‘Œ2
The Simple_Grid Expert Advisor is a straightforward tool designed to manage a grid of pending orders around the current market price. The system configures either stop or limit orders in both directions, determined by the input parameters. Notably, it operates without a Stop Loss. Between 23:30 and 4:00, non-activated pending orders are removed, with a new grid established after 4:00.

Key adjustable parameters include the grid step size, initial distance from the current price, the quantity of orders per direction, and the type of pending orders (stop or limit). Users can also set the expected profit level (Take Profit), fixed lot size, and the Expert Advisor's magic number. This tool was developed for educational purposes in MQL5 and is unsuitable for real account trading or profit generation, now available for placement in CodeBase.

πŸ‘‰ Read | Quotes | @mql5dev

#MQL5 #MT5 #EA
❀26πŸ‘4πŸ‘€3πŸ‘¨β€πŸ’»2⚑1😁1πŸ’―1
The article provides a comprehensive guide for MetaTrader developers to publish their programs on CodeBase efficiently. It covers essential guidelines for preparing the code, including formatting, commenting key logic decisions, and creating concise descriptions. Specific steps for uploading various types of programs, such as scripts, indicators, and services, are detailed with focus on a structured directory organization using MQL5 pathways. The guide emphasizes the importance of attaching explanatory images and undergoing code validation to ensure professional standards. This resource aids developers in showcasing their work, offering valuable contributions to the trading community while maintaining high-quality, accessible code publishing practices.

πŸ‘‰ Read | Freelance | @mql5dev

#MQL5 #MT5 #EA
❀59πŸ”₯8πŸ‘6πŸ‘Œ5⚑4πŸ‘¨β€πŸ’»3πŸ‘2
The described Expert Advisor employs a specific approach combining a Martingale strategy with initial breakout/range-reversal entries. Key parameters allow traders to adjust and control the execution logic of EAs, such as trade directions, lot sizes, and trading schedule.

General parameters define unique trade identifiers, initial lot sizes, and allow the configuration of buy/sell capabilities, take profits, and order reset conditions. The Martingale strategy section specifies reverse Martingale logic, lot multipliers, profit targets, pip distances, and trade limits within a series.

The EA's core functions initiate and manage trades. Initialization (OnInit) arrays ensure readiness, while deinitialization (OnDeinit) handles clean-ups. Trading permissions hinge on specified dates and weekdays. Market execution processes validate trade parameters, uphold ma...

πŸ‘‰ Read | Calendar | @mql5dev

#MQL5 #MT5 #EA
❀41πŸ‘5πŸ‘¨β€πŸ’»2πŸ‘€2πŸ‘1
Dive into algorithmic trading with an exciting innovation in MetaTrader 5! This article presents a streamlined approach to Fibonacci Retracement analysis using an Expert Advisor (EA) designed for ease and efficiency. Traders can forget about the confusion of manually applying Fibonacci toolsβ€”our EA simplifies the process by allowing you to input swing high and low values directly on the chart and automating the plotting of retracement and extension levels. It delivers real-time alerts when prices interact with these levels, transforming static analysis into a dynamic, interactive experience. The EA is meticulously detailed to ensure clear visualization and seamless usability, making it an invaluable tool for developers and traders alike.

πŸ‘‰ Read | Signals | @mql5dev

#MQL5 #MT5 #EA
❀39πŸ‘Œ8πŸ‘3πŸ‘¨β€πŸ’»2
This post discusses an Expert Advisor (EA) that leverages Heikin Ashi candles for trading. By smoothing price action, it reduces noise and clarifies market direction. The EA identifies strong trends, minimizes false reversals, and facilitates informed trade management.

The tool integrates Heikin Ashi candles, promoting a clear trend visualization by eliminating random noise. It trades selectively, responding to apparent Heikin Ashi trend shifts and incorporates customizable settings to align with user strategies.

It features intelligent trade management, exiting trades on trend reversals and using equity/profit controls to manage risks. Benefits include clear trend detection, suitability for any currency pair or timeframe, automated execution, reduced emotional bias, and customizable settings for different trading styles.

πŸ‘‰ Read | AppStore | @mql5dev

#MQL4 #MT4 #EA
❀38πŸ‘Œ3πŸ‘€2πŸ‘¨β€πŸ’»1
Explore the Dynamic Swing Architecture system, designed for precision in algorithmic trading by detecting swing highs and lows in real-time. This robust system automates trades based on market structure shifts, enhancing consistency and reducing emotional decision-making. It evaluates price action continuously, adapting to volatility changes and ensuring that traders stay aligned with the market rhythm. Developers will appreciate its configurability, including risk management options and visual feedback through charted swing points. This sophisticated framework offers traders a powerful tool for executing structure-based strategies effortlessly, merging human market intuition with precise algorithmic execution to create a highly adaptive trading process.

πŸ‘‰ Read | CodeBase | @mql5dev

#MQL5 #MT5 #EA
❀29πŸ‘8⚑1πŸ‘Œ1πŸ‘¨β€πŸ’»1
The ExpWPRBB Expert Advisor employs a straightforward trading approach utilizing Williams' Percent Range (WPR) and Bollinger Bands (BB). Positions are initiated when both indicators align: for a Buy, WPR exits the oversold territory, and the bar opens below the average BB line. For a Sell, WPR leaves the overbought zone, and the bar opens above the average BB line. Bollinger Bands breadth and ATR values determine Stop Loss and Take Profit levels. Functionality is exclusive to hedging accounts. An optional non-trading mode is available for signal visual testing.

Core input parameters include WPR and Bollinger Bands periods, deviation, shift, and price type. Trading parameters comprise signal-only mode, position volume, slippage tolerance, and a unique Magic number for tracking. Stop Loss and Take Profit can be predefined or dynamically computed using Bollinge...

πŸ‘‰ Read | Docs | @mql5dev

#MQL5 #MT5 #EA
❀29⚑3πŸ‘Œ3πŸ‘¨β€πŸ’»3πŸ‘€3✍2πŸ”₯2
ExpPinBar Expert Advisor leverages a strategy centered around the Price Action PinBar indicator to initiate trades based on indicator signals. The tool features advanced trailing functionalities accessible through the trailing library, incorporating mechanisms like classic trailing, Parabolic SAR, and various moving averages such as AMA, DEMA, FRAMA, MA, TEMA, and VIDYA. It also considers High and Low candlestick shadow levels. Critical settings for the PinBar include defining minimum and maximum candle sizes and the position of the body relative to the preceding candle.

To optimize signals, users can adjust parameters like the aspect ratio of shadows. The configuration options for the advisor cover essentials such as position volume, slippage, magic numbers, and dynamic stop loss and take profit points based on PinBar shadows. Trailing settings allow cust...

πŸ‘‰ Read | Calendar | @mql5dev

#MQL5 #MT5 #EA
❀27πŸ‘5πŸ‘¨β€πŸ’»2πŸ‘Œ1
Explore efficient trade management with the AutoProtect Expert Advisor. This advanced solution automates crucial aspects like moving stop-losses to break-even, trailing stops as positions gain, and partial profit-taking. Built in the MQL5 environment, it provides flexibility for traders to customize individual functions according to their strategy. AutoProtect uniquely manages trades per symbol and supports filtering by magic number, allowing precise control. It enhances trading efficiency by focusing on real-time market dynamics, eliminating risks of manual errors. The structured, modular code supports easy updates, ensuring consistent and reliable trade adjustments. Ideal for both seasoned and aspiring MetaTrader 5 developers, AutoProtect optimizes trade management seamlessly.

πŸ‘‰ Read | Quotes | @mql5dev

#MQL5 #MT5 #EA
❀33πŸ‘€5πŸ‘¨β€πŸ’»3✍1πŸ‘Œ1
The latest discussion focuses on improving the C_Orders class for handling market trades, specifically its capability to interpret messages from the Chart Trade indicator. For NETTING accounts, the existing code efficiently manages open and close positions, including reversals and partial closings. However, challenges arise with HEDGING accounts due to differences in position handling. When "CLOSE ALL POSITIONS" is pressed, the operation executed depends on the account type. A crucial adjustment in the code involves ensuring the proper closure of positions by confirming the match between the symbol in the Chart Trade message and the open position's symbol.

Additional care is required to manage trades involving historical assets. The retrieved ticket number is validated against a magic number to maintain distinct trading strategies within a single Expert Advis...

πŸ‘‰ Read | CodeBase | @mql5dev

#MQL5 #MT5 #EA
❀34πŸ‘¨β€πŸ’»1