Daniel Opoku / Publications
Codes
BBandsPsar for MetaTrader 5
BBandsPsar is a custom hybrid indicator that fuses Bollinger Bands’ volatility framework with the Parabolic SAR’s trend-following logic. By integrating these two methodologies, it effectively reconciles market volatility with emerging trend dynamics within a single, cohesive tool
BBandsPsar for MetaTrader 4
BBandsPsar is a custom hybrid indicator that fuses Bollinger Bands’ volatility framework with the Parabolic SAR’s trend-following logic. By integrating these two methodologies, it effectively reconciles market volatility with emerging trend dynamics within a single, cohesive tool
LotSize Calculation for MetaTrader 5
This is a simple script file to compute lot size either using risk percentage approach or the actual amount to risk
LotSize Calculation for MetaTrader 4
This is a simple script file to compute lot size either using risk percentage approach or the actual amount to risk
Withdrawal Tracking for MetaTrader 5
This is a piece of code to add to an existing Expert advisor to track withdrawals from your account where the EA is running. It helps the user to monitor his or her withdrawals from a particular account
Withdrawal Tracking for MetaTrader 4
This is a piece of code to add to an existing Expert advisor to track withdrawals from your account where the EA is running. It helps the user to monitor his or her withdrawals from a particular account
Multi_BreakEven.mt5 for MetaTrader 5
Multi_BreakEven is a script file that enables setting multiple entry positions to breakeven, either through pips or a target price, once the trade becomes favorable
Multi-BreakEven.mt4 for MetaTrader 4
Multi_BreakEven is a script file that allows multiples entry positions to set to breakeven using pips or target price when the trade is in your favor
Multi-SellLimitOrders and Multi-SellStopOrders for MetaTrader 5
Multi Selllimit and Sellstop orders are script files that enable traders to place multiple orders with ease. These orders allow traders to enter the market at a specific price level, or at a specified number of pips away from the current market price, with stop-loss and take-profit levels. By
Multi-SellLimitOrders and Multi-SellStopOrders for MetaTrader 4
Multi Selllimit and Sellstop orders are script files that enable traders to place multiple orders with ease. These orders allow traders to enter the market at a specific price level, or at a specified number of points away from the current market price, with stop-loss and take-profit levels. By
Articles
Trading Strategy Beyond Raw Volume: Using Transformed Volume Change for Trading for MetaTrader 5
The article develops a volume-change strategy that transforms tick or real volume with Ln(volume+1), differences it bar to bar, and applies arctan to produce a bounded, scale‑independent signal. A threshold drives entries, with selectable gates for positive, negative, or bi‑directional signals and
Encoding Candlestick Pattern (Part 6): Developing the Encoded Sequence Indicator for MetaTrader 5
An on-chart MQL5 indicator generates a live stream of encoded candlestick symbols and a frequency report for the last N bars. It supports color customization and type filtering, and uses A/a, H/h, E/e, G/g, D, and N/n classifications. Traders can quickly review occurrences and common sequences
Encoding Candlestick Patterns (Part 5): Expanding Taxonomy of Candlestick for General Pattern Frequency Analysis for MetaTrader 5
This article extends the candlestick encoding framework by separating previously unclassified bullish and bearish candlesticks into distinct symbols. Using an MQL5 script, historical data were automatically encoded, sequential patterns were extracted, and frequency statistics were generated. The
Encoding Candlestick Patterns (Part 4): Frequency Analysis for Double-Candlestick Structures for MetaTrader 5
This article extends single-candlestick analysis to ordered double-candlestick patterns using an MQL5 script. The script encodes candles into symbols, extracts every consecutive two-symbol sequence (treating Aa and aA as different), counts occurrences and percentages, and writes sorted frequency
Encoding Candlestick Patterns (Part 3): Frequency Analysis for Single Candlestick Type Structure for MetaTrader 5
This article introduces a frequency-analysis framework for encoded candlestick patterns in MQL5. By transforming candlesticks into alphabetic symbols, historical price action can be analyzed as a statistical sequence rather than a visual chart. Using GBPUSD and Gold across multiple timeframes, the
Encoding Candlestick Patterns (Part 2): Modeling Price Action as an Ordered Sequence for MetaTrader 5
Developing permutation-based tools in MQL5 provides a systematic way to analyze candlestick pattern combinations for trading strategies. This article introduces a permutation calculator and generator designed to compute and enumerate all possible ordered candlestick sequences from bullish and
Encoding Candlestick Patterns (Part 1): An Alphabetical System for Signal Detection for MetaTrader 5
We present a rule‑based alphabet for candlestick price action that maps measurable shape and direction to letter codes (A/a, H/h, E/e, G/g, D). The article shows an MQL5 implementation: classifying candles, building two‑bar sequences via permutations, and scanning charts with an indicator and
Developing a Trading Strategy: Using a Volume-Bound Approach for MetaTrader 5
In the world of technical analysis, price often takes center stage. Traders meticulously map out support, resistance, and patterns, yet frequently ignore the critical force that drives these movements: volume. This article delves into a novel approach to volume analysis: the Volume Boundary
Developing a Trading Strategy: The Flower Volatility Index Trend-Following Approach for MetaTrader 5
The relentless quest to decode market rhythms has led traders and quantitative analysts to develop countless mathematical models. This article has introduced the Flower Volatility Index (FVI), a novel approach that transforms the mathematical elegance of Rose Curves into a functional trading tool
Developing Trading Strategy: Pseudo Pearson Correlation Approach for MetaTrader 5
Generating new indicators from existing ones offers a powerful way to enhance trading analysis. By defining a mathematical function that integrates the outputs of existing indicators, traders can create hybrid indicators that consolidate multiple signals into a single, efficient tool. This article
Forum
Experts: Withdrawal Tracking
Withdrawal Tracking : This is a piece of code to add to an existing Expert advisor to track withdrawals from your account where the EA is running. It helps the user to monitor his or her withdrawals from a particular account. Author: Daniel Opoku
Gold TickValue
Hi everyone, I’m currently trading with a broker whose platform seems to have an issue with the tick value for gold. On the platform’s specifications: Gold tick value = 0.01 Account balance = $5,000 Stop loss (points) = 1,500 (150 pips) Risk = 1% Based on these numbers, the lot size should be
Experts: Withdrawal Tracking
Withdrawal Tracking : This is a piece of code to add to an existing Expert advisor to track withdrawals from your account where the EA is running. It helps the user to monitor his or her withdrawals from a particular account. Author: Daniel Opoku












