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 & 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 & 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 pips away from the current market price, with stop-loss and take-profit levels. By
Articles
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
Developing a Trading Strategy: The Triple Sine Mean Reversion Method for MetaTrader 5
This article introduces the Triple Sine Mean Reversion Method, a trading strategy built upon a new mathematical indicator — the Triple Sine Oscillator (TSO). The TSO is derived from the sine cube function, which oscillates between –1 and +1, making it suitable for identifying overbought and oversold
Developing a Trading Strategy: The Butterfly Oscillator Method for MetaTrader 5
In this article, we demonstrated how the fascinating mathematical concept of the Butterfly Curve can be transformed into a practical trading tool. We constructed the Butterfly Oscillator and built a foundational trading strategy around it. The strategy effectively combines the oscillator's unique
Building a Trading System (Part 5): Managing Gains Through Structured Trade Exits for MetaTrader 5
For many traders, it's a familiar pain point: watching a trade come within a whisker of your profit target, only to reverse and hit your stop-loss. Or worse, seeing a trailing stop close you out at breakeven before the market surges toward your original target. This article focuses on using multiple
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












