MQL5 Algo Trading
388K subscribers
2.56K 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
Short-term trading, including scalping, poses significant challenges for both novice and veteran traders. Many overlook the fundamental importance of higher time frame analysis, resulting in frequent account disruptions. Understanding that price trajectories—from point A to B—primarily originate from higher time frames can change trading outcomes. An expert advisor (EA) built for long-term trends, emphasizing top-down analysis, offers increased accuracy with minimal drawdown.

Engulfing patterns and liquidity purges on higher time frames such as D1, MN, and W1 indicate entry points aligned with overall trend directions. By focusing on these time frames, traders can capture long-term movements effectively. Input parameters in the EA like lot size, stop loss, take profit, and look-back windows ensure adaptable strategies. Engaging with higher time frame analysi...

👉 Read | NeuroBook | @mql5dev

#MQL5 #MT5 #EA
33👨‍💻5👀5🔥3👍1🏆1
Understanding the implementation of a Multi Indicator Handler in MetaTrader 5 can significantly enhance trading efficiency. This system streamlines the process by automatically listing key indicators directly on the chart, offering a unified view of critical technical measures.

The Multi Indicator Handler employs a structured voting system, categorizing indicators into Trend, Momentum, and Volatility groups. Each indicator generates a Buy, Sell, or Neutral signal based on predefined conditions, with the trend indicators carrying the highest influence for directional analysis.

MQL5 implementation involves coding separate roles for data acquisition, signal interpretation, and graphical display. Key components include an enum for profile modes, the IndicatorSlot data structure, and central functions for creating and managing indicators and chart interfaces....

👉 Read | VPS | @mql5dev

#MQL5 #MT5 #EA
41👨‍💻5👌4🤡3👀3😈1
An Expert Advisor (EA) for MetaTrader 5 incorporates probability theory to assess growth and decline probabilities of a financial instrument's price. Analyzing a default 10,000-bar price history, the EA identifies how often the price changes by a set number of pips (400 by default) within 50-bar clusters. The analysis reveals the likelihood of price increases or decreases, displaying results on the chart. Trading is triggered when the upward or downward probability surpasses 51%, with the EA executing buy or sell orders respectively. It allows for a fixed lot size or a risk-based calculation tied to the account balance. StopLoss and TakeProfit parameters ensure positions are managed upon opening. However, due to market complexities, such simple models are unlikely to consistently generate profit.

👉 Read | AppStore | @mql5dev

#MQL5 #MT5 #EA
30👨‍💻73
A Dynamic Multi-Pair Expert Advisor (EA) enhances trading efficiency by seamlessly integrating Scalping and Swing Trading strategies. This sophisticated EA adapts based on real-time market volatility, employing technical indicators like EMA crossovers, RSI filters, and Fibonacci retracements. It intelligently manages risk using ATR-based stop-loss and take-profit levels tailored to forex, crypto, gold, and indices. The system executes precise trades by adjusting position sizes and orders according to each asset's volatility, ensuring consistent results. The EA's automated approach requires minimal manual oversight, allowing simultaneous handling of multiple pairs, catering to both rapid intraday gains and long-term swing profits.

👉 Read | AppStore | @mql5dev

#MQL5 #MT5 #EA
47👨‍💻42👍2👌2
The new article in the series on MetaTrader 5 development guides you through transforming a static on-chart control panel into an interactive tool for algorithmic trading. By implementing the OnChartEvent function, the panel now responds to user actions like calculating lot sizes and executing trades directly from the chart. Advanced techniques, such as incorporating real-time market prices and dynamic dropdowns for order types, enhance the trading interface, making it highly responsive and user-friendly. Practical helper functions facilitate streamlined trade execution, while maintaining clean code structure that is both robust and easy to maintain. This guidance provides traders and developers with a powerful, efficient trading tool.

👉 Read | Docs | @mql5dev

#MQL5 #MT5 #EA
20👨‍💻5👌3
An Expert Advisor has been developed to trade when a Three From Within pattern is detected. There are two variations of this pattern. The "Three From Inside" Up pattern features a sequence of candles: the first is a long bearish candle, followed by a smaller bullish candle that trades within the first candle's range, and concludes with a long bullish candle that closes above the first candle’s high. Conversely, the "Three From Inside" Down pattern starts with a long bullish candle, then features a small bearish candle within the first candle’s range, followed by a long bearish candle that closes below the first candle's low. This trading approach restricts to opening a single long or short position when these patterns are present.

👉 Read | Quotes | @mql5dev

#MQL5 #MT5 #EA
36👍7👨‍💻7👌1
Discover an advanced trading strategy that seamlessly integrates MetaTrader 5 with a Python-based adaptive learning model. This system leverages reinforcement learning to dynamically adjust its parameters, transforming trade outcomes into actionable insights. Real-time feedback is captured, transmitted, and utilized to refine decisions, ensuring that every trade—profit or loss—becomes a learning opportunity. Through Flask-powered endpoints, this continuous feedback loop allows a multi-layer perceptron to evolve, enhancing prediction accuracy. This setup not only bridges trading execution with data processing but ensures the system evolves without manual intervention, adapting to market conditions like an experienced trader. Ideal for developers looking to enhance trading precision and adaptability.

👉 Read | VPS | @mql5dev

#MQL5 #MT5 #EA
266👌2👀2👨‍💻1
A straightforward function has been developed to determine if the current time falls between two specified times. This is particularly useful for EAs that need to execute trades only during specific periods of the day. The code accepts two parameters: a start time and an end time. It evaluates whether the current time is within this range and provides a boolean output.

👉 Read | Calendar | @mql5dev

#MQL4 #MT4 #EA
293👌21🔥1👨‍💻1
Identifying overbought or oversold market conditions remains a sophisticated task, even for experienced traders. Price Action Analysis Toolkit, integrating MQL5 logic, aims to simplify this process by breaking down complex price behaviors into measurable components. The strategy combines three indicators: RVGI for momentum recognition, CCI for market condition measurement, and SMA(30) for trend filtering.

The RVGI detects momentum shifts, with crossovers indicating potential reversals. CCI measures price deviations from statistical means, highlighting overbought/oversold conditions. The SMA reflects broader market trends, helping distinguish between structural market phases.

In MQL5, indicators are implemented through efficient code structures, initialized during OnInit, and maintained with key variables. Helper functions ensure code clarity and ease fut...

👉 Read | NeuroBook | @mql5dev

#MQL5 #MT5 #EA
60👍104👌3😎32🎉1
The recently developed report streamlines testing of multiple EAs or strategies in a single account by consolidating data based on magic numbers and currency. It provides total profit and loss metrics, including profit, swap, and commission, alongside the win rate percentage to evaluate performance accurately. The net position size reflects historical trades, while current exposure details open position risks. Gross profit and loss are separated, and the profit factor is shown as a risk/reward analysis. Cumulative lot sizes are reported under total volume. The report includes all magic numbers, even zero, and aggregates symbols per magic number, displaying a combined symbol list for each. This data is then exported into a single TradingStats.csv file, which can be saved in the MQL5/Files/ folder. The process is simplified to a drag-and-drop action on any ...

👉 Read | Forum | @mql5dev

#MQL5 #MT5 #EA
25👨‍💻1
Представлен советник в виде торговой графической панели с девятью кнопками, предназначенными для упрощения ручной торговли. Панель позволяет трейдеру быстро управлять ордерами и параметрами. В параметре lots указывается планируемый профит. Параметр distance настраивает дистанцию для отложенных ордеров. Параметры takeprofit и stoploss определяют ценовые уровни фиксирования прибыли и убытков соответственно. Кнопка close all закрывает все активные ордера. Кнопки delete buy и delete sell удаляют соответствующие отложенные ордера. Для открытия позиций предусмотрены кнопки BUY, SELL, а для отложенных ордеров: BUY LIMIT, BUY STOP, SELL LIMIT, SELL STOP. Этот скрипт был разработан для работы с индикатором Strategic Schedule, созданным для удобства трейдеров в ручной торговле.

👉 Read | Docs | @mql5dev

#MQL4 #MT4 #EA
182🤔2👨‍💻2