The Simple_Grid Expert Advisor is a straightforward tool designed to manage a grid of pending orders around the current market price. The system configures either stop or limit orders in both directions, determined by the input parameters. Notably, it operates without a Stop Loss. Between 23:30 and 4:00, non-activated pending orders are removed, with a new grid established after 4:00.
Key adjustable parameters include the grid step size, initial distance from the current price, the quantity of orders per direction, and the type of pending orders (stop or limit). Users can also set the expected profit level (Take Profit), fixed lot size, and the Expert Advisor's magic number. This tool was developed for educational purposes in MQL5 and is unsuitable for real account trading or profit generation, now available for placement in CodeBase.
π Read | Quotes | @mql5dev
#MQL5 #MT5 #EA
Key adjustable parameters include the grid step size, initial distance from the current price, the quantity of orders per direction, and the type of pending orders (stop or limit). Users can also set the expected profit level (Take Profit), fixed lot size, and the Expert Advisor's magic number. This tool was developed for educational purposes in MQL5 and is unsuitable for real account trading or profit generation, now available for placement in CodeBase.
π Read | Quotes | @mql5dev
#MQL5 #MT5 #EA
β€26π4π3π¨βπ»2β‘1π1π―1
The article provides a comprehensive guide for MetaTrader developers to publish their programs on CodeBase efficiently. It covers essential guidelines for preparing the code, including formatting, commenting key logic decisions, and creating concise descriptions. Specific steps for uploading various types of programs, such as scripts, indicators, and services, are detailed with focus on a structured directory organization using MQL5 pathways. The guide emphasizes the importance of attaching explanatory images and undergoing code validation to ensure professional standards. This resource aids developers in showcasing their work, offering valuable contributions to the trading community while maintaining high-quality, accessible code publishing practices.
π Read | Freelance | @mql5dev
#MQL5 #MT5 #EA
π Read | Freelance | @mql5dev
#MQL5 #MT5 #EA
β€59π₯8π6π5β‘4π¨βπ»3π2
The described Expert Advisor employs a specific approach combining a Martingale strategy with initial breakout/range-reversal entries. Key parameters allow traders to adjust and control the execution logic of EAs, such as trade directions, lot sizes, and trading schedule.
General parameters define unique trade identifiers, initial lot sizes, and allow the configuration of buy/sell capabilities, take profits, and order reset conditions. The Martingale strategy section specifies reverse Martingale logic, lot multipliers, profit targets, pip distances, and trade limits within a series.
The EA's core functions initiate and manage trades. Initialization (OnInit) arrays ensure readiness, while deinitialization (OnDeinit) handles clean-ups. Trading permissions hinge on specified dates and weekdays. Market execution processes validate trade parameters, uphold ma...
π Read | Calendar | @mql5dev
#MQL5 #MT5 #EA
General parameters define unique trade identifiers, initial lot sizes, and allow the configuration of buy/sell capabilities, take profits, and order reset conditions. The Martingale strategy section specifies reverse Martingale logic, lot multipliers, profit targets, pip distances, and trade limits within a series.
The EA's core functions initiate and manage trades. Initialization (OnInit) arrays ensure readiness, while deinitialization (OnDeinit) handles clean-ups. Trading permissions hinge on specified dates and weekdays. Market execution processes validate trade parameters, uphold ma...
π Read | Calendar | @mql5dev
#MQL5 #MT5 #EA
β€41π5π¨βπ»2π2π1
Dive into algorithmic trading with an exciting innovation in MetaTrader 5! This article presents a streamlined approach to Fibonacci Retracement analysis using an Expert Advisor (EA) designed for ease and efficiency. Traders can forget about the confusion of manually applying Fibonacci toolsβour EA simplifies the process by allowing you to input swing high and low values directly on the chart and automating the plotting of retracement and extension levels. It delivers real-time alerts when prices interact with these levels, transforming static analysis into a dynamic, interactive experience. The EA is meticulously detailed to ensure clear visualization and seamless usability, making it an invaluable tool for developers and traders alike.
π Read | Signals | @mql5dev
#MQL5 #MT5 #EA
π Read | Signals | @mql5dev
#MQL5 #MT5 #EA
β€39π8π3π¨βπ»2
This post discusses an Expert Advisor (EA) that leverages Heikin Ashi candles for trading. By smoothing price action, it reduces noise and clarifies market direction. The EA identifies strong trends, minimizes false reversals, and facilitates informed trade management.
The tool integrates Heikin Ashi candles, promoting a clear trend visualization by eliminating random noise. It trades selectively, responding to apparent Heikin Ashi trend shifts and incorporates customizable settings to align with user strategies.
It features intelligent trade management, exiting trades on trend reversals and using equity/profit controls to manage risks. Benefits include clear trend detection, suitability for any currency pair or timeframe, automated execution, reduced emotional bias, and customizable settings for different trading styles.
π Read | AppStore | @mql5dev
#MQL4 #MT4 #EA
The tool integrates Heikin Ashi candles, promoting a clear trend visualization by eliminating random noise. It trades selectively, responding to apparent Heikin Ashi trend shifts and incorporates customizable settings to align with user strategies.
It features intelligent trade management, exiting trades on trend reversals and using equity/profit controls to manage risks. Benefits include clear trend detection, suitability for any currency pair or timeframe, automated execution, reduced emotional bias, and customizable settings for different trading styles.
π Read | AppStore | @mql5dev
#MQL4 #MT4 #EA
β€38π3π2π¨βπ»1
Explore the Dynamic Swing Architecture system, designed for precision in algorithmic trading by detecting swing highs and lows in real-time. This robust system automates trades based on market structure shifts, enhancing consistency and reducing emotional decision-making. It evaluates price action continuously, adapting to volatility changes and ensuring that traders stay aligned with the market rhythm. Developers will appreciate its configurability, including risk management options and visual feedback through charted swing points. This sophisticated framework offers traders a powerful tool for executing structure-based strategies effortlessly, merging human market intuition with precise algorithmic execution to create a highly adaptive trading process.
π Read | CodeBase | @mql5dev
#MQL5 #MT5 #EA
π Read | CodeBase | @mql5dev
#MQL5 #MT5 #EA
β€29π8β‘1π1π¨βπ»1
The ExpWPRBB Expert Advisor employs a straightforward trading approach utilizing Williams' Percent Range (WPR) and Bollinger Bands (BB). Positions are initiated when both indicators align: for a Buy, WPR exits the oversold territory, and the bar opens below the average BB line. For a Sell, WPR leaves the overbought zone, and the bar opens above the average BB line. Bollinger Bands breadth and ATR values determine Stop Loss and Take Profit levels. Functionality is exclusive to hedging accounts. An optional non-trading mode is available for signal visual testing.
Core input parameters include WPR and Bollinger Bands periods, deviation, shift, and price type. Trading parameters comprise signal-only mode, position volume, slippage tolerance, and a unique Magic number for tracking. Stop Loss and Take Profit can be predefined or dynamically computed using Bollinge...
π Read | Docs | @mql5dev
#MQL5 #MT5 #EA
Core input parameters include WPR and Bollinger Bands periods, deviation, shift, and price type. Trading parameters comprise signal-only mode, position volume, slippage tolerance, and a unique Magic number for tracking. Stop Loss and Take Profit can be predefined or dynamically computed using Bollinge...
π Read | Docs | @mql5dev
#MQL5 #MT5 #EA
β€29β‘3π3π¨βπ»3π3β2π₯2
ExpPinBar Expert Advisor leverages a strategy centered around the Price Action PinBar indicator to initiate trades based on indicator signals. The tool features advanced trailing functionalities accessible through the trailing library, incorporating mechanisms like classic trailing, Parabolic SAR, and various moving averages such as AMA, DEMA, FRAMA, MA, TEMA, and VIDYA. It also considers High and Low candlestick shadow levels. Critical settings for the PinBar include defining minimum and maximum candle sizes and the position of the body relative to the preceding candle.
To optimize signals, users can adjust parameters like the aspect ratio of shadows. The configuration options for the advisor cover essentials such as position volume, slippage, magic numbers, and dynamic stop loss and take profit points based on PinBar shadows. Trailing settings allow cust...
π Read | Calendar | @mql5dev
#MQL5 #MT5 #EA
To optimize signals, users can adjust parameters like the aspect ratio of shadows. The configuration options for the advisor cover essentials such as position volume, slippage, magic numbers, and dynamic stop loss and take profit points based on PinBar shadows. Trailing settings allow cust...
π Read | Calendar | @mql5dev
#MQL5 #MT5 #EA
β€27π5π¨βπ»2π1
Explore efficient trade management with the AutoProtect Expert Advisor. This advanced solution automates crucial aspects like moving stop-losses to break-even, trailing stops as positions gain, and partial profit-taking. Built in the MQL5 environment, it provides flexibility for traders to customize individual functions according to their strategy. AutoProtect uniquely manages trades per symbol and supports filtering by magic number, allowing precise control. It enhances trading efficiency by focusing on real-time market dynamics, eliminating risks of manual errors. The structured, modular code supports easy updates, ensuring consistent and reliable trade adjustments. Ideal for both seasoned and aspiring MetaTrader 5 developers, AutoProtect optimizes trade management seamlessly.
π Read | Quotes | @mql5dev
#MQL5 #MT5 #EA
π Read | Quotes | @mql5dev
#MQL5 #MT5 #EA
β€33π5π¨βπ»3β1π1
The latest discussion focuses on improving the C_Orders class for handling market trades, specifically its capability to interpret messages from the Chart Trade indicator. For NETTING accounts, the existing code efficiently manages open and close positions, including reversals and partial closings. However, challenges arise with HEDGING accounts due to differences in position handling. When "CLOSE ALL POSITIONS" is pressed, the operation executed depends on the account type. A crucial adjustment in the code involves ensuring the proper closure of positions by confirming the match between the symbol in the Chart Trade message and the open position's symbol.
Additional care is required to manage trades involving historical assets. The retrieved ticket number is validated against a magic number to maintain distinct trading strategies within a single Expert Advis...
π Read | CodeBase | @mql5dev
#MQL5 #MT5 #EA
Additional care is required to manage trades involving historical assets. The retrieved ticket number is validated against a magic number to maintain distinct trading strategies within a single Expert Advis...
π Read | CodeBase | @mql5dev
#MQL5 #MT5 #EA
β€34π¨βπ»1
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
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
β€32π¨βπ»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
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
π Read | AppStore | @mql5dev
#MQL5 #MT5 #EA
β€30π¨βπ»7β3
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
π Read | AppStore | @mql5dev
#MQL5 #MT5 #EA
β€47π¨βπ»4β‘2π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
π Read | Docs | @mql5dev
#MQL5 #MT5 #EA
β€19π¨βπ»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
π 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
π Read | VPS | @mql5dev
#MQL5 #MT5 #EA
β€26β6π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
π Read | Calendar | @mql5dev
#MQL4 #MT4 #EA
β€29β3π2β‘1π₯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
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π10β4π3π3β‘2π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
π Read | Forum | @mql5dev
#MQL5 #MT5 #EA
β€20