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
Explore a sophisticated MQL5 strategy focused on the automated identification and trading of Crab Harmonic Patterns. This system utilizes pivotal pivot points and Fibonacci ratios to detect both bullish and bearish patterns, ensuring precise trade execution with calculated entry, stop loss, and take-profit levels. Advanced visualization techniques, like drawing triangles and trendlines on charts, highlight key areas for clear pattern representation. This innovative approach supports backtesting, enabling traders and developers to refine and customize their strategies. Gain insights into leveraging these advanced technical tools for enhanced trading precision and pattern recognition, empowering traders with systematic, rule-based decision-making.

πŸ‘‰ Read | Forum | @mql5dev

#MQL5 #MT5 #Strategy
❀26πŸ‘4πŸ‘Œ4πŸ‘¨β€πŸ’»3✍2πŸ‘€2
SuperTrend identified as 0: Used for trend direction and reversals in trading strategies. Direnc marked as 1: Indicates areas where price action may face resistance. Support designated as 2: Highlights zones where price declines may halt. Trend listed as 3: Represents general direction of the market or asset price movement over time. Understanding these elements can enhance technical analysis and improve decision-making in trading environments. Properly utilizing such indicators can assist in developing robust trading strategies tailored to various market conditions. Ensuring consistency in analyzing these features may contribute to better forecasting and market insights.

πŸ‘‰ Read | Freelance | @mql5dev

#MQL5 #MT5 #Strategy
❀25πŸ‘¨β€πŸ’»6πŸ‘3πŸ‘Œ3⚑2
Dive into the essential metrics for evaluating trading strategies: the Sharpe and Sortino ratios. The Sharpe ratio, developed by Nobel laureate William F. Sharpe, offers a robust measure to compare investment portfolios by calculating returns over risk using basic financial metrics. It’s ideal for gauging performance but hinges on the normally distributed return assumption. The Sortino ratio refines this by focusing on downside risk, giving a clearer picture of strategic performance without penalizing positive volatility. These tools, adaptable across various timeframes and assets, empower traders and developers to make informed decisions by accurately assessing risk versus reward in trading environments.

πŸ‘‰ Read | NeuroBook | @mql5dev

#MQL5 #MT5 #Strategy
❀47✍12πŸ‘11πŸ‘¨β€πŸ’»4πŸ‘Œ1
The development of a replay system requires careful handling of futures contracts, particularly with assets that have both full and mini contract types. When designing an Expert Advisor to interpret Chart Trade instructions, programmers encounter challenges with assets like futures that have expiration dates. Addressing these challenges involves understanding contract types and ensuring historical data is correctly applied, as traders often rely on historical accuracy when strategizing.

While adapting the cross order system for varying contracts, establishing naming conventions is crucial. This involves a systematic method for identifying active contracts and mapping historical data to them, ensuring consistency in the display and execution of trades. The focus here is on extended timeframes and the continuity of data for long-term strategies.

Prog...

πŸ‘‰ Read | AlgoBook | @mql5dev

#MQL5 #MT5 #Strategy
❀48⚑5πŸ‘¨β€πŸ’»4πŸ‘2πŸ‘Ύ2
Explore the latest MQL5 innovation with our 3 Drives pattern system. Leveraging Fibonacci retracements, this system identifies bullish and bearish harmonic patterns to streamline algorithmic trading. It automates trade execution with flexible stop loss and multi-level take-profit options, enhancing strategy precision. Visualize pattern structures effectively with integrated charting tools like trendlines and labels. Dive into the mechanics behind detecting pivotal price movements, and backtest to refine your trading approach. Perfect for developers and traders aiming to harness advanced pattern recognition and expand their MetaTrader 5 strategies. Discover the transformative potential of structured trading methodologies today.

πŸ‘‰ Read | Docs | @mql5dev

#MQL5 #MT5 #Strategy
❀35πŸŽ‰8πŸ‘¨β€πŸ’»4⚑1
This trading algorithm offers four distinct price action strategies: High-Frequency Trading (HFT) Tick Momentum, Candlestick Engulfing Patterns, RSI Reversals, and EMA Crossover. Each strategy addresses different trading needs, providing flexibility for diverse market conditions. Traders can enter the market with immediate Market Orders or planned entries using Stop and Limit Orders.

The advanced Martingale System introduces three variations: Classic Multiplier, Multiplier with Sum, and Sum with Initial, offering enhanced control over trade size management. With dynamic lot sizing, users can select a fixed lot size or allow automatic calculations based on account balance and stop-loss parameters.

Comprehensive trade management tools include setting stop-loss in points and defining targets with a Risk:Reward Ratio. Version 1.10 introduces a dual-mode Trailin...

πŸ‘‰ Read | Signals | @mql5dev

#MQL5 #MT5 #Strategy
❀42⚑10πŸ‘4πŸ”₯4πŸ‘¨β€πŸ’»1
Various securities interact through the lens of financial correlation, a dynamic concept, particularly during high-impact news events. The recent evolution of the News Headline EA introduces advancements aimed at incorporating correlation measures for informed trading. The expanded setup involves a two-step approach: enhancing the CTradingButtons class to compute and visualize correlation; integrating these features into the EA without disrupting existing components.

Financial correlation, expressed via the correlation coefficient (-1 to +1), is pivotal in assessing how two securities move relative to each other over selected time frames. This involves calculating the Pearson correlation coefficient over specified periods. The EA identifies if a security is a leader or a follower, which aids in strategy formulation.

Initial testing of these enhancement...

πŸ‘‰ Read | Signals | @mql5dev

#MQL5 #MT5 #Strategy
❀37πŸ‘¨β€πŸ’»3✍2πŸ‘Œ2πŸ’―1
Effective use of statistics transforms raw market data into actionable insights. The Price Action Analysis Toolkit elevates candlestick data by compressing multiple bars into significant price levels, offering enhanced clarity on market behavior. Employing the typical price (TP) concept, which averages high, low, and close prices, enables more stable and informative statistical analysis. This approach yields metrics such as mean, median, mode, and variance, effectively guiding price action analysis.

The development and integration of statistical signals into trading strategies provides a systematic method for interpreting price movement. Using a strategy like the KDE Level Sentinel EA in MQL5 allows for clear, reproducible trading signals. These insights assist in identifying strategic entries and exits, supported by precise computation and reliable...

πŸ‘‰ Read | Calendar | @mql5dev

#MQL5 #MT5 #Strategy
❀21✍11πŸ‘¨β€πŸ’»2
Discover how the evolution of Parafrac oscillators can enhance your algorithmic trading strategies. By standardizing PSAR-price gaps using fractal range and ATR, these tools unveil distinct trend structures. An in-depth comparison of Parafrac and Parafrac V2 across three strategiesβ€”Zero-Line Cross, Histogram Momentum Shifts, and Histogram-Candle Combinationβ€”reveals their strengths. Backtesting on GBP/USD H1 highlights how the ATR-based Parafrac V2 offers higher profitability under specific conditions, while the original excels in select scenarios. Learn how optimizing parameters like stop loss and Reward-to-Risk Ratio can refine performance, ensuring your algorithm responds effectively to market dynamics.

πŸ‘‰ Read | CodeBase | @mql5dev

#MQL5 #MT5 #Strategy
❀42πŸ‘9πŸ‘Œ5πŸ†4⚑3πŸ‘2πŸ‘¨β€πŸ’»1
Elevate your trading strategy by incorporating a robust statistical arbitrage framework for MetaTrader 5. This method focuses on creating a mean-reversion strategy with cointegrated Nasdaq stocks alongside Nvidia (NVDA), prioritizing market neutrality. A comprehensive scoring system evaluates stock pairs through criteria like Engle-Granger and Johansen cointegration tests, spread stationarity, and liquidity. This framework efficiently screens thousands of stock combinations, maintaining a focus on stability and tradeability. Detailed correlation and cointegration analyses ensure a well-informed selection process, paving the way for a robust, data-driven, and economically meaningful portfolio development. Such a strategy optimizes resource allocation and enhances trading edges through meticulous screening and backtesting.

πŸ‘‰ Read | Freelance | @mql5dev

#MQL5 #MT5 #Strategy
❀73πŸ‘¨β€πŸ’»9πŸ†6πŸ‘Œ4✍1
This project's recent advancement expands on our Shark Pattern system by incorporating a Trendline Breakout System in MQL5. It accurately identifies and trades on the breakouts of support and resistance levels. Utilization of swing points validated by R-squared and angle constraints ensures reliability in detecting market momentum shifts.

The system automates trendline detection, drawing, and breakout signals through comprehensive logic that includes handling the lifecycle of trendlines and managing trading signals in real-time. Our approach emphasizes capturing significant market trends while managing risks effectively.

With integrations for visualization and trade execution, this critical system supports automated response to market changes, with customizable settings for diverse trading strategies.

πŸ‘‰ Read | Signals | @mql5dev

#MQL5 #MT5 #Strategy
❀69πŸ†8πŸ‘Œ7πŸ‘2⚑1πŸ‘¨β€πŸ’»1
In analyzing financial trading strategies, it becomes clear that traditional methods often fail to account for the dynamic nature of markets. The classical Bollinger Band strategy, while widely used, demonstrates consistent losses in backtests. Our analysis shows a -$169 loss over five years with a suboptimal Sharpe ratio of -0.53.

The double Bollinger Band system, an extension developed by institutional traders, improves market adaptability. By employing dual bands with varied standard deviations, this strategy significantly outperforms the classical approach. Results indicate a $228 profit, improving accuracy to 56% winning trades and delivering a positive Sharpe ratio of 0.5.

This advancement showcases resourceful adaptations of established methods, yielding a transformative trading strategy that enhances profitability and reduces risk without a...

πŸ‘‰ Read | Calendar | @mql5dev

#MQL5 #MT5 #Strategy
❀38✍4πŸ†2πŸ‘¨β€πŸ’»2
Testing trading strategies in a controlled environment enables precise calibration of variables like StopLoss and TakeProfit levels. A recent assessment demonstrated unexpected profitability by adjusting these elements. The experiment also examined integrating various trailing stop methods, including Parabolic SAR and moving averages. By utilizing trailing stops, specifically those based on double exponential moving averages, a notable increase in profitability was observed compared to original trading settings. However, not all indicators provided positive outcomes. Customization of trailing parameters per symbol is advisable for optimal results, as individual symbol characteristics influence trading performance significantly.

πŸ‘‰ Read | CodeBase | @mql5dev

#MQL5 #MT5 #Strategy
❀51πŸ”₯6πŸ‘Ύ2πŸ‘¨β€πŸ’»1
The study presents significant insights into trading systems using random win-rate management and Monte Carlo simulation. Traders often exit trades at random profit levels, affecting the overall profitability due to variable win-rates and RRRs.

Monte Carlo simulation effectively models random trade outcomes, illustrating how different RRRs impact equity curves and drawdowns. The analysis emphasizes the importance of expectancy in assessing system profitability, showing that a positive expectancy leads to overall gains, while a negative expectancy results in losses.

Visual inspections and analyses highlight that higher win-rate strategies, although potentially profitable, often carry higher drawdowns. Effective strategy optimization requires managing win-rates and RRRs to sustain long-term profitability.

πŸ‘‰ Read | Signals | @mql5dev

#MQL5 #MT5 #Strategy
❀25πŸ‘5πŸ‘Œ3πŸ‘1πŸ‘¨β€πŸ’»1
The previous discussion introduced the 5-0 Harmonic Pattern in MQL5, moving beyond the common Gartley pattern. This entry will cover the identification of points C and D to finalize the 5-0 structure. Recognizing the 5-0 pattern involves detecting specific points on a price chart programmaticallyβ€”0, X, A, and B have been identified, and now points C and D need to be established.

For point C, check for a rally that follows B, aiming for a Fibonacci extension between 161.8% and 224% of the AB leg. This corrective action often highlights a strong market reaction, offering clues for the eventual completion of the structure.

Finally, identify point D as it forms a retracement from C, typically between 50% and 55% of the BC leg. This zone represents potential trading opportunities. The program should connect the detection logic with trade execution to visually ve...

πŸ‘‰ Read | AppStore | @mql5dev

#MQL5 #MT5 #Strategy
❀21πŸ‘Œ3πŸ‘2πŸ‘1🀯1πŸ‘¨β€πŸ’»1πŸ‘€1