MetaTrader 5's Expert Advisor (EA) promises enhanced control over trading, especially for futures contracts. By enabling users to specify trade details like leverage and risk limits, the EA simplifies complex order placements, which can often be error-prone and time-sensitive. Utilizing object-oriented programming, the EA ensures easy maintenance and future scalability. Key features include an AdjustPrice function to handle varying price steps across assets and an OCO order system for secure trade execution, even in volatile markets. While suitable for partial orders, caution is advised due to potential volatility issues, positioning this EA as an essential tool for both new and seasoned algorithmic traders.
👉 Read | Freelance | @mql5dev
#MQL5 #MT5 #EA
👉 Read | Freelance | @mql5dev
#MQL5 #MT5 #EA
❤78👍11🎉7😁4🤔4⚡3👨💻1
The updated Didi Index you refer to includes an inverted slow line, providing a clearer representation of trend direction. This alteration allows for more straightforward analysis by aligning the slow line with the overall trend. Additionally, the code has been optimized for efficiency, reducing computation time and enhancing performance. These optimizations may include refined loop structures, improved memory allocation, and other technical tweaks that contribute to faster execution. As a result, this revised index offers a more responsive and user-friendly experience for analyzing market trends, proving to be a valuable tool for those working with complex datasets and time-sensitive analyses.
👉 Read | Calendar | @mql5dev
#MQL5 #MT5 #Indicator
👉 Read | Calendar | @mql5dev
#MQL5 #MT5 #Indicator
❤26👍4👀4👨💻2
In this comprehensive guide on leveraging MetaTrader 5 for algorithmic trading, we explore an advanced method to analyze deal history dynamically. By exporting completed trades to a file, these trades can be run through the strategy tester, allowing traders to experiment with different stop-loss and take-profit scenarios. Developers can implement an Expert Advisor (EA) that accesses historical data for rigorous backtesting. This approach provides traders with insights into past trading behaviors, enabling them to optimize strategies and validate predictions under various conditions, thus enhancing both the accuracy and performance of their trading systems. This tool proves invaluable for refining ongoing trading strategies.
👉 Read | NeuroBook | @mql5dev
#MQL5 #MT5 #EA
👉 Read | NeuroBook | @mql5dev
#MQL5 #MT5 #EA
❤27👍7👌5👨💻2⚡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
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
In this second part of the series on developing a professional trading system with Heikin Ashi, the focus shifts to creating the Zen Breakout Expert Advisor (EA). Using MetaQuotes Language 5 (MQL5), the EA combines the custom Heikin Ashi and MetaTrader 5 Fractals indicators to generate breakout signals. The EA opens long or short positions based on bullish or bearish breakouts, with adjustable stop-loss and take-profit levels. Developers will learn to hook indicators to an EA, implement breakout entry logic, and prepare a self-contained package for distribution, all ensuring a balance of risk and reward in trading operations.
👉 Read | Quotes | @mql5dev
#MQL5 #MT5 #EA
👉 Read | Quotes | @mql5dev
#MQL5 #MT5 #EA
❤29👍10💯3👨💻1
Explore a new approach to market data analysis that goes beyond traditional timeframes by integrating Volume, Range, Renko, and Kagi bars using a Python library. This innovative method captures intricate trading dynamics by adapting to market conditions, optimizing real-time data interpretation for strategic trades. The library seamlessly integrates with MetaTrader 5, offering real-time updates and performance optimization. It highlights how different bar types enhance trading strategies, offering insights for both novice and seasoned traders. Developers benefit from detailed implementations, including handling streaming updates. Tests reveal unique statistical insights, showcasing each bar type's efficiency and market signal clarity.
👉 Read | CodeBase | @mql5dev
#MQL5 #MT5 #Algorithm
👉 Read | CodeBase | @mql5dev
#MQL5 #MT5 #Algorithm
❤40🤔1👨💻1
In MetaTrader 5 build 5326, we have introduced several improvements to the desktop platform:
• Resolved an issue with the generation of implicit constructors and copy operators for structures and classes. In some cases, this could lead to critical failures in MQL programs.
• Added password length check during first-time account connection after migration from MetaTrader 4. The system now correctly checks the complexity of the new password.
• Fixed the display of the 'ID' column (external system identifier) in the list of open positions. The column will now only appear if at least one of the operations in the list has an associated identifier.
Discuss the update...
• Resolved an issue with the generation of implicit constructors and copy operators for structures and classes. In some cases, this could lead to critical failures in MQL programs.
• Added password length check during first-time account connection after migration from MetaTrader 4. The system now correctly checks the complexity of the new password.
• Fixed the display of the 'ID' column (external system identifier) in the list of open positions. The column will now only appear if at least one of the operations in the list has an associated identifier.
Discuss the update...
❤42👍16🔥5🏆2👨💻2
Stochastic Eclipse EA is a robust MT4 Expert Advisor utilizing the Stochastic Oscillator for trading. It targets overbought and oversold conditions to capitalize on early market reversals and major momentum changes while filtering out false signals.
Key components include Stochastic Oscillator integration with default overbought/oversold levels set at 80/20, which are customizable. Traders can modify %K, %D, and Slowing values according to specific strategies. The system adopts dual thresholds, executing trades exclusively at boundary crossings, and offers signal confirmation options for immediate or delayed entries.
In terms of trade management, lot size is set at 0.10 by default, modifiable based on individual risk levels. Stop loss and take profit parameters are established at 100 pips each, offering a balanced approach to safety and reward.
A backtest c...
👉 Read | Forum | @mql5dev
#MQL4 #MT4 #EA
Key components include Stochastic Oscillator integration with default overbought/oversold levels set at 80/20, which are customizable. Traders can modify %K, %D, and Slowing values according to specific strategies. The system adopts dual thresholds, executing trades exclusively at boundary crossings, and offers signal confirmation options for immediate or delayed entries.
In terms of trade management, lot size is set at 0.10 by default, modifiable based on individual risk levels. Stop loss and take profit parameters are established at 100 pips each, offering a balanced approach to safety and reward.
A backtest c...
👉 Read | Forum | @mql5dev
#MQL4 #MT4 #EA
❤31👨💻2🤔1
In the latest iteration, our MetaTrader 5 program offers a sophisticated ChatGPT dashboard with enhanced interactivity for algorithmic traders and developers seeking AI-driven insights. Key elements include a scrollable, chat-style UI capable of handling multi-turn interactions with timestamps and dynamic message handling. Implemented in MQL5, the program optimizes conversation flow, retains context across sessions, and enhances usability by refining text display for better readability. With configurable scrollbar settings and extended token limits, it empowers developers to customize and extend the tool for richer trading strategies. By modularizing API communication and message handling, the system ensures efficient, adaptive engagement with AI.
👉 Read | Freelance | @mql5dev
#MQL5 #MT5 #AI
👉 Read | Freelance | @mql5dev
#MQL5 #MT5 #AI
❤29👍1👨💻1
Discover the power of candlestick pattern analysis with the Candlestick Probability EA for MetaTrader 5. This tool analyzes key patterns like Pinbar, Engulfing, and Doji across different instruments and timeframes, providing empirical data on their effectiveness in signaling trend reversals or continuations. By quantifying success rates based on historical data, traders can make informed decisions, reducing premature entries often associated with these patterns. Designed for both manual and algorithmic traders, this EA offers a robust framework for turning visual patterns into actionable statistics, helping you refine trading strategies with confidence and precision. Perfect for enhancing your trading research and system development.
👉 Read | Signals | @mql5dev
#MQL5 #MT5 #EA
👉 Read | Signals | @mql5dev
#MQL5 #MT5 #EA
❤29✍4👨💻1
Market depth is crucial for order block detection. Initiation involves creating dynamic arrays for buy and sell volumes. During OnInit, arrays resize to start storing market order volumes. Depth availability is key, determined by broker support, checked via the chart corner for volume indication.
Initial set-up involves global variables marking market depth availability. Successful initialization uses Depth of Market functions checking OnInit. OnBookEvent tracks volume changes in dynamic arrays. Verification ensures updates with new candlesticks, controlling array size to 30 elements maintaining recent data integrity.
Structured logic for order blocks involves set conditions without loop iterations. Arrays hold critical price points to maintain real-time trading strategy integrity. Buffers are visualized using dynamic arrays, with OnInit processing...
👉 Read | Forum | @mql5dev
#MQL5 #MT5 #OrderBlock
Initial set-up involves global variables marking market depth availability. Successful initialization uses Depth of Market functions checking OnInit. OnBookEvent tracks volume changes in dynamic arrays. Verification ensures updates with new candlesticks, controlling array size to 30 elements maintaining recent data integrity.
Structured logic for order blocks involves set conditions without loop iterations. Arrays hold critical price points to maintain real-time trading strategy integrity. Buffers are visualized using dynamic arrays, with OnInit processing...
👉 Read | Forum | @mql5dev
#MQL5 #MT5 #OrderBlock
❤20👌7🎉2🔥1👨💻1
In the continuation of our trading strategy development in MQL5, we have built a Supply and Demand Trading System leveraging a retest and impulse model. This system identifies supply and demand zones through periods of consolidation, confirms their validity with impulsive price moves, and facilitates trading on retests.
Key components of this strategy include defining risk parameters, implementing trend confirmation, and enhancing chart visualization with dynamic labels and colors. We covered the framework, implementation in MQL5, key enumerations, zone detection and validation, trading logic, and the integration of trailing stops. This comprehensive approach provides a functional trading strategy in MQL5 to efficiently manage supply and demand zones for potential reentry trades.
👉 Read | AppStore | @mql5dev
#MQL5 #MT5 #Trading
Key components of this strategy include defining risk parameters, implementing trend confirmation, and enhancing chart visualization with dynamic labels and colors. We covered the framework, implementation in MQL5, key enumerations, zone detection and validation, trading logic, and the integration of trailing stops. This comprehensive approach provides a functional trading strategy in MQL5 to efficiently manage supply and demand zones for potential reentry trades.
👉 Read | AppStore | @mql5dev
#MQL5 #MT5 #Trading
❤58✍7🏆7👨💻5⚡3🎉1
This script outlines three methodologies for calculating the current Aroon Up and Aroon Down values. The first method involves utilizing the CopyHigh and CopyLow functions. The second method uses iHighest and iLowest functions to determine these values. The final method employs the Aroon indicator directly for the calculation. The indicator, authored by Nikolay Kositsin, is available for download from the MQL5 library. Access to this resource enables integration and comparison of these approaches, allowing for enhanced decision-making in technical analysis and algorithmic trading strategies.
👉 Read | Docs | @mql5dev
#MQL5 #MT5 #Indicator
👉 Read | Docs | @mql5dev
#MQL5 #MT5 #Indicator
❤27👍4👨💻2
A custom optimization function crafted for the MetaTrader 5 Strategy Tester, this script assists in analyzing test results beyond the typical use of Expert Advisors, indicators, or scripts. The code begins by collecting trade history from the tester, ensuring a minimum of 50 trades, and recognizing the initial deposit and testing periods. Trades are divided into In-Sample (IS) and Out-of-Sample (OOS) periods, facilitating a more robust analysis.
Thereafter, it calculates a series of metrics, covering factors like profitability, drawdown, Sharpe and Sortino ratios, and profit factor. Statistical analysis is conducted using Kolmogorov-Smirnov and Jarque-Bera tests. Strategy evaluation incorporates multiple dimensions: profitability, consistency, risk-adjusted performance, and statistical quality.
This code is applicable in various scenarios: strategy...
👉 Read | Calendar | @mql5dev
#MQL5 #MT5 #AlgoTrading
Thereafter, it calculates a series of metrics, covering factors like profitability, drawdown, Sharpe and Sortino ratios, and profit factor. Statistical analysis is conducted using Kolmogorov-Smirnov and Jarque-Bera tests. Strategy evaluation incorporates multiple dimensions: profitability, consistency, risk-adjusted performance, and statistical quality.
This code is applicable in various scenarios: strategy...
👉 Read | Calendar | @mql5dev
#MQL5 #MT5 #AlgoTrading
❤17👍3🎉2💔1👨💻1
The Balance of Power (BOP) indicator, devised by Igor Livshin in 2001, assists in determining the dominance dynamics between buyers and sellers per candle session. This variant integrates a Simple Moving Average (SMA) to effectively reduce market noise, enhancing clarity in reading the indicator. The visual representation delineates buyer dominance (bulls) when the closing price approximates the high and seller dominance (bears) when it nears the low. The formula driving BOP is: (Close - Open) / (High - Low). A BOP above zero indicates buyer control, below zero suggests seller control, and values around zero reflect market balance or indecision. Extreme values, such as ±0.2, often signal potential corrections due to excessive strength.
👉 Read | Freelance | @mql5dev
#MQL5 #MT5 #Indicator
👉 Read | Freelance | @mql5dev
#MQL5 #MT5 #Indicator
❤25👨💻2
The article delves into enhancing MetaTrader 5's library classes to manage the complete history of graphical object changes on trading charts. This innovative approach enables recording every property change within a graphical object, providing a comprehensive snapshot of its historical data. Developers can effectively restore any object to a previous state, facilitating nuanced technical analysis by recognizing past object configurations. By introducing new properties and updating existing ones like Group and Species, the framework is optimized for sorting and accessing change history effectively. This is particularly beneficial for developers aiming to create sophisticated tools for analyzing market trends with precision and efficiency.
👉 Read | Signals | @mql5dev
#MQL5 #MT5 #EA
👉 Read | Signals | @mql5dev
#MQL5 #MT5 #EA
❤50👍9👌6👀5👨💻4🏆2
PriceVar% is a technical indicator that calculates the percentage difference between market price and a moving average. It measures market movement strength against a reference value. When the closing price is above the moving average, use this formula: Var = (High - MA) / MA * 100. If it's below, the formula is: Var = (Low - MA) / MA * 100. Results are shown as a percentage histogram: green signals price above average, indicating buying force; red signals price below average, indicating selling force.
For interpretation, positive values represent the high's distance from the average, while negative values represent the low's distance. Larger absolute values mean a greater percentage distance. This indicator helps detect overbought or oversold conditions, quantify volatility, and support breakout or reversal strategies. It's also useful for setting th...
👉 Read | Quotes | @mql5dev
#MQL5 #MT5 #Indicator
For interpretation, positive values represent the high's distance from the average, while negative values represent the low's distance. Larger absolute values mean a greater percentage distance. This indicator helps detect overbought or oversold conditions, quantify volatility, and support breakout or reversal strategies. It's also useful for setting th...
👉 Read | Quotes | @mql5dev
#MQL5 #MT5 #Indicator
❤33👍8👨💻4
The article explores the integration of the AutoCorrelation Function (ACF) as a filter in enhancing the Moving Average Crossover strategy for algorithmic trading. It utilizes sixteen years of M15 currency data to assess the effectiveness of the ACF, which identifies time series patterns by measuring correlations within price data. Unlike conventional indicators like ATR and Bollinger Bands, the ACF is not influenced by volatility, showing potential to differentiate profitable from non-profitable trades. When applied to the SMA Crossover Strategy, the ACF threshold requirement significantly bolstered profitability for both EURUSD and GBPUSD pairs, highlighting its utility for expert advisors and algorithmic traders.
👉 Read | AppStore | @mql5dev
#MQL5 #MT5 #EA
👉 Read | AppStore | @mql5dev
#MQL5 #MT5 #EA
❤67👍9✍5🔥3👾3⚡2👌2
Dollar Index Tracker offers a tool for traders to gauge the US Dollar's standing against a basket of major currencies directly alongside their trading charts. It displays USDX composed of six major pairs with EUR/USD having the most influence. Established in 1973 at a value of 100, it remains crucial for measuring dollar strength. The tracker executes the USDX formula in real time, enabling customization with moving averages to identify trends. Input settings allow adjustment of currency pairs and coefficients, offering strategic advantages such as detecting divergence and confirming trends. Multi-timeframe analysis can enhance alignment with dollar trends across various trading frames. It serves as a critical correlation filter, providing clarity on dollar momentum and guarding against false trading signals. Ensure all key currency pairs are listed in Mar...
👉 Read | Freelance | @mql5dev
#MQL4 #MT4 #USDX
👉 Read | Freelance | @mql5dev
#MQL4 #MT4 #USDX
❤53✍4🤡3🤣3😁2👨💻1
Introducing a technical solution for traders seeking to leverage retail sentiment: the Ziwox Retail Sentiment EA. This Expert Advisor employs data from the Ziwox API to implement a contrarian strategy by analyzing retail trader sentiment. Overextended market conditions often occur when most retail traders take one side. By understanding these positions, traders can apply contrarian moves, potentially in synergy with broader market trends and institutional flows.
The advisor retrieves sentiment data via an API call, interpreting the Retail Long and Short Ratios. The contrarian logic triggers sell trades if the long sentiment exceeds a certain threshold with a confirmed technical trend and triggers buys in the opposite scenario. A technical filter with moving averages ensures trades align with established trends, preventing this from crowding.
Automated trad...
👉 Read | Calendar | @mql5dev
#MQL4 #MT4 #Sentiment
The advisor retrieves sentiment data via an API call, interpreting the Retail Long and Short Ratios. The contrarian logic triggers sell trades if the long sentiment exceeds a certain threshold with a confirmed technical trend and triggers buys in the opposite scenario. A technical filter with moving averages ensures trades align with established trends, preventing this from crowding.
Automated trad...
👉 Read | Calendar | @mql5dev
#MQL4 #MT4 #Sentiment
❤27👌3👨💻2
The StockFormer hybrid trading system leverages cutting-edge methods like predictive coding and reinforcement learning to forecast market dynamics. Its innovative structure features three specialized Transformer branches for extracting asset interdependencies, and short and long-term predictions. The integration through advanced attention mechanisms enhances pattern detection and adaptability in volatile markets. Practical implementation emphasizes the use of the Diversified Multi-Head Attention module for efficient pattern recognition in noisy data. The training of predictive models focuses on constructing expert systems for time series analysis, optimizing for profitability through focused trajectory selection in neural network training. This robust framework positions StockFormer as a powerful tool for algorithmic trading development.
👉 Read | Quotes | @mql5dev
#MQL5 #MT5 #AI
👉 Read | Quotes | @mql5dev
#MQL5 #MT5 #AI
❤28👨💻1