The Fractal with CCI Filter Indicator is designed to improve the performance of the classic fractal indicator using a CCI-based filter. By integrating the Commodity Channel Index, this version aims to reduce false signals, particularly in sideways markets, enhancing signal reliability through confirmation of the movement's strength.
Key features include a CCI Smart Filter, which activates fractal signals when the CCI reaches extreme levels, and timing accuracy by utilizing the CCI value on the signal candle. Additionally, the CCI period and filtering threshold offer full configurability. Visual aids include red arrows for sell signals and green arrows for buy signals, compatible with any timeframe.
To utilize effectively, monitor for sell signals when a red arrow is above a candle and for buy signals with a green arrow below. For increased reliabilit...
๐ Read | Freelance | @mql5dev
#MQL5 #MT5 #Indicator
Key features include a CCI Smart Filter, which activates fractal signals when the CCI reaches extreme levels, and timing accuracy by utilizing the CCI value on the signal candle. Additionally, the CCI period and filtering threshold offer full configurability. Visual aids include red arrows for sell signals and green arrows for buy signals, compatible with any timeframe.
To utilize effectively, monitor for sell signals when a red arrow is above a candle and for buy signals with a green arrow below. For increased reliabilit...
๐ Read | Freelance | @mql5dev
#MQL5 #MT5 #Indicator
โค42โ6๐3๐ฅ2๐2๐จโ๐ป2๐2
Simplified CSV file writing using a straightforward class is achievable without extensive preparation or type casting declarations. Consider implementing a minimalistic class where you define a method for writing CSV files efficiently.
```python
import csv
class SimpleCSVWriter:
def __init__(self, filename):
self.filename = filename
def write(self, data):
with open(self.filename, mode='w', newline='') as file:
writer = csv.writer(file)
writer.writerows(data)
csv_writer = SimpleCSVWriter('output.csv')
data = [
['Name', 'Age', 'City'],
['Alice', 30, 'New York'],
['Bob', 25, 'Los Angeles'],
['Charlie', 35, 'Chicago']
]
csv_writer.write(data)
```
Instantiate the `SimpleCSVWriter` with the desired filename, prepare your list of lists containing rows, and utilize the `write` method to generate your...
๐ Read | CodeBase | @mql5dev
#MQL5 #MT5 #CSV
```python
import csv
class SimpleCSVWriter:
def __init__(self, filename):
self.filename = filename
def write(self, data):
with open(self.filename, mode='w', newline='') as file:
writer = csv.writer(file)
writer.writerows(data)
csv_writer = SimpleCSVWriter('output.csv')
data = [
['Name', 'Age', 'City'],
['Alice', 30, 'New York'],
['Bob', 25, 'Los Angeles'],
['Charlie', 35, 'Chicago']
]
csv_writer.write(data)
```
Instantiate the `SimpleCSVWriter` with the desired filename, prepare your list of lists containing rows, and utilize the `write` method to generate your...
๐ Read | CodeBase | @mql5dev
#MQL5 #MT5 #CSV
โค34โ3๐3๐จโ๐ป3โก2๐2๐2
The article delves into the development of a custom Heikin Ashi indicator using MQL5, crucial for traders and developers focused on algorithmic trading. It provides an intricate breakdown of the Heikin Ashi candles, explaining their advantage in smoothing out market trends, enhancing clarity over traditional candlestick charts. The guide details the calculation methods for Heikin Ashi's open, high, low, and close values and the logic behind integrating these calculations into MQL5. The article emphasizes modular programming for maintaining clean, understandable code and explains setting up visual elements, such as color buffers, to improve indicator readability. It equips developers to create more refined trading tools.
๐ Read | AppStore | @mql5dev
#MQL5 #MT5 #Indicator
๐ Read | AppStore | @mql5dev
#MQL5 #MT5 #Indicator
โค31๐4๐ฅ3๐จโ๐ป3๐ค2
In delving into advanced machine learning, this article addresses a critical but often overlooked component: irreducible error. Beyond the inherent variability and model bias commonly acknowledged, it introduces a third source of error, obscured by abstraction. By examining models from a geometric perspective, practitioners can better understand the manifold mismatch, where predictions poorly align with target realities in their own domains. This discussion extends into practical trading applications, demonstrating enhanced profitability and reduced risk using an improved feedback controller approach. Both developers and traders can benefit from these insights, offering a more intelligent application of machine learning in trading strategies.
๐ Read | Forum | @mql5dev
#MQL5 #MT5 #ML
๐ Read | Forum | @mql5dev
#MQL5 #MT5 #ML
โค27โ8๐4๐ฅ2๐จโ๐ป2๐พ2
Explore the groundbreaking Multi-Agent and Self-Adaptive portfolio optimization framework integrated with Attention mechanisms and Time series (MASAAT) for dynamic trading. This sophisticated framework harnesses attention mechanisms to extract trend features from noisy time series, utilizing Cross-Sectional Attention (CSA) and Temporal Attention (TA) for superior asset and temporal insight. Agents analyze market trends at various granularities, enhancing portfolio adaptability in volatile conditions. An MQL5 implementation showcases its practical application, emphasizing modular object structure for parallel operation. Leveraging OpenCL, multi-agent trend detection is optimized, paving the way for refined portfolio strategies in computational finance. Ideal for developers keen on algorithmic trading innovations.
๐ Read | Signals | @mql5dev
#MQL5 #MT5 #Portfolio
๐ Read | Signals | @mql5dev
#MQL5 #MT5 #Portfolio
โค28๐9๐จโ๐ป3๐1๐1
Explore the cosmic-inspired Big Bang-Big Crunch (BBBC) algorithm, a global optimization method that simplifies complex problem-solving for algorithmic traders and developers. Drawing parallels to cosmic phenomena, this method uses a dynamic population of candidates, adapting through chaotic exploration and focused refinement phases. Innovative implementation balances randomness with precise targeting, ensuring robust solutions. Despite impressive outcomes on standard benchmarks, deeper analysis reveals limitations due to its over-reliance on central optima. By revising the approach, we enhance objectivity, leading to true optimization results. Whether adjusting algorithm parameters or testing new strategies, BBBC offers an intriguing perspective on iterative problem-solving.
๐ Read | Signals | @mql5dev
#MQL5 #MT5 #Algorithm
๐ Read | Signals | @mql5dev
#MQL5 #MT5 #Algorithm
โค30๐คก8๐6๐2๐คจ2๐จโ๐ป2
The development of a replay system requires careful handling of futures contracts, particularly with assets that have both full and mini contract types. When designing an Expert Advisor to interpret Chart Trade instructions, programmers encounter challenges with assets like futures that have expiration dates. Addressing these challenges involves understanding contract types and ensuring historical data is correctly applied, as traders often rely on historical accuracy when strategizing.
While adapting the cross order system for varying contracts, establishing naming conventions is crucial. This involves a systematic method for identifying active contracts and mapping historical data to them, ensuring consistency in the display and execution of trades. The focus here is on extended timeframes and the continuity of data for long-term strategies.
Prog...
๐ Read | AlgoBook | @mql5dev
#MQL5 #MT5 #Strategy
While adapting the cross order system for varying contracts, establishing naming conventions is crucial. This involves a systematic method for identifying active contracts and mapping historical data to them, ensuring consistency in the display and execution of trades. The focus here is on extended timeframes and the continuity of data for long-term strategies.
Prog...
๐ Read | AlgoBook | @mql5dev
#MQL5 #MT5 #Strategy
โค48โก5๐จโ๐ป4๐2๐พ2
HedgeCover EA is engineered for meticulous risk management in trading operations. It stands out from high-risk martingale systems by providing a controlled environment to protect losing positions. Key functionalities include the One-Hedge-Per-Position method, which avoids infinite hedging loops and prevents excessive trades. It distinctly uses Magic Number Separation to differentiate main positions from hedges.
Configurable Loss Threshold allows traders to establish loss levels between 30 and 100 pips before hedge activation. A Cooldown Protection feature mandates a minimum period between hedges, ranging from 5 to 15 minutes, and Max Hedges Limit caps the total hedge count.
To prevent over-leverage, Margin Safety Checks enforce an 80% free margin requirement, and Symbol Filtering confines hedging to the current chart. It incorporates lot size validation and no...
๐ Read | Quotes | @mql5dev
#MQL5 #MT5 #EA
Configurable Loss Threshold allows traders to establish loss levels between 30 and 100 pips before hedge activation. A Cooldown Protection feature mandates a minimum period between hedges, ranging from 5 to 15 minutes, and Max Hedges Limit caps the total hedge count.
To prevent over-leverage, Margin Safety Checks enforce an 80% free margin requirement, and Symbol Filtering confines hedging to the current chart. It incorporates lot size validation and no...
๐ Read | Quotes | @mql5dev
#MQL5 #MT5 #EA
โค33๐13โก3๐จโ๐ป2๐1๐1
Orthogonal polynomials serve as a robust method for analyzing market data, thanks to their unique mathematical properties. In trading, they can efficiently simulate time series by filtering out noise and highlighting trends. Polynomials such as Legendre and Chebyshev can be applied in technical analysis for smoothing data, trend detection, and constructing complex trading indicators.
Their independence and adaptability enhance model stability and interpretability. Strategies using orthogonal polynomials, like polynomial regression and adjusted technical indicators, can significantly improve prediction accuracy and market adaptability. Moreover, they integrate well with machine learning to capture complex data relationships and reduce overfitting.
๐ Read | VPS | @mql5dev
#MQL5 #MT5 #Indicator
Their independence and adaptability enhance model stability and interpretability. Strategies using orthogonal polynomials, like polynomial regression and adjusted technical indicators, can significantly improve prediction accuracy and market adaptability. Moreover, they integrate well with machine learning to capture complex data relationships and reduce overfitting.
๐ Read | VPS | @mql5dev
#MQL5 #MT5 #Indicator
โค39๐6๐จโ๐ป4
Discover how to build a robust MQL5 system that enhances price-action trading by transforming fractal pivots into reliable signals. This technical guide presents a practical approach to using fractal pivots as stable anchors, detecting pivotal market shifts through Changes of Character (ChoCH) and Breaks of Structure (BOS). These signals provide early warnings and confirmations of trend reversals, using closed-bar logic to ensure non-repainting and backtestable accuracy. The article delves into the complete algorithm design and MQL5 implementation, offering features like alerts, logging, and multi-channel notifications. Itโs a powerful tool for traders seeking to streamline their strategy with automated alerts and effective market analysis.
๐ Read | Quotes | @mql5dev
#MQL5 #MT5 #Trading
๐ Read | Quotes | @mql5dev
#MQL5 #MT5 #Trading
โค48๐7๐จโ๐ป3
The latest update enhances the News Headline EA by incorporating a multi-chart visualization feature for multiple-symbol management. A new class, CChartMiniTiles, was developed to enable traders to view multiple charts within a single chart space, customizable in size and easily controlled via a toggle button. This feature supports real-time decision-making during volatile market events by allowing easy access and quick toggling of price views for selected trading pairs. The modular and maintainable design focused on separate testing, reducing errors during integration into complex systems.
An example EA, MiniChartsEA, was used to validate this functionality. Initial tests confirmed the seamless toggling of mini-chart views, adjusted to broker-specific symbol formats. This functionality will be integrated into the main EA, enhancing the trading workspace by...
๐ Read | VPS | @mql5dev
#MQL5 #MT5 #EA
An example EA, MiniChartsEA, was used to validate this functionality. Initial tests confirmed the seamless toggling of mini-chart views, adjusted to broker-specific symbol formats. This functionality will be integrated into the main EA, enhancing the trading workspace by...
๐ Read | VPS | @mql5dev
#MQL5 #MT5 #EA
โค81โ9๐8๐จโ๐ป4๐คฏ3๐3โก2
Risk Calculator is a valuable resource for traders prioritizing swift and precise calculations. It eliminates the need for manual computations of financial values related to Stop Loss and Take Profit. This Expert Advisor provides an intuitive chart panel that allows for quick visualization of trade risk and reward, prior to order placement. With a streamlined and performance-optimized interface, it integrates smoothly into trading setups, offering essential information without chart clutter or system slowdown.
Key features include:
- Instant Calculation: Input lot size and point distances for Take Profit and Stop Loss to immediately view values in your account's currency.
- On-Chart Interface: User-friendly, positioned to not obstruct technical analysis.
- Real-Time Point Value: Displays monetary value per point for the current symbol, clarifying volatil...
๐ Read | Calendar | @mql5dev
#MQL5 #MT5 #EA
Key features include:
- Instant Calculation: Input lot size and point distances for Take Profit and Stop Loss to immediately view values in your account's currency.
- On-Chart Interface: User-friendly, positioned to not obstruct technical analysis.
- Real-Time Point Value: Displays monetary value per point for the current symbol, clarifying volatil...
๐ Read | Calendar | @mql5dev
#MQL5 #MT5 #EA
โค44๐3๐จโ๐ป2โ1๐พ1
The MA of Custom RSI indicator integrates a moving average into the RSI framework to reduce erratic signals. This tool is beneficial for those seeking smoother trend analysis and reliable entry and exit points. Key features include a dual-layer analysis presenting both raw and smoothed data for comprehensive evaluation. Customize settings such as MA Period, Method, and Shift for tailored strategies. The intuitive design includes adjustable overbought and oversold levels with clear visual guidance.
For traders working with MetaTrader 5, ensure the RSI example indicator is located in the correct directory. The MA of Custom RSI enhances established strategies, including MA crossover, trend confirmation, divergence detection, and level rejection, by providing a clear momentum perspective.
๐ Read | Signals | @mql5dev
#MQL5 #MT5 #Indicator
For traders working with MetaTrader 5, ensure the RSI example indicator is located in the correct directory. The MA of Custom RSI enhances established strategies, including MA crossover, trend confirmation, divergence detection, and level rejection, by providing a clear momentum perspective.
๐ Read | Signals | @mql5dev
#MQL5 #MT5 #Indicator
โค31๐4โ3๐จโ๐ป2โก1๐1
The MACD (Moving Average Convergence/Divergence) indicator is a staple in algorithmic trading for identifying momentum. Employ the MACD signal line as a momentum filter to refine trading strategies. For buy logic, consider it enabled when the signal line remains above the zero threshold and the latest bar of the signal line surpasses the preceding bar. This condition inherently incorporates upward crossovers. Conversely, activate sell logic when the signal line falls below the zero threshold and the latest bar closes lower than the prior bar, ensuring inclusion of downward crossovers. Implementing these conditions can enhance decision-making in automated trading systems.
๐ Read | CodeBase | @mql5dev
#MQL5 #MT5 #Indicator
๐ Read | CodeBase | @mql5dev
#MQL5 #MT5 #Indicator
โค31๐9๐จโ๐ป2๐2
Explore the intricacies of algorithmic trading with the newly developed AB=CD Pattern system in MQL5. Designed for MetaTrader 5, this system identifies bullish and bearish harmonic AB=CD patterns using precise Fibonacci ratios for dynamic trading execution. It handles trade entries, stop-loss, and multi-level take-profit targets with sophisticated chart visualizations featuring triangles, trendlines, and labels that clearly present patterns. Understand the implementation, from the foundational MQL5 coding practices to effective pivot point analysis, ensuring you can harness this strategy for enhanced trading decisions. Learn how it integrates robust trade execution and visualization techniques aimed at improving trading efficiency.
๐ Read | AlgoBook | @mql5dev
#MQL5 #MT5 #HarmonicTrading
๐ Read | AlgoBook | @mql5dev
#MQL5 #MT5 #HarmonicTrading
โค37๐จโ๐ป3
Version control is essential for medium to large projects to track changes, organize code, and revert to previous versions using systems like Git or SVN. Despite MetaEditor supporting SVN-based MQL Storage, Git is preferred due to its robust branching and merging features. MetaQuotes plans to integrate Git with MetaEditor and launch MQL5 Algo Forge, an in-house Git alternative.
To transition, create a new Git repository, clone it locally, and configure with .gitignore for efficient file management. Utilize tools like VSCode and Git for repository management. Store projects in separate branches or repositories depending on project dependencies. Transition involves creating a main repository, configuring branches, and managing changes smoothly.
๐ Read | AlgoBook | @mql5dev
#MQL5 #MT5 #Git
To transition, create a new Git repository, clone it locally, and configure with .gitignore for efficient file management. Utilize tools like VSCode and Git for repository management. Store projects in separate branches or repositories depending on project dependencies. Transition involves creating a main repository, configuring branches, and managing changes smoothly.
๐ Read | AlgoBook | @mql5dev
#MQL5 #MT5 #Git
โค29๐8โ4๐2๐จโ๐ป1
Traders often encounter inconsistency in strategies due to reliance on multiple indicators without a cohesive framework. A single Expert Advisor (EA) integrating Smart Money Concepts (SMC) strategies offers a powerful solution. SMC includes understanding market behavior through Order Blocks (OB), Break of Structure (BOS), and Fair Value Gaps (FVG). The EA simplifies workflow, automates trading decisions, and enhances focus on high-probability price-action signals. By unifying these concepts, traders achieve efficient, consistent, and adaptive trading aligned with changing market conditions, reducing guesswork and enhancing trade execution in the process. This approach fosters disciplined, rule-based market engagement.
๐ Read | VPS | @mql5dev
#MQL5 #MT5 #EA
๐ Read | VPS | @mql5dev
#MQL5 #MT5 #EA
โค59๐19๐ฏ9๐จโ๐ป9โก2
An indicator is available that assigns distinct colors to bullish and bearish candles, enabling clear visualization of market trends. By differentiating between bullish and bearish candles through color, this tool eliminates confusion that arises from candles with identical colors. The design facilitates quick identification of market movement by visually distinguishing between upward and downward trends. This simplifies the process of reading charts, making it easier to interpret market signals accurately. Users can utilize this feature to enhance the precision of their chart analysis without misinterpretations.
๐ Read | AppStore | @mql5dev
#MQL4 #MT4 #Indicator
๐ Read | AppStore | @mql5dev
#MQL4 #MT4 #Indicator
โค34๐3๐คก2๐จโ๐ป2
Updating our cointegration model in real-time is crucial for dynamic portfolio management. Real-life trading requires adjusting stock weights with every new data point. Our approach caters to retail traders with modest resources, applying statistical arbitrage techniques to identify correlated assets and cointegrated stocks.
We've restructured our Python scripts for efficiency. The database now acts as the main interface, updating our trading model and storing relevant parameters. The pipeline includes statistical tests like Pearson correlation, Engle-Granger, ADF, and KPSS for comprehensive analysis.
On the MQL5 side, we've made strategy parameters flexible by integrating JSON parsing and global variables, facilitating seamless database interaction for real-time updates. Maintaining a clean architecture with most functions in an MQL5 header f...
๐ Read | AlgoBook | @mql5dev
#MQL5 #MT5 #Cointegration
We've restructured our Python scripts for efficiency. The database now acts as the main interface, updating our trading model and storing relevant parameters. The pipeline includes statistical tests like Pearson correlation, Engle-Granger, ADF, and KPSS for comprehensive analysis.
On the MQL5 side, we've made strategy parameters flexible by integrating JSON parsing and global variables, facilitating seamless database interaction for real-time updates. Maintaining a clean architecture with most functions in an MQL5 header f...
๐ Read | AlgoBook | @mql5dev
#MQL5 #MT5 #Cointegration
โค30๐7๐จโ๐ป4โ1
Navigating complex market dynamics is streamlined with the innovative Market Sentiment indicator for MetaTrader 5. This tool amalgamates signals across multiple timeframes into a cohesive, visual panel, differentiating market sentiments into five categories: bullish, bearish, risk-on, risk-off, and neutral. It leverages moving averages and swing analysis to identify dominant trends and potential breakouts, providing a comprehensive view of market conditions. Multi-timeframe integration ensures traders can align short-term entries with broader trends, enhancing strategic decision-making and trade consistency. Efficient sentiment visualization reduces uncertainty, offering a structured approach that aids in quick market assessments and informed trading decisions.
๐ Read | Forum | @mql5dev
#MQL5 #MT5 #Indicator
๐ Read | Forum | @mql5dev
#MQL5 #MT5 #Indicator
โค35๐จโ๐ป4๐2
The ongoing transition from SVN-based MQL5 Storage in MetaEditor to the Git version control with MQL5 Algo Forge offers increased flexibility, particularly through repository branching. Initially, a new repository was created, and a local development setup with Visual Studio Code was established. The archival of existing projects and preparation of the main branch facilitated structured project organization. Recent enhancements in MetaEditor now provide integrated support for Algo Forge, simplifying workflows previously reliant on external tools.
Crucially, the introduction of Shared Projects in MetaEditor resolves previous dilemmas regarding repository handling. The mql5 repository remains for traditional users, while other repositories are accessible via the Shared Projects folder. This enables seamless integration of separate libraries and project files....
๐ Read | Freelance | @mql5dev
#MQL5 #MT5 #Algorithm
Crucially, the introduction of Shared Projects in MetaEditor resolves previous dilemmas regarding repository handling. The mql5 repository remains for traditional users, while other repositories are accessible via the Shared Projects folder. This enables seamless integration of separate libraries and project files....
๐ Read | Freelance | @mql5dev
#MQL5 #MT5 #Algorithm
โค55๐9๐4๐จโ๐ป4โ1๐ฅ1