Urgent.News

What's breaking now, across hundreds of outlets.

Tech

Same rules, three engines: how we got three backtests to agree trade by trade

Run one trading rule in two backtesters and you will usually get two answers. Not wildly different, just different enough that you can't tell which one to trust. We had to sort this out for one simple rule, and in the end three engines agreed on it trade by trade: TradingView's Strategy Tester, a backtester of about 60 lines written for the check, and the no-code tool we build. This post is the…

Three different backtesting engines were used to verify a simple trading rule. All three engines—TradingView's Strategy Tester, a custom backtester, and a no-code tool called Trend0x—agreed on every trade. The rule examined uses daily candles, long only, with one position at a time. Entry is when the close is above the 200-period EMA and the MACD line crosses above its signal line.

Exit occurs when the MACD line crosses below its signal or a stop is hit. The stop is set at 2.5 times the Average True Range (ATR) below the entry price. Costs are 0.06% commission per side plus slippage, which varies between engines. Both the custom backtester and Trend0x use the ATR from the signal bar's close, while TradingView uses the ATR from the next open bar, leading to slight differences. Costs are applied per side, and the same rules were applied to the same data source.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

OpenRouter Alternatives in 2026: A Practical Comparison Checklist

OpenRouter is still a reasonable default when you want the widest possible model list. But "alternative" searches are usually about something more specific: a price you can audit, a payment rail your…

  • API Volta discloses transparent USD pricing per 1 million tokens
  • Curated model catalog ensures stable pricing and routing
  • Multiple payment options including prepaid USD, cards, and stablecoins

A free offline APK inspector in one Python file (from a student in Egypt)

Hi, I'm Bebo, a student developer from Egypt. I wrote a small offline APK checker and put it on GitHub under the MIT license. It is one Python file, standard library only, no network, no paid API.

  • Bebo, an Egyptian student, created apkinspect, a one-file Python APK inspector.
  • The tool analyzes APKs offline without network or paid APIs, available on GitHub under MIT license.

I built CD Remote: a open-source SFTP/FTP/SSH

I got tired of switching between dated FTP clients (FileZilla), Windows-only tools (WinSCP), and heavy cloud-locked Electron SSH apps (Termius).

  • CD Remote is open-source SFTP/FTP/SSH client
  • Developed by developer for cross-platform needs
  • Available for Windows, macOS, Linux

More from Sunday, 29 November 2026 →