MQL5 Algo Trading
388K 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 article delves into an intricate challenge faced by MetaTrader 5 developers: effective communication between the Chart Trade indicator and the Expert Advisor to manage futures contracts. The proposed solution involves using message exchanges between these components, carefully addressing sequence and synchronization issues when MetaTrader 5 changes the chart timeframe. A notable approach is implementing custom events to smoothly adjust contract types and maintain user interface consistency without convoluting systems. This innovative strategy enhances flexibility in contract management while keeping interface components separate, emphasizing the importance of structured message passing for improved algorithmic trading applications.

๐Ÿ‘‰ Read | Forum | @mql5dev

#MQL5 #MT5 #Trading
โค30๐Ÿ‘5๐Ÿ”ฅ3๐Ÿ‘Œ3๐Ÿ‘จโ€๐Ÿ’ป1
The Volume-Weighted Moving Average (VWMA) is gaining traction as a crucial tool for traders, providing an edge by integrating trading volume into price analysis for trend verification. Unlike traditional moving averages like SMA and EMA, the VWMA assigns more significance to price movements with substantial trading volume, capturing genuine market momentum.

For algorithmic trading, VWMA's practical application offers enhanced trend confirmation by focusing on significant volume-backed price changes. The MQL5 implementation of VWMA crossovers involves using both a fast and slow VWMA to identify bullish and bearish market conditions. These signals help in constructing Expert Advisors (EAs) that streamline trade execution, monitor market conditions, and generate actionable alerts. Such advancements bolster traders' capability to differentiate between meaningfu...

๐Ÿ‘‰ Read | AlgoBook | @mql5dev

#MQL5 #MT5 #Trading
โค37๐Ÿ‘จโ€๐Ÿ’ป2๐Ÿ˜1
A new tool provides a visual representation of trading sessions by aligning them with the 24-hour clock. It synchronizes session names with specific hours based on your broker's server time, while also displaying your computer's local time. The active session or any overlaps are highlighted in yellow, helping to clarify which sessions are live at any given moment. This can reduce uncertainty regarding session timings and potential overlaps with server times, streamlining the trading process and enhancing situational awareness for traders managing multiple time zones.

๐Ÿ‘‰ Read | Forum | @mql5dev

#MQL5 #MT5 #Trading
โค21๐Ÿ‘6๐Ÿ‘Œ4๐Ÿ‘จโ€๐Ÿ’ป2
A universal class library is now available for implementing diverse StopLoss trailing strategies in trading robots. This library enables flexible management of StopLoss for open positions based on a fixed distance from the price or using popular indicators like Parabolic SAR, AMA, DEMA, FRAMA, MA, TEMA, VIDYA, and even custom levels.

The solution is integrated into MQL5 Expert Advisors by connecting the required class, setting parameters, and executing the Run() method in OnTick(). Classes include CSimpleTrailing for price-based trailing and CTrailingByInd for indicator-based trailing, with further subclasses like CTrailingBySAR and CTrailingByAMA for specific strategies.

Key parameters include SetSymbol, SetMagicNumber, SetStopLossOffset, SetTrailingStart, SetTrailingStep, SetSpreadMultiplier, and SetActive. Indicator classes have additional parameter...

๐Ÿ‘‰ Read | Forum | @mql5dev

#MQL5 #MT5 #Trading
โค47๐Ÿ‘จโ€๐Ÿ’ป5๐Ÿคฏ3๐Ÿ‘Œ2
Support and resistance zones are crucial concepts in technical analysis, serving as key psychological barriers for traders. Understanding these levels is essential as they significantly influence market participants' decisions. Support zones indicate areas where buying pressure exceeds selling pressure, causing price rebounds. Conversely, resistance zones denote levels where selling pressure halts upward movement.

The focus here is to automate the identification of these zones using an EA. By analyzing recent price data, the EA can spot swing highs and lows, pivotal for defining these zones. A swing low is characterized by a candle with a low price lower than its preceding and succeeding candles, while a swing high has a higher price.

For support zones, the EA logs relevant data, such as swing low time and price, ensuring no candle breaks below this zone t...

๐Ÿ‘‰ Read | CodeBase | @mql5dev

#MQL5 #MT5 #Trading
โค35๐Ÿ‘10๐Ÿ‘จโ€๐Ÿ’ป2๐Ÿ‘Œ1
Explore the power of Moving Averages in algorithmic trading with an informative guide on system design using MQL5 for MetaTrader 5. Discover three effective strategies: one, two, and three Moving Averages crossovers, each with distinct advantages in trend analysis. Learn to minimize whipsaws and optimize trading decisions by implementing these strategies systematically. This article provides clear coding examples and detailed steps for integrating Moving Averages into your trading setup, enhancing decision-making accuracy. Perfect for both seasoned developers and traders new to algorithmic solutions, this educational piece emphasizes practical application while keeping complex concepts accessible.

๐Ÿ‘‰ Read | Calendar | @mql5dev

#MQL5 #MT5 #Trading
โค47๐Ÿ‘5๐Ÿ†5๐Ÿ‘จโ€๐Ÿ’ป3๐Ÿ‘Œ1
A new strategy to visualize wick regions on lower-timeframe charts has been initiated. The primary goal is to enhance the Market Periods Synchronizer, integrating a Wick Visualization Utility. This tool isolates the upper and lower wick regions of higher-timeframe candles, rendering them with semi-transparent rectangles for detailed analysis.

To implement this, several technical steps are crucial. Initialization involves setting up a mutable UI for real-time interactions using a CCanvas bitmap label. This ensures efficient use of screen real estate while maintaining per-chart isolation through specific naming conventions.

The core logic focuses on rendering wicks only when a toggle is active. This involves calculating the top and bottom of candle bodies, and highlighting their wicks distinctly above and below these thresholds. These regions are prog...

๐Ÿ‘‰ Read | Quotes | @mql5dev

#MQL5 #MT5 #Trading
โค42โšก5๐Ÿ‘จโ€๐Ÿ’ป1๐Ÿ‘€1
No-code platforms like BotBrains offer accessible solutions for those interested in automated trading without programming expertise. Users can create complex trading robots by utilizing pre-built blocks that cover a range of functionalities, from simple moving average strategies to intricate spread trading techniques.

In BotBrains, trading robot development starts with defining constants and variables to track trading parameters and indicators. For instance, to implement a moving average strategy, users set up constants for slow and fast moving averages. Variables are then updated with real-time data, ensuring accurate crossover detection.

BotBrains enables integration with Telegram, facilitating real-time updates on trading activities. Debugging and interface creation are supported through a variety of blocks, allowing users to build, test, and ref...

๐Ÿ‘‰ Read | Signals | @mql5dev

#MQL5 #MT5 #Trading
โค78โšก9๐Ÿ‘จโ€๐Ÿ’ป9๐Ÿ‘8โœ6๐Ÿ‘€6๐ŸŽ‰2
Explore the creation of an Expert Advisor in MetaTrader 5 using the CChartObjectStdDevChannel class for trading based on volatility channels. Discover the potential of MQL5โ€™s Standard Library with its comprehensive documentation and object-oriented structure to transform manual chart analysis into automated algorithmic strategies. The post covers integrating MQL5 classes like CTrade for order management and discusses the strategy's practical setup, risk management, and testing. Gain insights into utilizing standard deviation for precise channel creation, enhancing both strategy visualizations and trade signal automation in trading environments. Ideal for developers seeking structured, professional-grade trading tools.

๐Ÿ‘‰ Read | NeuroBook | @mql5dev

#MQL5 #MT5 #Trading
โค60๐Ÿ‘9๐Ÿ‘จโ€๐Ÿ’ป5๐ŸŽ‰1
Transient functions, especially the PCF model, have applications well beyond trading. These functions utilize the Gamma distribution to model dynamic and static processes, maintaining a material balance with P+C+F=1. Applied in sectors like oil, mining, and metallurgy, they aid in predicting process dynamics and enhancing extraction techniques without intensive preprocessing, such as gold leaching experiments that improved yields.

In trading, the PCF functions were foundational in developing indicators for MetaTrader platforms, characterized by three lines (Sell, Buy, Trader). They predict price movement by historical analysis, aiding accurate entry and exit signals. Comprehensive experiments with PCF-based indicators also explored resonance effects across multiple currency pairs in automated trading scenarios, showcasing robust predictive capacities a...

๐Ÿ‘‰ Read | VPS | @mql5dev

#MQL5 #MT5 #Trading
โค60๐Ÿ‘12โœ5๐Ÿ†4๐Ÿ˜ˆ4๐Ÿ‘จโ€๐Ÿ’ป3๐Ÿ‘€1
Market Watch in MT4 often includes various symbols from different brokers, with some representing Binary Options. Brokers may use different naming conventions to indicate Binary Options, such as appending ".bo" or "_OP" to symbol names. This can create confusion in accurately identifying Binary Options symbols.

A reliable method for identification involves using the MODE_PROFITCALCMODE in code. This approach effectively detects Binary Option symbols by iterating through all available market watch symbols. By utilizing this method, you can ensure accurate detection of Binary Options among other financial instruments, enhancing your analysis and trading strategy.

๐Ÿ‘‰ Read | VPS | @mql5dev

#MQL4 #MT4 #Trading
โค29๐Ÿ‘พ3โœ1๐ŸŽ‰1๐Ÿ‘Œ1๐Ÿ‘จโ€๐Ÿ’ป1
Explore advanced methods to enhance lot and Stop Loss retrieval functions in algorithmic trading using MQL5โ€™s robust control libraries. Advanced functions are refined with debugging tools for accuracy, integrating efficient calculation methods for lot sizes and Stop Loss settings. Innovative features like GetLotByRiskPerOperation streamline risk-based calculations without needing Stop Loss distances. Further delve into creating dynamic panels and controls in MQL5 with functions for labels, buttons, and combo boxes, offering a structured and interactive risk management interface. Engage with practical solutions for better trading decisions and streamlined developer workflows, fostering an efficient trading environment with enhanced user interaction.

๐Ÿ‘‰ Read | AlgoBook | @mql5dev

#MQL5 #MT5 #Trading
โค46๐Ÿ‘€3๐Ÿ‘จโ€๐Ÿ’ป1
Discover the intricacies of Analytical Volume Profile Trading (AVPT), an advanced method revolutionizing market analysis by focusing on trading volume across price levels. AVPT goes beyond traditional indicators, using High-Volume Nodes and Low-Volume Nodes to map market memory and liquidity structures. This precision approach allows traders to decode institutional support and resistance, anticipate breakouts, and execute trades with precision. By integrating automation and real-time volume distribution, AVPT enables traders to navigate liquidity imbalances, turning market chaos into actionable insights. Ideal for MetaTrader 5 developers, AVPT offers a context-aware trading blueprint that enhances decision-making and risk management.

๐Ÿ‘‰ Read | AppStore | @mql5dev

#MQL5 #MT5 #Trading
โค20๐Ÿ‘1๐ŸŽ‰1๐Ÿคจ1๐Ÿ‘จโ€๐Ÿ’ป1