MQL5 Algo Trading
387K subscribers
2.56K photos
2.56K links
The best publications of the largest community of algotraders.

Subscribe to stay up-to-date with modern technologies and trading programs development.
Download Telegram
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...
❀32πŸ‘19πŸ‘Œ4πŸ‘¨β€πŸ’»4✍2⚑1
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...
πŸ‘28❀5πŸ‘Œ3πŸ‘¨β€πŸ’»3⚑2✍1πŸ‘1
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...
πŸ‘22✍17❀13πŸ‘Œ3πŸ†3πŸ‘¨β€πŸ’»3😁1
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...
πŸ‘36❀24πŸ”₯4🀯4🀝4πŸ‘¨β€πŸ’»3πŸ‘Œ2
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...
πŸ‘41❀32πŸ‘¨β€πŸ’»7πŸ‘4🀯4😎4πŸ‘Œ2
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...
πŸ‘28❀19✍6πŸ‘¨β€πŸ’»3⚑2πŸ‘Œ2πŸ‘€2
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...
❀18πŸ‘15πŸ€”4πŸ‘¨β€πŸ’»3πŸ‘Œ2⚑1
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...
πŸ‘25❀22πŸ‘¨β€πŸ’»4πŸ‘Œ2⚑1
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...
❀31πŸ‘26πŸ‘Œ5πŸ‘¨β€πŸ’»5⚑1
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...
πŸ‘24❀14πŸ‘¨β€πŸ’»5πŸ†4⚑2πŸ‘Œ2
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...
❀25πŸ‘14πŸ‘Œ3πŸ‘¨β€πŸ’»3⚑2
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...
πŸ‘58❀31πŸ‘Œ5πŸ‘¨β€πŸ’»4
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...
πŸ‘18❀15πŸ‘¨β€πŸ’»8✍7πŸ‘Œ2πŸ‘Ύ2
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...
❀30πŸ‘28🀩5πŸ‘¨β€πŸ’»4πŸ‘Œ2
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...
πŸ‘40❀26πŸ‘¨β€πŸ’»8πŸ‘€3⚑2✍2πŸ‘Œ2
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...
πŸ‘40❀32πŸ‘¨β€πŸ’»7πŸ‘Œ2πŸ€”1πŸ’―1
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...
πŸ‘29❀18πŸ‘¨β€πŸ’»4πŸ‘Œ2πŸ‘1
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...
❀23πŸ‘21πŸ‘Œ5πŸ‘¨β€πŸ’»3πŸ”₯2✍1πŸ’―1
The latest update in Version 2 introduces a 'Time control' feature and removes the 'Profit limit for close all' and 'Withdrawal' parameters. Enhancements include a trailing lot size control, detailed in the RSI Dual Cloud EA code. Trading signals are now verified with the emergence of new bars, analyzing the iAMA (Adaptive Moving Average) and iRSI (Relative Strength Index) indicators.

The process for generating a signal follows two steps. For an "Open Buy" signal:

1. RSI should be below 30, as set in the 'RSI Level Down' parameter.
2. The price needs to surpass the AMA indicator.

To optimize the indicator relationship, the 'Step Length' parameter defines the bar interval between these steps. Regarding the Martingale strategy, upon receiving a trading order, the system checks BUY and SELL positions' profits. For an "Open Buy," if BUY profits are negative,...
#MQL5 #MT5 #RSI #Strategy

Read more...
πŸ‘52❀29πŸ‘¨β€πŸ’»2πŸŽ‰1πŸ‘Œ1
Discover a refined solution for managing Take Profit (TP) and Stop Loss (SL) levels directly on the MetaTrader 5 chart using an Expert Advisor (EA). This approach enhances order management efficiency by leveraging the platform's tickets system to swiftly correct TP and SL values without external dependencies. By integrating a new drag-and-drop feature for stop levels, you can intuitively visualize and modify them while circumventing common pitfalls like negative TP values. Simplify your trading workflows with improved accuracy and speed, thanks to well-defined macros and functions, making efficient order adjustments accessible for traders and developers alike.
#MQL5 #MT5 #ExpertAdvisor #StopLoss

Read more...
πŸ‘34❀28πŸ‘Œ5πŸ‘¨β€πŸ’»4πŸ†3