🚀 MQL5 Trading Data API

Comprehensive Indicator Export System - Status Dashboard

🔗 عربي - دليل الروابط (Arabic Links Guide)

📡 API Status

API Status

✅ Online

PHP Version

8.4.5

Server Time

2026-01-17 06:53:17

Data Directory

✅ Ready

API Endpoint: http://trading.wnstor.com/api/receive_data.php

🔍 View JSON Data

Direct File Access

Access JSON files directly via URL:

Latest data for any symbol:
http://trading.wnstor.com/data/[SYMBOL]/latest.json
Using the JSON Viewer (recommended):
http://trading.wnstor.com/view_json.php?symbol=[SYMBOL]

Examples:

📋 Quick Setup Guide

1. Configure MQL5 Script

In MetaTrader 5, configure the API endpoint URL:

InpApiUrl = "http://trading.wnstor.com/api/receive_data.php"

2. Enable WebRequest in MT5

Go to: Tools > Options > Expert Advisors

Add this URL to the allowed WebRequest URLs:

http://trading.wnstor.com

3. Compile and Run

  1. Copy MQL5_API_Exporter.mq5 to MT5's MQL5/Experts/ folder
  2. Compile the script in MetaEditor (F7)
  3. Attach the EA to your chart
  4. Check the Experts tab for connection status

📊 Exported Indicators

Category Indicators
Moving Averages EMA (8, 21, 50, 100, 200), SMA (20, 50, 200), WMA (21)
Momentum RSI (9, 14, 21), MACD (Standard, Fast, Slow), Stochastic (14, 21, Fast), Williams %R, CCI (14, 20), Momentum (10, 14), DeMarker
Volatility ATR (14, 21), Bollinger Bands (15, 20), Envelopes, Keltner Channels
Trend ADX, Parabolic SAR, Alligator (Jaw, Teeth, Lips), TRIX
Volume MFI, Tick Volume, Real Volume
Support/Resistance Pivot Points (R1, R2, R3, S1, S2, S3)
Ichimoku Tenkan-sen, Kijun-sen, Senkou Span A, Senkou Span B, Chikou Span
Fibonacci Levels: 0%, 23.6%, 38.2%, 50%, 61.8%, 78.6%, 100%
Additional ROC, Channel High/Low, Volatility Ratio, Fractals

📁 Data Storage

Trading data is stored in the following structure:

data/
├── [SYMBOL]/
│   ├── latest.json (Most recent data)
│   └── [DATE]/
│       ├── data_[TIME].json
│       ├── data_[TIME].json
│       └── ...
└── ...

logs/
└── api_[DATE].log

🔍 JSON Schema Structure

{
  "metadata": {
    "symbol": "XAUUSDm",
    "server_time": "2025-10-26 12:30:45",
    "timestamp": 1729946445,
    "digits": 2
  },
  "price_data": {
    "bid": 2650.50,
    "ask": 2650.70,
    "spread": 0.20,
    "open": 2649.80,
    "high": 2651.30,
    "low": 2648.90,
    "close": 2650.50,
    "volume": 1250
  },
  "timeframes": {
    "D1": { /* All indicators for D1 */ },
    "H4": { /* All indicators for H4 */ },
    "H1": { /* All indicators for H1 */ },
    "M30": { /* All indicators for M30 */ },
    "M15": { /* All indicators for M15 */ },
    "M5": { /* All indicators for M5 */ },
    "M1": { /* All indicators for M1 (optional) */ }
  }
}

📈 Recent Data Activity

SymbolLast UpdateTotal RecordsActions
BTCUSD2025.10.27 18:40:55106View Latest