Pepperstone logo
Pepperstone logo
  • English
  • 中文版
  • Ways to trade

    Pricing

    Trading accounts

    Pro

    Premium clients

    Refer a friend

    Active trader program

    Trading hours

    24-hour trading

    Maintenance schedule

  • Trading platforms

    Trading platforms

    TradingView

    Pepperstone platform

    MetaTrader 5

    MetaTrader 4

    cTrader

    Integrations

    Trading tools

  • Markets

    Markets to trade

    Forex

    Shares

    ETFs

    Indices

    Commodities

    Currency Indices

    Cryptocurrencies

    Dividends for index CFDs

    Dividends for share CFDs

    CFD forwards

  • Market analysis

    Market news

    Navigating Markets

    The Daily Fix

    Meet the analysts

  • Learn to trade

    Trading guides

    CFD trading

    Forex trading

    Commodity trading

    Stock trading

    Crypto trading

    Bitcoin trading

    Technical analysis

    Candlestick patterns

    Day trading

    Scalping trading

    Upcoming IPOs

    Gold trading

    Oil trading

    Webinars

  • Pepperstone Pro

  • Partners

  • About us

  • Help and support

  • English
  • 中文版

Learn to trade

Share
Intermediate

Which platforms can I use expert advisors (EAs) on?

You can use an EA on MT4, MT5 & cTrader. The MT4 coding language is called MQL4, and is based on C++, whereas the coding language for MT5 is MQL5 which is a more specialised version of C++ built specifically for trading.

Generally, MQL4 is considered easier for beginner coders and those new to trading. cTrader uses the C# coding language.

In terms of cross compatibility, neither MT4 or MT5 EAs can be used on cTrader, and vice versa. MT5 EAs can be used on MT4, however MT4 EAs cannot be used on MT5. A translation from the MQL4 to the MQL5 language is required for MT4 EAs to work on MT5.

Will my EA perform in the same way in a live and demo environment?

EAs are programmed to open, close or modify trades based on numerous criteria and parameters. These can range from price action, to changes in account metrics like drawdown and equity, and can be more complex to include indicator thresholds, trend analysis and other statistical points of interest. This means that, given all of the same criteria and parameters are applied to the EA on the demo and live environment, and with the accounts containing the exact same characteristics, there should not be any significant differences in performance. But there are some caveats.

The exception is where conditions of liquidity and order execution dynamics differ between demo and live environments. In the demo environment, you essentially have unlimited liquidity. There is no order book, the top of book price is the price that prevails for all order sizes. Be it 0.1, 1, 10 or even 100 lots of any instrument traded, the price that is available at the time your order is sent will apply to the execution price. This means you can’t incur VWAP (value weighted average price) slippage on your orders, which is not the case in a live environment.

In a live environment there is only so much liquidity at each level of the order book, and so your orders will always be matched off against prices dependent on the size of your order. In this way, the exact same order for 10 lots on a demo account may show a significantly different outcome to one in the live environment if there is not enough liquidity at the top of book price to completely fill your order. Your entry and exit prices may be worse off than in the simulated demo environment where you have been filled at only the best price available. This will directly reduce the profit, or increase the loss, on the live account trade relative to the demo account trade.

Where the conditions also differ is in execution dynamics. Orders in a live environment are sent to a server to be matched against the relevant liquidity provider’s quote, and each order is processed in time order. While our average execution speed is around 30ms*, which can be considered to be fast, prices can still change between when your order is sent from your platform (or from the server in the case of pending orders) and when it is received and executed at the server. This means that, in a live environment, your orders can also receive execution slippage as a result of latency. This is just a simple fact of trading in a constantly evolving online marketplace.

In the demo environment, however, orders are executed immediately and so there is no race to be filled at the bridge. An EA’s orders in a demo environment will therefore not be subject to execution or latency related slippage.

The final point to note is that there may be ever so slight differences in the way pricing is received to the demo and live platforms, such as the frequency and receipt time of ticks. Remember, the demo environment is just a limited, simulated trading environment, so its infrastructure is not as complex as the live environment. 

*Order processing time once received in our bridge is approximately ~30 milliseconds for Pepperstone Group Limited.

Pepperstone doesn’t represent that the material provided here is accurate, current or complete, and therefore shouldn’t be relied upon as such. The information provided here, whether from a third party or not, isn’t to be considered as a recommendation; or an offer to buy or sell; or the solicitation of an offer to buy or sell any security, financial product or instrument; or to participate in any particular trading strategy. We advise any readers of this content to seek their own advice. Without the approval of Pepperstone, reproduction or redistribution of this information isn’t permitted.

Other sites

  • The Trade Off
  • Partners
  • Group
  • Careers

Ways to trade

  • Pricing
  • Trading accounts
  • Pro
  • Premium Clients
  • Active Trader program
  • Refer a friend
  • Trading hours

Platforms

  • Trading Platforms
  • Trading tools

Markets & Symbols

  • Forex
  • Shares
  • ETFs
  • Indices
  • Commodities
  • Currency indices
  • Cryptocurrencies
  • CFD Forwards

Analysis

  • Navigating Markets
  • The Daily Fix
  • Pepperstone Pulse
  • Meet the analysts

Learn to Trade

  • Trading Guides
  • Videos
  • Webinars
Pepperstone logo
support@pepperstone.com
1300 033 375
Level 16, Tower One, 727 Colins Street
Melbourne, VIC Australia 3008
  • Legal documents
  • Privacy policy
  • Website terms and conditions
  • Cookie policy
  • Whistleblower Policy

© 2025 Pepperstone Group Limited

Risk Warning: Trading CFDs and FX is risky. It isn't suitable for everyone and if you are a professional client, you could lose substantially more than your initial investment. You don't own or have rights in the underlying assets. Past performance is no indication of future performance and tax laws are subject to change. The information on this website is general in nature and doesn't take into account your personal objectives, financial circumstances, or needs. You should consider whether you’re part of our target market by reviewing our TMD, and read our PDS and other legal documents to ensure you fully understand the risks before you make any trading decisions. We encourage you to seek independent advice if necessary.

Pepperstone Group Limited is located at Level 16, Tower One, 727 Collins Street, Melbourne, VIC 3008, Australia and is licensed and regulated by the Australian Securities and Investments Commission.

The information on this site and the products and services offered are not intended for distribution to any person in any country or jurisdiction where such distribution or use would be contrary to local law or regulation.

© 2024 Pepperstone Group Limited | ACN 147 055 703 | AFSL No.414530