MQL5 Algo Trading
388K subscribers
2.57K photos
2.57K 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 Fisher MetaTrader indicator presents a straightforward method for identifying trend directions and strengths through a histogram format. It stands out by not relying on standard MT4/MT5 indicators and instead uses maximum and minimum price levels from past periods to calculate these trends. This technical tool operates on both MT4 and MT5 platforms and is known as a "repainting" indicator, meaning it recalculates previous bars when new data arrives.

For optimal functionality, the indicator uses the 'Period' parameter, with a default of 10 bars, to set the calculation range for the max/min prices. A higher period value provides fewer false signals but introduces more lag. On charts, upward trends are displayed with green histogram lines and downward trends with red. Traders can manage positions by observing color changes: transitioning from red ...
#MQL5 #MT5 #Indicator #AlgoTrading

Read more...
👍206👨‍💻2
Mathematical formulas are integral to price action analysis, especially in forex trading. In the South African market, traders often use a 50-day Simple Moving Average for trend detection and standard deviation for assessing volatility in the ZAR/USD pair. Position sizing and risk management calculations, incorporating set risk percentages and stop-loss distances, optimize risk management. This enhances profit targets through tools like Fibonacci retracements. The Heikin Ashi technique offers a novel approach for detecting trend reversals by filtering market noise for clearer trend insights. Developed by Munehisa Homma, it averages price data to present a smooth view of market dynamics, aiding traders globally in making informed decisions.
#MQL5 #MT5 #Forex #Trading

Read more...
👍103👨‍💻1
The Gain/Loss Info indicator for MetaTrader platforms provides essential insights into price changes exceeding specified thresholds. It measures gains and losses in points and percentage, catering to two calculation modes: the difference between Close and Open, or between consecutive Closes. Customize the indicator's sensitivity with "PercentageLimit" and "PointsLimit" settings, adjusting which price changes get highlighted. Visual customization is possible; choose colors for gains and losses through "DisplayGainColor" and "DisplayLossColor". Control the scope of analysis with "MaxBars" and tailor font appearance with "FontFace" and "FontSize". The "ObjectPrefix" ensures seamless integration with other indicators. Compatible with both MT4 and MT5 platforms, enhancing your technical analysis toolkit.
#MQL5 #MT5 #Indicator #Forex

Read more...
👍195🤯1👨‍💻1
The Rainbow Multiple Moving Average (RMMA) indicator is designed for the MetaTrader platforms, compatible with both MT4 and MT5. This tool utilizes a standard moving average, displaying an array of 66 lines, each distinctly colored for visual clarity. Primarily, it offers enhanced analytical perspective by using multiple moving averages on a single chart. Users can configure the type of moving average through the MA_Type parameter, defaulting to Exponential Moving Average (EMA). Additionally, the MA_Price parameter lets users select which price (default is close price) to use for calculations. The variety in periods for these moving averages adds depth to its utility, providing diverse insights into market trends.
#MQL4 #MT4 #Indicator #Trading

Read more...
👍136👨‍💻2🔥1
The article delves into improving the replay/simulator system for MetaTrader 5 by focusing on template utilization and encapsulation. It highlights the transition from InterProcess.mqh to Defines.mqh for a cleaner header file structure, which requires code modifications to avoid compilation errors. Proper encapsulation is addressed to enhance code maintainability and security, particularly within the C_ConfigService and C_Replay classes. This involves private variable management and restructuring the C_Replay class to handle data more efficiently. The article exemplifies how controlling chart indicators and templates can streamline the process, ultimately making the trading tool more adaptable and easier to maintain.
#MQL5 #MT5 #ReplaySystem #Algorithm

Read more...
11👍6👨‍💻2
The Float MetaTrader indicator offers advanced analysis of currency pairs by examining historical chart data and evaluating current trends. It displays trend initiation and conclusion points in a separate chart window and integrates Fibonacci and DiNapoli levels on the main chart. Additionally, it shows the time since the last local peak and trough were detected. This tool is available for both MT4 and MT5 platforms.

Key features include its repainting ability, which reassesses peaks and troughs as market conditions change, making it unsuitable for direct trading signals but valuable for trend swing duration analysis. The input parameters are customizable, including the number of bars for analysis and visual attributes like colors and line styles for different components such as swing borders, swing lines, Fibonacci, and DiNapoli levels. Adjusting th...
#MQL5 #MT5 #Indicator #Algorithm

Read more...
👍134👨‍💻1
The Range Expansion Index (REI) is a relative oscillator designed by Tom DeMark, focusing on measuring the speed of price changes while identifying overbought or oversold market conditions. The indicator, with values ranging from -100 to +100, aims to minimize noise during range-bound markets and issues alerts at significant price movements. Default settings include an REI period of 8, suitable for generating accurate signals, though users can adjust for signal frequency.

To enhance usability, the REI allows configuration of MetaTrader alerts, including pop-up, email, and push notifications, when specific levels are crossed. Proper setup for email and push notifications is required via MetaTrader's settings. Users can select alerts based on either the most recently closed or the current candle. DeMark advises using the default 8-period setting. The...
#MQL4 #MT4 #Indicator #AlgoTrading

Read more...
6👍42👨‍💻1
Discover a novel approach to algorithmic trading by transforming price changes into angles using polar coordinates in MetaTrader 5. This method simplifies handling oscillating market data and avoids the pitfalls of infinite values. By leveraging polar coordinates, the system naturally interprets trading signals with real-world significance. Learn to implement this sophisticated technique using MQL5's Matrix and Vector API, and integrate ONNX models for predictive analytics. Experience enhanced forecasting accuracy with gradient-boosted tree models, and witness a substantial 88% accuracy rate in trading backtests. This innovative framework provides MetaTrader 5 developers new avenues for refining trading strategies effectively.
#MQL5 #MT5 #Strategy #AlgoTrading

Read more...
👍102👨‍💻2
The Keltner Channel, introduced in 1960 by Chester W. Keltner, is a staple in technical analysis. Functioning similarly to Bollinger Bands and Envelopes, it uses three lines. The middle line is a 10-day simple moving average applied to the typical price formula, and the upper and lower bands incorporate the moving average of the daily price range. These create a volatility-based channel. Users can configure moving average parameters and apply it on MT4 and MT5 platforms. Strategically, traders often go long when prices close above the upper band and short when below the lower. Exit strategies typically involve conservative stop-losses, distant take-profit levels, or crossing the middle line. The upper band tends to hold against breaks in uptrends, while the lower holds in downtrends. This indicator can be enhanced with additional signal confirmations.
#MQL5 #MT5 #Indicator #Strategy

Read more...
👍1161👨‍💻1
The Recent High/Low Alert indicator for MetaTrader platforms (MT4 and MT5) provides a visual and alert-based tool for tracking maximum and minimum price levels across a set number (N) of candles, defaulting to 20. It visually differentiates these levels with blue and yellow lines. Designed for traders seeking timely notifications, it offers three alert options: popup, email, and push notifications, all configurable within the MetaTrader platform settings.

Traders can integrate this feature to refine entry and exit strategies. By serving as a dynamic trailing stop-loss or a signal confirmation tool, it enhances trading precision. Configurable options allow for triggering alerts on either the most recently closed or current candle. Effective alert configuration is critical for ensuring responsiveness to market changes. Adjust parameters according to speci...
#MQL4 #MT4 #Indicator #Alerts

Read more...
12👍7👏1👨‍💻1
The article focuses on continuing the implementation of the Artificial Bee Hive Algorithm (ABHA) by elaborating on its supporting methods. The ABHA is modeled on bee behavior, using states like novice, experienced, search, and food source to dictate actions based on environmental information and motivational states.

The StageActivityNovice method defines novice agent actions based on a probabilistic model, deciding between random searches or emulating other agents. The StageActivityExperienced method outlines how experienced agents choose actions according to multiple probabilities. The StageActivitySearch and StageActivitySource methods define movement and position updates based on search directions or food proximity.

Other methods such as ActionRandomSearch, ActionFollowingDance, and ActionMovingDirection detail specifics on movement and direction change...
#MQL5 #MT5 #Algorithm #AI

Read more...
👍9👨‍💻21
The Laguerre indicator for MetaTrader provides a unique approach to analyzing market trends. Unlike standard indicators on MT4/MT5, it offers a weighted trendline representation in a separate chart window. This allows traders to use it for clear entry and exit signals. Compatible with both MT4 and MT5, it features customizable input parameters. The Gamma parameter, with a default of 0.7, adjusts the smoothness of the trendline — the higher the value, the smoother the line. The CountBars parameter, defaulting at 950, sets the number of bars for calculating the indicator, which can be increased if system performance allows. Consider testing its settings to suit your trading needs.
#MQL5 #MT5 #Indicator #Trading

Read more...
👍111👨‍💻1
The Rainbow Multiple Moving Average (RMMA) indicator is a straightforward yet visually appealing tool that incorporates the standard moving average. It displays 66 rainbow-colored moving average lines directly on the chart's main window. This indicator is compatible with both MT4 and MT5 platforms, providing versatility for a wide range of traders.

Key input parameters include MA_Type, which defaults to MODE_EMA, determining the type of moving average used. MA_Price defaults to PRICE_CLOSE, specifying the price type for calculations. The MA_Period_NN varies, setting the periods for the 66 moving averages. This configuration allows traders to adjust their analysis based on preferred moving average types and price data, making it a flexible option for market analysis and strategy development.
#MQL5 #MT5 #Indicator #RMMA

Read more...
👍102👨‍💻1
Explore the creation of custom indicators in MQL5, enhancing your algorithmic trading toolkit. Learn the intricate process of designing indicators from scratch, like crafting a bespoke Moving Average without relying on built-in functions. Grasp the mechanics of displaying calculations in both line and candle formats using indicator buffers and SetIndexBuffer(). Understand essential elements such as the OnCalculate() function for processing price data and determining candle colors. This guide simplifies complex concepts for beginners, while offering depth for experienced developers, empowering traders to tailor tools for specific strategies and gain a profound understanding of price movements and market trends.
#MQL5 #MT5 #CustomIndicator #MQL5

Read more...
👍7👨‍💻31
Market Profile MetaTrader indicator is a tool designed for accurate analysis of price density over time, highlighting essential price levels and control values during trading sessions. Compatible with timeframes from M1 to D1, it delivers profiles for various durations, including intraday, daily, weekly, and monthly sessions. Precision increases with lower timeframes, while higher timeframes enhance visibility. Users can create custom profiles using a free-draw rectangle session on any timeframe.

Featuring six color schemes, the indicator can draw profiles as plain color histograms or in bullish/bearish bar styles, relying solely on price action rather than standard indicators. Available for MetaTrader 4 and 5, it includes input parameters like Main Session, StartFromDate, and others that allow extensive customization. Seamless scrolling mode enables u...
#MQL5 #MT5 #Indicator #Trading

Read more...
👍173👨‍💻31
The Range Expansion Index (REI) is a relative oscillator designed to measure the pace of price changes, identifying overbought or oversold conditions. Developed by Tom DeMark, the REI ranges from -100 to +100 and maintains stability during range trading, signaling only significant peaks or bottoms. The recommended period for REI is 8, as suggested by DeMark, offering either fewer precise or more frequent inaccurate signals depending on adjustments. It is not advised to alter this parameter significantly.

For enhanced functionality, REI supports MetaTrader's alert systems, including native pop-up alerts, email alerts, and push notifications, triggered when the indicator crosses specified threshold levels. Proper configuration of notification settings via MetaTrader is necessary to utilize these alert systems effectively. When surpassing level 60 dro...
#MQL5 #MT5 #Indicator #AlgoTrading

Read more...
👍115👨‍💻2
The Moving Average Candlesticks indicator offers a more nuanced view of market trends by visualizing standard moving averages through candlestick bars. Unlike traditional moving averages, this approach provides details on Open, Close, High, and Low values. Applicable across all currency pairs and timeframes, it supports both MT4 and MT5 platforms. Key parameters include MAPeriod set to 10 and MAType set to MODE_SMA by default.

Though not advisable for direct trading decisions, it aids in identifying market irregularities by analyzing candlestick body lengths and shadow lengths. Color changes in candlesticks can be misleading and are not always reliable entry signals, often resulting in false alerts. This tool should serve as a supplementary analysis method rather than a standalone trading strategy.
#MQL5 #MT5 #Indicator #Strategy

Read more...
👍157👨‍💻2
The Recent High/Low Alert indicator for MetaTrader enhances trading by displaying bands of recent maximum and minimum levels across a set number of candles, with customizable alerts. By default, the maximum is indicated with a blue line, and the minimum with a yellow line. Alerts can be configured as popup, email, or push notifications, facilitating timely responses to price movements. Compatibility is ensured for both MT4 and MT5 platforms.

Set the period parameter \(N\) to define the number of candles the levels consider, defaulting to 20. Adjust alert preferences via the platform's options, ensuring email and notification settings are configured correctly. Use this tool to identify potential exit or entry points based on the breach of recent highs or lows, supplementing your trading strategy with additional confirmation signals.
#MQL5 #MT5 #Indicator #Alerts

Read more...
👍65👨‍💻1
The Murrey Math Line X indicator is a pivotal tool for traders skilled in support, resistance, and pivot lines. It displays 8 main lines and 5 additional ones on MT4 and MT5 charts, aiding in identifying optimal points for transactions and exits. The indicator can alert users upon a candle closing past a pivot line, with customizable settings such as period, upper timeframe, and line display preferences.

Key settings include:
- Period (default = 64): Determines line calculation based on number of bars.
- UpperTimeframe (default = PERIOD_D1): Influences how lines are calculated across different timeframes.
- LabelSide dictates label positioning on the screen.

Mark and font settings are available for customization, including line color and width. Alerts can be configured for in-platform notifications, emails, and messages. Line descriptions, such as 0...
#MQL5 #MT5 #Indicator #Strategy

Read more...
👍135👨‍💻1
Discussion on implementing a trading Expert Advisor continues. Key changes required for achieving a comprehensive order control system were presented. A Close or Cancel button was added using the C_Object_BtnBitMap class to enhance order management, while the C_Object_Edit class was adjusted to display trade values effectively.

Further modifications involved the C_Object_Label class for additional text information. The C_ObjectsTrade class was updated to handle chart drawing and object creation consistently, avoiding hidden objects by ordering scenes accurately.

Improvements focused on event handling and system responsiveness in response to chart updates. Addressing selection errors and developing methods for updating object positions were emphasized. Enhancements ensured accurate position results display, order volume indication, and improved robustness ...
#MQL5 #MT5 #EA #Algorithm

Read more...
👍146👨‍💻1