Comprehensive documentation for MetaTrader 5 platform integration, covering CryptoBridge, building robots, unified trading api, installation, signup details, and advanced market data usage.
Installation is as easy as downloading a zip folder to your desktop, unzipping and dragging the MQL5 Folder into your MT5 directory.
Download the zip folder fromrepositoryand extract the files to your desktop.
๐ Extract ZIP โ Desktop/TTC-MT5-Tools/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]Drag and drop MQL5 folder into your Terminal Directory.
Close the platform and restart the platform. Now you will see all the new trading tools within the navigator.
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.
Navigate to the Options menu in your MT5 platform.
Tools Tab โ Options โ Expert Advisors TabIn the Expert Advisors tab, you need to enable two important settings:
Enables external library functionality
Enables communication with external APIs
Add the following URLs to the WebRequest whitelist:
https://nowpayments.ioPayment Processinghttps://api.telegram.orgTelegram Notificationshttps://api.binance.comBinance Exchange APIhttps://fapi.binance.comBinance Futures USDT APIhttps://dapi.binance.comBinance Futures Coin APIBy 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.
Bypass MT5 brokerages completely (you can log out and run MT5 in a offline mode).
Robot trades on the Custom Charts created by the CB Charts robot.
All order types and strategies accepted.
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.
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.
Enter your trading strategy in plain English. Include entry conditions, exit rules, and risk management preferences.
Gemini 3.0 Pro analyzes your description and creates complete MQL5 code using the CBP Framework with proper syntax.
Copy the generated code, paste into MetaEditor, compile, and attach to your MT5 chart. Start trading immediately.
Advanced LLM understands complex trading logic and generates syntactically correct MQL5 code instantly.
Automatically uses CryptoBridgeProClass with simplified functions like tradeBid() and tradeAsk().
Generated code follows MQL5 best practices and is ready to compile in MetaEditor without modifications.
Pre-built strategy suggestions including moving averages, RSI, Bollinger Bands, and more.
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
#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);
}
}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.
Requires OpenRouter API key (stored in browser localStorage)
Complete list of cryptocurrency exchanges supported by MT5 CryptoBridge with their API endpoints and capabilities.
Retrieve all supported exchanges with filtering options for MT5, Trading, Charting, and Web Trading capabilities.
?mt5=true - MT5 supported exchanges?trading=true - Trading supported?charting=true - Charting supported?web-trading=true - Web trading supportedformat=simple - Basic response/api/mt5/exchangesOnly Charting API
Full Trading API
Full Trading API
{
"exchanges": [
{
"id": "Binance",
"name": "Binance.com",
"support": [
"MT5",
"Charting",
null,
"Trading",
"Web Trading"
]
}
]
}Real-time market data including 10 crypto exchanges designed for automated trading stragies and ready to work with all the MT5 instruments.
The /api/market/tickers endpoint supports robust filtering for large datasets containing 1000+ futures markets and 2000+ spot markets.
?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?type=futures&minimumVolume=1000000?exchange=binance&up=5?minimumPrice=10&maximumPrice=100?type=futures&minimumVolume=500000&up=2/api/market/tickersSymbol type (spot or futures)
{
"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
}
]
}
}
}Includes access to all the TTC trading tools.
Access professional-grade charting and trading tools across 20 major cryptocurrency exchanges.
Online support via telegram. Includes access to all the LIT trading tools.
Get the MT5 platform
Enable MT5 web requests
Run activate_license_script
Compare MT5 brokers and trading conditions
Technical indicators and analysis tools
Automated trading systems and robots
Utility scripts and automation tools
Trading fees and commission structures
Multi-terminal trading interface