Logo

MetaTrader 5 Trading Automation

Master automated trading with Expert Advisors (EAs), custom indicators, and powerful scripts. Transform your trading with professional-grade automation tools.

Expert Advisors (Trading Robots)

What are Expert Advisors?

Expert Advisors (EAs) are automated trading programs that can analyze markets, make trading decisions, and execute trades without human intervention. They run 24/7 and follow predefined trading strategies.

Automated trade execution
24/7 market monitoring
Emotion-free trading
Backtesting capabilities

Getting Started with EAs

  1. 1Download TTC software includes everything needed (.ex5 file)
  2. 2Copy the folder to MT5/MQL5 folder
  3. 3Restart MetaTrader 5 platform
  4. 4Drag EA onto chart and configure settings
  5. 5Enable automated trading and "Allow Algo Trading" within Common tab of robot

Important Considerations

  • • Always test EAs on demo accounts first
  • • Understand the strategy before using real money
  • • Monitor EA performance regularly
  • • Keep MT5 platform running for continuous operation
  • • Ensure stable internet connection

EA Configuration Parameters

Enter Api Keys:For all your exchange accounts
Exchange NumberDropdown menu to select suported exchanges
Lot Size:Trade volume per position
Leverage:Adjust the leverage 1-100
Hedge Mode:One-Way = false or turn on Hedge Mode to trade Long and Short
Customize UI:Adjust Text, Colors, Line thickness and save as Template

CBP Framework - Advanced Crypto Trading

What is CBP Framework?

The CBP (CryptoBridgeProClass) Framework is a specialized robot framework designed to build crypto trading robots faster with MQL5. It provides a unified API that allows you to write code once and trade on several supported crypto exchanges simultaneously.

Unified API for multiple crypto exchanges
Direct crypto exchange data integration
Bypass MT5 brokerages completely
User-friendly syntax for rapid development
No added commission or referral links required

Framework Architecture

CryptoBridgeProClass:

The core class containing all functionalities that interact with crypto exchanges. All trading functions and exchange communications live in this class.

CBP Framework:

A child class inherited from CryptoBridgeProClass that leverages existing components to provide user-friendly syntax for robot development.

Chart_All Robot:

Imports data from crypto exchanges and creates native MT5 charts using CustomSymbol functionality.

Robots and Scripts:

Create robots for full automation or scripts for simple trading functionality.

Simple Trading Functions

The framework provides intuitive trading functions that make crypto trading implementation straightforward:

// Simple buy limit order
bot.tradeBid(1.0, 34000);
// Function signature:
tradeBid(quantity, priceOfBuyLimitOrder)

quantity: Amount of crypto to trade

priceOfBuyLimitOrder: Target price for the buy order

Result: Executes buy limit order on connected exchanges

Key Advantages

  • Rapid Development: Spend less time coding, more time on algorithms
  • Multi-Exchange Support: Trade on multiple crypto exchanges simultaneously
  • Direct Data Access: Use real crypto exchange data via Chart_All robot
  • Broker Independence: Bypass traditional MT5 brokerages completely

Getting Started

  1. 1. Set up Chart_All robot to import crypto exchange data
  2. 2. Use CBP Framework's simplified trading functions
  3. 3. Deploy across multiple crypto exchanges

Important Notes for CBP Framework

CustomSymbol Requirements:

  • • Use Chart_All robot for data import
  • • Ensure CustomSymbol charts are properly configured
  • • Verify crypto exchange API connections

Framework Benefits:

  • • No dependency on traditional forex brokers
  • • Real-time crypto exchange data
  • • Simplified multi-exchange trading

Complete CBP Robot Example

Robot.MQL5 - Complete Implementation

Here's a complete example of how to implement a crypto trading robot using the CBP Framework. This example shows the basic structure and essential functions needed to get started.

#include <TradingToolCrypto\CBP\CBPFrameWork.mqh>

CBPFrameWork *cb;// create the bridge instance as a pointer
                 // therefore init, and deinit functions will load properly

int OnInit()
  {
   cb = new CBPFrameWork();// Creates the instance and then loads the api keys

   return(INIT_SUCCEEDED);
  }

void OnDeinit(const int reason)
  {
   delete cb; // Clean up the framework instance
  }

void OnTick()
  {
 cb.balance("",0,20);
 cb.positionTotal();
 cb.orderPending();
   // Your trading logic here
   // Example: Check market conditions and execute trades
   
   double currentPrice = SymbolInfoDouble(_Symbol, SYMBOL_BID);
   
   if(/* your buy condition */)
     {
      cb.tradeBid(1.0, currentPrice - 100); // Buy 1.0 units at current price - 100
     }
     
   if(/* your sell condition */)
     {
      cb.tradeAsk(1.0, currentPrice + 100); // Sell 1.0 units at current price + 100
     }
  }

Code Breakdown

Include Statement:

Imports the CBP Framework library

Pointer Declaration:

Creates framework instance as pointer for proper initialization

OnInit():

Initializes the framework and loads API keys

OnTick():

Executes core framework functions for account monitoring

Key Functions Explained

cb.balance(): Retrieves account balance information
cb.positionTotal(): Gets total open positions
cb.orderPending(): Checks pending orders
cb.tradeBid(): Places buy limit orders
cb.tradeAsk(): Places sell limit orders

Implementation Steps

  1. 1. Include the CBP Framework header
  2. 2. Declare framework pointer variable
  3. 3. Initialize in OnInit() function
  4. 4. Implement your trading logic in OnTick()
  5. 5. Compile and deploy to MT5

Important Notes

  • • Ensure API keys are properly configured
  • • Test with small volumes first
  • • Use CustomSymbol charts for crypto data
  • • Check Journal/Experts tab for error handling

Best Practices for MT5 Automation

Risk Management

  • • Never risk more than 2% per trade
  • • Use proper position sizing
  • • Set maximum daily loss limits
  • • Monitor drawdown levels
  • • Diversify trading strategies

System Requirements

  • • Stable internet connection
  • • VPS for 24/7 operation
  • • Windows, MacOS, or Linux
  • • Min 4gb of RAM
  • • SSD Harddrive

Performance Monitoring

  • • Track key performance metrics
  • • Regular strategy optimization
  • • Monitor market conditions
  • • Analyze trade statistics
  • • Adjust parameters as needed

Additional Resources