Skip to content

Forex and CFDs · Market pack

Build a forex trading bot or MT5 EA with your own AI coding agent.

Super Algo Kit helps you build a forex trading bot or MetaTrader 5 Expert Advisor inside your own AI coding agent. Its forex and CFD pack covers spot forex and CFDs through MT5 and broker APIs, with cards for the MT5 bridge and OANDA. Tests include spread, commission and swap on real ticks, and every EA runs on a demo account first.

market facts

Forex and CFD market pack (MetaTrader 5)

Products
Retail spot forex and CFDs on indices, commodities, shares, metals and crypto, mainly through MetaTrader 5.
Bridge and broker cards
MetaTrader 5 bridge (Python package, terminal-side calls, hosted bridges) and the OANDA v20 REST API.
Key rule
Retail leverage caps: EU and UK 30:1 to 2:1, US 50:1 and 20:1 (reported), Japan 25 times for individuals.
MT4
A legacy lane only: maintain an old EA or port it to MT5 with parity tests.
Costs the kit models
Spread, commission per lot, swap per symbol, slippage and requotes; cost values are estimates.
Sessions
Forex hours, rollover time and server time zone are set by each broker, so the kit reads them from yours.
India
MetaTrader 4 and 5 are on the RBI Alert List, so the kit refuses that route for Indian residents.

From the kit's Forex and CFDs card, checked 2026-09-30. Not investment advice.

Paper first

Build for this market, paper first.

Super Algo Kit runs inside the coding agent you already use. It interviews you, writes the spec with pass marks set first, then builds, backtests and paper-tests. Real money starts only when you type the authorize command.

Type this in your coding agent
Build me an FX carry bot as an MT5 Expert Advisor for a broker demo account. Paper only.

The plan, step by step

Tick them off as you go.

What can you build for forex and CFDs?

You can build MT5 Expert Advisors, indicators and scripts in MQL5, or Python bots that work through the MT5 bridge or OANDA. Old MT4 EAs can be maintained or ported to MT5 with a parity report.

Every EA is built and tested for both netting and hedging accounts unless yours is known. Each one ships a Backtest Honesty Card that names its tick mode, spread, commission and delay.

Which forex and CFD rules matter for an EA?

This summary uses regulator pages read on 29 and 30 September 2026. It is not legal advice, so check your broker's regulator and the rules where you live.

An EA on your own account makes you an ordinary client of the broker. Broker terms can still restrict styles such as scalping, so read them.

  • EU and UK retail CFDs: 30:1 on major pairs down to 2:1 on crypto, with 50 percent close-out.
  • US retail forex: positions close first in, first out, so hedging is not allowed (reported).
  • Australia: 30:1 on major pairs under an order that runs to 23 May 2027 (reported).
  • TradingView's terms forbid automated trading through its alerts, so a bridge is opt-in only.
  • Selling signals or running EAs for other people can need licences.

Which costs and sessions does the pack model?

Backtests include spread, commission, swap and slippage. The reported result must come from a real-tick run with commissions set, because generated ticks flatter stops and pending orders.

Spot forex has no exchange calendar, so hours, rollover and holidays come from your broker. Swap is charged at the daily rollover, and the platform names one weekday per symbol for triple swap. Server time can shift with daylight saving, so the kit tests those weeks.

How do you test an EA before going live?

MT5 EAs forward-test on a broker demo account for the full paper minimum. A Strategy Tester run is a backtest and never counts as paper.

During the build, the MT5 bridge is used only with demo accounts, and trading tools stay off by default. The kit never stores anyone's trading password.

Before you rely on it

Rules and risks to respect.

  • ESMA analyses published in 2018 found 74 to 89 percent of retail CFD accounts lose money (reported).
  • The kit treats offshore leverage above regulated caps as a warning sign, not a feature.
  • An EA written for hedging fails on a netting account, and MQL4 to MQL5 is never a mechanical port.
  • Spreads widen at rollover, at the weekend open and around news.
  • OANDA Japan ends MT4 on 27 November 2026 (reported).

FAQ

Forex and CFDs: questions.

How do I code a forex trading bot without coding experience?

Describe the idea in plain words to your coding agent with Super Algo Kit installed. It asks one question at a time, writes a spec with pass marks, then builds real MQL5 or Python code in your project. You approve each gate yourself.

Can Super Algo Kit build MT5 Expert Advisors?

Yes. Its mql-builder skill builds MQL5 Expert Advisors, indicators and scripts and runs a compile and test loop. MT4 is supported only as a legacy lane: maintain an old EA or port it to MT5 with parity tests.

Can I convert a TradingView Pine Script strategy to an MT5 EA?

Yes. Super Algo Kit can port a Pine Script strategy to an MT5 Expert Advisor with a parity report. Sending TradingView alerts to MetaTrader as orders breaks TradingView's terms, so that bridge is opt-in with a typed acknowledgement.

Can I test a forex bot on a demo account first?

Yes, and Super Algo Kit requires it. MT5 EAs forward-test on a broker demo account for the full paper minimum, and a Strategy Tester run never counts as paper. Live trading starts only when you type the authorize command.

Is forex algo trading allowed in India?

Indian residents may trade currencies only through authorised routes, and the RBI Alert List names MetaTrader 4 and 5 next to offshore forex brokers. Super Algo Kit refuses that route for Indian residents and uses its India pack instead. This is not legal advice.

Keep reading

More guides.

Super Algo Kit is development software. It is not investment advice, a signal service or a promise of performance. Trading involves substantial risk, including the loss of all capital you trade with.