A script is available to generate a CSV file containing all MQL5 Trade Signals' properties. This CSV can be opened with spreadsheet software like Excel for sorting and analysis to facilitate copy trading decisions. The script covers MT5 signals and includes up to 1000 entries. For comprehensive data, ensure the Signals tab is open in the terminal, enabling data download. The generated file is located in the terminal's MQL5\Files folder. To access, navigate via MetaTrader's File menu to Open Data Folder. Note, code publications are accessible in the Public Projects tab of MetaEditor under FMIC.
#MQL5 #MT5 #script #CSVfile
Read more...
#MQL5 #MT5 #script #CSVfile
Read more...
π35β€15π¨βπ»3π1π1
RSI divergence is a key concept in technical analysis, highlighting potential market reversals when the RSI indicator deviates from price trends. Automation of this process can streamline analysis and reduce errors. An MQL5 Expert Advisor can identify both regular and hidden RSI divergences, visually signaling potential trading opportunities. This tool analyses price and RSI data, detects significant divergences, and logs signals for further assessment. Proper testing is crucial to leverage its accuracy. Adjust parameters to match trading strategies, while cross-checking signals for confirmation, enhancing overall market monitoring and strategy validation.
#MQL5 #MT5 #RSIDivergence #AlgoTrading
Read more...
#MQL5 #MT5 #RSIDivergence #AlgoTrading
Read more...
β€56π34π2π¨βπ»2π1π1
An advanced volume indicator offers a more detailed analysis by plotting volume changes tick by tick rather than aggregating into a single bar. Contrary to traditional volume histograms, this method enables a real-time examination of volume pressure. Enhanced observation is possible as increased tick activity results in a larger, expanding histogram, highlighting any significant volume shifts instantaneously.
This tool provides insights into sudden volume surges, supports microstructural market analysis, and clarifies how volume accumulates during the formation of a bar. Furthermore, it assists in identifying market absorption or exhaustion by correlating volume spikes with price movement. This nuanced approach is valuable for traders seeking a comprehensive understanding of market volume dynamics.
#MQL5 #MT5 #Indicator #Volume
Read more...
This tool provides insights into sudden volume surges, supports microstructural market analysis, and clarifies how volume accumulates during the formation of a bar. Furthermore, it assists in identifying market absorption or exhaustion by correlating volume spikes with price movement. This nuanced approach is valuable for traders seeking a comprehensive understanding of market volume dynamics.
#MQL5 #MT5 #Indicator #Volume
Read more...
π31β€19π3π¨βπ»3
Explore the intricacies of implementing a robust Grid Trading strategy in MetaTrader 5 using MQL5. Part 7 dives into crafting an algorithm that combines fixed price interval trading with dynamic lot scaling. This strategy leverages market fluctuations, incorporating moving averages, to optimize risk and enhance profitability without relying on precise trend predictions. We'll dissect the blueprint of the system, from setting up grid structures and execution rules to dynamic lot management and trade closure mechanisms. This detailed approach ensures a responsive trading setup, maintaining optimal risk-to-reward. Gain insights for elevating your algorithmic trading techniques efficiently and effectively.
#MQL5 #MT5 #GridTrading #EA
Read more...
#MQL5 #MT5 #GridTrading #EA
Read more...
π29β€8π¨βπ»6π1
Explore the Animal Migration Optimization (AMO) algorithm, a cutting-edge approach inspired by the natural migration patterns of animals like birds and reindeer. Developed to solve complex optimization problems, the AMO algorithm emulates three primary behaviors: avoiding collisions, moving cohesively, and maintaining optimal spacing. It balances exploration and exploitation in search spaces by implementing migration and population renewal stages. Through these processes, the algorithm updates positions based on neighborhood topologies and replaces individuals based on fitness. Understand how this algorithm is implemented in MetaTrader 5 to enhance trading strategies and optimize algorithmic trading processes.
#MQL5 #MT5 #AMO #Optimization
Read more...
#MQL5 #MT5 #AMO #Optimization
Read more...
π30β€25π1π¨βπ»1
Explore the intricacies of data management in MQL5 programs, focusing on arrays and their pivotal role in algorithmic trading. Arrays, both static and dynamic, enable efficient data organization and manipulation, essential for handling historical market data such as prices and volumes. Learn the distinctions between one-dimensional and multidimensional arrays, understand the vital functions like ArrayResize and ArraySize, and discover how to manage time series data for optimizing trading algorithms. This guide provides practical insights into structuring data for effective program execution, crucial for developers aiming to enhance their automated trading strategies on MetaTrader 5.
#MQL5 #MT5 #Algorithm #Arrays
Read more...
#MQL5 #MT5 #Algorithm #Arrays
Read more...
β€36π29π2π¨βπ»1
Understanding the number of bars on a chart is crucial for evaluating historical data efficiently. A script using the built-in iBars function provides an effective solution for this task. The maximum number of bars visible on your chart is subject to constraints set in Tools/Options/Charts, as well as data limits uploaded by you or from your broker. Once the script is activated on the chart, results are displayed in the experts tab and at the top left of the chart window, facilitated by a comment line in the code. This approach enables quick insight into chart data availability for informed decision-making.
π Read | VPS | Share
#MQL5 #MT5 #script
π Read | VPS | Share
#MQL5 #MT5 #script
π53β€39β‘7β7π3π2π¨βπ»1
The trading platforms MetaTrader 4 (MT4) and MetaTrader 5 (MT5) are designed to facilitate online trading in financial markets. MT4 is well-regarded for its user-friendly interface, primarily accommodating Forex traders with its robust charting capabilities and Expert Advisors support. It remains popular due to its simplicity and ease of use.
MT5 builds on MT4's functionality with additional features, including an economic calendar, more sophisticated charting tools, and support for various asset classes beyond Forex, such as stocks and commodities. It also offers a refined user interface and an upgraded environment for strategy testing.
Both platforms have their distinct advantages, depending on the trader's specific needs and the diversity of assets they wish to manage.
π Read | Signals | Share!
#MQL4 #MT4 #AlgoTrading
MT5 builds on MT4's functionality with additional features, including an economic calendar, more sophisticated charting tools, and support for various asset classes beyond Forex, such as stocks and commodities. It also offers a refined user interface and an upgraded environment for strategy testing.
Both platforms have their distinct advantages, depending on the trader's specific needs and the diversity of assets they wish to manage.
π Read | Signals | Share!
#MQL4 #MT4 #AlgoTrading
β€34π30β‘2π2π1π1π¨βπ»1
The TEMPO method introduces an innovative approach to time series forecasting using pre-trained language models like GPT-2. It leverages the model's contextual understanding gained from language data to predict time sequences, transforming text into numerical codes for processing. The model's architecture is a single-layer design that simplifies implementation while maintaining robustness. The method segments time series into trend, seasonality, and residuals, converting them into embeddings suitable for language models. This decomposition happens independently for each univariate series without batch normalization, ensuring data comparability and reducing computational overhead. Instead of using a pre-trained model, a cross-attention block is trained with the main model.
π Read | CodeBase | Share!
#MQL5 #MT5 #AI
π Read | CodeBase | Share!
#MQL5 #MT5 #AI
π49β€24β5π¨βπ»3π3π1
The Expert Advisor discussed employs a straightforward trading strategy based on the DeMarker indicator. It opens 'BUY' positions when the indicator falls below the DeM: Level DOWN and 'SELL' positions when it exceeds DeM: Level UP. The default setting allows multiple open positions, disregarding current market stance. Transactions commence at each new bar without analyzing if the opening price is optimal.
Notably, the EA does not incorporate Stop Loss, Take Profit, or Trailing features; trades close only upon receiving an opposing signal and ensuring they generate a positive profit margin post-closure.
The trading setup includes selecting a working timeframe, controlling position sizes through fixed or percentage-based money management, and additional features like limiting to one market position or reversing signals. Log printing is available for compre...
π Read | AppStore | Share!
#MQL5 #MT5 #EA
Notably, the EA does not incorporate Stop Loss, Take Profit, or Trailing features; trades close only upon receiving an opposing signal and ensuring they generate a positive profit margin post-closure.
The trading setup includes selecting a working timeframe, controlling position sizes through fixed or percentage-based money management, and additional features like limiting to one market position or reversing signals. Log printing is available for compre...
π Read | AppStore | Share!
#MQL5 #MT5 #EA
π40β€22π¨βπ»5π3β1
Using a refined trading strategy on MetaTrader 5, we can effectively reduce the frequency of being stopped out despite predicting market trends accurately. The core approach involves implementing a mean-reverting strategy combined with support and resistance levels. Rather than following conventional advice like widening stop lossesβwhich increases inconsistent risk exposureβwe maintain fixed stop loss sizes for clarity and consistency. By employing neural network predictions of moving averages to assess potential price movements, our strategy filters potential losses. This method embraces a data-driven, systematic approach over subjective judgment, enhancing profitability and risk management in algorithmic trading.
π Read | Quotes | Share!
#MQL5 #MT5 #Trading
π Read | Quotes | Share!
#MQL5 #MT5 #Trading
π22β€9π₯5β2π¨βπ»2π1
Transformer-based architectures are revolutionizing multimodal time series forecasting with their ability to handle channel independence and channel mixing. The fusion of these approaches allows models to suppress noise and mitigate distribution drift while capturing high information capacity and channel specificity. The InjectTST method stands out by injecting global information into independent channels without explicit dependency modeling. This approach enhances forecasting accuracy by balancing noise suppression with channel-specific insights, utilizing a hybrid strategy of channel independence and mixing. Through advanced parallel processing and Transformer encoder use, InjectTST offers a robust solution for time series analysis, promising enhanced performance for traders and developers alike.
π Read | AlgoBook | Share!
#MQL5 #MT5 #Algorithm
π Read | AlgoBook | Share!
#MQL5 #MT5 #Algorithm
π22β€4π₯4β‘2π2π¨βπ»1
In Part 8 of our series, attention shifts to the Butterfly harmonic pattern in MetaQuotes Language 5 (MQL5). This reversal setup uses Fibonacci ratios to identify market turning points, providing clear entry and exit signals. Developing an Expert Advisor (EA) that automates the detection and execution of these trades can enhance strategy effectiveness.
The Butterfly pattern consists of five key points: X, A, B, C, and D, forming specific bearish and bullish sequences. The EA identifies these patterns by calculating pivot points and employing Fibonacci retracements for precision.
Implementation involves setting global variables, leveraging the "Trade\Trade.mqh" library, and defining structures for trading execution. Visualization functions enhance pattern recognition on charts. OnTick event handling ensures efficient analysis of real-time data witho...
π Read | CodeBase | Share!
#MQL5 #MT5 #Strategy
The Butterfly pattern consists of five key points: X, A, B, C, and D, forming specific bearish and bullish sequences. The EA identifies these patterns by calculating pivot points and employing Fibonacci retracements for precision.
Implementation involves setting global variables, leveraging the "Trade\Trade.mqh" library, and defining structures for trading execution. Visualization functions enhance pattern recognition on charts. OnTick event handling ensures efficient analysis of real-time data witho...
π Read | CodeBase | Share!
#MQL5 #MT5 #Strategy
π27β€9π¨βπ»3π2β‘1π1π1
Reinforcement learning (RL) enhances the capability of traditional machine learning by effectively managing complex models when historical data is limited. Neural networks, while powerful, face challenges like overfitting and poor generalization. RL offers a solution through techniques like Prioritized Experience Replay (PER), which focuses on high-priority samples, improving efficiency, and learning speed. Key RL components include designing effective reward functions and selecting suitable algorithms, balancing between value-based and policy-based methods, like Q-Learning or PPO. Implementing PER requires additional complexity but provides more targeted learning. Both Proportional and Rank-based Prioritization each have specific advantages and challenges, affecting sampling distribution and stability.
π Read | AppStore | Share!
#MQL5 #MT5 #RL
π Read | AppStore | Share!
#MQL5 #MT5 #RL
π30β12β€9π1π¨βπ»1
This script efficiently gathers closing prices, attaching them to respective dates and times, and subsequently stores the information in a CSV file within the MQL5/Files directory. This approach allows easy external access for further analysis. The script utilizes fundamental functions, leaving room for enhancements once familiarity with advanced functions like CopyTime or CopyRates is established. While these built-in functions might streamline data retrieval, the current script remains effective for basic data collection needs. The choice between iClose, iTime, and other functions can depend on the specific requirements of your project, as performance and complexity trade-offs need consideration.
π Read | Quotes | Share!
#MQL5 #MT5 #script
π Read | Quotes | Share!
#MQL5 #MT5 #script
π20β€8π4β2π¨βπ»2
In Part 19 of our series, we implemented significant code changes to enable a new order system in MetaTrader 5. This initiative aims to provide traders with visual and easily understandable order placement, negating the need for detailed knowledge of tick values and such particulars.
Planning involved designing custom indicators with MetaTrader 5's resources, demanding a robust understanding of MQL5. Our goal is to create objects that communicate seamlessly and integrate effectively with each order system.
The implementation phase includes developing several classes such as C_Object_Base, C_Object_BackGround, and C_Object_TradeLine, each handling specific functions to maintain system integrity. Initial coding focuses on structuring these classes to meet the complex demands of the new order system.
Moving forward, modification of the C_ObjectsTr...
π Read | AppStore | Share!
#MQL5 #MT5 #ExpertAdvisor
Planning involved designing custom indicators with MetaTrader 5's resources, demanding a robust understanding of MQL5. Our goal is to create objects that communicate seamlessly and integrate effectively with each order system.
The implementation phase includes developing several classes such as C_Object_Base, C_Object_BackGround, and C_Object_TradeLine, each handling specific functions to maintain system integrity. Initial coding focuses on structuring these classes to meet the complex demands of the new order system.
Moving forward, modification of the C_ObjectsTr...
π Read | AppStore | Share!
#MQL5 #MT5 #ExpertAdvisor
π57β€21πΎ9π€―3π3π¨βπ»3
The Engulfing Pattern Plus One indicator focuses on a specific chart pattern where the current bar completely engulfs the two preceding bars. This observation is based on the 'High' and 'Low' price data. The pattern is visually represented using 'Arrow' objects to indicate occurrences on the chart. Additionally, two rectangles can be manually drawn for users to visualize the pattern and comprehend its formation more clearly. This enhanced visualization aids in technical analysis by showing how the pattern operates, allowing for more informed trading decisions. The Engulfing Pattern Plus One provides a precise view for those looking to analyze market movements and potential reversals.
π Read | Signals | Share!
#MQL5 #MT5 #Indicator
π Read | Signals | Share!
#MQL5 #MT5 #Indicator
β€70π39π₯9β8π¨βπ»7π2
The process exports a trading account's transaction history to a file within your terminal directory at MQL4/Files or to a shared location at Common/Files. The file name can be autonomously created or specified via script parameters. This file assists in replicating transactions on a different server with the Simple History Receiver Expert Advisor or its open-source variant.
Parameters include:
- File Name: Determine a specific name or allow automatic generation.
- Data Separators: Choose between commas or semicolons for CSV data separation and decide on a dot or comma for the decimal point.
- Common Folder Storage: Set to True to save the file in the Common/Files folder instead of the local MQL4/Files folder.
Understanding and setting these parameters correctly streamlines data management and enhances efficiency in transaction simulations.
π Read | Freelance | Share!
#MQL4 #MT4 #Script
Parameters include:
- File Name: Determine a specific name or allow automatic generation.
- Data Separators: Choose between commas or semicolons for CSV data separation and decide on a dot or comma for the decimal point.
- Common Folder Storage: Set to True to save the file in the Common/Files folder instead of the local MQL4/Files folder.
Understanding and setting these parameters correctly streamlines data management and enhances efficiency in transaction simulations.
π Read | Freelance | Share!
#MQL4 #MT4 #Script
π28β€12π3π¨βπ»3
Explore the fascinating Anarchic Society Optimization (ASO) algorithm, inspired by anarchic societal structures without hierarchy. ASO applies unique optimization strategies, diverging from traditional swarm intelligence techniques like PSO and ACO. It balances various movement strategies, guided by indices like Fickleness, External, and Internal Irregularity, to enhance solution space exploration and avoid local optima. With adaptive parameters mimicking anarchic behavior, ASO offers MetaTrader 5 developers and algorithmic traders a robust tool for complex optimization tasks across both continuous and discrete problems, enhancing decision-making through innovative, autonomous procedural design.
π Read | Calendar | Share!
#MQL5 #MT5 #Algorithm
π Read | Calendar | Share!
#MQL5 #MT5 #Algorithm
π17β€15π¨βπ»2π1
The Engulfing Pattern Plus One indicator focuses on a specific chart pattern where the current bar completely engulfs the two preceding bars. This observation is based on the 'High' and 'Low' price data. The pattern is visually represented using 'Arrow' objects to indicate occurrences on the chart. Additionally, two rectangles can be manually drawn for users to visualize the pattern and comprehend its formation more clearly. This enhanced visualization aids in technical analysis by showing how the pattern operates, allowing for more informed trading decisions. The Engulfing Pattern Plus One provides a precise view for those looking to analyze market movements and potential reversals.
π Read | Docs | Share!
#MQL5 #MT5 #Indicator
π Read | Docs | Share!
#MQL5 #MT5 #Indicator
π36β€15β2π¨βπ»2π1
The latest advancements in developing a trading Expert Advisor involve crucial updates to the order system for accommodating both NETTING and HEDGING accounts, reflecting their operational differences. For NETTING, an average price is generated with a single open position, while HEDGING allows multiple positions with individual limits for simultaneous buying and selling.
The goal is to make the order system visual, eliminating message boxes for position analysis. This visual approach enables real-time insight into profit and loss limits of OCO positions without extra calculations. The strategy involves leveraging MQL5 to model data effectively, supporting dynamic objects and facilitating better chart management without restricting the number of objects.
π Read | CodeBase | Share!
#MQL5 #MT5 #AlgoTrading
The goal is to make the order system visual, eliminating message boxes for position analysis. This visual approach enables real-time insight into profit and loss limits of OCO positions without extra calculations. The strategy involves leveraging MQL5 to model data effectively, supporting dynamic objects and facilitating better chart management without restricting the number of objects.
π Read | CodeBase | Share!
#MQL5 #MT5 #AlgoTrading
β€36π28π₯2π¨βπ»2π1π1