Skip to content

TradeLens — Forex & Gold Strategy Analyzer

Test a gold or forex strategy against real history before you risk a penny on it.

An analysis laboratory, not a prediction service. Every signal here is the output of rules you can read and change, applied to past prices — it can be wrong, and often will be. Nothing on this page is financial advice, nothing is tailored to your circumstances, and no part of it can place a real order. Past backtest performance does not predict future results.

Market data

Every source here is free. Nothing is fetched through a DO101 server.

Real intraday OHLC with volume, from a public exchange endpoint that needs no key. No key. Shared IP rate limits apply, and up to 1,000 bars per request. Instruments are proxies, not interbank FX or spot XAU/USD. About this source ↗

Load a chart to begin

Gold and forex, from a free public source, your own MetaTrader 5 terminal or a CSV file you exported yourself. Nothing is fetched until you ask for it.

Built around gold

XAU/USD sizing, session ranges and presets written for the way gold moves — plus every major forex pair.

Every signal is auditable

Each rule votes, each vote has a reason, and the exact rule book is printed on the page.

Tested against held-back data

Tune on one period, judge on a period the tuning never saw, with the overfitting checks shown.

Private by design. This tool runs entirely in your browser. Your input is processed on your own device and is not uploaded by DO101.

About the TradeLens — Forex & Gold Strategy Analyzer

A free analysis laboratory for XAU/USD and the major forex pairs. Load real price history — from your own MetaTrader 5 terminal, a free public source or a CSV you exported yourself — and get a candlestick chart with EMAs, RSI, MACD, Bollinger Bands, ATR, market structure and support and resistance. A transparent rule engine reads the chart and tells you exactly why it says buy, sell or neutral, rule by rule, with the conditions that would invalidate it. Then backtest those rules with realistic spread and commission, judge them on a period the tuning never saw, size positions from your own risk limit, and paper-trade the whole thing with virtual money. Everything runs in your browser. It is an education and research tool, not a prediction service, and it cannot place a real order.

How to use it

  1. 1Pick a data source: your own MetaTrader 5 terminal, a free public source, or a CSV you exported.
  2. 2Choose a symbol and timeframe, and load the chart.
  3. 3Read the signal panel — every rule that voted, why it voted, and what would invalidate it.
  4. 4Adjust the rules and their weights, or start from one of the gold presets.
  5. 5Backtest with realistic spread and commission, and compare the tuned period against the held-back one.
  6. 6Size a position from your own risk limit in the risk calculator, then paper-trade it with virtual money.

What you get

  • Built around XAU/USD: gold contract sizing, session ranges and gold-specific presets
  • Reads your own broker's gold bars from MetaTrader 5, free, with a local bridge script
  • Works with no API key at all, and with a CSV file when you would rather not fetch anything
  • Candlestick chart with zoom, pan, volume, EMA, SMA, RSI, MACD, Bollinger Bands and ATR
  • Support and resistance as clustered zones from confirmed swing pivots, not single lines
  • Buy, sell or neutral with a score that is stated as rule agreement, never a win probability
  • Two strategy engines: weighted voting rules, and Deep Smart Money — filters that must all pass before an order-block, EMA-cross, box-breakout or stop-hunt trigger counts
  • Every signal lists the rules for it, the rules against it and what would invalidate it
  • Backtesting with spread, commission and slippage, and next-bar fills to prevent look-ahead
  • Win rate, profit factor, expectancy in R, drawdown, streaks, Sharpe-like score and equity curve
  • Separate tuning and held-back periods, with overfitting checks on every parameter search
  • Risk calculator with position size, pip value, reward-to-risk and what your leverage really means
  • Paper trading with virtual balance, stops, targets, trade history and a performance dashboard
  • Runs entirely in your browser — no account, no upload, and no way to place a real order

How this tool avoids lying to you

A backtester is easy to write and easy to fool. These are the decisions that make the numbers worth reading — each one makes the results look worse, which is the point.

  • A score is agreement, not a probability

    When the panel says 72, it means rules worth 72% of the weight you gave them point the same way. It does not mean 72% of such trades have worked, because nothing on this page could know that.

  • The next bar's open, never this bar's close

    A signal read at a close is filled at the following open. Filling at the closing price that produced the signal is the most common way a backtest invents money that was never available.

  • The stop wins a tie

    When one bar contains both your stop and your target, the order they happened in is unknowable from OHLC data, so the engine takes the stop. Pessimism is the only safe assumption there.

  • Costs are charged, not assumed away

    Half the spread on entry, half on exit, plus any commission and slippage you set. Fixed spreads are still optimistic: real ones widen exactly when a breakout rule wants to trade.

  • A period the tuning never saw

    Parameters are chosen on one stretch of history and reported on a later one the search never looked at, alongside the rank agreement between the two and whether the winner sits on a plateau or a spike.

  • Nothing here can place an order

    There is no broker connection and no order endpoint in this application. The MetaTrader bridge calls three read-only functions. The paper account is a number in your browser's storage.

Why gold gets its own desk

XAU/USD is not a currency pair wearing a different name. A standard lot is 100 ounces, so a one-dollar move is a hundred dollars a lot; a “pip” is a cent; and the daily range is measured in whole dollars rather than fractions of one. A stop that would be enormous on EUR/USD is ordinary on gold, and position sizes are routinely hundredths of a lot.

Gold also keeps office hours. Most of its range happens once London is open and again when New York joins — the Gold desk tab measures that from the bars you loaded rather than asserting it, so you can check whether it holds in the period you are testing. The presets, the default spread assumption and the contract details all follow from that, and the MetaTrader bridge replaces every assumption with your own broker’s real figures.

What makes it free, and what that costs you

There is no DO101 server in the middle of any of this. Price requests go from your browser straight to the source you picked, every calculation runs on your own device, and your settings and paper account live in your browser’s storage. That is why there is no account to make and no limit on how much you can test.

The trade-off is honest about itself: free public sources are either daily-only, or track gold through a proxy instrument rather than quoting XAU/USD directly. Each source states what it is next to the chart. For bars that match your own platform exactly, the MetaTrader bridge and CSV import are both free and both use data you already have.

Frequently asked questions

What is the Deep Smart Money strategy?

A port of a popular Pine Script built on smart-money ideas. Unlike the weighted engine, nothing votes: six filters must all pass — price on the right side of the 200-period average, the fast average on the right side of the slow one, volume above its average, a strong candle, RSI on the right side of 50, and a cooldown since the last signal. Only then can one of four triggers fire: a reclaimed order block after a break of structure, an EMA crossover, a breakout from a tight box, or a stop-loss hunt where price sweeps a swing level and closes back. It sets its own stop at the signal bar's extreme and its target as a multiple of that. The top half of the original script was not available, so the conditions it defined are rebuilt from their conventional meanings — each is a named, adjustable setting, and the signal panel shows exactly which ones passed on every bar.

Can I paste in my own Pine Script?

Not directly — there is no Pine interpreter in the page, and Pine's execution model differs from a browser backtest in ways that change results, such as when a bar's values are final. What you can do is rebuild the rules with the weighted engine's settings, or ask for a script to be ported the way Deep Smart Money was. Either way the backtest applies the same next-bar fills, costs and held-back period to it, so the comparison with your TradingView numbers is fair — and where the two disagree, the disagreement is usually informative.

Is this financial advice, or a signal service?

Neither. This is not financial advice, it is not personal to you, and it is not a recommendation to buy or sell anything — it is a laboratory for testing ideas. Every buy or sell here is the arithmetic output of rules you can read and change, applied to past prices — it knows nothing about you, your circumstances or the future, and it can be wrong. Treat a signal as a prompt to look at the chart yourself, not as an instruction.

What does the confidence score mean?

It is how strongly the rules you switched on agree with each other, as a percentage of the total weight you gave them. A score of 72 means rules worth 72% of the weight point the same way. It is not a probability of the trade winning, and nothing in the tool could calculate that honestly — which is why it is never described that way.

Can I use my own MetaTrader 5 gold data?

Yes, and it is the most accurate option. MetaTrader publishes a free Python package that reads history out of a running MT5 terminal. Because that connection is local to your machine, no web page can call it directly, so the Gold desk tab gives you a small bridge script to run next to MetaTrader. It serves your broker's own XAUUSD candles — with their contract size, digits and live spread — to this page on 127.0.0.1 and nowhere else. The script is read-only: it cannot place an order and never touches your balance or positions. There is also a CSV mode if you would rather not run a server at all.

Does more accurate data make the strategy more accurate?

It makes the test honest, which is not the same thing. Your broker's real bars, spread and contract size mean a backtest is measuring the strategy rather than an approximation of the market. A rule set that loses money on accurate gold data is telling you the truth sooner. No data source, and no combination of indicators, can make a strategy reliable enough to trust blindly.

Where does the price data come from, and is it really free?

Four sources, all free. Your own MetaTrader 5 terminal through the local bridge; a public exchange endpoint that needs no key, whose gold instruments are tokens backed one-to-one by physical gold and therefore a proxy rather than XAU/USD; the European Central Bank's daily reference rates for forex; and optionally Twelve Data or Alpha Vantage using a free key you obtain yourself. Your key is stored in your browser and sent straight to that provider — never to DO101, and no key is built into this page.

How does the backtester avoid flattering itself?

Signals are read at a bar's close and filled at the next bar's open, never at the price that produced them. When a single bar contains both the stop and the target, the stop is taken, because the order they happened in is unknowable. Gaps fill at the open rather than at the level. Every trade pays the spread and any commission you set. Trading is blocked until the indicators have warmed up. And if your data has closing prices only, the engine says so and refuses to pretend it can test an intrabar stop.

What is the held-back period for?

Any search over enough parameter combinations will find something that worked on the data it searched — that is what searching does. So the tool splits your history: parameters are chosen on the first part, and then reported on a later part the search never looked at. It also shows the rank agreement between the two halves and whether the winning settings sit on a plateau or an isolated spike. If the held-back result collapses, the settings described the past rather than the market.

What leverage should I use?

That is not a question this tool will answer, because the honest answer depends on your account, your broker's margin rules and a tolerance for loss a web page cannot know. Leverage is treated here as a ceiling you set: it never increases what a stop costs you, but it caps how large a position you may hold, and the risk panel shows the margin it ties up and how far the market would have to move to wipe the account out. Higher leverage lets you take positions that a small adverse move can end.

Can it place trades for me?

No. There is no broker connection and no order endpoint in this application, and the MetaTrader bridge deliberately calls only the three read-only functions it needs for price history. The paper account is a number and a list in your browser's storage. Nothing here can move real money.

What CSV format does it accept?

Date, open, high, low, close and optionally volume, with or without a header row — MetaTrader's date-and-time export, TradingView, Dukascopy and ordinary spreadsheet saves all work. It detects the delimiter, works out which way round ambiguous dates are and tells you what it assumed, infers the timeframe from the gaps between bars, collapses duplicate timestamps and widens any bar whose high or low does not contain its own open and close. A close-only file is accepted and clearly flagged.

Is my data uploaded anywhere?

No. CSV files are read in the page, settings and the paper account live in this browser's local storage, and every calculation — indicators, backtests, the parameter search — runs on your own device. The only network requests are the price fetches themselves, which go straight from your browser to whichever source you picked.

Why does it sometimes say NEUTRAL when the chart looks obvious?

Because the rules disagree, or because a filter you set has cut in: agreement below your minimum score, an ADX reading saying the market is directionless, volatility at double its recent normal, or a higher-timeframe trend pointing the other way while you have asked for agreement. The cautions listed under the verdict always say which of these it was.

People who use this tool usually reach for these next.