MQL5 Algo Trading @mql5dev Channel on Telegram

MQL5 Algo Trading

@mql5dev


The best publications of the largest community of algotraders.

Subscribe to stay up-to-date with modern technologies and trading programs development.

MQL5 Algo Trading (English)

Are you interested in algorithmic trading and looking to stay ahead of the game? Look no further than the MQL5 Algo Trading Telegram channel! With the username @mql5dev, this channel is home to the best publications from the largest community of algotraders.

MQL5 Algo Trading is your go-to source for staying up-to-date with modern technologies and trading programs development. Whether you are a seasoned trader or just starting out, this channel offers valuable insights, tips, and resources to help you succeed in the fast-paced world of algorithmic trading.

Who is MQL5 Algo Trading? They are a community of passionate algotraders who come together to share their knowledge and expertise in the field. What is MQL5 Algo Trading? It is a platform where you can access the latest information on algorithmic trading, network with like-minded individuals, and enhance your trading skills.

Don't miss out on the opportunity to join this dynamic community of algotraders. Subscribe to the MQL5 Algo Trading channel today and take your trading to the next level!

MQL5 Algo Trading

16 Nov, 07:00


Returning to test automation, focus shifts to the second stage of optimizing trading strategies. The first stage involved optimizing parameters for individual strategy instances, with results stored in a database. Next, a selection of strategy groups is undertaken to improve trading metrics like reduced drawdown and increased balance curve linearity.

Implementations involve manual and automated selection from database-stored parameters, utilizing genetic optimization for grouping strategies. Modifications to the CDatabase class are necessary for managing multiple databases, enhancing flexibility in switching between primary and task databases for storing results.

The development of EA for the second optimization stage is discussed, utilizing database management to extract relevant data and create efficient test tasks. The EA setup relies on a structured ap...
#MQL5 #MT5 #EA #Algorithm

Read more...

MQL5 Algo Trading

16 Nov, 05:00


Developers focusing on technical indicators may find interest in a tool for marking extremums with lines. Key features include setting periods to define highest highs and lowest lows, using both OHLC data and bid/ask prices for a comprehensive analysis. It incorporates a lookback function to restrict processing to a selected number of bars, optimizing performance. A unique capability is its ability to hide line segments during break of structure, ensuring visibility only on real support and resistance areas. This feature is adjustable, allowing preference for displaying lines on extreme prices and indicating trends. Note: An initial upload contained a logic mistake, but has been corrected with a revised version now available.
#MQL5 #MT5 #Indicator #Strategy

Read more...

MQL5 Algo Trading

15 Nov, 07:00


Dive into the latest steps in building the Connexus library for MetaTrader 5! This installment reveals the CHttpClient class, designed to streamline HTTP requests using the WebRequest function. By transforming CHttpRequest objects into HTTP calls, it simplifies complex web interactions, returning CHttpResponse with comprehensive data. To avoid tight coupling issues, the library introduces interfaces and dependency injection, enhancing maintainability and flexibility. This approach allows easy testing with mocks, simulating real scenarios without network dependence. Connexus is evolving into a robust, adaptable tool for developers interfacing MQL5 with external APIs efficiently.
#MQL5 #MT5 #HttpLibrary #Algorithm

Read more...

MQL5 Algo Trading

15 Nov, 05:00


An indicator has been developed that places arrows on each bar to signal trend strength and identifies "PEAK" or "EXTREM peak" points on a chart, based on Williams %R (WPR) and Relative Strength Index (RSI) signals. It calculates by averaging the sum of WPR(4) + 100 and RSI(2), with values below or above 50 indicating trend strength.

Notably, this indicator updates signals only on the last bar and is compatible across all timeframes and symbols. Additionally, it integrates with four other chart indicators: Bollinger Bands (9,2,0) for volatility, a Clock for timing, FiboPiv_v2 for pivot points, and PL4 CandleTime for countdowns to new bars. Users should exercise caution as it is an introductory release.
#MQL4 #MT4 #Indicator #Trading

Read more...

MQL5 Algo Trading

14 Nov, 07:00


process is now complete and ready for testing. This section outlines the procedure for preparing neural network models using Transfer Learning principles combined with previously established tools. Two variational autoencoder models are used as donors to create new models, integrating existing layers with additional decision-making layers. The focus is on evaluating models with consistent architecture while utilizing a universal Expert Advisor (EA) template for testing. Testing involves training models in synchronized environments, ensuring compatible training datasets and historical data, crucial for accurate Transfer Learning. This structured approach aims for efficiency and comparability in model performance evaluations.
#MQL5 #MT5 #TransferLearning #NeuralNet

Read more...

MQL5 Algo Trading

14 Nov, 05:00


The DeMarker Pending 2 version update has been finalized. In this update, the handling of 'SELL' and 'BUY' positions has been optimized for enhanced trading operations. The new protocol dictates that upon initiating a 'SELL' position, all existing 'BUY' positions will be closed immediately. Conversely, when starting a 'BUY' position, all current 'SELL' positions will be closed promptly. This approach aims to streamline the strategy, ensuring that conflicting positions are not held simultaneously, which can reduce risk and improve the efficiency of trading operations. This update is critical for maintaining a balanced portfolio and better market responsiveness.
#MQL5 #MT5 #DeMarker #AlgoTrading

Read more...

MQL5 Algo Trading

13 Nov, 09:00


The Alligator indicator, developed by Bill Williams, helps traders identify market trends using three smoothed moving averages (SMAs), referred to as the Jaws, Teeth, and Lips. These SMAs are set at different periods and shifted forward to identify market phases, categorizing them as trending, consolidating, or transitioning. The indicator suggests that markets only trend strongly about 15-30% of the time, with the rest being directionless. The "waking up" phase occurs when the SMAs diverge, signaling trend potential. Important patterns like Alligator Awakening and Eating use these SMAs to signal potential market shifts and trends.
#MQL5 #MT5 #Indicator #Strategy

Read more...

MQL5 Algo Trading

13 Nov, 07:00


Discover how MetaTrader 5's limitations have driven innovation in algorithmic trading with a newly-designed, multi-functional Admin Panel. This enhanced interface allows for seamless management of orders and positions while incorporating robust market analysis, data display, and risk management features directly on a single chart. By restructuring the Admin Panel into distinct sub-panels โ€“ Communications and Trade Management โ€“ we streamline user experience without switching charts. This reimagined panel utilizes modified MQL5 libraries to avoid compatibility issues, ensuring efficient navigation and execution. Stay tuned as we delve into the Trade Management Panel for enhanced trading operations.
#MQL5 #MT5 #MT5 #Algorithm

Read more...

MQL5 Algo Trading

13 Nov, 05:00


The indicator visualizes the status of two indicators, MACD and Stochastic, as lines of squares, providing a clear comparison of their signal line positions. It helps in determining the relationship between these two indicators within the main chart window. The MACD line, often used for trend assessment, and the Stochastic line, which identifies momentum, are shown alongside each other. Being represented as squares, these lines offer quick visual confirmation of current market conditions, aiding in more informed decision-making. Users can easily interpret the market status with this combined indicator visualization, simplifying analysis in trading environments.
#MQL5 #MT5 #Indicator #MACD

Read more...

MQL5 Algo Trading

12 Nov, 11:00


The Chart Projector tool is developed to streamline market analysis for price action traders by overlaying the previous day's chart on the current one. This method provides traders an immediate context of market conditions by visualizing price movements and key levels, supporting more informed decision-making. The overlay helps traders identify trends and simplifies trade planning, focusing on actual price actions instead of relying on traditional indicators.

Code implementation uses MetaEditor, where a script is developed to create the ghost overlay effect. The script includes several functions such as DrawGhostCandles for overlaying prices and DrawHorizontalLine for marking key levels. Outcomes show an enhanced market understanding through customizable visual representation, aiding in identifying trends and risk management.

In conclusion, t...
#MQL5 #MT5 #ChartProjector #AlgoTrading

Read more...

MQL5 Algo Trading

12 Nov, 09:00


Part 2 of our MetaTrader 5 series advances MQL5 Economic Calendar integration by crafting a sleek News Dashboard. Designed for real-time market insights, this interface aids in decision-making with effortless access to vital economic data. The process involves structuring a user-friendly dashboard, emphasizing readability with contrast for quick impact recognition. Key functionalities leverage MQL5's object creation capabilities to set up elements like labels and buttons efficiently. This modular approach enhances UI setup, streamlines code, and optimizes event monitoring, offering a pragmatic tool for algorithmic traders to manage and react to economic events as they unfold.
#MQL5 #MT5 #Trading #Dashboard

Read more...

MQL5 Algo Trading

12 Nov, 07:00


An innovative reimagining of moving average cross-over strategies in algorithmic trading is presented, utilizing MetaTrader 5. By structuring a strategy using two Exponential Moving Averages, a Stochastic oscillator, and an Average True Range, a back-test revealed historical limitations in traditional approaches. Transitioning to AI-enhanced models transformed these strategies, leveraging dummy encoding to redefine state changes within indicators. This novel application allowed for a significant improvement in trading metrics, demonstrating enhanced profitability, a higher Sharpe ratio, and successful trades 55% of the time. This insightful exploration encourages developers to optimize traditional and new strategies with innovative AI techniques.
#MQL5 #MT5 #AITrading #Strategy

Read more...

MQL5 Algo Trading

12 Nov, 05:00


The described indicator aims to evaluate autocorrelation in price series. When values exceed 0, this suggests autocorrelation in the returns, implying a consistent direction in movement. This could signal the start of a trend or a potential reversal. Conversely, values below 0 suggest uncertainty, potentially indicating the conclusion of trends or reversals. Values near 0 suggest the price behaves like a random walk, offering little actionable insight. This indicator should complement other tools, as it doesn't provide explicit trade direction. Use it to enhance analysis rather than relying on it solely for trading decisions.
#MQL5 #MT5 #Indicator #AlgoTrading

Read more...

MQL5 Algo Trading

11 Nov, 07:00


Explore the innovative expansion of the TabControl WinForms object with enhanced scrolling functionality for MetaTrader 5 developers. The article delves into refining the object structure to mimic MS Visual Studio behaviors regarding tab header arrangement. Focus on optimizing user interactionsโ€”header shifts when selected, and strategic button placements for improved navigation. Enhanced library management segments auxiliary controls into distinct folders, streamlining code structure. By implementing precise event-driven models, efficient message handling across multiple classes is ensured, allowing seamless control interactions. These developments not only enhance functionality but also set a foundation for future comprehensive scroll control implementations.
#MQL5 #MT5 #WinForms #UIUX

Read more...

MQL5 Algo Trading

11 Nov, 05:00


A new function is available for handling various statistical computations: slope, variance, standard deviation, and mean. Additionally, it offers a "Fake Graphs" feature, allowing you to plot actual data points from an indicator within MT4. This enhancement is especially useful for developers coding and testing Expert Advisors, as MT4's strategy tester lacks the capability to display real-time graphs from indicators. By populating an array with the desired values, you can utilize the "Fake Graph" function to visualize data directly in the main window, enhancing the accuracy of your testing environment. Note an update from 6th August 2022, which fixed a cycle bug in the graph generation process.
#MQL4 #MT4 #Indicator #Script

Read more...

MQL5 Algo Trading

10 Nov, 07:00


Explore the latest updates to the MetaTrader 5 library with enhanced header scrolling functionality. This advancement allows for smooth left-right and up-down navigation using event-driven models. By meticulously organizing graphical elements and cleverly utilizing flags, visibility is finely controlled, ensuring a seamless user experience for developers. The introduction of a display flag property allows for nuanced control over object visibility, even for complex structures. This development supports not only current scrolling needs but also future systems like drop-downs and other interactive elements. These enhancements offer traders and developers refined tools for better interface interaction and event management in algorithmic trading applications.
#MQL5 #MT5 #Algorithm #LibraryDev

Read more...

MQL5 Algo Trading

10 Nov, 05:00


Indicator A provides a dynamic visual representation on the current chart by plotting an area between the 'Open', 'High', 'Low', and 'Close' prices. As market data updates throughout the day, this dynamic area is automatically recalculated and redrawn. Each new price data point triggers the rebuild of the dynamic region, ensuring that traders are working with the most current market analysis. This method allows for a continuous reflection of price fluctuations within the trading period. The visual model can assist traders in identifying potential trading signals and market trends in real time without manual recalibration.
#MQL5 #MT5 #Indicator #Strategy

Read more...

MQL5 Algo Trading

09 Nov, 11:00


Discover how ATFNet leverages the dual analysis power of time and frequency domains for improved time series forecasting. By integrating complex number operations and advanced neural network architectures, ATFNet addresses challenges in spectral prediction and local-global dependencies. The method includes an extended DFT for better frequency alignment and a unique energy weighting mechanism to optimize predictions. Transformative features like Complex Spectral Attention allow the collection of diverse frequency combinations, while specialized blocks handle local time dependencies and global frequency characteristics independently. Trials on real datasets show ATFNet surpasses many existing models, offering significant advancements for traders and developers in algorithmic trading.
#MQL5 #MT5 #ATFNet #TimeSeries

Read more...

MQL5 Algo Trading

09 Nov, 09:00


Explore the fusion of quantum-inspired concepts with trading in this in-depth article. Begin with fundamental quantum computing principles and progress through a step-by-step guide to implementing these in an MQL5 trading system. While exploiting the unique strengths of quantum phenomena, such as multiple states and entanglement, these models enhance market behavior prediction. Python's Qiskit simulates quantum constructs, while MQL5 adapts them for real-time application, providing practical trading solutions. This informative piece offers traders and developers an edge by integrating quantum insights within traditional architectures, balancing precision with execution efficiency for optimized algorithmic trading.
#MQL5 #MT5 #QuantumComputing #AITrading

Read more...

MQL5 Algo Trading

09 Nov, 07:00


Machine learning models require precise handling of data transformation to enhance performance. Sensitivity to data input relationships emphasizes the need for feature creation from existing datasets. Adjustments in transformation or feature engineering can significantly alter error levels. Each model responds differently to these modifications, demanding specific transformation decisions based on the architecture.

In trading strategies, calculating price change angles aids in trend confirmation. However, traditional trend lines remain subjective, and slopes calculated from price differences face challenges due to market closure periods. An alternative slope calculation, using opening and closing prices, offers a different approach but is sensitive to Doji candles, requiring further refinement.

Exploratory data analysis, examining market data, challenges th...
#MQL5 #MT5 #ML #Strategy

Read more...

MQL5 Algo Trading

09 Nov, 05:00


The code provides a basic framework where variable names are descriptive for ease of understanding. It includes functionality for toggling the Hull Method on or off. Additionally, raw values for speed and acceleration can be graphed. For experimentation, values can be plotted as absolute numbers to create a usable oscillator. It is suggested to use the square of the period (period*period) for the AVG_PERIOD to improve functionality. Note: A bug in the calculation cycles was corrected on September 6, 2022. While optimisation may be necessary, the structure and variable naming contribute to readability and enhance maintenance. Ensure that all implementations are validated for accuracy.
#MQL4 #MT4 #AlgoTrading #Oscillator

Read more...

MQL5 Algo Trading

08 Nov, 11:00


The Ichimoku Kinko Hyo, often known as the Ichimoku Cloud, is a robust technical analysis system offering insights into market trends, support and resistance levels, and momentum. Originating in Japan, it provides a holistic view using five lines: Tenkan-sen, Kijun-sen, Senkou Span A, Senkou Span B, and Chikou Span, each capturing distinct price behaviors.

Key patterns include the Tenkan-Sen and Kijun-Sen crossover, Kumo breakout, and Chikou span confirmation. While useful, each pattern has limitations such as susceptibility to market noise and delayed signals in volatile conditions. Optimal use involves understanding broader market contexts and Ichimoku elements, ensuring comprehensive analysis.
#MQL5 #MT5 #Ichimoku #AlgoTrading

Read more...

MQL5 Algo Trading

08 Nov, 09:00


Stepwise feature selection has been a traditional method in machine learning for optimizing variable subsets, but it often struggles with overfitting and interaction captures. This article introduces an advanced algorithm implemented in MQL5 that addresses these issues by exploring multiple promising feature combinations, using cross-validation to prevent overfitting, and integrating with various models. This method efficiently identifies powerful feature interactions without exhaustive searches, offering enhanced reliability for traders leveraging algorithmic strategies. It improves model robustness by focusing on statistical significance and adaptability, streamlining the feature selection process for more accurate predictions in complex data scenarios.
#MQL5 #MT5 #AI #ML

Read more...

MQL5 Algo Trading

08 Nov, 07:00


Effective portfolio risk management is crucial in today's complex investment environment. Analyzing asset allocations and managing risk becomes even more challenging as markets expand. A statistical approach, such as Principal Components Analysis (PCA), can be utilized to manage a portfolio's variance effectively.

PCA can assist in handling investments of volatile digital assets like cryptocurrencies. By applying PCA to cryptocurrency returns, it's possible to determine optimal trading strategies with varying risk levels. This method helps traders decide on asset positions and capital allocations, potentially leading to more informed decision-making.

Implementing these strategies in trading applications like MetaTrader 5 enhances risk management. The use of tools like PCA effectively supports trading application development, fostering smarter trad...
#MQL5 #MT5 #Portfolio #AlgoTrading

Read more...

MQL5 Algo Trading

08 Nov, 05:00


The LazyBear Squeeze Momentum Indicator, originally available on TradingView, is now converted to MQL4, allowing users to integrate this tool into their MetaTrader 4 platform. This technical indicator assists traders in identifying periods of squeezed volatility and potential price momentum shifts. The conversion retains the core logic of the original script, providing users with familiar analytical capabilities within a different trading environment. Deployment on MT4 now enables traders to use this volatility indicator alongside other dedicated forex tools, enhancing market analysis and decision-making processes within their custom trading strategies.
#MQL4 #MT4 #Indicator #AlgoTrading

Read more...

MQL5 Algo Trading

07 Nov, 11:00


Developing a news-trading expert in MetaTrader 5 involves implementing stop orders to capitalize on market movements post-news events. The strategy focuses on managing slippage and ensuring trades open only when conditions are optimal. Stop orders are employed to capture breakouts by triggering trades at predefined price levels, minimizing the risk of market whipsaws. Classes like CAccountProperties and CSessions manage account limits and trading session timings, respectively. Efficient risk management further automates decision-making and safeguards against volatility, while careful session tracking avoids the pitfalls of overnight trading. These features offer traders and developers robust mechanisms for automating and optimizing news-related trading strategies.
#MQL5 #MT5 #Strategy #AlgoTrading

Read more...

MQL5 Algo Trading

07 Nov, 09:00


To address challenges in analyzing trading history within MetaTrader 5, a mechanism is presented for efficient visualization of closed positions. This tackles the cluttered chart issue caused by numerous position labels. The aim is to streamline trading history analysis, enabling traders to focus on individual deals with enhanced understanding.

Functions will be developed to:
- Navigate closed positions using keyboard keys.
- Enhance tooltips with detailed deal information.
- Ensure key chart elements remain visible.

Understanding the creation of a position involves tracking trade orders and executed deals within netting or hedging account types. The historical position management requires constructing a list of closed positions from existing deals using a structured approach involving deal, position, and historical management classes.

The "Deal...
#MQL5 #MT5 #TradingTech #MetaTrader

Read more...

MQL5 Algo Trading

07 Nov, 07:00


Discover how the Connexus library streamlines HTTP requests in MetaTrader 5 with its innovative use of the Facade design pattern. The new CHttpRequest class acts as a simplified interface, integrating URL, header, body, and method components for seamless request creation. This approach not only simplifies code readability but also enhances maintainability and reduces coupling in complex systems. Additionally, CHttpResponse complements this by efficiently managing server response data. These enhancements provide MetaTrader 5 developers with a powerful toolset for algorithmic trading, offering clarity and ease in handling HTTP communications. Stay ahead in trading tech with Connexus' structured, accessible solutions.
#MQL5 #MT5 #HttpRequest #DesignPattern

Read more...

MQL5 Algo Trading

07 Nov, 05:00


The Hammer Indicator analyzes candlestick formations on MetaTrader 5 charts, specifically focusing on hammers and inverted hammers, which are indicators of potential reversal points. This indicator evaluates candlestick structure based on three customizable parameters: MaxRatioShortWick, MinRatioLongWick, and MinCandleSize. These parameters help in identifying patterns by setting thresholds for the size and ratios of wicks to the candlestick body, filtering out less significant formations.

Hammers, featuring a small body and long lower wick, point to buying pressure after a downtrend, while inverted hammers, with a long upper wick, suggest reversals after an uptrend. Arrows indicate identified patterns on the chart, signaling possible price changes. This tool aids traders in spotting reversals and complements various strategies by providing visual cue...
#MQL5 #MT5 #Indicator #Strategy

Read more...

MQL5 Algo Trading

06 Nov, 17:00


The article discusses reinforcement learning through the lens of Deep Q-learning, focusing on advancements since the publication by the DeepMind team in 2013. Deep Q-learning enhances the standard Q-function environment interaction model by incorporating neural networks to address trading-related challenges. Q-functions are explained as methods for linking current states, actions, and rewards, approximated through interaction cycles.

Moving beyond the basics, Deep Q-learning utilizes neural networks to overcome limitations of finite state-action pairs encountered in previous models, employing methods like dynamic programming and Bellman optimization. Experience replay is crucial, enabling agents to optimize learning by shuffling states stored in memory buffers for randomness and long-term accuracy.

Supervised learning concepts are contrasted with...
#MQL5 #MT5 #DeepLearning #AITrading

Read more...

MQL5 Algo Trading

06 Nov, 15:00


A new MT5 version of the indicator has been developed and is now available. This version has been specifically optimized for the MetaTrader 5 platform, ensuring seamless integration and enhanced performance. Users can expect improved accuracy and efficiency. The development process focused on compatibility and reliability, catering to the needs of traders seeking robust analytical tools. This updated indicator offers users additional features that can aid in making more informed trading decisions. To take advantage of these enhancements, ensure your trading platform is updated to support the latest developments.
#MQL5 #MT5 #Indicator #Trading

Read more...

MQL5 Algo Trading

06 Nov, 13:00


Recent updates to the replay/simulator system address stability and security concerns highlighted in developing the control indicator. Integration with modules like the mouse indicator is refined, ensuring consistent functionality without reliance on redundant code. The control indicator now leverages inheritance for improved performance, and changes in access patterns to the C_Terminal class facilitate better interaction with charts, handling mixed usage involving LIVE, DEMO, and replay systems.

The mouse indicator source code sees subtle yet significant updates, emphasizing the importance of leaving critical inputs untouched to avoid system instability. Developers are encouraged to thoroughly understand these new structures. Familiarity with module integration and class inheritance will be crucial for effective implementation and future-proofing of...
#MQL5 #MT5 #Indicator #Algorithm

Read more...

MQL5 Algo Trading

06 Nov, 11:00


Overfitting in machine learning occurs when a model becomes too tailored to noise in the dataset, reducing its generalization capability. This leads to poor performance on unseen data. Traditional solutions like early stopping help but can limit model potential. A 2019 paper from Harvard suggests that for certain tasks, overfitting could be mitigated by training models for extended iterations, observing a "double descent" in test error. This approach can outperform perpetual fine-tuning but demands significant computational resources.

Practical applications using models like neural networks reveal inconsistencies, emphasizing the importance of parameter selection. Advancements in structured exploration of algorithmic landscapes can optimize these efforts.
#MQL5 #MT5 #ML #AITrading

Read more...

MQL5 Algo Trading

06 Nov, 09:00


The Expert Advisor (EA) integrates signals from the 'VIDYA N Bars Borders' custom indicator to make trading decisions. It evaluates current profit status before acting on a signal. If the profit is negative, the EA implements the 'Position Increase Ratio' setting, executing the signal with an increased lot size. This EA is capable of managing both 'BUY' and 'SELL' positions simultaneously. All open positions are closed once the specified 'Profit target' in monetary terms is achieved. This approach allows for dynamic adjustment of lot sizes based on profit evaluation, providing flexibility and potential for optimized trading outcomes.
#MQL5 #MT5 #EA #Trading

Read more...

MQL5 Algo Trading

06 Nov, 07:00


Reinforcement learning presents a significant branch of machine learning, distinct from supervised and unsupervised methods. It operates on a trial-and-error basis, much like adaptive behaviors seen in organic systems. The main components include an Agent and an Environment, where the Agent learns strategies through interaction, receiving Rewards based on actions taken within the Environment. These rewards can be immediate or delayed.

Reinforcement learning differs from previous methods in that it doesn't require a static training sample. Instead, the Agent continuously interacts and learns from changing states. The Cross Entropy method within reinforcement learning handles finite states and actions, refining strategies iteratively based on performance metrics. Implementing these in MQL5 involves leveraging clustering algorithms like k-means to define possi...
#MQL5 #MT5 #RL #Algorithm

Read more...

MQL5 Algo Trading

06 Nov, 05:00


The WeekDays indicator provides an efficient method to view the Day Of Week, Week Of Year, Day Of Year, or Bar Index directly within the Data Window. It updates dynamically with mouse movements, reflecting the current day's name in the left column and customizable details in the right, based on settings for WholePart and FractionalPart. These settings enable users to display specific data such as Day Of Week, Week Of Year, Day Of Year, Bar Index, or None. Values are integrated into a single floating point stored in the indicator buffer, invisible on the chart due to the DRAW_NONE style, as these are synthetic.

Customization options include showing labels on the chart, defining FontName, FontSize, and FontColor, setting padding from chart edges, and choosing the alignment and rotation angle for middle alignment. Default clrNONE for FontColor results in...
#MQL5 #MT5 #Indicator #WeekDays

Read more...

MQL5 Algo Trading

03 Nov, 07:00


Lines play a crucial role in technical trading by marking important price levels to aid decision-making. Automation of these processes through MQL5 can streamline trading strategies. The discussion covers three key line types: trend lines, support, and resistance levels.

Trend lines indicate market trends. In an upward trend line, price rebounds upwards from at least three points along the drawn line. Conversely, a downward trend line shows price bouncing downwards. Code in MQL5 can automate drawing and updating these lines as market conditions change.

Support levels are zones below current prices where buying interest may lead to upward price movement. Similarly, resistance levels, positioned above current prices, highlight selling interest which could push prices downwards. MQL5 scripts can automate identifying and updating these levels to assist ...
#MQL5 #MT5 #Trading #AlgoTrading

Read more...

MQL5 Algo Trading

03 Nov, 05:00


The indicator represents the status of two moving average indicators, displaying results as lines of colored squares. It uses clrYellowGreen to signify the absence of a trend, clrBlue to denote an upward trend, and clrRed for a downward trend. Users can identify these trends at a glance through the color-coded presentation. This tool is useful for adding clarity to market analysis, providing a straightforward visual representation of trends, eliminating the need for complex interpretation of data. This approach makes it easier to track market changes efficiently and allows for quick adjustments to trading strategies based on trend evaluation. It aids in efficient market decision-making by offering instant visual feedback.
#MQL5 #MT5 #Indicator #Trading

Read more...

MQL5 Algo Trading

02 Nov, 15:00


Explore the realm of correlation analysis with a deep dive into Pearson's chi-square test of independence and the correlation ratio. This article elucidates how these tools evaluate dependencies between random variables, offering insights beyond mere linear analysis, particularly in realms like stock price increments. Highlighting features like the CHI2Test indicator, learn to detect hidden relationships and assess the non-linearity of dependencies. Comprehensive scripts like Crosstab and Crosstab_Models enhance your ability to test hypotheses related to correlation dependence and linearity. These techniques are crucial for traders and developers aiming to uncover complex relationships and refine their algorithmic trading strategies.
#MQL5 #MT5 #Statistics #DataAnalysis

Read more...

MQL5 Algo Trading

02 Nov, 13:00


Forecasting future time series prices is crucial in financial markets. Traditional methods often rely on autocorrelation, yet modern approaches like the Transformer model utilize Self-Attention for dynamic autocorrelation. There's a rising interest in frequency analysis, aiding in overcoming autocorrelation complexities. Despite these advances, many methods using the Direct Forecast (DF) paradigm ignore autocorrelation in predicted values, misaligning assumptions and resulting in suboptimal forecasts.

The FreDF method offers a solution by addressing autocorrelation in frequency domain prediction, enhancing DF while retaining its efficiency. It introduces a frequency-based forecast calibration, tested to outperform contemporary methods. This flexible approach integrates with various models, including MQL5. Implementing FreDF involves transforming...
#MQL5 #MT5 #Forecasting #AlgoTrading

Read more...

MQL5 Algo Trading

02 Nov, 11:00


To effectively use AI for market predictions, providing accurate real-world data is crucial. Feature engineering is essential for transforming input data to describe market properties to AI models. Applying techniques like moving averages can enhance forecast accuracy by simplifying prediction tasks, such as predicting moving averages instead of direct prices. Studies show AI predicts moving averages with 70% accuracy and prices with 52%. Observed market divergence remains around 31%, and AI models reliably forecast it with 68% accuracy.

The moving averages offer predictive stability with constant noise levels across markets. AI predictions often outperform when focused on moving averages, supporting AI-powered long-term trading strategies.
#MQL5 #MT5 #AITrading #Indicator

Read more...

MQL5 Algo Trading

02 Nov, 09:00


Explore the Monte Carlo reinforcement learning algorithm, renowned for its episode-based updates that minimize market noise impact compared to Q-Learning and SARSA. This technique updates action-value estimates after completing episodes, reducing frequency but enhancing long-term insights. It excels in adapting trading strategies to varying market conditions by simulating diverse scenarios, helping traders assess risk, profitability, and sustainability. Monte Carlo's adaptability lies in its methodology of evaluating cumulative rewards over episodes and optimizes strategies based on historical performance. Suitable for dynamic market environments, it aids in crafting robust, long-term trading strategies by focusing on comprehensive state-action analysis.
#MQL5 #MT5 #AlgoTrading #ReinforcementLearning

Read more...

MQL5 Algo Trading

02 Nov, 07:00


The AutoFibo indicator offers automatic Fibonacci levels by drawing retracement lines using recent ZigZag highs and lows, aiding in identifying potential reversal points. Users can select between dynamic levels, which update continuously with new ZigZag data, or static levels, which remain anchored to previous significant highs or lows. This tool allows for customization of Fibonacci line appearance, including color, style, and width, to suit various chart backgrounds and preferences.

Designed for MetaTrader 5, the indicator leverages the platformโ€™s graphical capabilities for efficient charting. Key parameters include ZigZag settings (ExtDepth, ExtDeviation, ExtBackstep), which determine pattern sensitivity, and settings for customizing both dynamic and static Fibonacci lines. The AutoFibo indicator is adaptable for multiple timeframes, supporting bot...
#MQL5 #MT5 #Indicator #Strategy

Read more...

MQL5 Algo Trading

02 Nov, 05:00


The described indicator offers a quantitative assessment of an hourly candle's range in percentage terms, compared against an average statistical range. Users can configure an averaging period to define how the relative range is calculated. The "Number Of Bars For Statistics" parameter dictates how much historical data is analyzed to produce average range statistics. Users can adjust the starting point for data collection with the "Shifting Start Of Statistics Calculation" to exclude certain data from influencing recent readings.

The histogram represents the actual range of each hourly candle, visually scaling its size as a percentage. The complementary line indicates the forecasted range, derived from this statistical average. Customization options for both elements include adjustable size and color attributes.

Application is exclusive to the H1 ti...
#MQL4 #MT4 #Indicator #Algorithm

Read more...

MQL5 Algo Trading

01 Nov, 11:00


The article delves into enhancing the Artificial Cooperative Search (ACS) algorithm, a method inspired by natural ecosystems for solving complex optimization tasks in algorithmic trading. The focus is on three strategic modifications. Initially, augmented matrices improve solution accuracy by tracking function values. A second modification refines selection processes by organizing populations based on fitness instead of randomness and emphasizes random updates to foster diversity. The third enhancement introduces a unified population matrix, sorted by fitness, to streamline selecting predator and prey candidates, promising better precision and faster convergence. These advancements promise increased efficacy in navigating high-dimensional optimization problems within MetaTrader 5.
#MQL5 #MT5 #Algorithm #AI

Read more...

MQL5 Algo Trading

01 Nov, 09:31


MetaTrader 5 offers an extensive range of indicators for market analysis and forecasting:

โœ“ 38 technical indicators, plus 12 additional indicators introduced in build 4230
โœ“ Thousands of custom indicators available for free in the Code Base
โœ“ Thousands of applications developed by professionals, available in the Market

To understand how these indicators work, which signals they provide, and how to use them effectively, members of the algorithmic trading community have created an in-depth discussion on the forum. In that thread, they share insights, practical examples of market scenarios, and charting patterns using analytical tools.

Join the conversation and expand your knowledge

MQL5 Algo Trading

01 Nov, 09:00


Richard Donchian's trend-following strategy has led to the creation of Donchian Channels, a key technical analysis tool. The Donchian Channel consists of three lines: the upper band representing the highest high over a specified period, the lower band showing the lowest low, and the middle line often calculated as an average of the two.

Incorporating Donchian Channel strategies can enhance trading performance. Access to this indicator on MetaTrader 5 provides an advantage, allowing for in-depth study and integration into advanced trading algorithms like the Trend Constraint Expert. Popular strategies utilizing Donchian Channels include Breakout, Crawl, and Mean Reversion, adding robustness and adaptability to trading models.
#MQL5 #MT5 #Donchian #Trading

Read more...

MQL5 Algo Trading

01 Nov, 07:00


The integration of cryptography into algorithmic trading is gaining prominence, especially within the MQL5 environment. Cryptography provides essential security measures, making it an indispensable tool for protecting trading algorithms and sensitive data.

MQL5 offers cryptographic functions like CryptEncode and CryptDecode, enabling encryption and hashing. These functions support various methods including DES, AES, and SHA256, ensuring data integrity and protection.

Robust key management is crucial. Secure storage and regular rotation of keys are advised. Combining encryption with hashing further secures data. Performance considerations are vital, as cryptographic processes are resource-intensive.

For algorithmic traders, employing cryptography offers enhanced security, safeguarding intellectual property and ensuring data confidentiality.
#MQL5 #MT5 #Cryptography #AlgoTrading

Read more...

MQL5 Algo Trading

01 Nov, 05:00


The custom indicator, Relative Momentum Index (RMI), now has an additional feature: a smoothed line. This enhancement provides a refined analysis by applying a smoothing process using the iMA (Moving Average) algorithm. The smoothed line offers a more stable view of momentum fluctuations, making it easier to identify trends and patterns in the data. This integration aims to improve the precision and clarity of RMI readings, aiding technical analysts in making more informed decisions. The smoothed interpretation can help reduce noise, allowing developers to focus on significant market movements and trends.
#MQL5 #MT5 #Indicator #RMI

Read more...

MQL5 Algo Trading

31 Oct, 13:00


The ongoing development of a replay/simulator system for MetaTrader 5 has revealed certain challenges as complexity increases. Ensuring stability and security within a modular model is crucial. The aim is to prevent unintentional misuse by inexperienced users, especially when the system is active.

Recently, an issue with an unstable control indicator was identified, which did not jeopardize the platform but could lead to unexpected failures. The problem stemmed from how chart IDs were handled when the service utilized templates. Attention was shifted from using templates to allow better customization through user-created templates.

A deeper dive into the ChartID functionality revealed discrepancies in ID usage when charts opened. Solutions involved modifying the C_Terminal class and passing chart IDs directly to indicators, thus ensuring accurate ...
#MQL5 #MT5 #Indicator #Simulator

Read more...

MQL5 Algo Trading

31 Oct, 11:00


Explore the integration of the MQL5 Economic Calendar into algorithmic trading systems on MetaTrader 5. The calendar is a vital tool for traders, offering timely updates on economic events with significant market impact like interest rates and GDP reports. Seamless integration allows developers to programmatically access events using MQL5, aiding in crafting responsive automated trading strategies. Learn to display and manage event data on charts, leveraging this information to automate reactions to market-moving announcements. This practical approach equips traders and developers to enhance their trading algorithms, ensuring they are well-prepared for impactful economic news in the ever-evolving trading landscape.
#MQL5 #MT5 #Trading #Forex

Read more...

MQL5 Algo Trading

31 Oct, 09:00


The previous discussion focused on optimizing backtesting in news-based trading strategies. The primary bottleneck identified was excessive database access, which slowed operations. To improve this, we propose reducing database queries by consolidating daily data retrieval. This involves loading all necessary event data at the start of the day and organizing it by hour for efficient access.

Introducing the Time Variables class enhances time precision by utilizing enumerations for hours, minutes, and seconds. This structured approach simplifies handling time-sensitive scenarios, particularly in volatile market conditions.

Moreover, the DB Access Reduction strategy eliminates frequent database hits by creating a structured array of events. This array is segmented by the hour and accessed only as needed, thereby reducing unnecessary checks and improvi...
#MQL5 #MT5 #Strategy #AlgoTrading

Read more...

MQL5 Algo Trading

31 Oct, 07:00


A service is available for developers needing efficient swap management, aimed at monitoring and recording swap changes for designated symbols. This service routinely inspects the swap rates, logging any updates into CSV files named after each symbol and organized by month. For instance, a file named 202410.csv will contain data for October 2024, capturing the date-time, long swap, and short swap on each line. The system also tracks swap alterations in existing positions, issuing alerts for any variations identified. The program operates as a script within a chart if the directive `#property service` is commented out, although deploying it as a service is advised. Due to limitations in MQL5's support for the service program type, the code is distributed as a script.
#MQL5 #MT5 #script #Algorithm

Read more...

MQL5 Algo Trading

31 Oct, 05:00


The indicator identifies candlesticks on the price chart exceeding a specified size and marks them for analysis. It offers two measurement options: Points, where the size is based on points (e.g., for a five-digit quote, one point equals 0.00001), and Percentages, where the size is a percentage of the candlestick's value. Users can choose measurement levels such as High/Low, Open/Close, Upper Shadow, or Lower Shadow. By setting the "Size Definitions" parameter, users determine the threshold for candlestick size. When a candlestick meeting the criteria is found, it's marked according to the settings. This flexibility assists in precise candlestick size analysis for enhanced market observation.
#MQL4 #MT4 #Indicator #Trading

Read more...

MQL5 Algo Trading

30 Oct, 11:00


The Artificial Cooperative Search (ACS) algorithm, inspired by mutualistic interactions and migratory behaviors in nature, is an innovative approach for solving numerical optimization problems. It models two interacting superorganisms, ฮฑ and ฮฒ, as predators and prey to explore search spaces efficiently. Unique operators like prey shuffling and binary matrix-based mutation distinguish ACS, enhancing its convergence speed and solution accuracy. Implemented through detailed steps including population initialization, selection, mutation, and global best solution update, ACS not only mimics cooperative biological interactions but excels in quickly finding optimal solutions for complex challenges. This algorithm represents a leap in biological inspiration for algorithmic design, offering practical benefits to developers and traders.
#MQL5 #MT5 #Algorithm #AI

Read more...

MQL5 Algo Trading

30 Oct, 09:00


The article highlights the FITS (Frequency Interpolation Time Series) method, an innovative approach to time series analysis and forecasting. FITS effectively represents time series data in the frequency domain, using frequency interpolation to expand the analyzed time window with low computational overhead. It employs complex neural networks to assess amplitude and phase, ensuring efficient data analysis. FITS stands out with its low parameter count, making it suitable for resource-constrained environments like mobile devices. Implemented in MQL5, FITS method leverages fast Fourier transform and OpenCL for efficient calculation, creating a scalable solution for both traders and developers interested in advanced algorithmic trading models.
#MQL5 #MT5 #TimeSeries #AlgoTrading

Read more...

MQL5 Algo Trading

25 Oct, 06:00


Two-Factor Authentication (2FA) improves security by requiring two forms of verification, reducing unauthorized access risks. Its implementation in an Admin Panel involves incorporating a second verification layer beyond passwords. MQL5 projects benefit from this by adding an OTP code that is sent to a userโ€™s Telegram account for authentication.

Integration involves creating GUI elements for password and 2FA code input, using secure algorithms for code generation, and testing functionalities. Using Telegram API for delivering codes ensures real-time verification, although keeping security practices robust on shared devices remains crucial.

This approach significantly heightens user trust and data protection, optimizing application security in dynamic environments.
#MQL5 #MT5 #2FA #AlgoTrading

Read more...

MQL5 Algo Trading

25 Oct, 04:00


A prototype script has been developed to aggregate data from EconomicCalendar functions, outputting the information into a text file. The output is formatted as a list of dictionaries, each representing an event collected over a specified time period. This script serves as a preliminary test solution for users of the PythonAPI, providing access to identical data. In this initial version, all variables are statically declared, allowing for straightforward testing and validation. The service is positioned as a temporary solution, aiming to facilitate early-stage exploration and integration of economic data into broader applications. Effective data handling strategies will be key in further development stages.
#MQL5 #MT5 #script #PythonAPI

Read more...

MQL5 Algo Trading

24 Oct, 10:00


Financial time series prediction often utilizes dimensionality reduction techniques due to high feature correlations. While PCA is commonly employed, it can dilute individual variable impact, complicating tasks like feature selection. To tackle this, Forward Selection Component Analysis (FSCA) offers a more refined method by selecting variables based on their unique variance contribution. FSCA's backward refinement step further optimizes variable choice by replacing less important ones, enhancing model accuracy without sacrificing step order. These techniques empower traders and developers to build more transparent and effective algorithmic trading models, highlighting how FSCA addresses PCA's limitations in highly correlated datasets.
#MQL5 #MT5 #Algorithm #FeatureSelection

Read more...

MQL5 Algo Trading

24 Oct, 08:00


Implementing efficiency improvements and integration strategies in technical design can streamline processes and enhance system performance. Recent updates to the MetaTrader 5 replay/simulator system involve restructuring code to eliminate redundant components and enhance stability. The control indicator has been integrated directly into the simulator service, removing its visibility from user-accessible indicator lists. This change offers improved control over system resources and operational environments.

Compilation challenges often arise during such substantial code revisions. The MQL5 platform may not fully support MAKE compilation systems, necessitating careful attention to dependency management and incremental code changes. Addressing compilation errors requires an iterative approach, focusing on primary errors and gradually resolving subseque...
#MQL5 #MT5 #Indicator #Algorithm

Read more...

MQL5 Algo Trading

24 Oct, 06:00


The article explores FEDformer, a cutting-edge model designed to enhance long-term time series forecasting. By integrating seasonal trend decomposition and Fourier analysis into the traditional Transformer architecture, FEDformer aims to improve prediction accuracy while reducing computational complexity from quadratic to linear. The model effectively captures global properties of time series by selectively using both low and high-frequency components, validated by extensive experiments showing performance improvements by 14.8% for multivariate and 22.6% for univariate forecasting. This innovative approach provides practical benefits for MetaTrader 5 developers, offering more efficient and accurate trading algorithms.
#MQL5 #MT5 #Algorithm #TimeSeries

Read more...

MQL5 Algo Trading

24 Oct, 04:00


The Saucer signal from the iAO (Awesome Oscillator) is an analytical tool that detects potential market momentum shifts. This indicator focuses on three consecutive bars: a down bar followed by two upward bars, to spot changes in the trend. An added layer of analysis is provided with the integration of iMA (Moving Average), which serves as a filter to refine the signal's accuracy. The MA component helps verify that the identified trend shift aligns with broader market movements. The visualization involves the MA AO Arrow image, illustrating points where the conditions for the Saucer signal align with the Moving Average filter. This combination of indicators seeks to enhance decision-making by providing clearer insights into market trends.
#MQL5 #MT5 #Indicator #Trading

Read more...

MQL5 Algo Trading

23 Oct, 08:00


Enhancing our MQL5 dashboard panel with interactive components is the next critical phase. Following an initial static setup, focus shifts towards automating button functionalities to ensure an intuitive user interface. The goal is to create a dynamic trading tool by setting up events that trigger actions upon user interaction.

We will automate various buttons for trading operations such as "Open Buy", "Sell", and others needed for market engagement. Additionally, automation extends to closure and information buttons providing account details. The "OnTick" event handler will update account information in real-time.

"OnChartEvent" will handle user interactions, including mouse movements and button clicks. Implementing this structure will streamline the trading process within the MetaTrader 5 environment, enhancing user experience.
#MQL5 #MT5 #automation #AlgoTrading

Read more...

MQL5 Algo Trading

23 Oct, 06:00


Delve into Smart Money Concepts (SMC) and Order Blocksโ€”key chart areas where institutional traders execute large trades, sparking significant price movements. This gives retail traders a strategic edge by aligning with institutional flows. By harnessing tools like Fibonacci retracement, traders can refine entry points, enhance trade accuracy, and monitor price action. Detect Bullish/Bearish Order Blocks using simple candles logic. Leveraging the 61.8% Fibonacci level ensures alignment with institutional activity. The integrated Expert Advisor automates these strategies, continuously scanning the market for market structure, helping traders achieve systematic, high-probability trades mirroring institutional strategies.
#MQL5 #MT5 #SMC #AlgoTrading

Read more...

MQL5 Algo Trading

23 Oct, 04:00


CandlesticksData script, developed for MetaTrader 5, facilitates the transfer of detailed candlestick data into a CSV file. Its primary function is to structure this data across various timeframes, aiding in quantitative analysis, strategy backtesting, and educational exploration. Traders can leverage this for informed decision-making by recognizing trends, patterns, and market behaviors. The script allows integration with external software for advanced analyses, including statistical or machine learning applications.

Upon initialization, it defines properties and sets variables, supporting timeframe selection from minutes to months. Data collection is executed within the OnStart function, gathering key metrics: Open, High, Low, Close prices, tick volume, total volume, spread, and candlestick characteristics such as size and type. Captured data is fo...
#MQL5 #MT5 #Script #DataAnalysis

Read more...

MQL5 Algo Trading

22 Oct, 10:59


Starting December 1, 2024, the minimum supported versions of the trading platforms will be:

โ€ข MetaTrader 4 build 1420 released on May 24
โ€ข MetaTrader 5 build 4410 released on June 21

After this date, older versions of desktop terminals will not be able to connect to broker servers.

In the past six months, we have released four MetaTrader 5 updates:

โœ“ Build 4410: Fixed crashes in the desktop platform, browser compatibility checks, and demo account opening in the web version.
โœ“ Build 4570: Crosshair mode, line chart and Market Watch setting in the web version, OpenBLAS library for matrix computations and improved ONNX support in MQL5.
โœ“ Build 4585: Fixed crashes during debugging and testing of MQL5 programs, as well as memory leaks during compilation.
โœ“ Build 4620: Extended OpenBLAS support, fixed tick history queries.

Each MetaTrader 4 version comes with performance improvements and bug fixes.

Download the latest version to take advantage of new features

MQL5 Algo Trading

22 Oct, 08:00


Creating an Expert Advisor (EA) for the Daily Range Breakout strategy in MetaQuotes Language 5 (MQL5) enables traders to automate trading based on breaking key price levels formed from the previous day's range. This strategy relies on capitalizing on significant price movements beyond identified support and resistance levels, typically observed on 1-hour or 4-hour charts, reducing noise and capturing major trends.

The fundamental steps involve setting the daily high and low price as potential breakout points. A long position is triggered when price moves above the previous day's resistance, while a short position follows a breach below support. Incorporating a stop-loss to manage risk, it's critical to optimize and backtest the EA to ensure it aligns with trading objectives and adapts to various market conditions.

Implementation in MQL5 requires defining an...
#MQL5 #MT5 #EA #Strategy

Read more...

MQL5 Algo Trading

22 Oct, 06:00


Streamline your trading strategy with a data-driven approach using enhanced visualization techniques. By transforming raw market data into intuitive, interactive charts like dynamic candlestick overlays and heat maps, traders gain deeper market insights, facilitating informed decision-making. Connect MetaTrader 5 with Python to automate data collectionโ€”efficiently using pandas for analysisโ€”and visualize trends using advanced plotting techniques. Implement reinforcement learning models, like Deep Q-Networks, to predict trading moves by evaluating historical XAU/USD data. Establish socket communication between MQL5 and Python for seamless trade execution. This sophisticated integration reduces human error and enhances trading precision, optimizing entry and exit points for maximized performance.
#MQL5 #MT5 #DataViz #AITrading

Read more...

MQL5 Algo Trading

22 Oct, 04:00


The "EuroSurge" Expert Advisor for MT4 presents a structured approach for managing trades on EURUSD 5-minute charts, incorporating multiple technical indicators for signal generation. Configurable trade size calculations are offered with options for fixed lot size, balance percentage, and equity percentage. Key input parameters include FixedLotSize, TradeSizePercent, and MagicNumber.

Indicator settings encompass Moving Averages, RSI, MACD, Bollinger Bands, and the Stochastic Oscillator. Each indicator can be enabled or disabled individually. Signal detection functions evaluate buy and sell criteria with conditions for each indicator, allowing for relaxed threshold levels compared to standard.

Trade execution includes placing orders with calculated stop loss and take profit using multipliers. Lot sizes are managed through a specialized function that adapt...
#MQL4 #MT4 #EA #AlgoTrading

Read more...

MQL5 Algo Trading

21 Oct, 06:00


Explore the K-Nearest Neighbors (KNN) algorithm, a straightforward yet powerful method for classification and regression. KNN relies on neighborhood proximity, assuming that similar data points cluster closely. Step-by-step, the algorithm selects the number of 'k' neighbors, calculates Euclidean distances, and votes on the classification. Key challenges include setting the optimal 'k' value and handling performance drawbacks, particularly with large datasets in trading applications. Despite these, KNN is effective for clearly labeled, smaller datasets, offering a robust approach to integrating machine learning with MetaTrader 5 for forex and stock predictions. Enhance your trades with data-driven insights using KNN.
#MQL5 #MT5 #KNN #AlgoTrading

Read more...

MQL5 Algo Trading

21 Oct, 04:00


Creating a logger for MQL5 inspired by Python's logging module can enhance project management significantly. The CDKLogger class is designed for simplicity, focusing on ease of use without complex features like hierarchies or rotators. To use it, copy CDKLogger.mqh into the designated MQL\Include\DKStdLib\Logger folder and import the class.

While effective, the class has room for improvement. A notable issue is the frequent parsing of strings by the StringFormat function, even when the log level doesn't necessitate message output. This can be inefficient when dealing with numerous debug messages, making it necessary to conditionally wrap log outputs.

Unfortunately, MQL5 lacks support for passing a dynamic number of parameters to various logging functions such as Debug, Info, and Error. Suggestions for optimizing this process are welcome and could help ref...
#MQL5 #MT5 #Logger #Coding

Read more...

MQL5 Algo Trading

20 Oct, 06:00


Explore the next stage in enhancing library classes for MetaTrader 5, focusing on developing a refined SplitContainer control. This involves creating a dynamic separator object that adjusts panel sizes based on a mouse-driven, hatched area, offering a simplified yet efficient resizing process. The new structure enables direct interaction through panels, integrating updated event IDs and methods to handle user inputs accurately. This iteration emphasizes modifying core design features and improving user-interface interactions, paving the way for sophisticated trading tools and better control management across various trade scenarios. Ideal for developers seeking to integrate flexible interface components within their trading systems.
#MQL5 #MT5 #Algorithm #Programming

Read more...

MQL5 Algo Trading

20 Oct, 04:00


The Expert Advisor operates using the 'iVIDyA' indicator, which provides signals exclusively at the start of a new bar. Positions are opened with predefined Stop Loss and Take Profit settings, and trailing is not employed. At any given time, the system maintains no more than one active position. Upon receiving a new signal, any opposite position will be closed immediately. Optimization is possible by adjusting the 'Working timeframe' parameter for tailored performance. This EA does not layer multiple positions, ensuring a straightforward approach to trading within the market structure.
#MQL5 #MT5 #EA #Strategy

Read more...

MQL5 Algo Trading

19 Oct, 08:00


Reinforcement Learning (RL) is transforming algorithmic trading with its adaptability to market fluctuations. It refines decision-making under uncertain conditions, enhancing strategies by optimizing trade execution through continuous feedback. Unlike traditional linear models, RL's nuanced approach balances exploration and exploitation. In implementing SARSA, an on-policy algorithm, developers can expect safer decision-making by considering real-time actions to update Q-values. This method, compared to Q-Learning, excels in unpredictable markets, making SARSA favorable in environments like JPY trading pairs. Practical applications span improved risk management to scalable multi-asset strategies, underscoring RL's growing significance in sophisticated trading systems.
#MQL5 #MT5 #RL #AITrading

Read more...

MQL5 Algo Trading

19 Oct, 06:00


Explore expert approaches to securing Admin Panels in MQL5 with password protection, enhancing authentication without compromising user experience. The integration of MQL5's robust security features, like encryption and account-based licensing, safeguards intellectual property while ensuring only authorized access. Learn about implementing a password-based authentication mechanism with a user-friendly interface for sensitive functionalities. Addressing potential vulnerabilities, this method employs concepts like secure password management and seamless user input handling. Dive into the process of fortifying applications against unauthorized access using advanced MQL5 protection techniques, fostering a secure environment for both developers and traders.
#MQL5 #MT5 #Security #AdminPanel

Read more...

MQL5 Algo Trading

19 Oct, 04:00


This indicator visually represents the high and low boundaries of the previous three days on a chart. It automatically updates the current day's levels throughout the trading session. The feature allows users to assess recent price action trends and potential support and resistance areas effectively. Its primary function is to aid in identifying key market levels quickly without cluttering the chart with too much information. This tool is particularly useful for those seeking to understand market behavior over several days, assisting in making informed trading decisions based on historical price levels. Designed for users aiming for efficient analysis, it integrates seamlessly into daily chart reviews.
#MQL5 #MT5 #Indicator #Trading

Read more...

MQL5 Algo Trading

18 Oct, 10:00


In the recent update on developing a replay system, the focus shifted to enhancing the Chart Trade Project. The initial attempts to integrate a control indicator on the chart using a service proved challenging, emphasizing the need to convert MQL5 scripts into services effectively. A service can operate independently from a specific chart, which facilitates ongoing chart monitoring.

The article highlights differences between scripts and services, illustrating how a simple moving average script can be transformed into a service. This involves crucial property adjustments in the code to ensure functionality even without direct chart linkage. The enhanced service can automatically reintroduce indicators if removed, offering an innovative method for maintaining chart configurations.

Additionally, the discourse extends to the practical application, such as...
#MQL5 #MT5 #ReplaySystem #MQL5

Read more...

MQL5 Algo Trading

18 Oct, 08:00


Explore the creation of a comprehensive Pending Orders Management library for MetaTrader 5, designed specifically with algorithmic traders in mind. This article delves into structuring a functional EX5 library using standard MQL5 functions to open, modify, and manage pending orders efficiently. Discover how to streamline the development process by importing this library, which significantly reduces code redundancy and accelerates project timelines. Learn to implement practical error-handling strategies and ensure trading permissions are met. With a focus on enhancing trading efficiency, this library is an essential toolkit for both novice and experienced MQL5 developers aiming to optimize their algorithmic strategies.
#MQL5 #MT5 #MQL5 #Libraries

Read more...

MQL5 Algo Trading

18 Oct, 06:00


Discover a streamlined approach to analyzing historical trades with a custom MetaTrader 5 script. Designed to minimize manual tasks, this script automates data collection from historical trades, generating comprehensive charts for enhanced decision analysis. Whether you prefer analyzing single deals or multiple trades over a specified period, the script flexibly caters to all needs. Optimize your analysis by setting multiple timeframes and customize chart templates for a richer visual display. This tool significantly reduces time spent on technical tasks, allowing traders to focus on strategy refinement. Ideal for developers and algorithmic traders aiming to bolster trading efficiency and explore new algorithmic ideas.
#MQL5 #MT5 #script #AlgoTrading

Read more...

MQL5 Algo Trading

18 Oct, 04:00


The Colored SAR indicator provides enhanced visibility into price trends by changing colors with direction shifts. This tool supports various alert types for maximum flexibility: an audible alert for immediate attention, email notifications for those who prefer updates in their inbox, and push notifications for instant alerts on mobile devices. It's designed to ensure traders receive timely information on market movements without constant screen monitoring. Adjustable settings cater to individual preferences, aiding efficient decision-making. With its user-friendly alerts system, the Colored SAR indicator streamlines market analysis and improves responsiveness to trend changes.
#MQL5 #MT5 #Indicator #TradingAlert

Read more...

MQL5 Algo Trading

17 Oct, 12:00


To address a coding anomaly related to neural network visualization, trigonometric functions, specifically the secant, play a critical role. An error causing data points to display incorrectly on the X and Y axes is identified. The inversion stems from incorrect index handling in the code, an issue resolved by adjusting even and odd indices in global arrays. Fixing this aligns data representation and prevents unauthorized memory access errors. Implementing a revised code version allows for correct graph depiction. Such meticulous attention to array element positioning is crucial for precise computational outcomes and effective debugging in programming practices.
#MQL5 #MT5 #NeuralNet #AI

Read more...

MQL5 Algo Trading

17 Oct, 10:00


The article delves into the predictive capabilities of the MACD indicator on EURUSD, assessing whether AI can address its inherent lag. Using a customized MQL5 script to gather extensive data, the analysis discovered that MACD might not effectively predict future price levels due to its non-linear relationship with prices. Through cross-validation and feature importance tests, OHLC data was found more informative. The article experimented with deep learning models, but simple models like linear regression outperformed complex neural networks. Ultimately, a Support Vector Machine model was optimized and exported to ONNX format, facilitating its integration with MetaTrader 5 for enhanced trading strategies.
#MQL5 #MT5 #MACD #AITrading

Read more...

MQL5 Algo Trading

17 Oct, 08:00


Unlock the potential of MetaTrader 5 with our guide on building an interactive trading dashboard using MQL5's Controls class. Enhance your trading efficiency with a structured GUI panel featuring essential buttonsโ€”Trade, Close, and Information. The Trade section integrates functionality for volume, price, SL, and TP controls, alongside actions like Buy and Sell. The Close section streamlines trade management with options to close all profits or pending orders. Meanwhile, the Information panel provides vital market insights and status updates. Learn to assemble this panel within MetaEditor, utilizing key MQL5 libraries, thereby creating a seamless and user-friendly trading experience. Embrace innovation in algorithmic trading by developing sophisticated interfaces that cater to practical trading needs.
#MQL5 #MT5 #Dashboard #AlgoTrading

Read more...

MQL5 Algo Trading

17 Oct, 06:00


Explore the intricacies of HTTP request bodies and their vital role in client-server data exchange. This article sheds light on configuring HTTP body formats like JSON in the Connexus library for MetaTrader 5, facilitating algorithmic trading development. Delve into the advantages of using char arrays over strings for performance in high-volume data scenarios. The newly introduced CHttpBody class in the Connexus library simplifies managing request bodies, supporting text and binary data without complex formatting issues. The insights provided streamline integration with REST APIs, essential for modern trading applications, enhancing data transmission efficiency and compatibility for developers. Discover more in this ongoing series.
#MQL5 #MT5 #HTTP #JSON

Read more...

MQL5 Algo Trading

17 Oct, 04:00


The Crossover Vortex EA focuses on identifying pivotal moving average crossovers, delivering precise buy and sell indicators during crucial market conditions. With fully adjustable settings for moving averages, take profit, stop loss, and slippage, it allows traders to tailor their approach, heightening efficiency and reducing risk. Ideal for those looking to leverage market momentum with accurate and timely trades.

Key parameters include the Position Size to manage risk per trade, and "Use Entry to Exit," which offers the option to exit on the next crossover or predetermined TP and SL levels. Define the Stop Loss in pips for effective risk management, and set the Take Profit to ensure strategic exits. Adjust slippage tolerance for precise execution in volatile markets. Configure MA Fast and Slow Periods to align with your trading strategy.
#MQL4 #MT4 #EA #AlgoTrading

Read more...

156,077

subscribers

1,208

photos

1,185

videos