Back to App

MT5 CryptoBridge Documentation

Comprehensive documentation for MetaTrader 5 platform integration, covering CryptoBridge, building robots, unified trading api, installation, signup details, and advanced market data usage.

โš™๏ธInstallation

Installation is as easy as downloading a zip folder to your desktop, unzipping and dragging the MQL5 Folder into your MT5 directory.

1

Download the Files

click to download

Download the zip folder fromrepositoryand extract the files to your desktop.

๐Ÿ“ Extract ZIP โ†’ Desktop/TTC-MT5-Tools/
2

Location to Drag and Drop

Open your MT5 platform and once the platform is open, go to File โ†’ Open Data Folder(this is the file directory where the project files must be placed).

All you need to do is place our MQL5 folder after unzipping and place it in this directory (drop it below the current files and folders) and overwrite any files if it asks.

MT5 โ†’ File โ†’ Open Data Folder โ†’ [Drop MQL5 folder here]
3

MT5 Directory

Drag and drop MQL5 folder into your Terminal Directory.

Visual Guide
๐Ÿ“
MQL5 Folder
โ†“ Drag & Drop โ†“
MT5 Data Directory
4

Restart your MT5 Platform

Close the platform and restart the platform. Now you will see all the new trading tools within the navigator.

1. Close MT5
Exit the platform completely
2. Restart MT5
Launch and check Navigator

๐Ÿ’กQuick Tips

  • โ€ข Make sure MT5 is completely closed before copying files
  • โ€ข Always overwrite existing files when prompted
  • โ€ข Check the Navigator panel after restart to confirm installation
  • โ€ข If tools don't appear, try refreshing the Navigator (F5)

๐ŸŒWeb Requests

MetaTrader can communicate with external data sources via WebRequests. However, this feature is not activated by default and you will need to turn this function on, and also add each URL address.

1

Open MetaTrader Platform

Navigate to the Options menu in your MT5 platform.

Tools Tab โ†’ Options โ†’ Expert Advisors Tab
2

Enable Required Settings

In the Expert Advisors tab, you need to enable two important settings:

Allow DLL Imports

Enables external library functionality

Allow WebRequest for listed URL

Enables communication with external APIs

3

Add Required URLs

Add the following URLs to the WebRequest whitelist:

https://nowpayments.ioPayment Processing
https://api.telegram.orgTelegram Notifications
https://api.binance.comBinance Exchange API
https://fapi.binance.comBinance Futures USDT API
https://dapi.binance.comBinance Futures Coin API
โš ๏ธ
Important Note
Make sure to add each URL exactly as shown above. Additional URLs may be required depending on your specific trading tools and configurations.

๐Ÿ–ผ๏ธConfiguration Path

MT5 Platform
โ†’
Tools
โ†’
Options
โ†’
Expert Advisors

๐Ÿ”งTroubleshooting

  • โ€ข If URLs don't save, restart MT5 and try again
  • โ€ข Ensure you're using HTTPS (not HTTP) for all URLs
  • โ€ข Check firewall settings if connections fail

๐Ÿ”—CB API

By using the CB API (unified crypto exchange api for MT5), you can use custom charts (charts that are created and updated using the crypto exchange live data) and attach your robots to these charts to trade directly on the crypto exchange.

1

Bypass MT5 Brokerages

Bypass MT5 brokerages completely (you can log out and run MT5 in a offline mode).

โœ“ Offline Mode Compatible
2

Robot Trading

Robot trades on the Custom Charts created by the CB Charts robot.

โœ“ Live Exchange Data
3

Full Strategy Support

All order types and strategies accepted.

โœ“ Complete Flexibility

๐Ÿš€CryptoBridge Framework

Framework Benefits:

  • โšกDirect exchange connectivity
  • ๐Ÿ“ŠReal-time custom chart creation
  • ๐Ÿค–Seamless robot integration
  • ๐Ÿ”„Unified API across exchanges

Technical Advantages:

  • ๐ŸŽฏLower latency trading
  • ๐Ÿ’ฐReduced trading costs
  • ๐Ÿ”Enhanced security
  • ๐Ÿ“ˆBetter execution quality

โš™๏ธHow CB API Works

Exchange API
โ†’
CB Charts
โ†’
Custom Charts
โ†’
MT5 Robots
โ†’
Direct Trading

๐Ÿ’กKey Innovation

The CB API revolutionizes crypto trading by eliminating traditional broker dependencies while maintaining the familiar MT5 environment. This creates a direct bridge between your trading strategies and cryptocurrency exchanges.

๐Ÿค–MQL5 Robot Generator

AI-Powered Code Generation
โšก

Build Trading Bots with AI

Describe your trading strategy in plain English and get ready-to-compile MQL5 code using the CBP Framework. Powered by Gemini 3.0 Pro via OpenRouter.

Open MQL5 Generatorโ†’No coding experience required

๐Ÿ“How It Works

1

Describe Strategy

Enter your trading strategy in plain English. Include entry conditions, exit rules, and risk management preferences.

2

AI Generates Code

Gemini 3.0 Pro analyzes your description and creates complete MQL5 code using the CBP Framework with proper syntax.

3

Copy & Compile

Copy the generated code, paste into MetaEditor, compile, and attach to your MT5 chart. Start trading immediately.

โœจKey Features

๐Ÿง 

AI-Powered Generation

Advanced LLM understands complex trading logic and generates syntactically correct MQL5 code instantly.

๐Ÿ”—

CBP Framework Integration

Automatically uses CryptoBridgeProClass with simplified functions like tradeBid() and tradeAsk().

๐Ÿ“‹

Ready to Compile

Generated code follows MQL5 best practices and is ready to compile in MetaEditor without modifications.

๐Ÿ’ก

Example Prompts

Pre-built strategy suggestions including moving averages, RSI, Bollinger Bands, and more.

๐ŸŽฏExample Strategies You Can Generate

Moving average crossover with RSI filter

Bollinger Bands breakout strategy

RSI overbought/oversold strategy

MACD divergence trading

Support and resistance levels

Grid trading bot for ranging markets

Decrease position size after a loss

Increase position size after a win

If position at 1% profit, enter 2nd position

If position at 2% loss, close with market order

๐Ÿ’ปSample Generated Code

MA_Crossover_Robot.mq5
Generated by MQL5 Robot Generator
#include <TradingToolCrypto\CBP\CBPFrameWork.mqh>

CBPFrameWork *cb;

input int InpFastMA = 10;    // Fast MA period
input int InpSlowMA = 20;    // Slow MA period
input double InpLotSize = 1.0;  // Trade volume

int OnInit() {
   cb = new CBPFrameWork();
   return INIT_SUCCEEDED;
}

void OnDeinit(const int reason) {
   delete cb;
}

void OnTick() {
   cb.balance("", 0, 20);
   cb.positionTotal();
   
   double fastMA = iMA(_Symbol, PERIOD_CURRENT, InpFastMA, 0, MODE_EMA, PRICE_CLOSE, 0);
   double slowMA = iMA(_Symbol, PERIOD_CURRENT, InpSlowMA, 0, MODE_EMA, PRICE_CLOSE, 0);
   
   if(fastMA > slowMA && cb.positionTotal() == 0) {
      double price = SymbolInfoDouble(_Symbol, SYMBOL_BID);
      cb.tradeBid(InpLotSize, price - 50);
   }
}

๐Ÿ“šBest Practices for Best Results

  • โœ“Be specific: Include clear entry conditions, exit rules, and technical indicator parameters
  • โœ“Risk management: Mention stop losses, take profits, and position sizing rules
  • โœ“Test first: Always test generated robots on demo accounts before live trading
  • โœ“Review code: Check generated code for logic consistency with your strategy description

๐Ÿ”—CBP Framework Integration

All generated code uses the CBP (CryptoBridgeProClass) Framework, providing unified API access to 20+ cryptocurrency exchanges. The code is fully compatible with the Chart_All robot for custom chart creation and direct exchange trading.

cb.tradeBid()cb.tradeAsk()cb.balance()cb.positionTotal()cb.closeAll()
๐Ÿค–Launch MQL5 Robot Generatorโ†’

Requires OpenRouter API key (stored in browser localStorage)

๐ŸขSupported Crypto Exchanges

Complete list of cryptocurrency exchanges supported by MT5 CryptoBridge with their API endpoints and capabilities.

๐Ÿ”—Exchanges API Endpoint

Retrieve all supported exchanges with filtering options for MT5, Trading, Charting, and Web Trading capabilities.

Query Parameters:

  • ?mt5=true - MT5 supported exchanges
  • ?trading=true - Trading supported
  • ?charting=true - Charting supported
  • ?web-trading=true - Web trading supported

Response Format:

  • format=simple - Basic response
  • Default includes metadata and counts
Loading exchanges...

API Documentation

GET/api/mt5/exchanges

Parameters:

charting (string)

Only Charting API

trading (string)

Full Trading API

web-trading (string)

Full Trading API

Example Response:

{
  "exchanges": [
    {
      "id": "Binance",
      "name": "Binance.com",
      "support": [
        "MT5",
        "Charting",
        null,
        "Trading",
        "Web Trading"
      ]
    }
  ]
}

Market Data

Real-time market data including 10 crypto exchanges designed for automated trading stragies and ready to work with all the MT5 instruments.

๐Ÿ“ŠMarket Tickers API - Advanced Filtering

The /api/market/tickers endpoint supports robust filtering for large datasets containing 1000+ futures markets and 2000+ spot markets.

Filter Parameters:

  • ?type=futures - Only futures markets
  • ?type=spot - Only spot markets
  • ?minimumVolume=100000 - Min volume filter
  • ?up=10 - Markets up 10%+
  • ?down=10 - Markets down 10%+
  • ?minimumPrice=1 - Min price filter
  • ?maximumPrice=1000 - Max price filter
  • ?exchange=binance - Specific exchange

Example Usage:

High Volume Futures
?type=futures&minimumVolume=1000000
Binance Gainers
?exchange=binance&up=5
Price Range Filter
?minimumPrice=10&maximumPrice=100
๐Ÿ’ก
Performance Tip
Combine filters to reduce dataset size: ?type=futures&minimumVolume=500000&up=2
GET/api/market/tickers

Parameters:

type (string)

Symbol type (spot or futures)

Example Response:

{
  "data": {
    "spot": {
      "data": []
    },
    "futures": {
      "data": [
        {
          "source": "avr",
          "sources": [
            "binance",
            "bybit",
            "bingx"
          ],
          "symbol": "ENAUSDT",
          "priceChange": "0.06909999999999994",
          "priceChangePercent": "17.434527618085376",
          "weightedAvgPrice": "0.46543999999999996",
          "prevClosePrice": "0.39634",
          "lastPrice": "0.46543999999999996",
          "lastQty": "0",
          "bidPrice": "0.27793999999999996",
          "bidQty": "4648.544",
          "askPrice": "0.27816",
          "askQty": "9949.210000000001",
          "openPrice": "0.39634",
          "highPrice": "0.47462",
          "lowPrice": "0.39306",
          "volume": "436143276.48800004",
          "quoteVolume": "185302684.58018",
          "openTime": 1752986689991,
          "closeTime": 1752986689991,
          "firstId": 0,
          "lastId": 0,
          "count": 0
        }
      ]
    }
  }
}

โญPro Package

$49 Monthly

Month-to-Month โ€“ No Commitment

Includes access to all the TTC trading tools.

Core Features:

  • โœ“Crypto Charts on 20 Exchanges
  • โœ“Indicators
  • โœ“Robots
  • โœ“Trading Tools

Advanced Tools:

  • โœ“CryptoBridgePro: UI
  • โœ“Exchange Tools
  • โœ“CB Copy Trades
  • โœ“And more...

Multi-Exchange Support

Access professional-grade charting and trading tools across 20 major cryptocurrency exchanges.

Binance
Bybit
Coinbase
+17 More

๐Ÿ’ŽElite Package

$99 Monthly

Month-to-Month โ€“ No Commitment

Online support via telegram. Includes access to all the LIT trading tools.

Package Includes:

  • โœ“Includes Pro package
  • โœ“Exchange Robots
  • โœ“Proprietary Algos
  • โœ“Trading Room
  • โœ“Support

License Details:

  • โ€ขUnlimited Crypto Exchange API's/Accounts
  • โ€ขLicense is locked to your MetaTrader Platform
  • โ€ข1 License per MetaTrader5 Installation
  • โ€ขPay as you go
  • โ€ขActivate your license at any time
  • โ€ขPro Rated Monthly Fee
  • โ€ขSubscription expires end of the month
  • โ€ขJoin the last week of the month for testing at 1/4 the price

How to Join

๐Ÿ“ฅ

1. Download Software

Get the MT5 platform

๐ŸŒ

2. Allow Web Requests

Enable MT5 web requests

๐Ÿ”‘

3. Attach License Script

Run activate_license_script

What is a Pro Rated Monthly Fee?

Pricing Schedule:

Sign up on the 1stFull price ($99)
Sign up on the 15th50% off ($49.50)

Important Notes:

  • โš ๏ธLicense expires at the end of the month
  • ๐Ÿ”„The invoice price changes every 24 hours
  • ๐ŸงชTesting option: Join last week for 1/4 price

Quick Links