MQL5 Algo Trading
387K 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
Keltner Channel, developed by Chester W. Keltner in 1960, is a technical analysis tool similar to Bollinger Bands and Envelopes. It employs three lines: a 10-day simple moving average as the middle line, calculated using the typical price ((high + low + close)/3). Upper and lower bands are determined by adding and subtracting the moving average of daily price range deviations from the middle line. This creates a volatility-based channel. The indicator is customizable and available for MT4 and MT5 platforms.

Default parameters include MA_Period (10), Mode_MA (MODE_SMA), and Price_Type (PRICE_TYPICAL). The classic strategy involves going long when the price closes above the upper band and short when it closes below the lower band. Exits can be managed using a stop-loss, take-profit, or a cross with the middle line. Combining with other indicators may en...
#MQL4 #MT4 #Indicator #Strategy

Read more...
πŸ‘12❀3πŸ†1πŸ‘¨β€πŸ’»1
Neural network training often involves optimizing model parameters. The Adam optimizer is popular for its adaptive learning rates for each parameter, but it demands high memory. This poses challenges with large-scale models, often leading to increased training time due to CPU offloading. The recent Adam-mini optimizer offers a solution by reducing memory usage while maintaining performance. It simplifies learning rate assignments by grouping parameters and using a single rate per block. This change cuts memory consumption significantly and boosts efficiency, enabling larger batch sizes on GPUs. For MQL5 implementation, modifications across classes are necessary to integrate Adam-mini, ensuring memory optimization and efficient computation.
#MQL5 #MT5 #NeuralNets #Optimizer

Read more...
πŸ‘13πŸŽ‰3✍2πŸ‘¨β€πŸ’»1πŸ‘€1
Laguerre is a custom indicator available for both MT4 and MT5 platforms. It operates independently of standard indicators, providing a weighted trendline in a separate chart window. This tool aids in determining entry and exit points in trading strategies. Users can adjust input parameters such as Gamma, which defaults to 0.7 and influences the smoothness of the trendline. A higher Gamma results in a smoother line. The CountBars parameter, set at a default of 950, defines the maximum bars used in calculation, which can be increased based on performance capacity. This functionality supports enhanced trading analysis without relying on built-in indicators.
#MQL4 #MT4 #Indicator #Trading

Read more...
πŸ‘10❀2πŸ‘¨β€πŸ’»1
Long Short-Term Memory (LSTM) is a recurrent neural network (RNN) designed for sequential data, effectively capturing long-term dependencies and addressing the vanishing gradient problem. This method enhances the performance of trend-following strategies in market analysis by predicting future trends. The approach involves acquiring data from MetaTrader 5, training the LSTM model in Python, and then integrating the model into MQL5 for backtesting.

LSTM's ability to model temporal relationships makes it ideal for forecasting applications. The article illustrates using regression techniques to predict future ADX values based on selected features. It details data preparation, model training, and the seamless integration of Python with MQL5.

Implementing LSTM in trading strategies filters out non-profitable trades by predicting market trendiness and thus improves t...
#MQL5 #MT5 #LSTM #ML

Read more...
❀13πŸ‘6✍1πŸ‘¨β€πŸ’»1
The Gain/Loss Info indicator for MetaTrader facilitates the visualization of market dynamics by displaying gains and losses for candlesticks exceeding a specified threshold. Calculated in both points and percentage, it operates in two modes: the difference between Close and Open, and the difference between the current and previous Close. Users can define minimum change limits, choose calculation modes, and customize the font color of the output. Suitable for MT4 and MT5, this tool serves analytical rather than signal generation purposes, aiding the identification of notable market patterns. Key parameters include a percentage threshold set at 1.0%, and a points threshold at 1000 points, with adjustable visual settings for optimized readability.
#MQL4 #MT4 #Indicator #AlgoTrading

Read more...
πŸ‘10❀3πŸ‘¨β€πŸ’»1
The Market Profile MetaTrader indicator provides a detailed view of price density over time, highlighting significant price levels, value areas, and control values within trading sessions. It is configurable across timeframes from M1 to D1, accommodating daily to intraday analyses. Lower timeframes afford greater precision, while higher timeframes offer broader visibility. Users can create custom profiles via a free-draw rectangle session on any timeframe. The indicator supports six color schemes, with options to display profiles as plain color histograms or based on bar movement.

Key input parameters include session type (Daily, Weekly, Monthly, etc.), session start dates, and the number of sessions to analyze. Options exist for developing point of control and value area highs/lows. The Value Area is defined as a percentage (default 70%) of the ...
#MQL4 #MT4 #MarketProfile #Indicator

Read more...
πŸ‘16❀5πŸ”₯1πŸ‘¨β€πŸ’»1
The Artificial Beehive Algorithm (ABHA) leverages the behavioral dynamics of bees to address optimization in high-dimensional spaces. It draws inspiration from natural foraging strategies, focusing on role-based interactions within a colony. The algorithm classifies bees into roles such as novice, experienced, search, and food source, each with specific behaviors and state-transition rules.

Implementation involves modeling agents (bees) to simulate these roles, using structures and classes to manage positions, directions, and costs. The ABHA structure defines agent states and associated probabilities like search and dance-following, allowing dynamic decision-making based on environmental status.

The C_AO_ABHA class extends baseline functionality, managing agent movement, revision processes, and parameter initialization. Through ABHA, optimization progresse...
#MQL5 #MT5 #Algorithm #AI

Read more...
πŸ‘23❀6πŸ‘Œ1πŸ‘¨β€πŸ’»1
Keltner Channel is a technical analysis tool formulated in 1960 by Chester W. Keltner. It resembles Bollinger Bands and Envelopes, relying on three plot lines: a middle line, calculated as a 10-day simple moving average of the typical price, and upper and lower bands derived from adding and subtracting a moving average of the daily price range. This results in a volatility-based channel. Users can adjust all moving average parametersβ€”MA_Period, Mode_MA, and Price_Type. Suitable for MT4 and MT5, the Keltner Channel strategy typically involves going long when prices close above the upper band and short when below the lower band. Consider using additional indicators for confirmation to avoid false signals. Mathematically, channel weighting favors the trend direction, making it less likely for price to breach the trend-aligned band.
#MQL4 #MT4 #Indicator #Trading

Read more...
πŸ‘10❀4πŸ‘¨β€πŸ’»2
The Moving Average Candlesticks indicator for MetaTrader offers an advanced visualization of standard moving averages using candlestick bars. By applying moving averages to Close, Open, Low, and High values, it provides a comprehensive market snapshot superior to the classic moving average indicator. Compatible with any currency pair and timeframe, it is accessible for both MT4 and MT5 platforms. Key input parameters include MAPeriod, set by default to 10, which determines the calculation period, and MAType, set to MODE_SMA, which specifies the moving average method.

Though not suitable for direct trading, it is effective for identifying price behavior irregularities. Analyzing candlestick body lengths and shadow lengths can reveal significant insights. While a change in color may appear as an entry signal, it often produces false signals.
#MQL4 #MT4 #Indicator #Strategy

Read more...
πŸ‘11❀5πŸ‘¨β€πŸ’»1
The article delves into creating a custom trading indicator in MQL5 on a netting account, which only allows a single position per symbol. It highlights the process of managing trades by utilizing dynamic matrices to track position entries, exits, and reversals. Essential functions like OnTrade() and OnCalculate() are crafted to handle trading events, updating the indicator in real-time. Developers and traders can leverage this technique to visualize and assess historical and live trades directly on chart objects, enhancing market analysis efficiency. The comprehensive example underscores the indicator's practicality and the systemic handling of trading logic for better strategy execution.
#MQL5 #MT5 #Indicator #AlgoTrading

Read more...
❀13πŸ‘7πŸ‘¨β€πŸ’»1
The Price Alert MetaTrader indicator allows traders to receive notifications when price reaches pre-defined levels. It supports three types of levels: above, below, and exactly at a specified point, visually represented by green, red, and yellow lines on the chart. Alerts can be delivered as platform popups, emails, or push notifications. To activate email or push alerts, configure the necessary settings within your MetaTrader platform. This tool can be used on both MT4 and MT5 versions.

The indicator includes a control panel for configuring alert price, level, and type. Essential input parameters include setting price levels for alerts and choosing alert types like native popups, email, or push notifications. Users can adjust line color, style, and width for different alert levels, and control panel placement can be customized on the chart.
#MQL4 #MT4 #Indicator #Alerts

Read more...
πŸ‘11❀3πŸ‘¨β€πŸ’»1
The Murrey Math Line X indicator for MetaTrader platforms assists traders in analyzing pivot, support, and resistance levels. It places 8 primary lines and 5 additional ones on a trading chart, identifying potential points for buying, selling, and exiting trades. Alerts can be triggered when a candle closes past any pivot line. Customizable input parameters include 'Period' for line calculation affecting recency and accuracy, 'UpperTimeframe' for determining basic period usage, and 'StepBack' for line calculation shift.

Visual adjustments include label placement with 'LabelSide', line color and width, and an arrow to signify the latest calculated bar. Alert customization includes popup, email, and notification alerts provided they're configured properly. Understanding line significance is crucial: 0/8P and 8/8P indicate strong resistance/support, while...
#MQL4 #MT4 #Indicator #Trading

Read more...
πŸ‘16❀6πŸ‘¨β€πŸ’»1
The Quantitative Qualitative Estimation (QQE) indicator for MetaTrader platforms, designed for technical traders, utilizes smoothed RSI calculations to present two distinctive lines in a separate window: fast and slow. A critical feature is the indicator level set at 50, influencing signal generation. Traders can activate alerts via text, sound, or email for significant events, like line crossovers.

The QQE is multi-timeframe compatible, allowing analysis from higher timeframes, and is free and open-source, readily integrated within MT4 and MT5. Key parameters include the smoothing factor (SF) and alert parameters such as AlertOnCrossover and AlertLevel, default set at 50. Visual cues are enhanced with directional arrows for bullish and bearish crossovers.

Strategically, QQE is valued in oscillator rolesβ€”spotting direct signals or divergence analy...
#MQL4 #MT4 #Indicator #AlgoTrading

Read more...
πŸ‘9❀3πŸ‘¨β€πŸ’»1
The CCI Arrows indicator for MetaTrader provides clear signals of when the Commodity Channel Index crosses the zero line, marked by red or blue arrows. It offers minimal lag and high accuracy, suitable for traders favoring straightforward tools. The indicator is available for both MT4 and MT5 platforms and supports alerts via native pop-ups, emails, and push notifications.

Key parameters include CCI_Period, which influences lag and signal frequency, and alert configurations which need proper setup in MetaTrader. Decision-making should align with the overall trend; uptrends warrant long positions on blue arrows, and downtrends favor short positions on red arrows. In sideways markets, follow arrow direction for trade action. Stop-loss levels can be set using the arrow's position. Use this tool keeping in mind the trend's context for informed trading.
#MQL5 #MT5 #Indicator #Strategy

Read more...
πŸ‘16❀4πŸ†4πŸ‘¨β€πŸ’»1
The Gain/Loss Info indicator for MetaTrader offers a quantitative analysis tool, providing insights into market movements. It assesses gains and losses for candles exceeding user-defined thresholds, calculated in points and percentages. The indicator operates in two modes: it can evaluate the difference between candlestick Close and Open, or between the current Close and the previous Close. Users can configure minimum change limits, choose calculation modes, and customize font display colors for clarity.

Compatible with both MT4 and MT5, it features several input parameters, such as PercentageLimit and PointsLimit, which dictate when changes are displayed. Users have options for CloseToClose calculations and can choose distinct colors for gains and losses. The FontFace and FontSize options allow for display customization.

While not a direct tradin...
#MQL5 #MT5 #Indicator #AlgoTrading

Read more...
πŸ‘4❀3✍1πŸ‘¨β€πŸ’»1
The Detrended Price Oscillator (DPO) provides traders with an approach to identify short-term trend changes within a longer-term trend. This indicator calculates the difference between the current price and a simple moving average shifted by (Period / 2) + 1 bars. Unlike stochastic oscillators, the focus is on identifying the price waves within the prevailing trend. The DPO is available for both MT4 and MT5 platforms.

It features adjustable parameters, including MA_Period, which defines the moving average period, and BarsToCount, determining how many bars to consider in calculations. Alerts can be configured in MetaTrader, with options for native pop-up, email, and push notifications. Alert triggers can be based on either the previous or current candle.

Trade strategies using DPO involve analyzing trend changes indicated by the cross of the indicator ...
#MQL5 #MT5 #Indicator #Trading

Read more...
πŸ‘11❀4πŸ‘Œ2πŸ‘¨β€πŸ’»1
The Keltner Channel, developed by Chester W. Keltner in 1960, is a traditional technical analysis tool. It comprises three lines: a middle line, which is a 10-day simple moving average applied to the typical price, and upper and lower bands. These bands add or subtract the moving average of the daily price range from the middle line, creating a volatility-based channel. The Keltner Channel can be customized in MetaTrader 4 and 5 by adjusting the MA period, mode, and applied price parameters.

A common strategy involves initiating long positions when the price closes above the upper band and short positions when it closes below the lower band. Exit strategies may include a conservative stop-loss, distant take-profit, or a cross with the middle line. Some traders enhance reliability by combining with other indicators for confirmation. The channel tends t...
#MQL5 #MT5 #Indicator #Strategy

Read more...
πŸ‘9πŸ‘€2❀1πŸ‘¨β€πŸ’»1
The Daily Percentage Change indicator for the MetaTrader platform effectively calculates the currency rate variations from the previous daily close, presenting them in percentage format within the main chart window. It also supports displaying percentage changes for weekly and monthly periods. Customization options allow users to set distinct colors for positive and negative price movements. An adjustable arrow further aids direction visualization of price changes.

For brokers operating in non-standard time zones, users can alter the Time Shift parameter, ranging from -12 to 12, to define the day's end accurately. This indicator is compatible with both MT4 and MT5 versions. Input parameters facilitate user customization, including visual aspects like font size, arrow size, and color settings based on price movements. Various distance and corner option...
#MQL5 #MT5 #Indicator #Strategy

Read more...
πŸ‘16❀4πŸ‘¨β€πŸ’»1
The Pinbar Detector is a specialized tool for MetaTrader platforms, designed to identify and mark Pinbar formations. It operates solely on price action without relying on conventional technical indicators. Upon detecting Pinbars, the indicator can place a "smiling face" symbol below bullish formations and above bearish ones. Users can configure detection settings through input parameters.

Key input parameters include CountBars to define the analysis span, and DisplayDistance to adjust the symbol’s proximity to candlesticks. Alert features are customizable, with options for platform alerts, email, and push notifications, subject to MetaTrader's settings configuration.

Advanced users can modify detection protocols using custom settings like nose body size, position, and relationship to other bar components, further refining the tool's response to sp...
#MQL5 #MT5 #Indicator #AlgoTrading

Read more...
❀18πŸ‘6✍2πŸ‘¨β€πŸ’»1
The Donchian Ultimate MetaTrader indicator provides a versatile approach to the classic Donchian channel with enhanced features. It supports variable periods and shifts for the channel, and allows the middle line to be turned off. Adaptable for multi-timeframe operation, it offers five different methods for calculating channel borders, along with optional support and resistance zones.

The indicator incorporates a robust alert system and offers extensive customization to meet diverse trading needs. Available for MetaTrader 4, MetaTrader 5, and cTrader, it requires no additional indicators in its code. Key inputs include period, timeframe, price type, and alert settings. Users can set alerts for crossings and zone entries, with alerts delivered via popup, email, or push notifications when configured.

While it doesn't directly signal trades, it can e...
#MQL5 #MT5 #Indicator #AlgoTrading

Read more...
πŸ‘20❀4πŸ‘¨β€πŸ’»1