At 3:07 a.m. on a Tuesday, a GBP/USD long closes on a virtual private server in London. The trader who owns that account is asleep 200 miles away. The position opened 41 minutes earlier because a 20-period moving average crossed above a 50-period average and the average true range sat above a filter threshold. Nine pips of profit, less 0.6 pips of spread.
That is forex algorithmic trading in its plainest form. A rule, a rented server, and a decision made with nobody at the keyboard. Strip away the marketing and most retail systems are doing exactly that: not thinking, not predicting, just following instructions written by a human who may or may not have tested them honestly.
Rules, not crystal balls
In forex, an algorithm is a written list of conditions. When price closes above the previous day's high, buy. When the trade is 1.5 times the ATR in profit, take half off. When the clock hits 20:00 server time, close everything and go flat before the swap. Nothing mystical happens in between.
The tools vary in sophistication but the logic is similar. You can run expert advisors inside MetaTrader 4 or 5, write strategies in cTrader's C# environment, connect Python to a broker's REST API, or build indicators in Pine Script. The language changes; the three problems you have to solve do not.
Signal, size, execution
New traders spend 90% of their effort on the signal and about 10% on the parts that actually determine whether the account grows.
- Signal logic decides when to enter and exit. This is the fun part, and the least important part once you get past mediocre.
- Position sizing decides how much of the account rides on each idea. A mediocre signal with disciplined sizing survives. A brilliant signal with reckless sizing does not.
- Execution decides what price you actually get. This is where spread, latency, requotes and broker behaviour live.
A system that wins 54% of the time with a 1:1.2 reward-to-risk ratio and risks 0.5% per trade can compound steadily. The same signal risking 5% per trade will blow up during its first normal losing streak, and every strategy has one.
The costs a strategy tester hides
Backtest results almost always flatter. The gap comes from costs that are easy to set to zero in software and impossible to avoid in the market.
Take a scalping system that takes 20 trades a day. On a raw-spread account, EUR/USD might quote 0.1 pips plus $7 per standard lot round turn, roughly 0.7 pips all-in. On a standard account it could be 1.4 pips. That difference is 14 pips a day, or about 280 pips a month, on identical trade logic. A strategy that looks profitable on one account type can bleed on the other without a single change to the rules.
Then add swap on positions held overnight, slippage during news releases, and the widening of spreads in the five minutes around the daily rollover. Systems that trade the Tokyo-to-London handover often find that half their theoretical edge disappears into wider quotes.
Testing a strategy without fooling yourself
Most broken systems are not broken. They were curve-fitted into existence. If you optimise six parameters across ten years of data until the equity curve looks like a staircase, you have described the past and predicted nothing.
Useful habits: test on tick data rather than bar data, keep 20-30% of your history untouched until the very end, and run a walk-forward test where parameters are re-optimised on rolling windows. If the strategy only works with settings that were tuned on the same data you tested on, it does not work. Our guide to forex backtesting that doesn't fool you walks through the practical steps.
A realistic target is a system that stays profitable across a range of parameter values, not one perfect setting. If performance collapses when you nudge the stop from 30 pips to 35, the edge was noise.
What the bot is actually doing with your money
Between your rule firing and the broker receiving it, several things happen. The algorithm reads current price, calculates lot size from your account equity, checks margin, and sends an order. Your broker routes it to a liquidity provider, fills it, and reports back. Latency of 30 milliseconds versus 300 milliseconds is irrelevant for a swing system and decisive for a scalper.
This is also where the invisible risks sit. Some brokers operate a B-book and take the other side of your trade. Some have minimum stop distances that break tight-stop strategies. Some disconnect during volatile events. It is worth understanding exactly what the bot does with your money before you hand over a deposit and walk away.
Logs tell you more than the balance
A manual trader can explain a bad week from memory. An algorithm needs a written record, because the reasoning lives in code that nobody remembers six months later. Log every signal, every rejected signal, the spread at entry, the slippage on exit, and the reason the trade closed.
Six weeks of that data will answer questions no equity curve can. Is the system losing because the logic is wrong, or because fills are two pips worse than modelled? Is it trading during the news blackout you coded and forgot about? Keeping a forex trading journal alongside the bot's output turns guesswork into a diagnosis.
Red flags in algo products and signal services
The automated trading space attracts a lot of confident sellers. A few patterns reliably predict trouble.
A claim of 90% win rate with no drawdown figure usually means a martingale or grid system that adds to losing positions until the account either recovers or dies. Verified track records on Myfxbook or FX Blue matter, but check the account age, the maximum drawdown and whether the trades are real or demo. Backtests sold as proof are not proof. Learn the shape of forex trading scams before you pay for a subscription or a licence fee.
Be equally wary of any system whose rules you cannot see. If you cannot read the logic, you cannot judge the risk, and you cannot turn it off at the right moment.
What a sane live setup looks like
Before switching from demo to real money, most durable setups share the same ingredients.
- A VPS near your broker's servers, with latency tested rather than assumed
- Risk per trade fixed at 0.25% to 1% of equity, hard-coded, not adjustable mid-drawdown
- A daily loss limit that shuts the system down and emails you
- A maximum open-position and maximum-correlation cap, so three yen pairs do not become one giant bet
- Three to six months of forward testing on a demo or micro account, with costs included
- A written plan for what would make you switch it off
That last item matters more than it sounds. Define the failure condition in advance, in numbers: a 15% drawdown, or 40 consecutive losing trades, or performance drifting 30% below backtest expectations over 100 trades. Deciding this while calm is easy. Deciding it at 2 a.m. after a bad week is not, and that is precisely why the trading mistakes that quietly empty accounts usually happen off-plan.
The edge is duller than the pitch
A well-built forex algorithmic trading system is not exciting. It trades a modest number of setups, loses slightly more often than it wins, and grinds out something in the region of 8% to 20% a year with a drawdown you can actually sit through. It requires maintenance: broker changes, spread regime shifts, platform updates, and the occasional month of underperformance that tempts you to intervene.
The traders who do well with automation are rarely the best coders. They are the ones who resist switching the bot off during a losing streak, and resist switching it on after a lucky backtest. The code does the work. The discipline is still yours, and no amount of processing power replaces it.
