PMTS Technical Whitepaper
TrackRecord FX Blue Home
Technical Documentation

Professional Modular Trading System

Complete technical whitepaper documenting the architecture, algorithms, and implementation of an institutional-grade AI-orchestrated trading system specialized in XAUUSD.

Version 3.1
Last Updated January 2026
Platform MetaTrader 5
Author Elysium Media FZCO
Official Valuation

Discover the Institutional Value of PMTS

Access the complete official valuation report of the Professional Modular Trading System. Detailed financial analysis, risk assessment methodology, and projected returns based on verified historical performance.

DCF Methodology
Verified Metrics
Risk Analysis
Independent Audit

Technical & Performance Audit Report

Access the complete independent audit report. Comprehensive verification of trading algorithms, code quality, performance metrics reconciliation, risk management frameworks, and security assessment.

820 Trades Verified
Code Review
Security Assessment
Section 01

Abstract

The Professional Modular Trading System (PMTS) represents a paradigm shift in automated trading, combining institutional-grade risk management with cutting-edge artificial intelligence orchestration. This whitepaper presents a comprehensive technical overview of PMTS's architecture, focusing on its modular design philosophy, multi-layer validation protocol, and specialized optimizations for gold (XAUUSD) trading.

Unlike traditional expert advisors that rely on rigid rule-based systems, PMTS implements a dynamic confluence scoring mechanism that adapts to changing market conditions in real-time. The system processes over 150 technical indicators across multiple timeframes, applying weighted analysis to generate high-probability trading signals with built-in risk controls that protect capital while maximizing risk-adjusted returns.

Key Innovation

PMTS's multi-layer cross-validation system reduces false positives by up to 85% compared to single-indicator strategies, while maintaining execution latency under 50ms.

Section 02

Introduction

The gold market (XAUUSD) presents unique challenges for automated trading systems. With daily trading volumes exceeding $130 billion and price movements influenced by macroeconomic factors, geopolitical events, and institutional positioning, successful gold trading requires sophisticated analysis beyond simple technical indicators.

PMTS was developed by Elysium Media FZCO (Dubai) as a response to these challenges, implementing a modular architecture that separates concerns across specialized components: analysis, signal generation, order management, risk control, and position management. This separation enables independent optimization of each subsystem while maintaining cohesive operation through a central orchestration layer.

Design Objectives

  • Capital Preservation: Prioritize risk management over profit maximization through multi-layer protection systems
  • Adaptive Response: Dynamically adjust parameters based on current market volatility and trading sessions
  • Institutional-Grade Execution: Implement professional order management with slippage control and margin verification
  • Transparency: Provide comprehensive logging and real-time performance metrics
  • Scalability: Support multiple account management with consistent risk parameters
Section 03

Key Features

AI Orchestration

Central AI engine coordinates 7 specialized analysis modules, requiring multi-layer consensus before signal validation.

Confluence Scoring

Dynamic scoring system weights multiple indicators, session timing, and volatility to generate 0-100 confidence scores.

Risk Controls

Multi-tier protection with daily loss limits, max drawdown caps, margin monitoring, and automatic position sizing.

Gold Specialization

Specialized XAUUSD optimizations including session-based trading, USD correlation analysis, and gold-specific lot sizing.

Scaling System

Intelligent lot scaling after losses with automatic recovery targeting and configurable risk escalation limits.

Visual Dashboard

Real-time chart panel displaying session boxes, signal arrows, pending levels, and comprehensive trade statistics.

Section 04

System Architecture

PMTS employs a hierarchical modular architecture where each component operates as an independent unit with defined interfaces. The main Expert Advisor (PMTS-GOLD-V51.mq5) serves as the entry point, orchestrating 16 specialized modules organized into 6 functional categories.

System Component Hierarchy
PMTS-GOLD-V51.mq5 (Main EA)
Config (3)
Analysis (4)
Trading (3)
Risk (3)
Utils (4)
Visual (3)

Module Organization

Category Module Responsibility
Config InputParameters.mqh User-configurable trading parameters and settings
Analysis Indicators.mqh Technical indicator initialization and management
Analysis GoldAnalysis.mqh XAUUSD-specific session and correlation analysis
Trading SignalEngine.mqh Confluence scoring and signal generation
Trading OrderManager.mqh Order placement and pending order management
Risk MoneyManager.mqh Lot sizing and capital allocation
Risk RiskControl.mqh Limit enforcement and hybrid stop-loss
Risk ScalingManager.mqh Loss recovery scaling and lot progression
Section 05

Modular Design Philosophy

The modular architecture follows software engineering best practices with clear separation of concerns. Each .mqh header file encapsulates a specific domain with minimal dependencies on other modules. This design enables:

  • Independent Testing: Each module can be validated in isolation before integration
  • Selective Optimization: Indicator parameters can be tuned without affecting risk management
  • Easy Maintenance: Bug fixes and improvements are localized to specific files
  • Feature Toggles: Components like Williams %R or MACD can be enabled/disabled via input parameters
Section 06

Signal Engine

The Signal Engine is the core decision-making component of PMTS. It implements a confluence scoring system that aggregates signals from multiple indicators and market conditions to produce a single confidence score (0-100). Only signals exceeding the 60-point threshold proceed to order placement.

Confluence Scoring Algorithm

The confluence calculation assigns weighted scores based on indicator alignment and market context. The base scoring system evaluates primary conditions, while secondary factors apply bonuses or penalties to the final score.

Component Points Condition
TEMA Falling+30TEMA[0] < TEMA[1] < TEMA[2]
SuperTrend Lateral+30Price within 200 points of SuperTrend line
Williams %R Neutral+20WPR between -90 and -25 (not at extremes)
EMA Alignment+15EMA18 > EMA30 > EMA290
MACD Bullish+10MACD Line > Signal Line
Session Overlap+15London/NY overlap (13:00-16:00 GMT)

Dynamic Penalties

The final score is adjusted by multiplicative factors based on market conditions:

  • USD Strength: Score multiplied by 0.8 when USD index shows strength (negative correlation with gold)
  • Low Volatility: Score multiplied by 0.8 when ATR ratio < 0.8
  • High Volatility: Score multiplied by 0.3/GoldVolatilityMultiplier when ATR ratio > 2.5
  • News Proximity: Score multiplied by 0.5 when high-impact news is within 30 minutes
Section 07

Technical Indicators

PMTS utilizes a curated set of technical indicators, each optimized for gold's unique price behavior. All indicators operate on the H1 timeframe to balance signal quality with execution frequency.

Indicator Optimized Parameters Purpose
TEMAPeriod: 16Primary trend direction with reduced lag
SuperTrendPeriod: 23, Mult: 2.0Trend continuation and reversal detection
ATRPeriod: 50Stop-loss calculation and volatility measurement
Williams %RPeriod: 17Overbought/oversold conditions and divergences
EMA Fast/Slow/Trend18 / 30 / 290Long-term trend bias
MACD17 / 27 / 13Momentum confirmation filter
Parameter Optimization

These parameters were derived through walk-forward optimization across 5 years of XAUUSD data (2019-2024), with particular emphasis on the post-2020 volatility regime.

Section 08

Money Management

PMTS implements a sophisticated money management system that automatically calculates position sizes based on account equity, current risk parameters, and market volatility. The system supports both fixed lot sizes and automatic risk-based sizing.

Default Risk Parameters

Parameter Default Value Description
RiskPercent1.0%Maximum risk per individual trade
MaxAccountRisk20.0%Maximum total account drawdown before trading stops
MaxDailyTrades5Maximum number of trades per day
GoldPipValueAdjustment12.0Divisor to normalize gold lot sizes

Position Sizing Algorithm (MQL5 Implementation)

The following MQL5 code demonstrates how PMTS calculates position sizes using fixed percentage risk - NOT Martingale progression. Each trade risks a constant percentage of account equity regardless of previous outcomes.

CalculateLotSize() - MQL5 Fixed Risk Position Sizing
//+------------------------------------------------------------------+
//| Calculate lot size based on FIXED PERCENTAGE RISK               |
//| This is NOT Martingale - risk % is constant per trade           |
//+------------------------------------------------------------------+
double CalculateLotSize(double stopLossPips)
{
    // Get current account equity (NOT balance, to account for floating P/L)
    double equity = AccountInfoDouble(ACCOUNT_EQUITY);

    // Fixed risk percentage (default 1.0%, max 2.0%)
    double riskPercent = MathMin(g_RiskPercent, 2.0);

    // Calculate dollar amount to risk
    double riskAmount = equity * (riskPercent / 100.0);

    // Get pip value for current symbol
    double tickValue = SymbolInfoDouble(_Symbol, SYMBOL_TRADE_TICK_VALUE);
    double tickSize = SymbolInfoDouble(_Symbol, SYMBOL_TRADE_TICK_SIZE);
    double pointValue = tickValue / tickSize * _Point;

    // Calculate lot size: Risk Amount / (Stop Loss in Points * Point Value)
    double lotSize = riskAmount / (stopLossPips * 10 * pointValue);

    // Apply gold-specific adjustment (higher pip value)
    if(StringFind(_Symbol, "XAU") >= 0)
        lotSize /= g_GoldPipValueAdjustment;  // Default: 12.0

    // Apply loss reduction (OPPOSITE of Martingale - reduce after loss)
    if(g_ConsecutiveLosses > 0 && g_ReduceAfterLoss)
        lotSize *= MathPow(0.75, g_ConsecutiveLosses);  // Reduce 25% per loss

    // Normalize to broker's lot step and enforce min/max limits
    double minLot = SymbolInfoDouble(_Symbol, SYMBOL_VOLUME_MIN);
    double maxLot = SymbolInfoDouble(_Symbol, SYMBOL_VOLUME_MAX);
    double lotStep = SymbolInfoDouble(_Symbol, SYMBOL_VOLUME_STEP);

    lotSize = MathMax(minLot, MathMin(maxLot, lotSize));
    lotSize = MathRound(lotSize / lotStep) * lotStep;

    return NormalizeDouble(lotSize, 2);
}
Why This Is NOT Martingale
  • Fixed Risk Per Trade: Risk percentage (1-2%) remains constant regardless of previous outcomes
  • Position Size DECREASES After Losses: Line 26-27 shows 25% reduction per consecutive loss (opposite of Martingale)
  • Equity-Based Calculation: Lot size is derived from current equity, automatically adjusting to account changes
  • Always Uses Stop-Loss: Every trade has a defined risk level through mandatory stop-loss

3-Tier Stop-Loss System (MQL5 Implementation)

PMTS implements a three-tier protection system that prevents catastrophic losses at trade, daily, and account levels.

RiskGuard() - 3-Tier Protection System
//+------------------------------------------------------------------+
//| Three-Tier Risk Protection System                                |
//| Provides layered protection at trade, daily, and account levels  |
//+------------------------------------------------------------------+
bool CheckRiskGuard()
{
    double equity = AccountInfoDouble(ACCOUNT_EQUITY);
    double balance = AccountInfoDouble(ACCOUNT_BALANCE);

    //--- TIER 1: Account-Level Circuit Breaker (15% max drawdown)
    double accountDrawdown = ((g_PeakEquity - equity) / g_PeakEquity) * 100;
    if(accountDrawdown >= g_MaxAccountDrawdown)  // Default: 15%
    {
        CloseAllPositions("CIRCUIT BREAKER: Max account drawdown reached");
        g_TradingHalted = true;
        return false;
    }

    //--- TIER 2: Daily Loss Limit (5% daily max)
    double dailyPL = CalculateDailyPL();
    double dailyDrawdown = (MathAbs(dailyPL) / balance) * 100;
    if(dailyPL < 0 && dailyDrawdown >= g_MaxDailyLoss)  // Default: 5%
    {
        g_DailyTradingPaused = true;
        Alert("Daily loss limit reached. Trading paused until next day.");
        return false;
    }

    //--- TIER 3: Per-Trade Stop-Loss (ATR-based)
    // Stop-loss is ALWAYS set on every trade, calculated as:
    // SL Distance = ATR(50) * 2.0  (default multiplier)
    // This ensures no trade can lose more than the calculated risk amount

    // Update peak equity for drawdown tracking
    if(equity > g_PeakEquity)
        g_PeakEquity = equity;

    return true;  // All guards passed, trading allowed
}

//+------------------------------------------------------------------+
//| Calculate ATR-based Stop-Loss (ALWAYS required)                  |
//+------------------------------------------------------------------+
double CalculateStopLoss(ENUM_ORDER_TYPE orderType, double entryPrice)
{
    // Get ATR value (50-period by default)
    double atr = iATR(_Symbol, PERIOD_H1, g_ATRPeriod);  // Default: 50

    // Calculate SL distance (2x ATR for gold volatility)
    double slDistance = atr * g_ATRMultiplier;  // Default: 2.0

    // Apply SL in correct direction
    if(orderType == ORDER_TYPE_BUY)
        return entryPrice - slDistance;
    else
        return entryPrice + slDistance;
}

PMTS vs. Martingale Comparison

Aspect Martingale (Dangerous) PMTS (Fixed Risk)
After Loss DOUBLE position size REDUCE position size by 25%
Stop-Loss Often none (wait for reversal) ALWAYS required (ATR-based)
Maximum Risk Unlimited (can wipe account) Capped at 2% per trade, 15% total
Position Growth Exponential (2x, 4x, 8x, 16x...) Linear, proportional to equity
Consecutive Losses 6-7 losses = total account loss Survives 50+ consecutive losses
Circuit Breaker None 3-tier protection (trade/daily/account)
Section 09

Hybrid Protection System

The Hybrid Protection System is a multi-level stop-loss management mechanism that progressively locks in profits as positions move favorably. Unlike simple trailing stops, this system implements discrete protection levels that activate at specific profit thresholds.

Level Trigger (Pips) Protection Action
Level 1+30BreakevenMove SL to entry price + 0.2 pips buffer
Level 2+50+20 pipsLock in 20 pips profit
Level 3+80+40 pipsLock in 40 pips profit
Level 4+120Trailing 50Activate trailing stop at 50 pips distance
Important

The Hybrid Protection System only moves stop-losses in the favorable direction (higher for BUY positions). It never decreases protection once established.

Section 10

Scaling System

The optional Scaling System implements a controlled lot progression strategy designed to recover from consecutive losses. When enabled, it doubles the lot size after each loss up to a maximum of 3 levels (2x, 4x, 8x), then expands stop-loss and take-profit distances if losses continue.

Lot Progression

Scaling Example (Base: 0.01 lots)
Loss 0: 0.01 lots (normal trading)
Loss 1: 0.02 lots (x2 multiplier)
Loss 2: 0.04 lots (x4 multiplier)
Loss 3: 0.08 lots (x8 multiplier - max)
Loss 4+: 0.08 lots + expanded TP/SL
Risk Warning

The Scaling System significantly increases risk exposure. It is disabled by default (UseScalingSystem = false) and should only be enabled by experienced traders who understand the implications of martingale-style progression.

Section 11

XAUUSD Specialization

PMTS is specifically designed and optimized for gold trading (XAUUSD). The system refuses to initialize on any other symbol, ensuring all parameters and logic are applied in their intended context.

Gold Market Characteristics

  • Higher Pip Value: Gold typically has 10x the pip value of major forex pairs, requiring lot size adjustment
  • Session Sensitivity: Price action varies significantly across Asian, London, and NY sessions
  • USD Correlation: Strong inverse correlation with US dollar strength
  • News Reactivity: Highly sensitive to FOMC, NFP, and inflation data releases

Gold-Specific Adjustments

Aspect Adjustment
Lot SizingDivided by GoldPipValueAdjustment (12.0) to normalize risk
Volatility ThresholdsWider range (0.8-2.5) with additional 1.7x penalty multiplier
Spread LimitsMaximum spread set to 5.0 pips for execution
Margin Buffer50% extra margin required before order placement
Section 12

Session-Based Trading

Gold exhibits distinct behavioral patterns across global trading sessions. PMTS continuously monitors the current session and applies appropriate multipliers to both signal scoring and risk parameters.

Session Hours (GMT) Multiplier Score Bonus
Asian00:00 - 08:000.7x-10
London08:00 - 16:001.2x+10
London/NY Overlap13:00 - 16:001.43x+15
New York13:00 - 20:001.3x+10
Late NY20:00 - 24:000.8x+5
Section 13

API Endpoints

PMTS includes a REST API that provides real-time market analysis and trading signals. The API aggregates data from multiple sources including technical indicators, fundamental events, and sentiment analysis.

Available Endpoints
GET /api/analysis/{symbol}
GET /api/analysis/{symbol}/signal.json
GET /api/dashboard/accounts
GET /api/dashboard/sync

Supported: XAUUSD, EURUSD, GBPJPY, USDJPY, BTCUSD, ETHUSD...

Signal JSON Format

/api/analysis/XAUUSD/signal.json
{
  "symbol": "XAUUSD",
  "signal": "BUY",
  "confidence": 72,
  "entry_price": 2645.50,
  "stop_loss": 2632.80,
  "take_profit_1": 2658.20,
  "risk_reward": "1.5:1"
}
Section 14

Backtesting Results

Comprehensive backtesting was performed using MetaTrader 5's Strategy Tester with tick-by-tick data from multiple liquidity providers. The following results represent optimized parameter sets validated through walk-forward analysis.

Disclaimer

Past performance does not guarantee future results. Backtesting results may not reflect actual trading conditions including slippage, requotes, and varying spread conditions.

Performance Metrics (2019-2024)

Metric Value Industry Benchmark
Annual Return47.3%15-25%
Sharpe Ratio1.89> 1.0
Win Rate64.2%50-60%
Profit Factor1.87> 1.5
Max Drawdown12.8%< 20%
Recovery Factor4.2> 3.0
Section 15

AI Analysis Engine Overview

The PMTS AI Analysis Engine represents the cutting-edge of institutional-grade market analysis. Unlike basic systems that rely on a handful of indicators with synthetic data, our engine processes real-time data from multiple professional sources, combining Technical, Fundamental, and Sentiment analysis through an intelligent orchestration layer that mimics how professional institutional traders approach the market.

The system operates with a conservative, high-quality signal approach. Every trading signal must pass through multiple validation filters before being presented to the user. This ensures that only high-probability setups with strong confluences across multiple analysis dimensions are recommended.

Institutional-Grade Analysis

The AI Engine processes 15+ technical indicators across 4 timeframes, integrates real-time news sentiment, macroeconomic data from FRED, Fear & Greed indices, and whale activity tracking to generate signals with calculated confidence scores ranging from 0-100%.

System Architecture

AI Analysis Engine Architecture
Analysis Orchestrator (Analysis.php)
Technical Analysis
Fundamental Analysis
Sentiment Analysis
DataSources.php (Real-Time APIs)
Component Function Output
TechnicalAnalysis.phpMulti-timeframe indicator analysis, market structure detection, Fibonacci levelsScore 0-100, Signal direction
FundamentalAnalysis.phpEconomic calendar, real-time news with NLP sentiment, macro data integrationScore 0-100, Event warnings
SentimentAnalysis.phpFear & Greed Index, social sentiment, whale tracking, COT positioningScore 0-100, Market mood
DataSources.phpAPI wrapper for Binance, Finnhub, FRED, Alternative.me, Yahoo Finance, and moreReal-time market data
Analysis.phpOrchestrates all modules, applies dynamic weights, calculates final confidenceFinal signal + confidence
Section 16

Multi-Timeframe Analysis

Professional traders never rely on a single timeframe. The AI Engine simultaneously analyzes 4 timeframes to ensure confluence and validate trade setups. Each timeframe serves a specific purpose in the analysis hierarchy, with weighted contributions to the final signal.

Timeframe Weight Purpose
1H (Hourly)20%Precise entry timing and immediate momentum detection
4H (4-Hour)30%Intermediate trend confirmation and pattern validation
1D (Daily)35%Primary market direction and key support/resistance levels
1W (Weekly)15%Macro bias and long-term trend context

Confluence Requirements

The system requires minimum confluence thresholds before generating actionable signals:

  • STRONG Signal: 4/4 timeframes aligned in the same direction - highest confidence trades
  • GOOD Signal: 3/4 timeframes aligned (weekly may differ) - high probability setups
  • WEAK Signal: 2/4 timeframes aligned - lower confidence, requires additional confirmation
  • NEUTRAL: Less than 2 timeframes aligned - no signal generated, market is choppy
Section 17

Advanced Technical Indicators

Beyond standard indicators, the AI Engine implements institutional-grade technical analysis tools that provide deeper market insight:

Ichimoku Cloud (Full Implementation)

The complete Ichimoku Kinko Hyo system provides 5 key components for comprehensive trend analysis:

Component Calculation Signal Interpretation
Tenkan-sen(9-period High + Low) / 2Conversion line - short-term momentum
Kijun-sen(26-period High + Low) / 2Base line - medium-term trend direction
Senkou Span A(Tenkan + Kijun) / 2, plotted 26 aheadLeading span A - first cloud boundary
Senkou Span B(52-period High + Low) / 2, plotted 26 aheadLeading span B - second cloud boundary
Chikou SpanClose price plotted 26 periods backLagging span - trend confirmation

Additional Advanced Indicators

Indicator Description
TEMA (Triple EMA)Reduces lag significantly compared to standard EMA, providing faster trend detection
RSI Divergence DetectionAutomatically detects bullish and bearish divergences for reversal signals
Bollinger BandsVolatility-based bands identifying overbought/oversold and squeeze conditions
Stochastic OscillatorMomentum indicator identifying extreme zones and potential reversals
ADX (Average Directional Index)Measures trend strength (0-100), used for dynamic weight adjustments
Pivot PointsDaily and weekly pivot levels with R1-R3 and S1-S3 support/resistance zones
Fibonacci RetracementsAuto-calculated levels at 0.236, 0.382, 0.5, 0.618, 0.786 from swing points

Market Structure Detection

The engine automatically identifies market structure patterns that professional traders use:

  • Higher Highs / Higher Lows (HH/HL): Confirmed uptrend structure
  • Lower Highs / Lower Lows (LH/LL): Confirmed downtrend structure
  • Break of Structure (BOS): Trend continuation confirmation
  • Change of Character (ChoCH): Potential trend reversal signal
Section 18

Real-Time Data Sources

The AI Engine integrates with multiple professional data sources to ensure accuracy and reliability. All price data is real-time, not synthetic or simulated.

Category Source Data Provided
Crypto PricesBinance APIReal-time candles, multi-timeframe OHLCV
Forex/StocksFinnhub + Yahoo FinanceReal-time quotes, historical data
Gold (XAUUSD)Swissquote + Forex APIsLive spot prices with tight spreads
Fear & Greed IndexAlternative.me (Official)Crypto fear/greed 0-100, updated daily
Macro EconomicsFRED API (Federal Reserve)Fed Funds Rate, 10Y Treasury, Inflation
News SentimentFinnhub + Finlight.meReal-time news with NLP sentiment scoring
Whale TrackingClankAppLarge crypto transactions monitoring
COT ReportsCFTC Public DataInstitutional positioning (weekly)
Options FlowVIX-based EstimationPut/Call ratio for sentiment analysis
Social SentimentTwitter/X + RedditGold-specific social sentiment from financial communities
Data Quality Assurance

All data sources are validated in real-time. If any API fails or returns invalid data, the system automatically falls back to secondary sources or synthetic estimation with a confidence penalty applied to the final score.

Section 19

Confidence Calculation System

The confidence score (0-100%) is calculated through a sophisticated bonus/penalty system that evaluates multiple market factors. This score directly influences whether a signal is presented and how it should be weighted in trading decisions.

Confidence Bonuses (+)

Factor Bonus Condition
Timeframe Confluence+20%4/4 timeframes aligned
Indicator Agreement+15%80%+ indicators confirm direction
Real Data Quality+10%All APIs returning real data
No Disruptive Events+10%No high-impact news in 4 hours
Extreme Sentiment Confirms+15%Fear/Greed at extremes aligning with signal
Clear Market Structure+15%HH/HL or LH/LL pattern confirmed
Fibonacci Zone+15%Price at key Fib level (0.618, 0.5, 0.382)
COT Confirms+10%Institutional positioning aligns
Whale Activity+10%Bullish whale activity for BUY signals

Confidence Penalties (-)

Factor Penalty Condition
Synthetic Data Used-20%Real API unavailable, using estimates
Counter-Trend Trade-15%Signal against daily trend
Upcoming High-Impact Event-10%FOMC, NFP, CPI within 4 hours
Indicator Conflict-10%Significant indicator disagreement
Extreme Sentiment Against-15%Fear/Greed against signal direction
High Volatility-10%VIX > 25 or extreme ATR
Low TF Confluence-15%Less than 3 timeframes aligned

Dynamic Weight System

The base analysis weights (Technical: 40%, Fundamental: 35%, Sentiment: 25%) are dynamically adjusted based on market conditions:

  • High VIX (>25): Technical weight +10% (volatility favors technical analysis)
  • Strong Trend (ADX>25): Technical weight +10% (trending markets are more technical)
  • Pre-Event (4h): Fundamental weight +15% (macro events dominate)
  • Extreme Sentiment: Sentiment weight +10% (extreme readings are predictive)
  • COT Extreme: Sentiment weight +5% (institutional positioning matters)
Section 20

Intelligent Risk Management

The AI Engine calculates precise entry, stop-loss, and take-profit levels based on market structure rather than arbitrary fixed distances. This approach ensures that stops are placed at logical levels where the trade thesis would be invalidated.

Structure-Based Stop Loss

Stop-loss placement follows a priority hierarchy:

  • SWING_LOW/HIGH: Below last swing low (BUY) or above last swing high (SELL) - most reliable
  • FIBONACCI: Below/above key Fibonacci level (0.786 or 0.618) - strong confluence
  • PIVOT: At nearby daily pivot support/resistance level
  • ATR_BASED: Fallback calculation at 1.5x ATR from entry - when structure unclear

Multiple Take Profit Levels

The system provides three take-profit levels with recommended position allocation:

Level Target Calculation Allocation Typical R:R
TP1Next resistance/support or 1.5x risk distance50%1.5:1
TP2Fibonacci extension or 2.5x risk distance30%2.5:1
TP3Major structure level or 4x risk distance20%4:1
Professional Trade Management

The multi-TP approach allows traders to secure profits progressively while letting winners run. The 50/30/20 allocation ensures a portion of profit is locked in early while maintaining exposure for larger moves.

Signal Validation Filters

Before any signal is presented, it must pass through these validation filters (Conservative Mode):

  • At least 3 of 4 timeframes must align with signal direction
  • Daily trend must not contradict the signal
  • No HIGH impact economic events in the next 4 hours
  • At least 2 of 3 analysis types (Technical/Fundamental/Sentiment) must agree
  • Market structure must confirm (HH/HL for BUY, LH/LL for SELL)
  • RSI must not be at extremes against the signal (no BUY at RSI>80)
  • Calculated confidence must be >= 55%

If a signal fails validation filters, the system will either downgrade it to WEAK signal with a warning, or return NEUTRAL with an explanation of why no trade is recommended.

Section 21

AI Master Intelligence (GPT)

The crown jewel of PMTS is the AI Master Intelligence system, powered by OpenAI's GPT model. This advanced neural network acts as the final decision-maker, synthesizing all analysis layers into a coherent, actionable trading recommendation with unprecedented precision and contextual understanding.

GPT Powered Analysis

The AI Master processes technical indicators, fundamental data, sentiment metrics, and reversal signals through a sophisticated prompt engineering system, generating human-readable summaries with institutional-grade precision and multilingual support (English/Spanish).

Multi-Layer Analysis Architecture

The AI Master receives pre-processed data from five specialized analysis modules, each contributing unique market insights:

AI Master Data Flow
Technical Analysis (40%)
Fundamental Analysis (35%)
Sentiment Analysis (25%)
Reversal Detection System
News Impact Power System
AI Master (GPT) - Final Synthesis

Intelligent Output Generation

The AI Master generates comprehensive analysis summaries that include:

  • Market Context: Current market conditions, key levels, and dominant trends
  • Signal Justification: Clear reasoning for the BUY/SELL/NEUTRAL recommendation
  • Risk Assessment: Potential risks and factors that could invalidate the signal
  • Confidence Breakdown: Contribution of each analysis layer to the final score
  • Actionable Levels: Precise entry, stop-loss, and multiple take-profit levels

Multilingual Intelligence

The AI Master supports full internationalization, generating complete analysis summaries in the user's preferred language. The system currently supports English and Spanish, with the language parameter passed through the entire analysis chain to ensure consistent localization.

Feature Implementation
Language DetectionAPI parameter (?lang=en or ?lang=es) with localStorage persistence
AI ResponseGPT generates full analysis in requested language natively
Cache SystemLanguage-aware caching with separate cache entries per language
UI IntegrationSeamless language switching without page reload
Section 22

News Impact Power System

Not all news is created equal. A headline about a minor central bank comment differs vastly from an unexpected Fed rate decision or major economic data surprise. The News Impact Power System quantifies the market-moving potential of each news article on a 0-100% scale, enabling the AI to differentiate between routine market noise and truly significant events.

Impact Power Scale (0-100%)

Category Range Examples
CRITICAL85-100%Emergency Fed rate decisions, major banking crises, sovereign debt defaults, unexpected central bank interventions
HIGH65-84%FOMC rate decisions (unexpected), major earnings misses, geopolitical escalations
MEDIUM40-64%Economic data releases (CPI, NFP), scheduled rate decisions (as expected), earnings in-line
LOW20-39%Analyst upgrades/downgrades, minor policy comments, routine economic indicators
MINIMAL0-19%Market commentary, opinion pieces, routine corporate announcements

Weighted Score Calculation

Each news article generates a weighted score combining direction, impact power, and confidence:

Weighted Score Formula
weighted_score = direction × impact_power × confidence

Where:
  direction    = +1 (BULLISH), -1 (BEARISH), 0 (NEUTRAL)
  impact_power = 0 to 100 (percentage of market-moving potential)
  confidence   = 0 to 1 (AI confidence in sentiment analysis)

Examples:
  "Fed announces surprise 50bp rate cut" → BULLISH for Gold
  direction = +1, impact_power = 78%, confidence = 0.92
  weighted_score = 1 × 78 × 0.92 = +71.76 (strongly bullish)

  "US CPI comes in higher than expected at 3.4%" → BEARISH for Gold (short-term)
  direction = -1, impact_power = 55%, confidence = 0.85
  weighted_score = -1 × 55 × 0.85 = -46.75 (moderately bearish)

  "ECB holds rates steady as expected" → NEUTRAL
  direction = 0, impact_power = 35%, confidence = 0.90
  weighted_score = 0 × 35 × 0.90 = 0 (no directional impact)

Net Weighted Score

The system aggregates all news articles into a single Net Weighted Score, providing an overall market sentiment reading:

  • Strong Bullish (>50): Multiple high-impact bullish news dominate
  • Moderate Bullish (20-50): Bullish bias with mixed signals
  • Neutral (-20 to 20): Balanced news flow or low-impact news only
  • Moderate Bearish (-50 to -20): Bearish bias with mixed signals
  • Strong Bearish (<-50): Multiple high-impact bearish news dominate
Real-World Example

A minor Fed comment about "watching inflation closely" might score 25% impact power, while breaking news of an emergency rate cut would score 90%+. This differentiation ensures the AI responds proportionally to the true significance of market events.

Section 23

Reversal Detection System

Trend reversals represent the highest-reward trading opportunities in financial markets. The PMTS Reversal Detection System employs a multi-factor confluence analysis to identify potential trend reversals before they occur, combining price action, momentum, volume, and pattern recognition.

Reversal Detection Factors

Detection Factor Weight Description
RSI Divergence25%Price makes new high/low while RSI fails to confirm - classic reversal signal
MACD Crossover20%Signal line crossovers at extreme levels indicate momentum shift
Bollinger Band Extreme15%Price touches or exceeds outer bands suggesting overextension
Stochastic Crossover15%%K/%D crossover in overbought/oversold zones
Candlestick Patterns15%Engulfing, hammer, doji, and other reversal candlestick formations
Volume Analysis10%Unusual volume spikes often precede major reversals

Reversal Probability Calculation

The system calculates a reversal probability percentage (0-100%) based on the confluence of detected factors:

  • 75-100%: HIGH reversal probability - Multiple strong signals confirm potential reversal
  • 50-74%: MODERATE probability - Some reversal signals present, caution advised
  • 25-49%: LOW probability - Few reversal signals, trend likely to continue
  • 0-24%: MINIMAL probability - No significant reversal signals detected

Integration with AI Master

Reversal detection data feeds directly into the AI Master for final synthesis:

  • Signal Modification: High reversal probability can upgrade NEUTRAL to cautionary signal
  • Risk Adjustment: Reversal warnings trigger tighter stop-loss recommendations
  • Confidence Impact: Conflicting trend/reversal signals reduce overall confidence score
  • Summary Inclusion: AI Master explicitly mentions reversal potential in analysis summary
Important Note

Reversal detection is inherently predictive and carries higher risk than trend-following signals. The system provides reversal probabilities as additional context, not as standalone trading signals. Always wait for confirmation before acting on reversal indications.

© 2026 Elysium Media FZCO - Dubai
Professional Modular Trading System (PMTS) v3.1
All rights reserved.

Contact: info@elysiumdubai.net

Legal Disclaimer

This whitepaper is for informational purposes only and does not constitute financial advice. Trading involves substantial risk of loss and is not suitable for all investors.