An Expert Advisor utilizes a straightforward MACD strategy, integrating multiple technical conditions to assess performance in live trading scenarios. Key components include a standard MACD crossover strategy with parameters: Fast EMA set at 12, Slow EMA at 26, and a Signal line using a 200-period moving average for trend filtering. Trading is contingent on price position relative to this moving average, allowing buys above and sells below it.
Additionally, this strategy employs price action by requiring a touch of support levels for buy trades and a breach of resistance for sells, facilitated by a custom Box.mq4 indicator. Subjectivity in support and resistance levels is acknowledged.
Risk management involves placing stop-loss positions relative to moving averages, determined by the SLPointDistanceFromMA parameter, with a take profit target at 1.5 times the s...
π Read | Forum | @mql5dev
#MQL4 #MT4 #EA
Additionally, this strategy employs price action by requiring a touch of support levels for buy trades and a breach of resistance for sells, facilitated by a custom Box.mq4 indicator. Subjectivity in support and resistance levels is acknowledged.
Risk management involves placing stop-loss positions relative to moving averages, determined by the SLPointDistanceFromMA parameter, with a take profit target at 1.5 times the s...
π Read | Forum | @mql5dev
#MQL4 #MT4 #EA
β€40π4π¨βπ»2
Introducing a tool optimized for precise market monitoring by displaying server time, not local time. This functionality provides an accurate frame of reference essential for traders. The tool allows custom text color and font size adjustments, enhancing seamless integration with existing chart setups. A feature for optional daily symbol change visualization, displayed as a percentage, is included for those requiring detailed data insights.
The tool is engineered for minimal CPU usage, maintaining system performance without compromise. Input parameters such as enabling or disabling daily change display, font size adjustments, and text color preferences ensure tailored user experiences. This solution is fitting for traders focused on reliable server time tracking, offering a clean, efficient design that supports trading activities without unnecessa...
π Read | AlgoBook | @mql5dev
#MQL5 #MT5 #Indicator
The tool is engineered for minimal CPU usage, maintaining system performance without compromise. Input parameters such as enabling or disabling daily change display, font size adjustments, and text color preferences ensure tailored user experiences. This solution is fitting for traders focused on reliable server time tracking, offering a clean, efficient design that supports trading activities without unnecessa...
π Read | AlgoBook | @mql5dev
#MQL5 #MT5 #Indicator
β€38π7π¨βπ»2β1π1
An Expert Advisor has been structured around a MACD crossover strategy, complemented by trend filtering and support/resistance verification. This is developed via common interpretations utilizing standard indicators. The codebase is comprehensive, highlighting a step-by-step commentary for clear understanding.
Key elements entail MACD Crossovers with standard settings (Fast: 12, Slow: 26, Signal: 9) to identify momentum changes. A 200-period moving average acts as a trend filter: purchases occur only when prices are above and sales when below this average.
Additionally, trades are conditional on price interactions with key support or resistance levels, identified via a custom SupportResistance indicator, referencing relative highs/lows over the past 10 and 20 candles.
To retain signal validity, a configurable window is employed (SignalValidity). For ris...
π Read | Quotes | @mql5dev
#MQL5 #MT5 #EA
Key elements entail MACD Crossovers with standard settings (Fast: 12, Slow: 26, Signal: 9) to identify momentum changes. A 200-period moving average acts as a trend filter: purchases occur only when prices are above and sales when below this average.
Additionally, trades are conditional on price interactions with key support or resistance levels, identified via a custom SupportResistance indicator, referencing relative highs/lows over the past 10 and 20 candles.
To retain signal validity, a configurable window is employed (SignalValidity). For ris...
π Read | Quotes | @mql5dev
#MQL5 #MT5 #EA
β€35π4π₯2π¨βπ»2
In this technical walkthrough, a robust pipeline is developed for integrating MQL5 and Python to advance market analysis. The process initiates with historical data extraction from MetaTrader 5 into Python, followed by storage in Parquet format for subsequent model training. Crucially, this pipeline transitions from basic data ingestion to sophisticated predictive model training using Python's machine-learning libraries, ensuring models are packaged and accessible via a lightweight REST API in real-time.
In this setup, MQL5 handles real-time market data collection and execution, while Python performs feature engineering and model predictions. The modular Python service supports periodic model retraining, exploiting frameworks like scikit-learn for classical techniques or TensorFlow for deep learning. This architecture facilitates dynamic interaction betw...
π Read | AlgoBook | @mql5dev
#MQL5 #MT5 #Strategy
In this setup, MQL5 handles real-time market data collection and execution, while Python performs feature engineering and model predictions. The modular Python service supports periodic model retraining, exploiting frameworks like scikit-learn for classical techniques or TensorFlow for deep learning. This architecture facilitates dynamic interaction betw...
π Read | AlgoBook | @mql5dev
#MQL5 #MT5 #Strategy
β€34π8π¨βπ»4
Explore cutting-edge strategies for MetaTrader 5 with our latest insights into signal patterns using the Gator and Accumulation/Distribution oscillators. Pattern-5 leverages the Gator's trend signals and verifies them with volume insights from the AD line, helping to navigate false breakouts. Pattern-6 reveals latent accumulation through volume signals during range-bound markets, predicting breakout direction with accuracy. Pattern-7 offers robust trend continuation signals by identifying hidden volume divergences. These methodologies integrate volume data with price action for enhanced decision-making, offering paramount insight for developers in crafting profitable algorithmic trading strategies.
π Read | Docs | @mql5dev
#MQL5 #MT5 #Algorithm
π Read | Docs | @mql5dev
#MQL5 #MT5 #Algorithm
β€61π10β‘6π4π¨βπ»2π1
Oma Ally's BBMA strategy focuses on combining Bollinger Bands and moving averages to forecast potential market movements. Widely adopted in Malaysia, Indonesia, and Brunei, it serves as a robust tool in the forex community. The strategy offers a "Reentry" setup aimed at capturing market entries post-correction, aligning with the main trend to outline precise entry and exit points. Within the BBMA framework, the "Zero Loss Zone" is crucial for highlighting areas with minimized risk. This concept emphasizes strong trend candles and strategic moving average positioning, allowing traders to undertake positions with reduced loss risk. Its structured criteria make it a significant strategy for forex traders seeking accuracy and safety in their trading activities.
π Read | Quotes | @mql5dev
#MQL5 #MT5 #BBMA
π Read | Quotes | @mql5dev
#MQL5 #MT5 #BBMA
β€49π9π4π¨βπ»3π₯1π1
This indicator provides a detailed breakdown of trading volume into buyer and seller categories. The visual representation is achieved through overlaying histograms, which clearly display the volume pressure. This tool was initially a component of the Amibroker trading software and has been actively discussed within trading forums. Initially intended for conversion to mql4, this tool has been transitioned to mql5, aligning with modern platform capabilities while retaining the essence of the original version. Credit is given to Nick Molchanoff for the initial conceptual design. This adaptation aims to provide a more comprehensive market analysis for users.
π Read | Docs | @mql5dev
#MQL5 #MT5 #Indicator
π Read | Docs | @mql5dev
#MQL5 #MT5 #Indicator
β€30π4π¨βπ»2
Matrix factorization in MQL5 offers significant power via its API, providing crucial tools for machine learning in trading. Understanding linear algebra is essential to effectively use this API. A systematic introduction to these mathematical principles allows developers to create more precise and efficient trading algorithms, enhancing model performance.
By coding with linear algebra in mind, developers reduce complexity and improve maintainability. Efficient code structure reduces processing time and increases scalability. The application of matrix operations instead of loops minimizes error accumulation and memory strain.
Linear algebra aids traders in effectively processing large data sets while minimizing execution time, allowing for ongoing model refinement and optimization. Precision and proper utilization of defined methods are key to ...
π Read | NeuroBook | @mql5dev
#MQL5 #MT5 #LinearAlgebra
By coding with linear algebra in mind, developers reduce complexity and improve maintainability. Efficient code structure reduces processing time and increases scalability. The application of matrix operations instead of loops minimizes error accumulation and memory strain.
Linear algebra aids traders in effectively processing large data sets while minimizing execution time, allowing for ongoing model refinement and optimization. Precision and proper utilization of defined methods are key to ...
π Read | NeuroBook | @mql5dev
#MQL5 #MT5 #LinearAlgebra
β€33π4β3β‘2π1π¨βπ»1
The CTradingButtons class, integral to the News Headline Expert Advisor (EA), offers a user-friendly, chart-based interface for manual trading. It provides rapid trade execution and position management during news events and scalping. The class encompasses key segments: class declaration, initialization, button creation, and event handling.
Class Declaration: This section establishes CTradingButtons with private and public members for managing the button panel and trade operations, offering a modular foundation with configurable risk parameters.
Initialization (Init): This function sets up trading and GUI components, distinguishing manual trades with a unique magic number and ensuring interface readiness upon EA loading.
Button Creation (CreateButtons): It constructs and arranges eight critical trade execution buttons, facilitating immediate interaction, un...
π Read | Docs | @mql5dev
#MQL5 #MT5 #EA
Class Declaration: This section establishes CTradingButtons with private and public members for managing the button panel and trade operations, offering a modular foundation with configurable risk parameters.
Initialization (Init): This function sets up trading and GUI components, distinguishing manual trades with a unique magic number and ensuring interface readiness upon EA loading.
Button Creation (CreateButtons): It constructs and arranges eight critical trade execution buttons, facilitating immediate interaction, un...
π Read | Docs | @mql5dev
#MQL5 #MT5 #EA
β€81π4β2π¨βπ»1
A method for analyzing historical equity through one-time open virtual positions assists in evaluating spread and equity trading performance. The main goal is to determine volatility-flattening constructs and recognize entry and exit points for equity trades. Volume and direction are fixed per active pair, with cumulative profit or loss calculated, then represented as an equity line. Implementation involves setting volumes, directions, and pair activations, with optional initial balances. Note that the calculations disregard spread, commission, and swaps. The current version limits symbol counts and may lack optimization. This model serves as an initial experiment to refine profit extraction techniques from spread/equity trading. Future steps include enhancing visual analysis using indicators like Bollinger Bands and developing a customizable dashbo...
π Read | Signals | @mql5dev
#MQL5 #MT5 #AlgoTrading
π Read | Signals | @mql5dev
#MQL5 #MT5 #AlgoTrading
β€35π4π2π1π¨βπ»1
This article delves into the versatile applications of the Moving Average (MA) indicator within MetaTrader 5. Key techniques include using the MA for trend identification by analyzing candle positions relative to the MA line, employing it as support/resistance, and exploring the MA's slope to gauge momentum. The text suggests that MA channels can enhance signal reliability by accommodating volatility using levels or ATR-influenced boundaries. Incorporating multiple MA curves with differing periods can refine market entries by evaluating their relative positions and directional alignment. These insights can empower traders and developers to craft more robust algorithmic trading strategies.
π Read | Freelance | @mql5dev
#MQL5 #MT5 #Strategy
π Read | Freelance | @mql5dev
#MQL5 #MT5 #Strategy
β€70π8β1π¨βπ»1
Attention to server time changeover discrepancies is critical for precise trading operations. The FOREX session spans 120 hours from Sunday 17:00 to Friday 17:00 EST. Challenges arise due to differing time change dates between regions, notably the USA and EU. The USA shifts on the second Sunday in March and the first Sunday in November. Conversely, the EU transitions on the last Sunday of March and October, leading to temporary differences in the usual time offset between regions such as London, Frankfurt, and Cyprus. These discrepancies should reflect in the adjusted timestamps for Forex sessions' start and end times. Issues have been observed with the first session hour consistently showing as Monday at 00:00, instead of adjusting to 23:00 Sunday after US time changes. A script has been developed to verify and log any inconsistencies in broker time changes...
π Read | Signals | @mql5dev
#MQL5 #MT5 #Forex
π Read | Signals | @mql5dev
#MQL5 #MT5 #Forex
β€42π4π2π¨βπ»2πΎ2
Transform your MetaTrader 5 charts with dynamic background images for a more engaging trading experience. This advanced solution uses Object-Oriented Programming principles, allowing seamless integration with existing scripts or indicators. Store images in the FILES>WALLPAPERS directory for efficient access, opting for 24 or 32-bit BITMAP formats for compatibility and ease of use. The code supports on-the-fly switching of images, eliminating the need for recompilation. It integrates efficient resizing algorithms to maintain aspect ratios, ensuring visual clarity. Enhance your trading environment with customizable, motivational visuals while maintaining performance and data visualization integrity.
π Read | VPS | @mql5dev
#MQL5 #MT5 #Trading
π Read | VPS | @mql5dev
#MQL5 #MT5 #Trading
β€82π9π¨βπ»3π1π€©1π1
Time discrepancies during the transition between daylight saving time and standard time are prevalent in the FOREX market and can impact trading strategies. The issue arises because different regions switch times on different Sundays. In the US, this occurs on the second Sunday in March and the first Sunday in November. Whereas, in the EU, changes occur on the last Sundays of March and October. This mismatch creates a temporary alteration in the time difference, affecting the FOREX session's start and end times and impacting trade execution.
A FOREX session spans 120 hours, starting on Sunday at 5:00 pm EST and ending the following Friday. These shifts can cause confusion in trading hours, leading to a missed hour at the beginning of a week on some broker platforms. This inconsistency results in a missing trading hour, affecting tradersβ or advisorsβ respon...
π Read | CodeBase | @mql5dev
#MQL5 #MT5 #script
A FOREX session spans 120 hours, starting on Sunday at 5:00 pm EST and ending the following Friday. These shifts can cause confusion in trading hours, leading to a missed hour at the beginning of a week on some broker platforms. This inconsistency results in a missing trading hour, affecting tradersβ or advisorsβ respon...
π Read | CodeBase | @mql5dev
#MQL5 #MT5 #script
β€34π¨βπ»6π2β‘1π1
Are you interested in building a framework for statistical arbitrage trading suitable for retail traders? This concept focuses on creating a strategy that minimizes dependence on execution speed, making it achievable on a typical consumer setup. The approach involves using cointegration tests like Engle-Granger and Johansen to construct a coherent portfolio, focusing on sectors like semiconductors. By choosing stocks with high intra-group correlation, you ensure robustness against market shifts. Techniques like Johansen eigenvector weighting help maintain a stable relationship among assets, critical for market-neutral strategies. Implement these principles in your MetaTrader 5 algorithm to explore promising trading opportunities.
π Read | Calendar | @mql5dev
#MQL5 #MT5 #Trading
π Read | Calendar | @mql5dev
#MQL5 #MT5 #Trading
β€20π4π¨βπ»4
Position sizing remains a crucial factor in effective trading, significantly impacting a strategy's overall success and emotional toll on traders. In risk management, conventional wisdom advises risking 1%-2% of an account balance on individual trades, a guideline primarily aimed at preserving capital and minimizing emotional distress during losing streaks.
For traders, especially those handling smaller accounts, the temptation to exceed these recommendations for rapid growth is ever-present. Yet, the risk of substantial loss calls for a cautious approach. Monte Carlo simulations provide insight, quantifying how varying risk levels affect trading outcomes, drawdowns, and the probability of an account blowout.
In experimenting with different position sizing models, traders must remain aware of their emotional resilience and financial goals. A...
π Read | Forum | @mql5dev
#MQL5 #MT5 #RiskManagement
For traders, especially those handling smaller accounts, the temptation to exceed these recommendations for rapid growth is ever-present. Yet, the risk of substantial loss calls for a cautious approach. Monte Carlo simulations provide insight, quantifying how varying risk levels affect trading outcomes, drawdowns, and the probability of an account blowout.
In experimenting with different position sizing models, traders must remain aware of their emotional resilience and financial goals. A...
π Read | Forum | @mql5dev
#MQL5 #MT5 #RiskManagement
β€27π¨βπ»3π2π1
The MetaTrader5-Python package allows Python developers to create trading applications for MT5, offering data access and trade monitoring, independent from MQL5. However, it lacks a Strategy Tester for Python-developed trading bots. Addressing this, the article outlines the construction of a Python trading simulator akin to MT5's Strategy Tester. It involves tracking trades, validating trade criteria, and simulating market conditions. This simulator class manages positions, orders, and deals, vital for testing trading strategies with Python. Beyond simulating positions, features include order modification, profit/loss calculation, and real-time market price monitoring, emulating the decision-making traders encounter in a live market environment.
π Read | Freelance | @mql5dev
#MQL5 #MT5 #Trading
π Read | Freelance | @mql5dev
#MQL5 #MT5 #Trading
β€36π₯6π5π¨βπ»5β3π2
Implementing new features into existing systems often involves enhancing user interaction and improving usability. In Part 8, the focus was on making a multi-symbol dashboard in MQL5 more user-friendly by integrating draggable and minimizable features, along with interactive and hover-responsive buttons. These updates are crucial for providing flexibility in interface layout and quick access to dashboard functions.
Incorporating draggable functionality requires considering mouse event handling, which enables positioning adjustments without losing core real-time data tracking. Interactive button design for actions like close, toggle, and export, combined with hover effects, ensures improved user navigation and visual feedback during trading activities.
The upgraded structure demands organized naming for UI components and optimized event handling st...
π Read | Docs | @mql5dev
#MQL5 #MT5 #Dashboard
Incorporating draggable functionality requires considering mouse event handling, which enables positioning adjustments without losing core real-time data tracking. Interactive button design for actions like close, toggle, and export, combined with hover effects, ensures improved user navigation and visual feedback during trading activities.
The upgraded structure demands organized naming for UI components and optimized event handling st...
π Read | Docs | @mql5dev
#MQL5 #MT5 #Dashboard
β€46π¨βπ»6β‘3
Introducing a versatile multi-timeframe dashboard scanner for RSI and Stochastic analysis. This tool displays both the main and signal lines of the Stochastic indicator. With integrated input elements directly on the chart, users can conveniently specify the desired RSI period and Stochastic settings. By clicking the update option, users can refresh the indicators to reflect the values set on the chart input efficiently. This ensures accurate and customized technical analysis based on user preferences, providing a streamlined experience for monitoring market conditions across multiple timeframes. The self-contained input functionality simplifies adjustments without leaving the chart interface.
π Read | CodeBase | @mql5dev
#MQL4 #MT4 #RSI
π Read | CodeBase | @mql5dev
#MQL4 #MT4 #RSI
β€38πΎ7π6π¨βπ»5π€1
Dive into the latest advancements in MetaTrader 5 development with improvements in handling form object movement. The article introduces a refined approach for interacting with forms, creating a flag system to distinguish active forms on charts, enhancing mouse interaction capabilities. Discover how the addition of trade server error codes and properties like "StopLoss" and "TakeProfit" informs deal objects, boosting error handling and property management accuracy. Explore practical implementations of graphical object handling, focusing on precise mouse-event tracking and interaction. These updates streamline the user experience for developers, offering more robust and intuitive tools for algorithmic trading environments.
π Read | Docs | @mql5dev
#MQL5 #MT5 #AlgoTrading
π Read | Docs | @mql5dev
#MQL5 #MT5 #AlgoTrading
β€69π10π¨βπ»6β4