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 DailyHighLow indicator offers robust functionality for precise technical analysis. It plots two distinct lines representing high and low prices, calculated based on user-defined parameters. Key features include a customizable timeframe that ensures no smaller intervals than the current chart for accurate data presentation. Users have the flexibility to choose from three price calculation modes: Low/High, Open/Close, and Close/Close, allowing tailored analysis according to trading strategies.

The indicator benefits from a Previous Period option that displays historical high/low data, supporting thorough past performance analysis. Visual presentation is clear with solid silver lines, ensuring data visibility without clutter.

The functionality is backed by a solid implementation process. It involves initializing price buffers and verifying timeframes...

πŸ‘‰ Read | CodeBase | Share!

#MQL5 #MT5 #Indicator
❀32πŸ‘20πŸ‘Œ4πŸ‘¨β€πŸ’»4⚑1
Exploring algorithmic trading with MetaTrader 5 involves combining financial markets expertise with programming skills. The transition from manual to automated trading allows for increased stability and volume across financial instruments with minimal risk. Machine Learning (ML) and Neural Networks are pivotal in this domain, demanding knowledge in mathematics, statistics, and Python programming. Various resources including specialized books and online courses, such as Georgia Tech's and WorldQuant's Machine Learning for Trading, equip developers with necessary skills. Blogs, videos, and scientific papers provide insights into ML's application, offering diverse knowledge critical for empowering both budding and seasoned developers in the trading ecosystem.

πŸ‘‰ Read | AppStore | Share!

#MQL5 #MT5 #AlgoTrading
πŸ‘48❀47πŸ‘¨β€πŸ’»7⚑5✍4πŸ€”3πŸ”₯1
Monitoring drawdown is crucial for effective risk management in algorithmic trading. Integrating a visual reference for Expected Historical Maximum Drawdown provides clarity on whether an Expert Advisor (EA) is performing within anticipated parameters. This can be derived from backtesting results or historical data analysis.

Real-time monitoring is facilitated through the current drawdown tracking. This alerts traders when critical levels are breached, enabling timely intervention. Notifications support uninterrupted awareness by sending alerts to mobile devices, ensuring traders are informed of any new drawdown records or periodic updates per preferences set.

Properly logging drawdown data to external files, such as CSV or TXT, supports comprehensive post-trade analysis. Traders can fine-tune alert settings, refresh intervals, and visual displays to suit t...

πŸ‘‰ Read | Docs | Share!

#MQL5 #MT5 #EA
πŸ‘35❀24⚑2πŸ‘2🀯2πŸ‘¨β€πŸ’»2πŸ†1
The MQL5 Wizard efficiently aids in the construction and deployment of expert advisors by providing pre-coded trading essentials in its library. This enables traders to customize entry and exit conditions. The library includes classes for indicators like 'Accelerator Oscillator' and 'Adaptive Moving Average.' However, these aren't always convertible to successful strategies; custom signals are often necessary.

Regression analysis, a statistical process for understanding relationships between a dependent and independent variables, can enhance expert signals. Utilizing regression allows for testing how prior prices influence future ones. MQL5's 'RMatrixSolve' function facilitates efficient solutions for Ξ² values using matrix LU decomposition.

The β€˜CExpertSignal’ class provides a foundation for signal development. Functions like β€˜LongCondition’ and β€˜Sh...

πŸ‘‰ Read | VPS | Share!

#MQL5 #MT5 #Trading
πŸ‘67❀32⚑9✍7πŸ”₯5πŸ‘Œ2πŸ‘¨β€πŸ’»1
The Moving Average (MA) and Commodity Channel Index (CCI) combination provides a robust trading strategy. The system involves using two moving averages to identify trend direction and CCI for entry timing.

A typical setup involves a short-term MA and a long-term MA. When the short-term MA crosses above the long-term MA, it suggests a bullish trend, while crossing below suggests a bearish trend.

Simultaneously, the CCI, a momentum indicator, is used to confirm these trends. A CCI reading above 100 suggests potential overbought conditions, possibly acting as a sell signal in a bearish context, while a reading below -100 may indicate oversold conditions, suggesting a buy signal in a bullish context.

This dual-indicator approach aims to improve accuracy in trend-following strategies, leveraging both trend direction and momentum shifts for more inform...

πŸ‘‰ Read | AppStore | Share!

#MQL4 #MT4 #Indicator
❀35πŸ‘23✍3πŸŽ‰2πŸ‘¨β€πŸ’»2
Price forecasting and market trend prediction are essential tasks in trading and risk management. Traditional machine learning models often face challenges in volatile markets. Moving from training from scratch to pretraining on large, unlabeled data sets, followed by fine-tuning specific tasks, enhances forecasting accuracy. Models like the Transformer architecture, when adapted for financial data, leverage asset correlations and temporal dependencies for improved predictions. Implementing alternative attention mechanisms accounts for market dependencies, enhancing model performance.

The R-MAT model is one such example, incorporating relative Self-Attention for processing molecular graphs. Its adaptability and accuracy across various tasks present new opportunities for developing trading strategies.

πŸ‘‰ Read | VPS | Share!

#MQL5 #MT5 #AITrading
πŸ‘31❀19✍4πŸ‘€2πŸ†1πŸ‘¨β€πŸ’»1
Streamline your MetaTrader 5 scripting with Python by leveraging innovative custom trade classes, mirroring MQL5's built-in functionalities. The article explores translating classes like CAccountInfo, CSymbolInfo, and others for Python, providing access to comprehensive trade properties and improving coding efficiency. Despite limitations in IDE support, these Python classes enable traders to manage accounts, positions, orders, and symbols seamlessly, optimizing algorithmic trading operations. Enhance development workflows by reducing code complexity, enhancing compatibility, and accelerating the transition from MQL5 to Python for advanced trade automation and analysis.

πŸ‘‰ Read | Quotes | Share!

#MQL5 #MT5 #AlgoTrading
❀19πŸ‘18πŸ‘¨β€πŸ’»12πŸ†3πŸŽ‰2
Explore advanced enhancements to the MQL5 Economic Calendar with a draggable dashboard and interactive hover effects, boosting user experience for traders. The updated interface allows repositioning directly on the chart, ensuring seamless navigation through economic news. The implementation focuses on a flexible User Interface, providing immediate feedback, and synchronized movement of all elements, including news events and filter buttons. Practical applications include improved chart visibility and adaptability within both live trading and backtesting modes, empowering developers and traders to optimize their strategy with ease. This update represents a significant leap towards creating a customizable, user-centered trading tool for diverse needs.

πŸ‘‰ Read | Forum | Share!

#MQL5 #MT5 #UI
πŸ‘49❀31✍4πŸ€”1πŸ‘¨β€πŸ’»1
CTsLogger is engineered for MQL5 trading system developers. It offers a versatile logging framework, suitable for distinct module or code section debugging, while retaining a lower global logging level. This feature ensures precision in logging without overwhelming the system with messages, providing granular control with simplified toggling commands.

Four logging levels are provided, each incrementally adding more detail: `LOG_LEVEL_ERROR`, `LOG_LEVEL_WARNING`, `LOG_LEVEL_INFO`, and `LOG_LEVEL_DEBUG`. These support a hierarchical module structure, allowing development teams to maintain organized and scalable logging practices.

The API includes methods for initialization and configuration such as `Initialize`, `SetGlobalLogLevel`, and essential logging commands like `Error`, `Warning`, `Info`, and `Debug`. Debug mode functionality is robust with c...

πŸ‘‰ Read | Freelance | Share!

#MQL5 #MT5 #AlgoTrading
❀24πŸ‘11⚑2✍1πŸ‘¨β€πŸ’»1
The Expert Advisor implements the Butterfly harmonic pattern detection across multiple timeframes, from M2 to D1, for automated forex trading. It identifies bullish and bearish patterns utilizing pivot points, executing trades with customizable risk management and take-profit levels.

Key Features:
- Pattern Detection: Customizable parameters for identifying Butterfly patterns.
- Multi-Timeframe Support: Operates on user-selected timeframes, adaptable to diverse trading strategies.
- Risk Management: Offers both fixed and dynamic lot sizing options, adaptable to account balance.
- Take-Profit Strategy: Positions split across three take-profit levels.
- Break-Even & Trailing Stops: Configurable triggers post initial take-profits.
- Session Filter: Allows for timezone-based trading restrictions.
- Visualization & Statistics: Enhances readability with pattern re...

πŸ‘‰ Read | Calendar | Share!

#MQL5 #MT5 #EA
πŸ‘17❀11✍4πŸ‘Œ2πŸ‘¨β€πŸ’»1
Explore innovative coding techniques with MetaTrader 5. Discover how restructuring and efficient use of object-oriented programming can enhance trading systems without sacrificing current functionalities. Learn about integrating new features like floating windows for asset data, using a refined messaging system, and optimizing execution with MQL5 standards. Understand how the C_TemplateChart class introduces improved data analysis and parameter handling for indicators, with a focus on modular and scalable designs. This article offers valuable insights for developers looking to implement robust and flexible algorithmic trading systems while maintaining efficiency and clarity in their codebase.

πŸ‘‰ Read | Freelance | Share!

#MQL5 #MT5 #EA
❀55πŸ‘27⚑4πŸŽ‰4πŸ†2πŸ‘¨β€πŸ’»2😈1
A new script for MetaTrader 5 offers features for precise trading risk management: users can set customizable Risk:Reward ratios and define Stop Loss in pips. The script automatically calculates and applies SL and TP levels based on open positions, whether Buy or Sell. It presents a user-friendly interface with error handling for various market conditions.

To implement, attach the script to the MT5 chart and configure parameters. The script detects open positions for the current symbol and applies the calculated levels, confirming modifications in the MT5 terminal.

This tool saves time by eliminating manual calculations, ensures consistency in trading strategy, and is versatile across various symbols and account types. Installation involves downloading from the MQL5 Codebase and following outlined steps. Testing on a demo account is advised for familiar...

πŸ‘‰ Read | AlgoBook | Share!

#MQL5 #MT5 #Script
❀39πŸ‘12✍3πŸ‘¨β€πŸ’»2
A new update has been made available for the Divergence DeMarker indicator with the release of version 2.00. This new version includes a crucial fix addressing a sequence alignment bug in buffer 3, which could affect precision in specific scenarios. Ensuring accuracy in sequence alignment is vital for developers relying on this tool for technical analysis. Users who previously encountered inconsistencies in output may now benefit from enhanced stability and improvement in analytics performance. As always, maintaining up-to-date resources remains a key consideration for developers focused on precision and reliability in their indicator usage.

πŸ‘‰ Read | Docs | Share!

#MQL5 #MT5 #Indicator
❀28πŸ†10πŸ‘¨β€πŸ’»1
Dive into the fundamentals of static vs dynamic arrays with our latest exploration into ROM and RAM types in MQL5. Understanding these distinctions is crucial for algorithmic trading developers looking to optimize their code. ROM-type arrays, always static and immutable, mirror the behavior of read-only memory within your application. Meanwhile, RAM-type arrays offer dynamic flexibility, allowing their size and content to change during execution. These insights help developers manage memory effectively and avoid common pitfalls when handling elements, especially with arrays behaving like live variables in RAM. Enhance your technical skills and master array management for efficient and robust algorithmic trading code in MetaTrader 5.

πŸ‘‰ Read | Forum | Share!

#MQL5 #MT5 #Programming
❀27πŸ‘6πŸ‘¨β€πŸ’»1
In developing replay systems, handling asset auction states is crucial. Our aim is to accurately inform users about the auction status of a custom asset in a replay or simulation environment. Initially, a rule was set: if no trades occur within 60 seconds, the system notifies users of an auction state. This approach avoids unnecessary system complexity.

Recent updates involve significant changes to various code files, including C_Terminal.mqh and C_Mouse.mqh, enhancing our mouse indicator to consistently recognize order book events. This update supports both live and custom instruments, offering a unified interface for detecting market activity and auction states.

Key modifications include removing unnecessary initializations to avoid erroneous data handling and improving error reporting during initialization. In the updated system, the mouse indica...

πŸ‘‰ Read | VPS | Share!

#MQL5 #MT5 #Algorithm
❀54πŸ‘13πŸ”₯11πŸ‘¨β€πŸ’»2
An automated trading system is designed to manage market positions based on specific conditions. It operates based on the number of open positions. If fewer than a set number of positions are open, the system remains inactive. Upon reaching the specified position count, it will automatically close all previous positions if the total profit and loss (PnL) is positive. If the number of positions is equal to or exceeds the specified count, the system will close all positions once a positive PnL is achieved. This strategy prevents excessive risk by limiting the number of open positions while ensuring occasional profit capture. All positions must share an equal risk level, acknowledging the potential volatility differences across instruments.

πŸ‘‰ Read | Signals | Share!

#MQL5 #MT5 #EA
❀41πŸ‘6πŸ†2πŸ”₯1πŸ‘¨β€πŸ’»1
Candle filtering is a significant feature of the indicator, allowing traders to focus on specific candle types. It supports filtering for Bullish, Bearish, and Doji candles, or displaying all candles with assigned colours. Doji candles are detected using a configurable threshold, ensuring accuracy in identification. The feature enables traders to define custom colours for each candle type, enhancing visual distinction. Default colour settings include green for Bullish, dark red for Bearish, and gold for Doji.

Chart cleaning improves visual analysis by removing elements such as grids and volumes. The initialisation phase maps buffers for OHLC values and assigns custom colours, while unnecessary elements are removed from the chart. In the main calculation phase, each candle’s compliance with the selected criterion determines its display colour. Upon the ...

πŸ‘‰ Read | VPS | Share!

#MQL5 #MT5 #Indicator
❀32πŸ‘8πŸ‘¨β€πŸ’»3
Enhance your MQL4 programming skills by examining the creation and modification of trade operations. Review the key functions and methods that facilitate efficient order management within this trading platform. Consider the nuances of market execution, understanding parameters such as order types, volumes, and execution prices. Analyze error handling techniques to ensure robust script performance and maintain code reliability. Evaluate the best practices for optimizing the execution speed of MQL4 scripts, including resource management and proper utilization of system resources. Stay updated on recent updates and changes in the platform to align your trading strategies with current capabilities and enhance automated trading efficiency.

πŸ‘‰ Read | NeuroBook | Share!

#MQL5 #MT5 #AlgoTrading
❀25πŸ‘14πŸ‘¨β€πŸ’»1
Analyzing the combination of the Triple Exponential Moving Average Oscillator (TRIX) with the Williams Percent Range (WPR) offers insights into trend signals and market conditions. TRIX, a momentum oscillator using triple exponential moving averages, is valuable for filtering out noise and confirming trends. Its crossover above or below the zero line indicates potential trend reversals or confirmations. Meanwhile, the WPR identifies overbought and oversold conditions, serving to highlight support and resistance levels.

When testing these indicators on CHF JPY for the 4-hour time frame in 2023, ten distinct patterns emerged. Among these, the TRIX crossover paired with WPR pivoting can indicate trend shifts, and combining price divergence with TRIX and extreme WPR positions can suggest reversals. TRIX trending behavior with WPR position further r...

πŸ‘‰ Read | Signals | Share!

#MQL5 #MT5 #TechnicalAnalysis
❀36πŸ‘7⚑3πŸ‘¨β€πŸ’»3
Discover an innovative logging solution for MetaTrader 5 developers. The article introduces a sophisticated library, Logify, designed to enhance log management in MQL5 Expert Advisors. It tackles the limitations of native logging by offering a configurable, scalable, and elegant visualization of logs directly on trading charts using the Comment() function. This intuitive approach transforms logs into a real-time console visible on the chart, ensuring critical messages are never missed. Developers can benefit from customizable configurations such as log direction, frame styles, and size, making log monitoring more efficient and professional, ultimately enhancing debugging and analysis.

πŸ‘‰ Read | CodeBase | Share!

#MQL5 #MT5 #EA
❀34πŸ‘10😱3πŸ‘¨β€πŸ’»3⚑2πŸ‘€2πŸŽ‰1