Learn · Course · Forex · MT5 · 11 lessons · about 53 min

Automate forex and gold with MetaTrader 5.

Start from zero: lots, points and the spread in plain words, then MT5 and every screen of a real bot, step by step on the actual app and terminal. Each lesson has a hands-on example and one quick question, so nothing surprises you when you build your own.

0 of 11 lessons doneAbout 53 minutes in all
Lesson 1 of 11 · Forex and gold in plain words

Forex course done. You’re ready to automate.

You know how to connect MT5 through the EA, set the bot’s lots, exits in points and daily limits, send it TradingView alerts and read every result. Build it on demo, keep MT5 running, then switch the same bot to your live account.

Lesson 1 of 11 · Basics · 6 min

Forex and gold in plain words

Before a bot trades for you, a few words need to make sense: pairs, buying and selling, lots, points and pips, the spread, leverage and swaps. Each one is explained here with real numbers, then you can try them.

In this lesson
  • Pairs, buy and sell
  • Lots: how big a trade is
  • Points, pips and digits
  • Spread, leverage and swaps

A pair is two prices in one

Forex trades one currency against another. EURUSD at 1.08500 means one euro costs 1.085 US dollars. Gold works the same way: XAUUSD at 2,650.00 is the price of one ounce in dollars.

Buying a pair makes money when its price rises. Selling makes money when it falls. You can do either at any time, without owning anything first.

    BuyProfits when the price goes up.
    SellProfits when the price goes down.
    Real screen

    Lots: how big a trade is

    Size is measured in lots. On a standard contract, 1 lot of EURUSD is 100,000 euros and 1 lot of gold is 100 ounces. Smaller sizes are fractions: 0.10 lot is a tenth, 0.01 lot (a micro lot) a hundredth.

    Brokers can set their own contract sizes. Once your account is connected, the Position size panel shows the contract and the smallest size your broker takes.

      1.00 lotStandard size. 100,000 EUR or 100 oz of gold.
      0.10 lotA mini lot. A tenth of the standard size.
      0.01 lotA micro lot. The usual smallest size.
      Real screen

      Points, pips and digits

      A point is the smallest step your broker quotes. EURUSD with 5 decimals moves in points of 0.00001; gold with 2 decimals moves in points of 0.01.

      A pip is the older unit traders talk about: on EURUSD one pip is 0.0001, which is 10 points. Your bot uses points or price, never pips, so you don’t have to convert.

      The catch: two brokers can quote the same pair with a different number of decimals. 300 points of gold is a 3.00 move on a 2-decimal broker and a 0.30 move on a 3-decimal one. The Exit panel tells you which one your broker uses.

        EURUSD, 5 decimals1 point = 0.00001. 1 pip = 10 points.
        XAUUSD, 2 decimals1 point = 0.01, so 300 points = $3.00.
        Real screen

        What a move is worth

        On standard contracts, a 1-point move is worth about $1 for every full lot, on both EURUSD and gold. At 0.10 lot it is $0.10 a point, so 300 points is about $30. That is exactly what the demo bot in this course lost on each stop loss.

          Real screen

          The spread

          Every pair has two prices: you buy at the higher one (the ask) and sell at the lower one (the bid). The gap is the spread, and it is a cost: a new trade starts slightly down. Spreads widen at night, around news and at weekends.

            Real screen

            Leverage, margin and swaps

            Leverage lets a small deposit hold a large position. With forex it is set on your MT5 account by your broker, not on the bot: your bot only sets the lots. The broker holds margin while a trade is open and refuses an order if the account can’t cover it.

            A position held overnight pays or earns a small swap, set by your broker. Your bot doesn’t set it.

              Real screen

              Try itSee what points and lots are worthStandard contracts
              What it means
              One point is0.00001
              The move in price0.00300
              In pips30 pips
              Worth at this size$30.00

              On a standard contract one point is worth about $1 for every full lot, on both pairs. At 0.10 lot that is $0.10 a point. Spread and swaps are not included.

              Try itPick a signal to see what the bot didExample
              Gold trend · SignalsXAUUSD · Demo
              WhyTraded

              Inside the schedule and under the limits. The EA placed 0.10 lot with the bot’s own exits.

              Rule · All rules passed
              Try itNot connected? Pick what you see
              What you seeCard: Not connected yet

              No EA has used this account’s token.

              The fixFinish the steps in MT5

              Put TDF_Forex on a chart, paste the token into EaToken in Inputs, and turn Algo Trading on.

              Try itSame points, different brokersExample · 0.10 lot
              On this broker
              One point is0.01
              Stop loss in price3.00
              Loss at 0.10 lot−$30.00

              The Exit panel shows how many decimals your broker uses for the bot’s pair, and the money each exit is worth.

              Try itDoes this alert match the bot?Example · bot trades XAUUSD.sc
              Alert message{ "symbol": "OANDA:XAUUSD", "side": "BUY" }
              Traded

              The OANDA: prefix is dropped, leaving XAUUSD: the same pair as XAUUSD.sc.

              Try itYour test was refused? Find the fix
              What you seeNot placed: your MT5 terminal didn’t answer in time

              The order waited 5 minutes for the EA, which wasn’t running.

              The fixKeep MT5 open with the EA on

              Check the blue cap and Algo Trading, then send another test.

              Try itReady to go live? Tick off each one
              Before your bot trades real money0 of 10 ready
              Check yourselfYou buy 0.10 lot of gold on a 2-decimal broker, and the price rises 300 points. Roughly what do you make before costs?

              Not quite. Try another answer.

              Common questions
              • From Sunday evening to Friday evening, New York time. At weekends your broker refuses orders, and gold also pauses for an hour each day.

              • The smallest your broker allows, often 0.01, on a demo account first. Raise it only once you understand what a stop loss costs you.