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 MetaTrader 5 enhances tape reading through its innovative Time & Trade system, offering traders a more accessible approach to analyzing market movements. By integrating full contract monitoring directly into trading charts, this approach simplifies interpretation while maintaining efficiency. The article explains the implementation of a custom subwindow and a unified C_TimesAndTrade class to seamlessly track and visualize trades, offering clear and practical insights for traders. This method captures all trading ticks but focuses only on significant data, using compact mini-candles to represent trades over time. Developers benefit from a robust, configurable representation for informed decision-making in algorithmic trading.

👉 Read | Calendar | Share!

#MQL5 #MT5 #TapeReading
👍6227🎉53👀3😎2👨‍💻1
In trading, Fair Value Gaps represent imbalance areas where asset prices may revisit. Identifying these gaps can assist in predicting potential market corrections. Traders often analyze fair value gaps to anticipate price movements back to these levels, driven by market forces seeking equilibrium. Recognizing these gaps requires a keen understanding of market dynamics and price action. Fair value gaps, reflecting discrepancies between buyers and sellers, can be critical for setting entry or exit points. The concept emphasizes the importance of monitoring price patterns that deviate from equilibrium, offering insights into potential retracement opportunities. Adaptation to this analytical method can enhance strategic trading decisions.

👉 Read | Forum | Share!

#MQL4 #MT4 #EA
32👍24🤔6🎉3👨‍💻32😁1
Technical indicators tracking price action can be optimized using machine learning. The previous exploration of supervised learning with Multi-Layer Perceptron (MLP) models laid foundational insights into predictive outputs. Focusing on moving from discrete to continuous input vectors aligns with advancements in AI, enabling better data processing with modern tools like GPTs.

Our reinforcement learning model expands upon supervised learning by integrating actions and rewards. These components aid in effective decision-making according to predicted market movements. This phase uses policy networks to translate forecasted states into actionable strategies, such as sell orders. Rewards quantify trade profitability, including excursions that occur beyond simple profit or loss.

Trust Region Policy Optimization (TRPO) enhances learning efficiency and stability t...

👉 Read | Forum | Share!

#MQL5 #MT5 #ML
👍2418👨‍💻3👏1👌1
In the latest section of our replay/simulation project, important enhancements were made to address the challenge of displaying the remaining time until the next bar begins. This task is particularly complex within a simulation environment due to variable synchronization issues with the system clock.

The updates introduced involve modifications to the mouse indicator and the supporting framework. A critical change lies in the integration of a global variable within the mouse indicator code, enabling efficient data transmission relevant to the current bar's time. The C_Study.mqh file now includes mechanisms for handling custom events, ensuring updates occur with precise timing calculations crucial to performance during simulations.

This structured approach improves functionality and aligns simulation behavior more closely with real-time trading envir...

👉 Read | AppStore | Share!

#MQL5 #MT5 #Simulation
👍32👌23177😁2👨‍💻1
The Leading Indicator, developed by John Ehlers, is designed for early signal detection in trading. Users can adjust the alpha values to suit specific trading requirements. This indicator offers clear buy signals when the line turns green and sell signals when it turns red, enhancing decision-making. Although the MetaTrader 4 version isn't included in this discussion, interested users can find and download it, along with the source code, through a provided Telegram channel. Access to the channel is available via a link in the profile. Subscriptions to the channel for updates and resources are recommended.

👉 Read | AlgoBook | Share!

#MQL5 #MT5 #Indicator
36👍2076👨‍💻3🤩2👾1
Navigating the complexities of trading futures contracts in MetaTrader 5 can be streamlined with a well-designed cross order system. This system leverages historical data without the need for separate charts, providing a seamless trading experience. Key to this implementation is understanding the structure and execution of futures contracts, like those on the Brazilian Exchange (B3), which include specific expiration rules and naming conventions. By integrating a C_HLineTrade class, we manage orders visually on a chart, while C_Router and C_OrderView classes handle order routing and messaging. Testing on demo accounts is crucial to ensure system reliability before live trading.

👉 Read | Freelance | Share!

#MQL5 #MT5 #Futures
👍5123💯4👨‍💻3🔥2👌1
Analyzing your trading algorithm, several areas need attention for potential improvement:

1. Code Structure: Break down your code into smaller functions for modular design. Separate logic for indicator calculations, trade evaluation, order execution, and trade management. This improves readability and maintains ease for future updates.

2. Trade Entry Logic: Ensure your entry conditions consider trend direction and market context to avoid frequent false entries in choppy markets. It may be beneficial to incorporate additional filters like moving averages.

3. Risk Management: Review and adjust risk parameters, such as position sizing and SL/TP levels. Ensure these align with your risk appetite and market conditions.

4. Spread and Slippage Management: Include a dynamic spread and slippage assessment. Consider historical spread values for different sess...

👉 Read | CodeBase | Share!

#MQL4 #MT4 #Algorithm
👍3520👨‍💻3🏆1
Enhance trading analysis with a unique auditory element using a script that plays piano notes corresponding to candlestick properties. It assigns higher notes to rising bullish candles, while lower notes resonate with bearish declines. Ensure sound files are located in the Files/Sounds directory for seamless execution. Simply copy the provided code and create a new script in your environment. For those who download additional files, remember to uncomment the specified lines for proper compilation. This approach offers an additional layer of engagement with your datasets by leveraging auditory cues as part of technical analysis strategies.

👉 Read | AlgoBook | Share!

#MQL5 #MT5 #script
23👍134👌2🤨2👨‍💻2
To enhance the functionality of our WinForms library objects, the implementation begins with creating a new base class that will serve as a blueprint for all subsequent WinForms objects. This foundational class will streamline properties inherited across multiple components, eliminating redundancy in property application.

This base class will be derived from the broader form object class that already handles mouse interactions effectively. Implementing the AutoSize and AutoSizeMode for panel objects involves ensuring the size of the container dynamically adjusts to accommodate objects without overlap. This is critical, especially when objects are docked and aligned in sequence, requiring accurate resizing of the panel.

We optimized object handling by pre-arranging elements within the panel structure before rendering, ensuring smooth transitions and ...

👉 Read | Calendar | Share!

#MQL5 #MT5 #WinForms
👍4025👌5👨‍💻4🎉31🔥1
The Custom MA Cross with RSI Indicator for MT5 combines moving averages with RSI to identify trend changes. Adjustable settings include MA types (SMA, EMA) and RSI levels for precise signal filtering. Enjoy alerts for MA crossovers and on-chart buy/sell signals when RSI conditions are met. This indicator eliminates weak signals, enhancing trend-following strategies and increasing confidence in market entries.

Designed with user-friendly options, it accommodates both novice and experienced traders. With compatibility across all timeframes and currency pairs on the MT5 platform, it is a versatile tool for improving trading precision. Customization with preferred colors adds to the personalization experience, making trading more efficient.

👉 Read | NeuroBook | Share!

#MQL5 #MT5 #Indicator
👍2818🤔2👨‍💻21
The strategy is applicable to both Gold and Bitcoin across various timeframes, including M1, M5, M15, M30, H1, and H4. These timeframes provide different perspectives for analysis, ranging from minute-to-minute observations to broader hourly trends. Employing various timeframes allows for a comprehensive understanding of market movements and can aid in aligning short-term tactical approaches with long-term strategic goals. It is essential to tailor analysis to the specific behavior of each asset, considering their unique volatility and trading patterns. Be mindful of the inherent risks and ensure that strategies are robust enough to adapt to market changes.

👉 Read | Forum | Share!

#MQL5 #MT5 #AlgoTrading
👍3126👨‍💻21👏1👌1
Metaheuristic algorithms are gaining importance as data volumes surge and tasks grow more complex. These algorithms offer high convergence rates and rapid processing, crucial for timely project execution across various domains. They provide an effective mechanism to handle large datasets, yielding superior solutions to traditional numerical methods. Key benefits include resource efficiency, vital in cloud computing environments with limited computational resources.

The Artificial Showering Algorithm (ASHA) exemplifies these algorithms through a unique probabilistic water flow model. Its adaptive characteristics, such as infiltration for avoiding local minima and dynamic probability control, enable it to explore and exploit the solution space effectively, improving optimization outcomes significantly.

👉 Read | VPS | Share!

#MQL5 #MT5 #AlgoTrading
👍35176😁2🏆2👨‍💻1
Operator precedence rules in programming are crucial for determining how expressions are evaluated. Understanding these rules prevents unexpected outcomes in code execution. Precedence is generally ranked from top to bottom in documentation tables, with operators at the top holding higher priority.

Operators are categorized for clarity, and references take precedence over all others. Type and binary operators follow, requiring right-to-left reading, unlike referencing. Arithmetic operators, seen as familiar, are processed left to right, adhering to their position in the hierarchy.

Parentheses can define or alter precedence, marking them essential for clarifying code. Misunderstanding precedence can lead to compiler warnings due to unpredictable behavior, underscoring the necessity for clear structure.

The ternary operator streamlines logic and improve...

👉 Read | AlgoBook | Share!

#MQL5 #MT5 #Education
👍4427👌2👀2👨‍💻1
The release of a comprehensive multi-timeframe RSI dashboard provides a significant tool for traders seeking detailed insights. The dashboard offers real-time RSI status across nine timeframes, ranging from M1 to MN1. The key functionality includes displaying RSI readings within a single interface for easy analysis. Color-coding differentiates the status: overbought, oversold, or neutral, enhancing quick data interpretation. This tool is versatile, functioning across any chart or symbol, allowing for broad application in various market conditions. Aimed at enhancing decision-making, it supports a more informed approach to trading strategies.

👉 Read | VPS | Share!

#MQL4 #MT4 #RSIdashboard
17👍17👏21👨‍💻1
Random Trader EA offers a unique approach by implementing a random trading strategy with robust risk management. The EA initiates positions randomly while maintaining strict risk control through customizable parameters.

Key features include a random entry system for buy/sell positions, flexible stop loss calculations, breakeven functionality, and smart margin management. It supports various symbol types such as Forex pairs, JPY pairs, and cryptocurrencies, with proper pip value handling.

Input parameters are extensively customizable. The Reward/Risk Ratio sets take profit relative to stop loss. The Loss Calculation Method can either be ATR-based or set to a fixed pip distance. Risk management is enhanced with dynamic position sizing and automatic lot size adjustment.

The EA executes trades only when no positions are open, ensuring consistent risk management...

👉 Read | VPS | Share!

#MQL5 #MT5 #EA
👍22142😱2👨‍💻2
This indicator is designed to enhance your technical analysis by utilizing three additional subwindow indicators. To get started, ensure all files are correctly placed in your Indicators folder. This setup allows for seamless integration and accessibility within your platform. For comprehensive instructions on installation and use, refer to the provided online resource. This will ensure you configure the indicators correctly to suit your analysis requirements. Proper installation and understanding of these tools are essential for effective trading strategy development and execution. Always check for any updates or further instructions from the source to maintain optimal performance.

👉 Read | Freelance | Share!

#MQL5 #MT5 #Indicator
👍2812👨‍💻2
Object segmentation in 3D scenes involves providing precise masks for detected objects in point clouds. Modern methods are grouped into assumption-based and clustering-based approaches. Assumption-based methods work top-down, first proposing regions and then determining masks, but struggle with point cloud sparsity and object complexity. Clustering-based methods adopt a bottom-up approach, assigning semantic labels and predicting instance centers but suffer from inaccuracies and extended processing times.

The Superpoint Transformer (SPFormer) combines both approaches, utilizing a sparse 3D U-Net for point-level feature extraction and grouping points into superpoints. SPFormer introduces a Transformer decoder that predicts instances utilizing cross-attention with superpoints, streamlining the segmentation process by eliminating redundant steps.

Imple...

👉 Read | Signals | Share!

#MQL5 #MT5 #AITrading
👍3075🎉1👨‍💻1👀1
Transfer learning is a machine learning approach where a model trained for one task is applied to another related task. Instead of building a model from scratch, a pre-trained model's knowledge is adapted to a new task. This is useful when there's limited data for the new task. For instance, developing a cat vs. dog classifier with few images can leverage a model like ResNet50 trained on ImageNet.

In financial markets, similar approaches apply. Despite different price scales, features like percentage change and stationary indicators offer consistency across various instruments. Techniques to handle continuous variables involve calculating percentage changes and employing stationary indicators, ensuring models generalize effectively across different markets.

👉 Read | Signals | Share!

#MQL5 #MT5 #AITrading
👍228👨‍💻1
The text underscores the significance of comprehending arrays and strings within statically typed languages compared to their dynamically typed counterparts. While languages like Python and JavaScript handle arrays and strings seamlessly, C/C++ provides challenges due to its handling of these structures internally. MQL5, positioned between these realms, simplifies some concepts, yet still demands understanding of its underlying principles for effective data manipulation.

Emphasizing practical learning through experimentation, it suggests modifying existing code snippets to grasp conceptually how different outcomes can be achieved. It introduces the integration of operator precedence and variables, laying a foundation for understanding more intricate data types.

Addressing string handling, it details how MQL5 strings are special arrays with an en...

👉 Read | Docs | Share!

#MQL5 #MT5 #AlgoTrading
👍4618👨‍💻3👌2🤯1
The angle of the moving average for the current and adjacent candle can provide valuable insights into market trends. This parameter helps in identifying the momentum and direction of price movements. Calculating the angle involves comparing the slope between the moving average line of two consecutive timeframes. A steeper angle may indicate stronger momentum, while a flatter angle might signal consolidation or weaker trends. Monitoring the angle change in real-time can assist developers and traders in making more informed decisions regarding their strategies. Analyzing this data could be a component in crafting a robust technical analysis toolkit.

👉 Read | Signals | Share!

#MQL4 #MT4 #Indicator
👍3217🔥4👨‍💻21