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

Subscribe to stay up-to-date with modern technologies and trading programs development.
Download Telegram
The Volatility Stop is a crucial technical indicator for setting effective stop losses. It helps strike a balance between profit-making and risk management. The stop loss should be strategically positioned at a distance from the price to manage risks while allowing market fluctuations so as not to exit trades prematurely. The indicator features three adjustable parameters: Length, which determines the calculation period of the ATR for current volatility assessment; Source, which specifies the price type from where the StopLoss level is set; and Multiplier, which controls the StopLoss distance from the Source price through volatility scaling. Effective stop loss placement minimizes risk, and utilizing additional indicators alongside Volatility Stop enhances profit and risk management strategies.

πŸ‘‰ Read | Freelance | Share!

#MQL5 #MT5 #Indicator
πŸ‘29❀17πŸ’―4πŸ‘¨β€πŸ’»4⚑2πŸ‘Œ1
The CalculateHistoryProfit script version 1.0 is designed to compute profits over a specified timeframe using a graphical interface supported by the external MtGuiController.dll library. Users can set parameters such as date range, symbols, and magic numbers directly through the panel. The script totals profit and trade count based on selected filters, displaying results on the panel. It features preset buttons for quick date selection including options for today, week, month, and year. This tool is beneficial for traders assessing the historical performance of trades using selected criteria.

After setup, it's necessary to manually edit the first line of the Include\Snail000\CalculateHistoryProfit.mqh file and place the MtGuiController.dll in the correct directory. The library has been altered to integrate with the existing panel framework. Access to th...

πŸ‘‰ Read | Freelance | Share!

#MQL5 #MT5 #script
πŸ‘26❀13πŸ‘¨β€πŸ’»4
The code currently manages risk effectively, although information isn't displayed on the chart panel. The log contains the necessary details, which should be straightforward for experienced developers to address. Key parameters for the bot are visible on the screen, allowing users to select according to their needs. The bot includes clickable links, intended for author support purposes. Further enhancements and testing are anticipated from the community. Developers are encouraged to contribute improvements to optimize functionality and display features.

πŸ‘‰ Read | AppStore | Share!

#MQL5 #MT5 #BotDev
❀19πŸ‘13πŸ†7πŸ‘¨β€πŸ’»3
Exploring the capabilities of volume categorization can enhance your chart analysis. The Better Volume indicator segments trading volume into distinct categories to provide clarity during market assessment. Distinguishing factors such as Buying Climax and Selling Climax illuminate high-volume periods indicating potential trend shifts. The Churn and Climax Churn highlight elevated volatility phases, while Weak Candle and Volume Balance mark low activity and market equilibrium respectively.

This tool’s Moving Average Volume feature adds an analytical layer, illustrating volume trends over time. Adaptation is key; users can tailor the Moving Average Period and Lookback Window settings to accommodate individual trading methodologies. Compatible with different timeframes, this indicator is versatile from intraday to long-term market scopes. With smooth integ...

πŸ‘‰ Read | CodeBase | Share!

#MQL5 #MT5 #Volume
πŸ‘16πŸ‘Œ13❀8πŸ†5πŸ‘¨β€πŸ’»4πŸ‘2πŸ‘€2
In the realm of trading, hedge accounts permit simultaneous long and short positions on the same asset. A challenge prevalent among traders is figuring out the average price of open positions. This is addressed by an MQL5 indicator tailored for this purpose. The indicator filters through open positions in MetaTrader 4, differentiating buy and sell trades based on the user-defined symbol and Magic Number. It then calculates the weighted average price by considering the total volume of buys and sells, and graphically represents this on the chart as a line indicating the net position's average price.

For implementation, the code involves a few key operations. In the CalculateHedgeAveragePrice() function, purchases and sales are sorted to compute their respective weighted average prices and determine the net position's market stance, returning the calc...

πŸ‘‰ Read | Freelance | Share!

#MQL5 #MT5 #Indicator
πŸ‘15❀12πŸ‘¨β€πŸ’»2πŸŽ‰1
The concept of spread in trading involves the difference between the quotes of two symbols. When these symbols move in opposite directions, the quote for the second symbol is inverted. In such scenarios, the spread calculation becomes the sum of the quotes. Only the second symbol's quote is inverted. Variable names are explicit in their meaning, ensuring clarity. It's essential to use an indicator, especially when both symbols of the spread are actively traded within their respective session times.

For flat trading, if the value increases, selling is recommended; if it decreases, buying is preferable. The interpretation of indicator values can be varied, including trading lines, support, resistance, and sloping lines from the spread chart after crossing. The coding process is well-commented for ease of use. Variables can be adjusted to convert figure...

πŸ‘‰ Read | Docs | Share!

#MQL5 #MT5 #Indicator
❀20πŸ‘8πŸ‘¨β€πŸ’»4πŸ‘Œ2
A new variant of the Divergence Awesome Oscillator indicator is now available. This version, derived from the original framework, introduces several refinements to enhance usability and precision in technical analysis. With adjustments tailored for seamless integration into existing trading strategies, users can expect improved signal accuracy. This indicator serves as a vital tool for monitoring divergent patterns in market trends. Although a YouTube tutorial was previously available for assembling the indicator, users are encouraged to study the revised parameters and functionality directly within the platform to optimize strategy implementation. This update is intended to provide a more robust analytical experience for traders.

πŸ‘‰ Read | NeuroBook | Share!

#MQL5 #MT5 #Indicator
πŸ‘19❀7🀩4πŸ‘¨β€πŸ’»3
The Trend Direction And Force Index Alert is based on Mladen Rakic's version, providing critical insights into market trends. This tool merges the traditional Trend Direction analysis with Force Index calculations to deliver a comprehensive view of market dynamics. It's designed to signal potential trend shifts, facilitating timely decision-making in trading strategies. By integrating alerts, traders receive real-time notifications on key changes, helping to maintain market awareness. Suitable for various timeframes and asset classes, this indicator supports a wide range of trading styles. Examine this tool to enhance strategic approaches and improve market entry and exit timing.

πŸ‘‰ Read | CodeBase | Share!

#MQL5 #MT5 #AI
πŸ‘20❀6πŸ‘¨β€πŸ’»4
The new countdown indicator for MetaTrader 5 presents a range of features focused on flexibility and user customization. Users can select from three display modes: Commentary, Chart Edges, and Near Price, ensuring the countdown timer's position suits their trading style. It automatically adjusts to the Brasilia time zone, accounting for daylight saving changes.

The smart countdown feature seamlessly calculates time until the next candlestick or market open, adapting to weekend and weekday closures. Full customization options allow traders to tailor text color, font size, and timer anchor points. The setup process is simplified with clear, well-documented input parameters, enhancing user experience.

The indicator is highly accurate, adaptable across timeframes and assets, and ensures the timer remains visible with real-time market changes, all with...

πŸ‘‰ Read | AppStore | Share!

#MQL5 #MT5 #Indicator
πŸ‘25❀6πŸ‘¨β€πŸ’»3
In continuing the automation project for trading algorithms, focus is shifting towards implementing the Cypher harmonic pattern in MQL5. This approach leverages the Fibonacci-based reversal structure, seamlessly integrated into an Expert Advisor for real-time detection and trade execution. The architecture of the Cypher pattern is dissected into bullish and bearish sequences, facilitating precise market reversal identification through geometric criteria.

The program's implementation involves setting up global variables and input parameters for swing detection, followed by detailed visualization enhancements. Chart annotations, trend lines, and text labels are utilized to signify pattern structures clearly. The system optimizes pattern detection using a methodical approach to identify valid reversal points and efficiently execute trades based on the deline...

πŸ‘‰ Read | Quotes | Share!

#MQL5 #MT5 #EA
πŸ‘20✍4❀2πŸ‘¨β€πŸ’»2
The ICT silverbullet concept paired with the 2022 mentorship model offers a structured approach to trading. Risk management defaults to 0.25%, allowing for controlled exposure. The strategy includes partial profit-taking, providing a mechanism to secure gains progressively. Additionally, the implementation of trailing stop losses after reaching the second take profit point enhances risk mitigation. This model emphasizes systematic risk handling and profit protection, which are crucial for maintaining consistent trading performance. By integrating these components, traders can potentially improve their strategy's efficiency and effectiveness in various market conditions.

πŸ‘‰ Read | AppStore | Share!

#MQL5 #MT5 #Strategy
πŸ‘23❀9⚑3πŸ‘Œ2πŸ‘¨β€πŸ’»2
Explore how asynchronous WebSocket clients can enhance MetaTrader 5 applications using Windows API. The process involves creating a custom DLL to facilitate asynchronous operations, overcoming the limitations of synchronous models. Asynchronous functionality is achieved through the WinHTTP library, with session handles configured using specific flags and a callback function registered for event notifications. Constructed in C++ using Visual Studio, the DLL encapsulates WebSocket client functionality, allowing seamless integration with MetaTrader 5. This approach enables efficient server communications, error handling, and resource management, offering developers robust tools for advanced algorithmic trading solutions.

πŸ‘‰ Read | VPS | Share!

#MQL5 #MT5 #WebSockets
πŸ‘15❀3πŸ‘¨β€πŸ’»2✍1
Explore the innovative ACMO (Atmospheric Cloud Model Optimization) algorithm, a unique approach to solving complex optimization challenges by mimicking atmospheric cloud processes. The algorithm divides the search space into regions, sets meteorological parameters, and simulates cloud dynamicsβ€”such as movement and rain. Key methods manage cloud entropy, distribute raindrops, and adapt to environmental changes. While promising, ACMO faces convergence issues, lacking agent interaction needed for optimal solution sharing. Rigorous testing revealed areas for enhancement, highlighting the need for improved information exchange to boost algorithm performance for trading and algorithmic development.

πŸ‘‰ Read | Quotes | Share!

#MQL5 #MT5 #Algorithm
πŸ‘25❀4🀯4πŸ‘¨β€πŸ’»3✍2
Building an Adaptive Expert Advisor involves integrating market regime detection to create a dynamic trading system. The MarketRegimeEA uses the CMarketRegimeDetector to identify regimes such as trending, ranging, or volatile. Each regime prompts distinct strategies: trend-following during trends, mean-reversion during ranges, and breakout strategies in volatility.

Risk management adapts according to market conditions, varying lot sizes, stop losses, and take profits. Efficient parameter optimization is crucial, with considerations for lookback period, trend, and volatility thresholds. Handling regime transitions through smoothing and gradual sizing ensures seamless shifts.

Integrating this system within existing frameworks can enhance adaptability and improve trading performance across diverse market states. Further testing, such as backtesting on pas...

πŸ‘‰ Read | Quotes | Share!

#MQL5 #MT5 #EA
πŸ‘28❀14πŸ‘€3πŸ‘¨β€πŸ’»2😁1πŸ‘Œ1
This article delves into the fundamentals of using the FOR statement in MQL5, an essential tool for control flow in programming. The FOR loop is favored by programmers for its clarity and readability, encapsulating loop control within its declarationβ€”qualities that make it preferable over WHILE and DO WHILE loops for certain applications. Though the article revisits basic concepts, it underscores the significance of understanding foundational principles to tackle more advanced challenges in algorithmic trading. Through practical illustrations, it demonstrates different ways to implement the FOR loop, underscoring the importance of grasping each component's purpose for effective algorithm development.

πŸ‘‰ Read | AlgoBook | Share!

#MQL5 #MT5 #Education
πŸ‘51❀13πŸ‘€5⚑3🀣3🀩1πŸ‘¨β€πŸ’»1
When considering a buy strategy, the Awesome Oscillator (AO) changing direction above the zero line is a key indicator. Conjunction with an engulfing candle or a close above the previous candle's high can provide additional confirmation. Incorporating RSI filters as part of this strategy helps minimize false alerts, especially towards the trend's end. RSI filters play a critical role in maintaining signal accuracy by filtering out noise during market volatility. This approach leverages multiple technical indicators to enhance decision-making processes in trading scenarios. Utilizing these tools effectively requires a meticulous analysis of historical data to ensure robustness in diverse market conditions.

πŸ‘‰ Read | NeuroBook | Share!

#MQL5 #MT5 #Indicator
❀29πŸ‘24✍3πŸ‘Œ3πŸ‘¨β€πŸ’»3πŸŽ‰1🀩1
The Williams Percent Range (WPR) is a momentum indicator developed by Larry Williams, serving as the reverse of the Stochastic Oscillator. It gauges the closing price against the high-low range, oscillating between 0 and -100. Crucial levels are -80, -20, and -50, indicating overbought or oversold conditions. It offers enhanced insights when combined with additional tools like price action techniques and moving averages.

This indicator assists in building three distinct trading strategies: Williams %R - OB/OS for spotting overbought/oversold levels, Williams %R - crossover for buy/sell signals around the -50 mark, and Williams %R - MA incorporating moving averages for refined signals. Implementing these strategies in MetaTrader 5 automates signal generation, tailored to risk preferences.

πŸ‘‰ Read | Docs | Share!

#MQL5 #MT5 #Indicator
πŸ‘39❀36πŸ‘¨β€πŸ’»7🀩3✍1⚑1
A new EA has been developed incorporating multiple indicators such as RSI, Stochastic Oscillator, and Bollinger Bands to manage trend opportunities and counter-trend reversals. It can operate on several currency pairs, applying a range of features like trailing, risk, and money management systems. The system settings allow for customizable signal strength and trade direction options, adapting to both trend-following and reversal strategies.

This EA comes with meticulous time frame checks for more accurate signal validation. Configurable lot size and comprehensive stop loss/take profit systems further optimize trading strategies. Risk management includes stop or continue trading actions based on predefined loss limits. Money management defines equity targets for trade closures, providing flexibility in trading continuity.

Additional restriction modes include ...

πŸ‘‰ Read | Quotes | Share!

#MQL4 #MT4 #Scalper
πŸ‘32❀23πŸ”₯6⚑2🀯2πŸ€”1πŸ‘¨β€πŸ’»1
An innovative update to the Times & Trade chart organization system is being implemented. This enhancement focuses on translating complex trade data into a more accessible text format, providing a clearer interpretation of market dynamics. By adding specific variables and modifying existing classes, the system now models essential data, helping users detect subtle market changes earlier. The primary goal is to present a comprehensive picture of market movements, which supports efficient tape reading. This development highlights the importance of data optimization in real-time trading scenarios, allowing better decision-making through improved system efficiency.

πŸ‘‰ Read | NeuroBook | Share!

#MQL5 #MT5 #Indicator
❀52πŸ‘30πŸ‘¨β€πŸ’»8⚑6✍3🀯3πŸ‘€1
A function is designed to draw arrows and provide alerts when the RSI indicates overbought or oversold conditions. Specifically, the function triggers when the RSI is below 30, suggesting potential buying opportunities. It also considers scenarios where the price opens above the 8-period moving average, and the lower wick of the candle exceeds the body size. This setup is optimal for identifying possible reversals, offering insights into shifts in the micro trend. It's a valuable tool for traders aiming to detect potential trend changes during extreme market conditions, enhancing decision-making processes in trading strategies.

πŸ‘‰ Read | AlgoBook | Share!

#MQL5 #MT5 #RSI
πŸ‘37❀17πŸ‘¨β€πŸ’»4
Explore how combining the Average Directional Index (ADX) and Commodity Channel Index (CCI) can lead to a more robust algorithmic trading system. ADX confirms trend strength, while CCI captures momentum, providing a comprehensive view of market dynamics. Implemented in Python, the approach benefits from its superior performance over MQL5, leveraging features like MetaTrader's Python Module to integrate broker data. This amalgamation allows for precise trend initiation or reversal detection, enhancing trade decisions. Developers can create multidimensional signal arrays, analyzing feature patterns to ensure efficient, data-driven strategies. A detailed foray into these indicators can revolutionize trading techniques.

πŸ‘‰ Read | Quotes | Share!

#MQL5 #MT5 #Strategy
πŸ‘27❀17⚑5πŸ‘¨β€πŸ’»2😱1