• Home
  • Pro
  • Partners
  • Help and support
  • English (UK)
Pepperstone logo
Pepperstone logo
  • Ways to trade
    • Spread betting

      Bet on global price movements in £ per point

    • CFD trading

      Trade on 1000s of assets without owning them

    • Pricing

      Discover our tight spreads, plus all other possible fees

    • Risk management
    • Trading accounts
    • Trading hours
    • 24-hour trading
    • Maintenance schedule
  • Markets
    • Forex

      Get great rates on majors like EUR/USD, plus minors and exotics

    • Indices

      Enjoy 24-hour pricing on the UK100, US30 and more

    • Commodities

      Trade on metals, energies & softs, with oil spreads from 2 cents

    • Shares
    • ETFs
    • Currency indices
    • Dividends for index CFDs
    • Dividends for share CFDs
    • CFD forwards
  • Trading platforms
    • TradingView

      Trade through the world-famous supercharts with great pricing

    • MetaTrader 5

      Explore the apex in trading automation with our execution tech

    • The Pepperstone platform
    • MetaTrader 4
    • cTrader
    • Trading tools
  • Market analysis
    • Navigating markets

      Latest news and analysis from our experts

    • The Daily Fix

      Your regular round-up of key events

    • Meet the analysts

      Our global team giving your trading the edge

  • About us
    • Who we are

      Pepperstone was born from the dream of making trading better

    • Company news
    • Company awards
    • Protecting clients online
    • Spread betting

      Bet on global price movements in £ per point

    • CFD trading

      Trade on 1000s of assets without owning them

    • Pricing

      Discover our tight spreads, plus all other possible fees

    • Risk management
    • Trading accounts
    • Trading hours
    • 24-hour trading
    • Maintenance schedule
    • Forex

      Get great rates on majors like EUR/USD, plus minors and exotics

    • Indices

      Enjoy 24-hour pricing on the UK100, US30 and more

    • Commodities

      Trade on metals, energies & softs, with oil spreads from 2 cents

    • Shares
    • ETFs
    • Currency indices
    • Dividends for index CFDs
    • Dividends for share CFDs
    • CFD forwards
    • TradingView

      Trade through the world-famous supercharts with great pricing

    • MetaTrader 5

      Explore the apex in trading automation with our execution tech

    • The Pepperstone platform
    • MetaTrader 4
    • cTrader
    • Trading tools
    • Navigating markets

      Latest news and analysis from our experts

    • The Daily Fix

      Your regular round-up of key events

    • Meet the analysts

      Our global team giving your trading the edge

    • Who we are

      Pepperstone was born from the dream of making trading better

    • Company news
    • Company awards
    • Protecting clients online
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 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 touch 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 bridge to be matched off against the relevant liquidity provider’s quote, and each order is processed in time order. While our average execution speed is around 30ms, which is very 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 bridge. 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.

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
  • Trading hours

Platforms

  • Trading Platforms
  • Trading tools

Markets and Symbols

  • Forex
  • Shares
  • ETFs
  • Indicies
  • Commodities
  • Currency indicies
  • CFD forwards

Analysis

  • Navigating Markets
  • The Daily Fix
  • Meet Our Analysts

Learn to trade

  • Trading guides
  • Videos
  • Webinars
Pepperstone logo
support@pepperstone.com
+448000465473+442038074724
70 Gracechurch St
London EC3V 0HR
United Kingdom
  • Legal documents
  • Privacy policy
  • Website terms and conditions
  • Cookie policy
  • Sitemap

© 2025 Pepperstone Limited 
Company Number 08965105 | Financial Conduct Authority Firm Registration Number 684312

Risk warning: Spread bets and CFDs are complex instruments and come with a high risk of losing money rapidly due to leverage. 73.7% of retail investor accounts lose money when trading spread bets and CFDs with this provider. You should consider whether you understand how spread bets and CFDs work and whether you can afford to take the high risk of losing your money.

Trading derivatives is risky. It isn't suitable for everyone and, in the case of Professional clients, 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 or your client's personal objectives, financial circumstances, or needs. Please read our legal documents and ensure you fully understand the risks before you make any trading decisions. We encourage you to seek independent advice.

Pepperstone Limited is a limited company registered in England & Wales under Company Number 08965105 and is authorised and regulated by the Financial Conduct Authority (Registration Number 684312). Registered office: 70 Gracechurch Street, London EC3V 0HR, United Kingdom.

The information on this site is not intended for residents of Belgium or the United States, or use by any person in any country or jurisdiction where such distribution or use would be contrary to local law or regulation.