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
Explore the power of ALGLIB optimization methods in MetaTrader 5! Delve into advanced algorithms including BC for box-constrained problems and NLC for nonlinear constraints, which offer refined precision and adaptability for complex multidimensional tasks. Discover how BC optimizes with faster constraint activation, while NLC excels in managing various constraints using sequential quadratic programming, augmented Lagrangian, and linear programming solvers. Additionally, the Levenberg-Marquardt method blends gradient descent with Gauss-Newton techniques for exceptional curve fitting. Enhance your trading strategies with these robust solutions designed to tackle sophisticated financial models, providing developers and traders a practical edge in algorithmic trading.

πŸ‘‰ Read | AppStore | Share!

#MQL5 #MT5 #AlgoTrading
❀48πŸ‘6πŸ‘¨β€πŸ’»5
For developers and technical analysts interested in chart customisation, implementing a clear distinction between bullish and bearish candles can aid in market analysis. The process involves two main steps: drawing the wicks and the candle bodies.

First, draw vertical lines, or "wicks," from the lowest price to the highest price of each candle. These lines provide a visual range of activity within each period. Next, draw a rectangle for the body of the candle, with the opening and closing prices determining its top and bottom edges. Use distinct colors to differentiate between bullish and bearish candles. For example, a maroon body might indicate bearish movement, with light violet wicks, enhancing visual distinction.

This approach offers a customised visual style, helping analysts quickly identify trends and price actions. Adapt color settings ...

πŸ‘‰ Read | Calendar | Share!

#MQL5 #MT5 #Indicator
❀43πŸ‘7πŸ‘Œ2πŸ‘¨β€πŸ’»2✍1πŸ€”1
Explore the Money Flow Index (MFI) in trading, a volume-based indicator that measures buying and selling pressure, providing valuable insights for traders. Calculated with price and volume data, MFI offers signals for trends and reversals. Learn to implement MFI in MetaTrader 5 using MQL5, crafting strategies like identifying oversold/overbought zones or divergence patterns. Developers can design trading systems by creating MFI-based strategies and coding them in MQL5. Each strategy blueprint aids in crafting tailored trading systems, enriching both traders' toolkits and developers' coding skills. Use this guide to enhance your algorithmic trading knowledge and system development proficiency.

πŸ‘‰ Read | AppStore | Share!

#MQL5 #MT5 #Trading
❀75πŸ‘16😎9πŸ”₯6πŸ‘Œ6πŸ‘¨β€πŸ’»3😁2
The 2 Moving Averages indicator is an advanced MQL4 tool that aids traders by pinpointing trend directions and potential entry points. It utilizes two moving averages: a fast and a slow one, following the crossover strategy. A buy signal is initiated when the fast average surpasses the slow one, while a sell signal emerges when it falls below.

The indicator also integrates dynamic support and resistance levels, enhancing decision-making accuracy by highlighting significant price levels where the market has shown reversals or consolidation. Traders can customize the periods and types of averagesβ€”Simple, Exponential, Smoothed, or Linear Weightedβ€”tailoring it to various styles.

Suitable for scalping, swing trading, and long-term analysis, it provides alerts for MA crossovers and key zones, being effective across all symbols and time frames. This makes it a v...

πŸ‘‰ Read | Freelance | Share!

#MQL4 #MT4 #Indicator
❀42πŸ‘9πŸ‘¨β€πŸ’»3✍2😁1πŸ’―1
The newly introduced indicator is a variation of the Divergence Awesome Oscillator, designed for enhanced market analysis. This tool provides traders with the ability to identify potential reversals by showing divergences between price movements and the oscillator's activity. It assists in decision-making by offering insights into market conditions. Its advanced algorithm builds upon the traditional concepts of divergence, aiming to deliver precise and timely signals. Users seeking further implementation details can explore available resources to better understand its functionality. It remains an essential addition to the technical analyst's toolkit for improving trading strategies.

πŸ‘‰ Read | Freelance | Share!

#MQL5 #MT5 #Indicator
❀48πŸ‘Œ8πŸ‘¨β€πŸ’»4πŸ‘2πŸ”₯2πŸ†1
Explore the development of a logistic model aimed at predicting stock market crashes using comprehensive data analysis. Focus on key factors affecting stock prices, such as company performance, interest rates, and inflation. Assess the relevance and correlation of each factor, like the Price-to-Earnings Ratio and Earnings Per Share. The approach involves refining data selection to strengthen predictive accuracy, utilizing logistic regression for classifications. Evaluate model performance with testing data, achieving an accuracy of 70.45% for Apple's dataset, demonstrating a promising predictive tool for traders. Additionally, explore the practicality of deploying these models in real-time market testing for enhanced decision-making strategies.

πŸ‘‰ Read | Forum | Share!

#MQL5 #MT5 #StockMarket
❀87πŸ‘9πŸ‘€7πŸ‘¨β€πŸ’»5🀯3
Introducing SniperJaw EA, a focused expert advisor utilizing the Alligator indicator. Key features include single-position focus and trend tracking via the Jaw, Teeth, and Lips components. Control trade size with LotSize, and set exit strategies using UseEntryToExit for opposite signals or classic TakeProfit and StopLoss measures. Slippage is adjustable through the Slippage parameter, and trading capability can be toggled with TradeEnabled. Customize the Alligator's efficiency with parameters like JawPeriod, JawShift, TeethPeriod, TeethShift, LipsPeriod, and LipsShift. Adapt these settings to align with specific strategic goals and ensure precise trend following.

πŸ‘‰ Read | Quotes | Share!

#MQL4 #MT4 #EA
❀50🀣10πŸ‘5✍4πŸ‘3πŸ‘¨β€πŸ’»3⚑2
The Double Moving Averages With Fibonacci tool is crafted for traders requiring both trend-following indicators and support/resistance levels. It employs two adaptable moving averages to signal trades: when the faster average surpasses the slower one, it signals a buy, marked by an arrow. A downward crossover signals a sell opportunity. This dual moving average approach aids in pinpointing trend shifts and entry points.

Fibonacci retracement levels and optional Fibonacci Fan lines are incorporated to act as support and resistance zones, assisting traders in identifying potential trend reversals or continuations. This indicator operates across all time frames, offering flexibility for scalping, day trading, or swing trading strategies.

The feature-rich tool includes real-time alerts via sound, pop-ups, and emails, allowing traders to remain aware of t...

πŸ‘‰ Read | AppStore | Share!

#MQL4 #MT4 #Indicator
❀30πŸ‘16πŸ‘¨β€πŸ’»2✍1
A new Expert Advisor has been shared on the forum utilizing two Moving Average (MA) indicators. It operates by opening trades if the MAs fail to cross over a predefined period, followed by a pullback from the main trend. The strategy involves opening the first of three trades, with subsequent orders initiated based on the Average True Range (ATR), dictating movement in favor of or against the trade direction. Trailing stop mechanisms are involved once all three trades are established and price moves favorably. Conversely, the EA closes trades if price moves adversely beyond a certain grid step distance. This provides flexibility in managing market uncertainties.

πŸ‘‰ Read | Freelance | Share!

#MQL5 #MT5 #EA
❀46✍6🀣4🀯3⚑1πŸ‘1πŸ‘Œ1
This utility indicator is designed to show labeled trade levels on charts efficiently. To disable native trade levels, access "Show trade levels" in F8 Chart Properties. For Custom Charts that lack native display capabilities, attach this indicator to see the trade levels accurately. Utilize BaseSymbol to pull trade level data for unique Custom Symbols. Customize TextBarsBack to control how far back the level labels appear from the current bar. Although a magic number reference exists, it currently doesn't appear in trade lines. For multiple EAs on a single symbol, adapt the code to include magic numbers and run multiple indicator instances on one chart. Adjust font sizes and text spacing in object properties as needed for different display resolutions.

πŸ‘‰ Read | Docs | Share!

#MQL5 #MT5 #Indicator
❀40✍3πŸ‘3πŸ‘¨β€πŸ’»3πŸ€”1
Explore the Accumulation/Distribution (AD) indicator in MetaTrader 5 through the eyes of an experienced developer. This article provides insights into the core functionality and calculation of this volume-based tool. Discover the AD indicator's role in confirming trends and identifying potential reversals. Learn to manually compute the AD line, enhancing comprehension of its underlying logic. Dive into simple strategies to leverage AD for improved trading, including movement strength and trend analysis. Gain practical expertise with blueprint designs for MQL5 coding, fostering your ability to develop bespoke trading systems in MetaTrader 5. Ideal for both novice and seasoned algorithmic traders.

πŸ‘‰ Read | VPS | Share!

#MQL5 #MT5 #Trading
❀72πŸ‘12πŸ”₯5πŸ†5πŸ‘2πŸ‘¨β€πŸ’»2⚑1
The Baseline: iMA + ATR Bands indicator merges a standard Moving Average with ATR-based bands, offering a visual tool to identify trends, breakouts, and volatility. Originating from the NNFX methodology, this indicator serves as a primary trend filter to streamline chart interpretation. Users can customize the iMA period to determine the bars for the Moving Average and select the type of MA, whether SMA, EMA, SMMA, or LWMA. The applied price can be set to Close, Open, High, or Low. ATR period and multiplier adjustments help calculate the bands. It’s advisable to utilize the MA line as a trend filter, noting that crossing above the upper band suggests bullish momentum and below indicates bearish momentum. For informed trading, it's crucial to integrate confirmation, volume, and exit strategies consistent with existing guidelines.

πŸ‘‰ Read | NeuroBook | Share!

#MQL5 #MT5 #Indicator
❀45πŸ‘12⚑3😈1πŸ‘¨β€πŸ’»1
MetaTrader 5 (MT5) is a robust platform for automating trading strategies. It utilizes MQL5, a proprietary programming language, enabling customization and automation in trading operations. Users can download MT5 for free from metatrader5.com, suitable for Windows, Linux, and Mac, when properly configured. The platform also facilitates mobile access for monitoring trades, though these versions lack automation features. MT5 supports an extensive ecosystem, including a marketplace for trading robots, technical indicators, and real-time signal services.

Installing MT5 is straightforward. Once downloaded, execute the setup file, agree to the terms, and complete the installation. For beginners, a Demo account is recommended; it allows risk-free practice in simulated trading environments. More serious users may consider Cent accounts for low-risk real-m...

πŸ‘‰ Read | Calendar | Share!

#MQL5 #MT5 #MetaTrader
❀90πŸ‘16πŸ‘¨β€πŸ’»6πŸŽ‰4πŸ’―1
The "FalseBreakouts.mq5" indicator enhances chart analysis by identifying false breakout patterns of support and resistance levels in MetaTrader 5. It efficiently marks buy and sell points using dynamic support and resistance lines, aiding in the recognition of market tops and bottoms.

Constructed with six buffers, this indicator provides a visual representation on the main chart. Up and down arrows indicate buy and sell points in blue and red respectively, while support and resistance levels are drawn with corresponding coloured lines. Arrows also denote tops and bottoms.

Key functions include:

1. OnInit: Initialises buffers and sets arrow properties for easy visualisation.

2. OnCalculate: Updates buffers with each data change, identifies tops and bottoms, and evaluates buy/sell signals.

3. IsBuy/IsSell: Checks false breakouts for potential ...

πŸ‘‰ Read | Freelance | @mql5dev

#MQL5 #MT5 #Indicator
❀46πŸ‘7πŸ‘Œ4πŸ”₯2πŸ‘¨β€πŸ’»1
The Atom-Motif Contrastive Transformer (AMCT) framework emerges as an innovative approach to forecast market trends with enhanced accuracy by analyzing both atomic and complex structural levels. By naturally aligning representations via candlesticks and market patterns, it enhances interpretative quality across varying timeframes. A key innovation is the property-aware attention mechanism employing cross-attention to refine trend analysis. The framework autonomously learns market property features, preventing manual definition errors. This structured approach significantly lowers decision latency by optimizing pass methods. The integration of scaling models transforms pattern outputs into more compatible dimensions, improving alignment and creating a cohesive structure for accurate market analysis.

πŸ‘‰ Read | Calendar | @mql5dev

#MQL5 #MT5 #AI
❀37πŸ‘5⚑3πŸ‘¨β€πŸ’»2
Institutional traders purposefully influence markets, triggering stop-losses for liquidity sweeps that move prices temporarily. Recognizing these sweeps can protect traders from premature exits and align them with market trends. A developed MQL5 Expert Advisor (EA) identifies such sweeps by analyzing candle patterns where price breaks and then closes back within a range, indicating liquidity absorption. This EA uses optional filters like moving averages and color changes for enhanced accuracy. By marking and alerting valid patterns, the EA helps traders foresee institutional moves, maintaining an edge by reducing false signals and catching shifts in market momentum effectively.

πŸ‘‰ Read | AlgoBook | @mql5dev

#MQL5 #MT5 #Algorithm
❀29πŸ‘5πŸ‘Œ3πŸ‘¨β€πŸ’»2✍1
The Parabolic Stop-And-Reverse (SAR) indicator and Relative Vigor Index (RVI) oscillator provide a strategic combination of trend identification and momentum tracking. Testing on GBP CHF for 2023, using optimized metrics, assesses various signalling patterns in a wizard Expert Advisor. The testing ensures isolated setups for each pattern, adjusting parameters via MQL5’s structure, focusing on pattern-specific maps for signal accuracy.

The test spans from 2023 to 2025, highlighting SAR’s trend-following capability and RVI's momentum tracking. Patterns were systematically tested on a 4-hour timeframe, verifying reliability across different market conditions and incorporating essential filters to enhance signal clarity. The reactive nature of the SAR ensures adaptable stop-loss management, crucial in volatile market shifts, while the collected data ai...

πŸ‘‰ Read | VPS | @mql5dev

#MQL5 #MT5 #Indicator
❀52πŸ”₯6πŸ‘Ύ4πŸ‘¨β€πŸ’»1
In MetaTrader 5 build 5120, we have introduced a number of fixes and improvements to the platform:

β€’ Fixed interface display issues on Linux and macOS.
β€’ Updated available models for AI Assistant in MetaEditor.
β€’ Enabled passing of arrays with signed/unsigned typecasting in ArraySwap, WebRequest, CryptEncode, CryptDecode, and other data conversion functions.
β€’ Fixed retrieval of key states for MQL programs on the active chart.
β€’ Corrected ArrayInitialize behavior for enum arrays.

Discuss the update
❀72πŸ‘16πŸ‘¨β€πŸ’»5πŸŽ‰1
The process of closing or deleting orders in a multi-currency EA is straightforward. The code uses comments as identifiers to determine which orders to close or delete. If the EAComment input is empty, it defaults to closing based on the specified close type. The functionality supports both prefix and suffix in the comment for flexibility. There is potential for further development and customization by exploring additional options. Please ensure any suggestions or feedback focus on core functional enhancements. This systematic approach ensures efficient trade management in multi-currency scenarios.

πŸ‘‰ Read | Freelance | @mql5dev

#MQL5 #MT5 #EA
❀50πŸ‘6πŸ‘¨β€πŸ’»5πŸ‘Œ1
The article explores the development of an info panel to track trading history and statistics using MetaTrader 5's MQL5 environment. It provides a solution for traders needing an adaptable tool to analyze trading data by symbols and strategy identifiers (magic numbers) without using data buffers. By leveraging SQLite for database operations, the article details how to structure tables and manage data efficiently, allowing extended functionality like scrollable tables and dynamic dashboards. The solution empowers traders and developers to extract and interpret comprehensive account statistics directly from existing databases, enhancing decision-making in algorithmic trading strategies.

πŸ‘‰ Read | Calendar | @mql5dev

#MQL5 #MT5 #AlgoTrading
❀64πŸ‘¨β€πŸ’»8πŸ†5⚑4✍2