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
Autonomous driving shares challenges with trading, notably in navigating dynamic environments. An autonomous vehicle's task of predicting future road events is complex due to unknown goals of other road users. Multi-agent traffic scenarios involve intricate interactions further complicated by rule-based constraints. Recent research adopts a vectorized approach for compact scene representation. However, real-time motion prediction remains difficult due to computational demands. The paper "HiVT: Hierarchical Vector Transformer for Multi-Agent Motion Prediction" introduces a method that uses a hierarchical model to manage interactions and dependencies, addressing computational efficiency and accuracy in motion prediction for large numbers of agents. It applies a Transformer architecture for improved scene comprehension.

πŸ‘‰ Read | Freelance | Share!

#MQL5 #MT5 #AITrading
πŸ‘25❀10πŸ‘¨β€πŸ’»3πŸ”₯1πŸ†1
Algorithmic traders frequently encounter challenges when relying on RSI (Relative Strength Index) due to its sensitivity to parameters like period, timeframe, and market-specific factors. Traditional guidelines (e.g., levels of 70 and 30) may not yield consistent signals across different contexts. To address these inconsistencies, a more dynamic approach involves examining the true range of the indicator and adjusting the midpoint based on observed data, rather than preset ranges.

Implementing this in MQL5 offers advantages, incorporating a flexible RSI class to handle multiple periods and levels. This facilitates analysis across varied market conditions, enabling traders to empirically assess profitability of different RSI deviations and optimize periods through systematic testing rather than static assumptions.

πŸ‘‰ Read | Quotes | Share!

#MQL5 #MT5 #AITrading
πŸ‘32❀30✍4πŸ‘¨β€πŸ’»4πŸ†1
Analyzing market momentum can provide critical insights for traders. The Green line on the chart indicates the total FVGs present during an uptrend within the specified window size, whether they are filled or unfilled. Conversely, the Red line shows the total FVGs in a downtrend with the same considerations. If the Green line is positioned above the Red line, there is an indication of upside momentum, suggesting a potential upward market movement. Conversely, when the Red line exceeds the Green line, it signals downside momentum. This indicator can also be utilized to determine exit points in trading strategies, aiding in effective decision-making. Monitoring these trends can enhance the accuracy of market predictions.

πŸ‘‰ Read | AppStore | Share!

#MQL5 #MT5 #Indicator
πŸ‘25❀17πŸ‘¨β€πŸ’»2
Gradient descent is an optimization algorithm for finding a local minimum of a differentiable function. Used extensively in machine learning, it fine-tunes model parameters by moving in the opposite direction of the gradient for minimizing a cost function. The learning rate determines step size; too large, and minima will be skipped, too small, and the process becomes slow.

For linear regression, gradient descent optimizes coefficients by reducing error between predicted and actual values. It's crucial to normalize input variables to ensure consistent learning rates across datasets.

For logistic regression, gradient descent handles classification issues; here, the cost function, Binary Cross Entropy, drives adjustments.

Understanding gradient descent is necessary for effective implementation in various machine learning models.

πŸ‘‰ Read | Signals | Share!

#MQL5 #MT5 #Gradient
πŸ‘46❀35πŸŽ‰4πŸ‘¨β€πŸ’»4πŸ‘€3🀯2πŸ”₯1
RRS Tangled EA emerges as a refined version of its predecessors, RRS Chaotic EA and RRS Randomness in Nature EA. It embraces a unique strategy by randomly selecting currency symbols, lot sizes, and order types, independent of technical indicators and fundamental analysis. This randomness approach demands precise settings like Take Profit, Stop Loss, Trailing, and robust Risk Management to optimize profit potential. It operates as a multi-currency or multi-asset EA, capable of trading various currency pairs even when attached to a single chart.

Key settings require attention: Ensure minimum and maximum lot sizes are defined for controlled randomness. Establish Stop Loss and Take Profit in points or pips, with the option to disable. Trailing mechanisms can be tailored with specific start points and gaps. Risk management can be set with FixedMoney or Balance...

πŸ‘‰ Read | Quotes | Share!

#MQL4 #MT4 #EA
πŸ‘26❀17πŸ‘¨β€πŸ’»5
The article explores the implementation of a grid trading strategy using an Expert Advisor (EA) in MQL5 for futures contracts on MOEX via MetaTrader 5. The strategy automates order placements at specific intervals around a price range, capitalizing on market volatility through small price fluctuations. Key elements include the configuration of buy/sell limits, managing stop-loss and take-profit scenarios, and dynamically updating orders based on market movement. The approach emphasizes a balance between frequent trades for small gains and fewer trades for larger profits, making it suitable for both range and trend markets while ensuring risk management with clear stop-loss settings.

πŸ‘‰ Read | Forum | Share!

#MQL5 #MT5 #GridTrading
πŸ‘49❀44πŸ‘¨β€πŸ’»5πŸŽ‰4πŸ‘€2✍1πŸ”₯1
A trading strategy utilizing two custom "MA Other TimeFrame Correct" indicators can be a straightforward way to approach market analysis. In this setup, the Expert Advisor opens positions with a constant lot size, avoiding complexities such as Stop Loss, Take Profit, or Trailing mechanisms. Instead, trades close when an opposite signal emerges.

The process involves intersection checks, specifically comparing indicator values between bar #1 and bar #0 to generate trading signals. This method exclusively uses a 'Constant lot' approach for position size management.

Additional functionality includes an extended operation log via the 'Print log,' providing detailed insights into all trading activities. This supports systematic evaluation and refinement of trading tactics.

πŸ‘‰ Read | CodeBase | Share!

#MQL5 #MT5 #Strategy
πŸ‘40❀23πŸ‘¨β€πŸ’»2πŸŽ‰1πŸ‘€1
Explore the creation of custom indicators in MetaTrader 5 using chart objects, a step beyond traditional buffers and plots. This approach offers advanced flexibility, enabling the development of complex visual representations critical for identifying unique trading patterns and price levels. The technique allows dynamic illustration of Harmonic Patterns, fundamental in recognizing potential market reversals. By focusing on practical application, learn to pinpoint swing points, integrate Fibonacci levels for pattern validation, and label key chart areas. This methodology enhances precision in trade signal accuracy, providing valuable insights for both professional traders and developers seeking to create sophisticated MQL5 indicators.

πŸ‘‰ Read | Calendar | Share!

#MQL5 #MT5 #Harmonic
πŸ‘57❀21πŸ‘¨β€πŸ’»8πŸ‘Œ1
A new indicator has been developed for MT5, providing alerts for scenarios where Bollinger Bands and Envelopes converge on extreme values simultaneously. The system sends buy alerts for bullish candles opening and closing below both the lower Bollinger Band and the lower Envelope. Conversely, sell alerts occur with bearish candles that open and close above the upper Bollinger Band and the upper Envelope. Users have customizable input variables, including period and deviation settings for both Bollinger Bands and Envelopes. Alerts are available in various forms, such as push notifications, audible signals, and emails. The indicator features arrows for buy and sell signals on the chart and excludes drawing the Bollinger Bands and Envelopes directly onto the chart.

πŸ‘‰ Read | AppStore | Share!

#MQL5 #MT5 #Indicator
πŸ‘46❀19✍4πŸ‘¨β€πŸ’»3⚑1
Explore how algorithmic trading leverages data clustering for practical use cases. Discover methods where clustering results are utilized independently or integrated as input to enhance trading strategies. Learn the theoretical foundations and practical implementations of clustering, with insights into using tools like OpenCL and KMeans. Delve into innovative approaches such as calculating statistics using labeled data and normalizing cluster distances for input into other models. Understand the value of probabilistic models in predicting market behavior, showcased by a practical downturn model giving insights into trading decisions, without the reliance on complex neural networks. An essential read for advancing your trading algorithm expertise.

πŸ‘‰ Read | Freelance | Share!

#MQL5 #MT5 #Trading
πŸ‘46❀37πŸ‘€9πŸ‘¨β€πŸ’»8🀨5✍1πŸ†1
The EA employs a custom indicator, RSI_MAonRSI_Dual, which triggers signals based on two lines intersecting. Signal interpretation is straightforward: below the 50.0 line suggests a BUY, above indicates a SELL. The system adapts to the selected 'Working timeframe' for detecting new bars and handles trading parameters like trailing on a bar or tick basis.

Market entries are controlled such that only one deal is executed per bar. In terms of direction, trades can be restricted to BUY only, SELL only, or both. Time control offers flexibility, allowing trade signal searches within specified hourly ranges, even crossing from one day to the next.

Critical trading settings include stop-loss and take-profit levels defined in points, with the option to disable them by setting values to zero. The EA supports dynamic lot size calculation based on constant value or pe...

πŸ‘‰ Read | CodeBase | Share!

#MQL5 #MT5 #EA
πŸ‘79❀43πŸ‘10πŸ‘¨β€πŸ’»9πŸ‘€6πŸŽ‰4✍3
The challenge of implementing multiple dynamic logistic regression functions has been addressed in a recent article. The primary issue is avoiding hardcoding when managing multiple data columns, adhering to clean code principles and DRY. The article critiques the traditional approach of creating multiple functions with static numbers of independent variables. In contrast, Python's flexibility with *args and kwargs allows dynamic handling, a feature less straightforward in MQL5. Nonetheless, a workaround can be achieved using strings and efficiently managing data within arrays.

One proposed solution is to consolidate data into a single array, allowing for dynamic manipulation within loops. This approach circumvents the limitations of dynamically creating arrays in MQL5, although challenges remain in resource management and processing speed. Storing...

πŸ‘‰ Read | AppStore | Share!

#MQL5 #MT5 #Regression
❀31πŸ‘24πŸ‘¨β€πŸ’»3πŸ‘Œ2
In recent tests, 10 signal patterns using MA and Stochastic Oscillator were examined. Seven patterns were practicable over a one-year period, with two successfully using both long and short trades. The thesis behind the tests involves combining machine learning modes: supervised-learning (SL), reinforcement-learning (RL), and inference-learning (IL). In previous analysis, SL and RL integration showed how the RL model refines trading decisions beyond price changes, acting as a layer on SL decisions.

Deep Deterministic Policy Gradient (DDPG) is explored, applied for continuous action spaces. DDPG uses two neural networksβ€”actor and critic networksβ€”to estimate actions and evaluate their rewards, reducing noise impact and stabilizing training. The replay buffer aids in learning stability, using random sampling to prevent temporal correlations. The critic network esti...

πŸ‘‰ Read | CodeBase | Share!

#MQL5 #MT5 #RL
πŸ‘34❀16πŸ‘¨β€πŸ’»4πŸ†3
Explore the power of Larry Connors' RSI2 strategies in algorithmic trading with MetaTrader 5. Dive into three expertly coded intraday strategies for the S&P 500 index. Discover how the RSI2 framework leverages short-term mean-reversion, offering quick market insights beyond traditional tools like Bollinger Bands. Each strategy has been rigorously backtested on a 30-minute timeframe to strike a balance between noise and trading activity. Learn how to apply model systems for adaptable strategy development across various markets. Build your strategy mastery by blending proven techniques with innovative enhancements for optimized trading efficiency.

πŸ‘‰ Read | Freelance | Share!

#MQL5 #MT5 #Trading
πŸ‘17❀13πŸ‘¨β€πŸ’»5πŸ‘Œ4
We have implemented the Mitigation Order Blocks (MOB) Strategy using MetaQuotes Language 5 (MQL5) for trading institutional price zones. Transitioning to Part 13, the focus is on constructing a Head and Shoulders trading algorithm. The goal is to automate this classic pattern for market reversals, ensuring precise turn captures.

The Head and Shoulders pattern is recognized in technical analysis for trend reversals, appearing in both standard and inverse forms. Architecture of the pattern involves defining key peaks and troughs with specific breakout points for trading entries.

In MQL5, starting with including necessary trade management files, defining global variables, and setting up structures for pattern detection is crucial. Visualization requires accurate chart architecture, employing functions for graphical representation to ensure precise patter...

πŸ‘‰ Read | VPS | Share!

#MQL5 #MT5 #Algorithm
πŸ‘28❀17πŸ†3πŸ‘¨β€πŸ’»3πŸ”₯2
Technical traders rely heavily on indicators within their platforms, often combining multiple ones into a cohesive system. Streamlining the setup process for these indicators is crucial. For those interested in MQL5, crafting a panel directly on the chart to adjust settings can enhance usability. While ready-made panel codes exist, custom solutions may balance flexibility and ease of use. By organizing panel components into a structured layout with adjustable cell dimensions based on text size, traders can optimize their interface. Employing a class-based approach in code aids in managing objects efficiently, maintaining clarity across trading tools. Detailed implementations can be studied in various resources for further customization.

πŸ‘‰ Read | Freelance | Share!

#MQL5 #MT5 #Panel
πŸ‘39❀29⚑4😎3πŸ‘¨β€πŸ’»2πŸŽ‰1
The efficient management of computational resources is crucial when processing data across multiple lookback bars. Instead of recalculating values every time a new bar closes, it's advisable to utilize phval, phloc, plval, and plloc as buffers. These buffers can streamline data management and enhance performance. However, be aware that handling buffers requires manual management, as the terminal lacks native support for complex data structures as buffers. Ensuring optimal performance and accuracy involves maintaining these buffers yourself, which adds a layer of responsibility. This approach can lead to efficient and effective data processing in technical environments.

πŸ‘‰ Read | AppStore | Share!

#MQL5 #MT5 #Algorithm
πŸ‘26❀18πŸ‘¨β€πŸ’»3🀯2
Dive into the innovative Archery Algorithm (AA) that reshapes optimization problem-solving by emulating an archer's precision. Developed by Fatemeh Ahmadi Zeidabadi, this stochastic approach enhances trading strategies using randomness and probability mechanisms. AA's population of agents, akin to archers, explores solution spaces through strategic position updates based on a target member's performance. The algorithm employs Gaussian distribution for randomness and memory features for retaining effective solutions. By introducing a modification allowing direct feature exchange among agents, performance surged over 13%. For traders and developers, AA offers adaptable models minimizing risks in volatile markets, elevating the precision of forecasts and investment strategies.

πŸ‘‰ Read | CodeBase | Share!

#MQL5 #MT5 #Algorithm
πŸ‘26❀8πŸ’―3πŸ‘¨β€πŸ’»2
Neural networks often intimidate newcomers due to complex terminology. Yet, foundational concepts remain straightforward. In linear equations, "weights" align with slopes, and "bias" with intercepts. Earlier, we explored constructing a neuron capable of learning through trial and error. Adjustments in slope and intercept were key to improving accuracy. Further, handling multiple inputs transforms the neuron into a versatile tool. Beyond foundations, the sigmoid function introduces non-linearity, enhancing learning capability. Each step solidifies understanding, paving the way for more advanced neural structures. Although theory can appear daunting, practical application simplifies these principles, making the study of neural networks an engaging endeavor.

πŸ‘‰ Read | Forum | Share!

#MQL5 #MT5 #NeuralNetworks
πŸ‘40❀21πŸ”₯2πŸ‘¨β€πŸ’»2⚑1😎1
Review of the Two Lines Indicator with RSI Fast and RSI Slow provides insights into combining momentum analysis with trend smoothing. By integrating the Moving Average, this indicator allows enhanced precision in detecting market trends. The intersection of the RSI Fast and RSI Slow lines can indicate potential signals for entry or exit. The concept leverages the strength of relative momentum provided by RSI and smoothens it with moving averages to reduce market noise. This method aids in clearer visualization of trend shifts, assisting in more informed decision-making. Careful analysis of these intersections could improve the effectiveness of trading strategies.

πŸ‘‰ Read | Forum | Share!

#MQL5 #MT5 #Indicator
πŸ‘30❀23😎5πŸ”₯3πŸ‘¨β€πŸ’»3πŸ’”2