Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

Connect to OKX Futures Expert MetaTrader 5 – Free – [Trading Search] – MT4/MT5 Resources

author EAcpu | 5 reads | 0 comments |

The Connect OKX Futures to MT5 Expert Advisor is a non-trading tool that connects the MetaTrader 5 platform and the OKX exchange’s trading server.

This expert uses the OKX exchange API to obtain accurate, real-time futures market data and display it in price charts on the MT5 platform.

Specification sheet for OKX Futures and MetaTrader 5 connection services

The table below outlines the features of the OKX Futures to MT5 Connect Expert.

Indicator categories: Trading Assistant MT5 Indicators
Platforms: MetaTrader 5 Indicators
Trading Skills: Elementary
Time frame: Multi Time Frame MT5 Indicators
Trading Tools: Cryptocurrency MT5 Indicators

OKX Futures to MT5 Connect Expert Overview

The connection service communicates with OKX servers using the HTTP protocol to retrieve live market data.

The connection is established via the "Web Requests" function within MT5. To enable this, the user must first add the domain https://www.okx.com in the platform settings and activate the permission to send WebRequests to this address.

Steps to enable WebRequest in MetaTrader 5

The steps to enable WebRequest are as follows:

  1. Launch MetaTrader 5 : Open the MT5 trading platform;
  2. Open the settings window : from the top menu, go to "Tools" and select "Options" or press the shortcut "Ctrl + O";
  3. Go to the Expert Advisor tab : In the settings window, navigate to the Expert Advisor tab.
  4. Enable WebRequest : Check the box "Allow WebRequests for listed URLs" ;
  5. Add Server URL : Enter https://www.okx.com into the provided field and confirm.

After configuring these settings, the expert will use WebRequest functionality to communicate with OKX servers and exchange data (live prices and candlestick information).

Settings section in the "Tools" menu for connecting OKX Futures to MT5
MetaTrader 5 settings for connecting OKX to MT5 using Connect OKX Futures Expert Advisor

Adding OKX futures symbol to MetaTrader 5

Trading symbols must be added to the platform in order to analyze futures cryptocurrencies from OKX in MT5. Please follow these steps:

  1. Open Market Watch : Go to the "View" menu at the top of MetaTrader and open the Market Watch window or press "Ctrl + M";
  2. Enable All Symbols : In the "Market Watch" window, right-click on an empty space and select "Symbols" ;
  3. OKX Futures Symbols : In the symbol window, the symbols received and registered by experts are usually prefixed, such as "OKX.F" ;
  4. Activate the desired symbol : click on the desired symbol and select "Show" ;
  5. Open a price chart : Return to Market Watch, right-click on the desired symbol and select Chart Window to view the chart.

Once the Expert is running, live price data from the OKX futures market will be displayed in MetaTrader in chart form.

Selecting a cryptocurrency in the OKX Futures expert
Select trading symbol in OKX Futures in MetaTrader 5 service

OKX Futures to MT5 Connection Expert Setup

The image below shows the configurable settings of the OKX Futures market MetaTrader 5 service:

Settings for the OKX Futures to MT5 expert advisor
Check out the configurable settings of Connect OKX Futures Expert
  • Number of candles to download (min=100, max=300) : Retrieve the number of candles from OKX for chart display
  • One symbol, different charts, same number of candles : One symbol, multiple charts, same number of candles

    Note:
    When the "One chart with different symbols, same number of candles" feature is enabled, opening multiple charts of the same trading pair (e.g. BTC/USDT) will result in incremental markers such as "+" and "++" appearing next to the title of each chart . These indicators signify that all charts are synchronized in terms of number of candles.

    In this mode, each time range independently retrieves its own price data directly from the server without relying on other time ranges.

    Adding two price charts of the same symbol in a MetaTrader 5 Expert Advisor
    View showing how to add two price charts of the same symbol when testing the OKX Futures Connect service

Conclusion

The Connect OKX Futures to MT5 Expert Advisor is an advanced communication tool designed to connect the MetaTrader 5 platform directly to the OKX Futures market .

The tool utilizes the dedicated OKX API to quickly deliver cryptocurrency data in real-time to the MT5 environment, allowing users to view accurate and up-to-date price charts.

(1)

📦 Download attachments/Download Files

Verification code Refresh