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
A new script provides a graphical panel of information to display the maximum lot size permitted, calculated based on account size, leverage, and free margin. Unlike traditional scripts that rarely use dialogs, this script offers a visual representation without needing to load an expert advisor. This functionality is particularly useful for those who prefer quick access to essential trading information directly through a script, streamlining the process of fetching free margin-related data. Efficient and straightforward, this script meets a specific need by delivering critical trading metrics with minimal setup.
#MQL5 #MT5 #script #Forex

Read more...
πŸ‘19❀8πŸ‘¨β€πŸ’»6
Auto-optimizing forex trading algorithms offer significant advantages for automated traders. An Expert Advisor (EA) can adjust its strategy based on market conditions post-trade. This adaptive feature allows EAs to refine their approach over time.

Key components to set up include necessary libraries, input parameters, global variables, and optimization settings. The core functions of the EAβ€”initialization, deinitialization, and tick processingβ€”are essential for maintaining operational stability.

Optimization logic involves evaluating parameter combinations to find the best-performing settings. Techniques like multi-criteria optimization and walk-forward optimization reduce the risk of overfitting and improve robustness.

Best practices include balancing optimization frequency and maintaining computational efficiency. Comprehensive logging and effective use of d...
#MQL5 #MT5 #EA #Algo

Read more...
πŸ‘21❀14πŸ‘¨β€πŸ’»3πŸ‘Œ1
Developing an automated trading application (EA) involves multiple stages where each generates critical information. The information is saved in a database with results stored from various strategy tests.

A challenge arises in creating trading strategy objects from this saved data. Direct object storage in the database is not an option. Converting object properties to a string for storage ensures data can be read back and objects recreated. This can be managed through methods or constructors that parse these strings to assign values to object properties.

Creating complex objects, such as groups of trading strategies or an EA itself, demonstrates the need for a systematic approach to string parsing and object reconstruction.

A practical implementation requires classes to be "factoryable." This means developing a base class, CFactorable, which can be initi...
#MQL5 #MT5 #EA #Strategy

Read more...
πŸ‘20❀13πŸ‘¨β€πŸ’»2⚑1πŸ‘1
## Introduction

Enhancing the Admin Panel GUI in MQL5 includes essential improvements such as toggling between dark and light themes, adding stylish buttons, and customizing fonts.

## Basic Admin Panel Achievements

Previously accomplished:
- Created an Admin Panel with a Messaging Interface and Telegram Integration.
- Added buttons for minimize, maximize, close, and quick messaging.

## Applying MQL5 GUI Styling Features

MQL5 offers various tools for GUI customization, including color and font adjustments. These enable creating a visually cohesive and functional interface.

## Customizing Colors and Fonts

Define an array of available fonts and manage their selection through an index. Implement a button for users to cycle through fonts, ensuring dynamic and cohesive panel appearance.

## Theme Management Logic

Set up a system with light and dark themes. ...
#MQL5 #MT5 #GUI #Styling

Read more...
πŸ‘40❀17πŸ‘4πŸ‘¨β€πŸ’»2πŸ‘€2πŸ‘Œ1πŸ€“1
Announcing the updated NoLoss EA, improved significantly through community feedback. Unlike most lagging indicators, this EA eliminates dependency on indicators, candlestick patterns, chart patterns, or price action analysis. It uses a progressive strategy verified over a year of use and four years of backtesting.

**Preferred Pair**: EURUSD

**Setup**: Compatible with any timeframe due to its non-reliance on traditional indicators and patterns.

**Parameters**:
- **Initialsize**: Set your initial lot size based on your account balance.
- **MaxBuy/Sell**: Define the maximum number of open buy/sell positions.
- **OverallBuy/SellProfit**: Establish the combined profit target for all buy/sell orders.
- **Slippage**: Enter your slippage value.
- **DistanceBetweenOrders**: Set the pip distance to trigger new orders in the same direction.
- **NumberofBuy/Sell**: Sp...
#MQL4 #MT4 #EA #Strategy

Read more...
πŸ‘40❀21πŸ‘€7⚑3πŸ‘¨β€πŸ’»3✍2
Category Theory, a powerful mathematical framework, can be leveraged in algorithmic trading using MQL5 to understand the relationships between trading strategies, instruments, and market conditions. By classifying and analyzing these relationships through concepts like domains and morphisms, traders can identify patterns and create adaptable, reliable trading algorithms. This approach ensures consistency, verifies system correctness, and enhances communication of complex trading strategies. Practical applications include constructing unique trading domains, enforcing data integrity, and visualizing morphisms, leading to sophisticated expert advisors in MetaTrader 5. This methodology aids MQL5 programmers in developing robust, scalable trading systems.
#MQL5 #MT5 #AlgoTrading #Strategy

Read more...
πŸ‘40❀26🀯7✍4⚑3πŸ‘¨β€πŸ’»3
The Trend Direction Force Index v2 (TDFI) indicator has been successfully converted from TradingView to MQL4. Originally designed for identifying market trend direction and magnitude, this indicator is now available for MetaTrader 4 users. The TDFI calculates a standardized measure of price movement, offering enhanced insight into market dynamics. This version maintains the original algorithm, ensuring consistency in its output while leveraging the MQL4 environment. The conversion facilitates seamless integration into existing trading strategies for algorithmic traders and technical analysts working within the MetaTrader 4 platform.
#MQL4 #MT4 #Indicator #TDFI

Read more...
πŸ‘34❀24πŸ‘3πŸ‘¨β€πŸ’»3
In this latest installment, we transform the Chart Trade panel into an indicator and modularize the sound system previously embedded in the EA. This approach enhances reusability and simplicity across different MetaTrader 5 components. By introducing a sound service and an accompanying library, we streamline the sound alert mechanism, making it accessible from any script, EA, or indicator. This modular and scalable setup facilitates better code maintenance and adaptability, avoiding legacy compatibility issues. Whether you're a seasoned developer or new to algorithmic trading, these modifications offer practical advantages for more robust and manageable trading systems.
#MQL5 #MT5 #Indicator #AlgoTrading

Read more...
πŸ‘25❀22πŸ‘¨β€πŸ’»4✍2πŸ†1
MetaTrader 5 Platform beta build 4540 introduces numerous new features and improvements to the web platform:

β€’ A crosshair mode for accessing precise values and measuring distances on the chart, as well as a new line chart type.
β€’ Ability to enable additional information in the Market Watch in the the mobile version.
β€’ Expanded list of supported hotkeys for more efficient chart operations.

New machine learning functions are now available in MQL5. These include integration with the OpenBLAS matrix computation library and improved ONNX Runtime support to enable the execution of more complex neural models.

Additionally, the platform now offers improved tick history downloading and exporting features. Also, we have fixed bugs in testing agents that could lead to excessive RAM consumption.

Update to the beta version now and be among the first to experience the new features
πŸ‘42❀35πŸ”₯9🀨5πŸ‘¨β€πŸ’»4πŸ‘2πŸ‘Œ1
Fair Value Gap (FVG) represents a price imbalance appearing when there's a significant discrepancy between the opening, high, low, and closing prices over three consecutive candles. This occurs when one candle's range does not fully overlap with the surrounding candles, creating a "gap" in the price action. Traders identify these gaps as potential zones where the price may retrace to correct the imbalance before continuing its original direction. This concept plays a crucial role in many trading strategies for pinpointing potential entry and exit points based on observed market inefficiencies.
#MQL5 #MT5 #Algorithm #Strategy

Read more...
πŸ‘47❀23πŸ‘¨β€πŸ’»3🀯2
An indicator identifying Engulfing candle patterns is available. It features red arrows for Bearish Engulfing and green arrows for Bullish Engulfing patterns. This tool aids in recognizing significant market trends and reversals.

For those interested in developing custom Indicators, Scripts, or Expert Advisors, advanced development services are offered. Enhance your trading strategies with precision-tailored tools designed to meet specific requirements. Contact for collaborative opportunities and custom development projects.
#MQL5 #MT5 #Indicator #EA

Read more...
❀26πŸ‘18πŸ‘¨β€πŸ’»6✍4🀯1
An opportunity to enhance trading strategies is now available with a customizable trading bot integrated with a specific indicator. This demo version showcases potential capabilities. For personalized assistance in developing an optimized trading bot tailored to individual needs, professional support is offered to ensure effective results. Reach out for further collaboration and achieve a sophisticated trading solution.
#MQL5 #MT5 #EA #Indicator

Read more...
❀27⚑8πŸ‘5πŸ‘¨β€πŸ’»4πŸ‘€1
Dive into the integration of Deep Learning with three advanced Expert Advisors (EAs) in MetaTrader 5, enhancing algorithms for more precise market predictions and risk management. This article explores how Nash's Game Theory, Causality Network Analysis, and Stochastic Optimization benefit from incorporating Python-generated ONNX models. Detailed modifications in MQL5 scripts show improved decision-making and trading outcomes. Results highlight varied performance: DL models in some cases improved consistency and win rates, while others maintained profitability with increased caution. This deep dive underscores the potential and careful implementation required for DL in trading, promising better-adapted strategies but necessitating rigorous testing across market conditions.
#MQL5 #MT5 #EA #DeepLearning

Read more...
πŸ‘20❀19⚑3✍1πŸ‘¨β€πŸ’»1
Discover the Turtle Shell Evolution Algorithm (TSEA), a groundbreaking approach inspired by natural patterns for optimizing trading strategies. Emulating the turtle's shell growth, this algorithm clusters solutions based on quality, preserving less successful options for continuous improvement. By leveraging both K-Means and K-NN clustering, TSEA adapts dynamically, ensuring effective data organization and maximizing potential. The structured arrangement allows developers to efficiently store and access optimization agents, creating a robust framework for iterative enhancements. Ideal for enhancing MetaTrader 5 strategies, this method ensures progressive refinement akin to nature's intricate designs.
#MQL5 #MT5 #Algorithm #AI

Read more...
❀34πŸ‘28πŸ‘¨β€πŸ’»3πŸ‘1
Introducing AllWinningTrades Closer: One Click Exit, an efficient MT4 EA that facilitates the rapid closure of all profitable trades with a single click. Designed for ease of use, this EA requires no complicated settings or adjustments. Simply activate the EA and, with one click, it will close any trade that is in profit.

Key Features:
- One-Click Profit Closure: Instantly close all winning trades with one click.
- Easy to Use: No settings or adjustments required. Activate and use.
- User-Friendly Button: A simple button on the chart to quickly close all profitable trades.

Ideal Use Cases:
- Busy Traders: Manage multiple profitable trades in one click.
- Scalpers: Lock in small profits from frequent trades without monitoring each position.
- Volatile Markets: Secure profits during fast-moving conditions, like news events.
- Traders Seeking Simplicity: A fast...
#MQL4 #MT4 #EA #Scalper

Read more...
πŸ‘39❀18πŸ‘3πŸ‘¨β€πŸ’»3⚑2🀩1
Unlock the potential of automated crypto trading with the 2-Pair Correlation EA, a fully self-adaptive Expert Advisor designed for BTC/USD and ETH/USD pairs. Suitable for all trading experience levels, this EA aids in capturing market opportunities while maintaining low risk. Available for free on MQL5, it provides a robust introduction to crypto trading automation.

Key Features:
1. Correlation-Based Trading Strategy: Monitors the price difference between BTC/USD and ETH/USD to exploit market inefficiencies without guessing market direction.
2. Automatic Lot Sizing: Adjusts lot size based on account balance and a pre-set risk percentage for consistent risk management.
3. Built-In Volatility Control: Utilizes the ATR indicator to pause trading during high volatility, protecting against sudden price movements.
4. Drawdown Protection: Pauses trading if the accoun...
#MQL5 #MT5 #EA #Crypto

Read more...
πŸ‘26❀20✍4πŸ‘¨β€πŸ’»3😎3⚑1πŸ†1
Frames Analyzer offers an efficient tool for analyzing optimization results of trading algorithms. This plug-in library works in both tester and standalone modes, reading MQD files or databases created post-optimization.

The graphical interface includes several sections for detailed analysis:

1. Frames Tab: Open databases or MQD files, specify the number of balances displayed, and replay frames.
2. Results Tab: Two tables for adding results to favorites, specifying excluded intervals, and selecting criteria for up to 100 improved results.
3. Balances Tab: Displays graphs of initial and improved balance results.
4. Top 100 Results Tab: Visualizes top 100 results based on specified criteria.

Additionally, the Favorites Tab allows saving selected results to files and databases, ensuring organized data management. This functionality can substantially enhance ...
#MQL5 #MT5 #EA #Analyzer

Read more...
❀43πŸ‘25✍13🀩5πŸ‘Œ5πŸŽ‰3πŸ‘¨β€πŸ’»1
The icustomonly.mq4 script has been added, demonstrating its usage within the icustom function. Additionally, the SSL Channel indicator by MissTricky, originally available on TradingView, has been successfully converted to the MQL4 format. This update provides users with new tools to enhance their trading strategies and indicators. The integration aims to advance the functionality and adaptability of MQL4-based systems by utilizing proven methods from various platforms. Technical users are encouraged to review the implementation details to fully leverage these new resources in their trading environments.
#MQL4 #MT4 #script #Indicator

Read more...
πŸ‘28❀17πŸ‘Œ5✍4⚑3πŸ‘¨β€πŸ’»3
Unlock the power of algorithmic trading with deep learning and MetaTrader 5! Our innovative Python script blends traditional technical analysis with AI to predict market movements and optimize trading strategies. Leveraging libraries like TensorFlow and Keras, it processes 120 days of historical data, utilizing CNN, LSTM, and Dense layers. The resulting ONNX model detects trends and informs trading decisions. Integrated with MetaTrader 5, this script bridges the gap between backtesting and live trading. Whether you're an experienced developer or a trading enthusiast, this tool offers a smart, risk-managed approach to exploring forex market potentials. Dive into the future of trading today!
#MQL5 #MT5 #AITrading #Forex

Read more...
πŸ‘35❀11πŸ†6⚑1πŸ‘¨β€πŸ’»1
Continuing the discussion on Bollinger Bands for custom signal classes in MQL5, focusing on setups for weighted long and short conditions.

Pattern 6: Bands Widening After a Trend
The widening gap between Bollinger Bands indicates rising volatility. After a bullish trend, this often signals a bearish reversal, and vice versa. Implementation involves assessing the widening gap and past trend, not current direction, due to market whipsawing. Integrating volume analysis can confirm valid reversals.

Pattern 7: Bands Orientation and Angle Changes
A skew between bands suggests potential breakouts. A faster-rising lower band indicates a bullish signal, and a faster-falling upper band indicates bearish signals. Confirmation by price breakouts assists in validating these patterns. Combined testing provides varied results, reinforcing the complexity of market p...
#MQL5 #MT5 #Indicator #Strategy

Read more...
πŸ‘26❀16πŸ‘¨β€πŸ’»5πŸ”₯2πŸ‘2πŸŽ‰2