MQL5 Algo Trading
393K subscribers
2.59K photos
2.59K 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
In Part 42, a customizable Session-Based Opening Range Breakout (ORB) system is developed in MQL5. The system captures true high and low during defined session times and identifies breakouts with multi-bar confirmation to minimize false signals. Trades are executed in the breakout direction with configurable stop-loss and take-profit options. The system incorporates dynamic or static risk-reward management and can utilize trailing stops upon reaching a profit threshold. Visualizations include range markers and entry signals for clarity. Implementation involves defining session times, range calculation, breakout identification, and position management, ensuring adaptability for various market sessions.

πŸ‘‰ Read | Docs | @mql5dev

#MQL5 #MT5 #Strategy
❀51πŸ‘¨β€πŸ’»5
In the previous discussion, the focus was on templates and their efficiency in solution implementation. Moving from templates, we now turn our attention to structures within MQL5 programming. Structures serve as a critical building block, surpassing basic variables and approaching a more organized form of code.

Understanding the distinction between a structure and a union is crucial. A union shares memory among its elements, whereas a structure assigns unique memory spaces. This makes structures essential for complex variable management, allowing multiple elements within a single unit.

A common misconception among beginners is neglecting the design purpose of structures. They are more than convenience; they fulfill specific roles that necessitate understanding of their utility. Certain features seen in languages like C++ are missing in MQL5, often due ...

πŸ‘‰ Read | Freelance | @mql5dev

#MQL5 #MT5 #MQL5
❀25πŸ‘Œ3πŸ‘2πŸ”₯2πŸ‘¨β€πŸ’»2
Explore the transformative journey of developing custom trading signals for MetaTrader 5 using the MQL5 Wizard. This tool enables rapid prototyping of Expert Advisors, even for those with limited coding skills. By embracing its modular design, robust risk management, and pre-optimized components, developers can efficiently create and integrate personalized candlestick pattern signals into trading strategies. Key challenges such as class visibility within the Wizard are tackled by ensuring proper metadata configuration and adherence to structural standards. Discover how this innovative approach not only simplifies algorithmic trading development but also enhances precision and adaptability in creating effective trading systems.

πŸ‘‰ Read | Docs | @mql5dev

#MQL5 #MT5 #EA
❀23πŸ‘¨β€πŸ’»9πŸ‘3πŸ”₯2🀯2πŸ‘Œ2
In our continued examination of MQL5, an advanced script is set for implementation. Focusing on candlestick data retrieval from platforms via MQL5's API, we aim to obtain detailed data beyond just current prices. This includes time, open, high, low, and close prices across multiple candles. Upon retrieval, each data type will be stored in separate arrays to enhance data management capabilities.

Utilizing WebRequest, our project initiates data extraction by querying comprehensive candlestick information. This involves configuring the method to GET, building the correct URL structure, and parsing returned JSON data into separate arrays. This facilitates precise data analysis.

Key to success is understanding the structure of returned data, storing them systematically, and ensuring your WebRequest setup accurately reflects server requirements. Methodical p...

πŸ‘‰ Read | Quotes | @mql5dev

#MQL5 #MT5 #MQL5
❀55πŸ‘Œ4🀑4πŸ”₯3πŸ‘¨β€πŸ’»3πŸ€”2πŸŽ‰1
The Price Action Analysis Toolkit has developed a tool that enhances chart analysis by scanning and identifying candlestick patterns. Initially intended to locate patterns, its application has expanded to reveal recurring price levels, acting as support or resistance. Recognizing these levels allows traders to anticipate market behavior, better timing for entries and exits, and strategic stop placements.

The Pattern Density Heatmap further advances this by detecting historical candlestick patterns to create zones that illustrate past market reactions. This approach offers a strategic advantage by informing traders of potential market moves as price approaches these zones.

Implementation in MQL5 involves coding a system that scans historical data for patterns, aggregates detections into price zones, and visualizes them with a heatmap. These zones are no...

πŸ‘‰ Read | Docs | @mql5dev

#MQL5 #MT5 #Pattern
❀57πŸ‘¨β€πŸ’»6πŸ‘Œ3
Average Daily Range (ADR) and Average True Range (ATR) are essential indicators used in trading for volatility analysis. ADR measures the average difference between the maximum and minimum prices over a specific period, such as 14 days. This provides traders with insights into expected price fluctuations within a day, aiding in strategy development.

In contrast, ATR calculates the average of the true range values. The true range considers the differences between today's high and low, today's high and the previous close, and today's low and the previous close. By accounting for these gaps, ATR offers a more comprehensive view of volatility and is valued for adaptability to market changes.

While ADR focuses on daily volatility, ATR’s flexibility makes it suitable for broader applications, including risk management and establishing stop-loss levels. Understanding ...

πŸ‘‰ Read | Quotes | @mql5dev

#MQL5 #MT5 #ADR
❀34πŸ‘Œ6✍2πŸ‘¨β€πŸ’»2
Explore an advanced approach to creating Expert Advisors (EAs) in MetaTrader 5 using a systematic constructor methodology. This framework facilitates a modular design with customizable trading strategies through a simple 'copy-paste' logic, ensuring the inclusion of essential functions like Stop Loss, Take Profit, and Trailing Stops. By leveraging the structured `SearchTradingSignals` and `STRUCT_POSITION` methods, the article outlines robust techniques for managing trades, including executing and confirming trading orders. Additionally, it delves into integrating standard and custom indicators, showcasing effective algorithmic solutions for developers and traders interested in reliable, versatile EA development.

πŸ‘‰ Read | AppStore | @mql5dev

#MQL5 #MT5 #EA
❀52πŸ‘¨β€πŸ’»9✍8πŸ†1
The multi-timeframe confluence oscillator integrates Stochastic, RSI, and MACD across three timeframes to support trend entry identification. It assigns scores for alignment, with values above 50 indicating bullish sentiment and below -50 suggesting bearish sentiment. This tool is designed for trend-continuation confirmations, reactions to support and resistance levels, and identifying exhaustion conditions. Unlike traditional methods that normalize values, this oscillator relies on a scoring system to provide its insights. It has shown effectiveness, especially in detecting divergences, making it a useful component of a technical analysis toolkit when used alongside other strategies.

πŸ‘‰ Read | Signals | @mql5dev

#MQL5 #MT5 #Indicator
❀37⚑2πŸ‘¨β€πŸ’»2
The two moving averages crossover strategy remains a staple in trading. It leverages two moving averages, typically with different timeframes like 50-day and 200-day. Traders monitor the point of intersection. A short-term moving average crossing above a long-term one indicates a potential buy situation, suggesting a trend reversal upwards. Conversely, a downward crossover may signal a sell opportunity.

Selecting appropriate periods is crucial for accurate signals. Incorporating risk management through stop loss orders enhances strategy robustness. Setting stop losses at strategic levels can mitigate potential downturn impacts. Ensure continuous testing and evaluation to refine strategy effectiveness in varying market conditions. Stay informed and adapt to market changes.

πŸ‘‰ Read | Forum | @mql5dev

#MQL5 #MT5 #Strategy
❀28πŸ‘Œ3πŸ‘¨β€πŸ’»2😱1
Explore how dynamic, multidimensional arrays enhance MetaTrader 5 development. The article introduces an innovative approach for managing complex object properties using dynamic arrays, allowing flexibility beyond traditional static arrays. Developers can now store various data typesβ€”integer, real, or stringβ€”using a custom class that dynamically adjusts to changing data dimensions. This progression facilitates streamlined storage of multi-property objects like graphical elements on a trading chart, solving the challenges of static array limitations. The approach ensures scalability and adaptability in storing dynamically changing object data, vastly improving algorithmic trading strategies with intricate, updatable data structures.

πŸ‘‰ Read | AlgoBook | @mql5dev

#MQL5 #MT5 #Algorithm
❀59πŸ‘¨β€πŸ’»9
A concise indicator displays the percentage change in price since the trading session's opening on the current symbol. Positioned in the lower right of the price chart, it provides a clear positive value when the current price exceeds the opening price and a negative value when it falls below. This tool aids in quick visual assessment of price movement direction and magnitude within the session. It is convenient for traders needing a straightforward measure of relative price performance without complex analysis. This feature enhances situational awareness directly on the price chart, facilitating informed decision-making during active trading sessions.

πŸ‘‰ Read | Signals | @mql5dev

#MQL5 #MT5 #Indicator
❀33πŸ‘Œ4πŸ’―4πŸ‘1πŸ‘¨β€πŸ’»1
Explore the intricate process of developing a robust View component in the MVC paradigm using MQL5. The article delves into constructing a foundational object for canvas drawing that ensures dynamic visual elements in algorithmic trading platforms. It presents essential classes managing diverse functionalities like color transitions, rectangle control, and dual-layer graphics, thereby simplifying dynamic resizing and user interaction. This structured approach, while setting the stage for streamlined future integrations with Model and Controller components, enhances flexibility and scalability in building complex graphical interfaces, like tables, and control elements, crafting a precise and efficient development path for traders and developers alike.

πŸ‘‰ Read | Quotes | @mql5dev

#MQL5 #MT5 #MVC
❀14πŸŽ‰7πŸ‘¨β€πŸ’»1
Discover how to enhance MetaTrader 5 Expert Advisors with a multi-signal framework that leverages the MQL5 Standard Library. Building on modularity, each signalβ€”whether using Moving Averages, RSI, or custom configurations like Fibonacci analysisβ€”acts independently, contributing to a robust collective strategy. Instead of relying on one approach, the system assigns specific roles to signals as either primary triggers or filters. This allows for adaptability across varied market conditions, ensuring resilience even if individual signals falter. By incorporating customizable features that align with user preferences, traders and developers can craft dynamic EAs capable of prevailing in diverse trading environments.

πŸ‘‰ Read | AlgoBook | @mql5dev

#MQL5 #MT5 #Algorithm
❀24⚑9πŸ‘¨β€πŸ’»4πŸŽ‰1