# Turn a trading idea into rules and test it with AI, without code

> Turn a trading idea into seven rules, test it on past prices without code, and compare TradingView, TrendSpider, FX Replay and Systemly, spread included.

- URL: https://systemly.ai/community/test-trading-idea-with-ai-no-code
- Author: Chike Chiejine
- Published: 2026-11-30
- Updated: 2026-11-30

The sentence "gold bounces after it sweeps the Asian low" leaves seven decisions unmade before any software can test it: which market and timeframe, which hours count as the Asian range, what counts as a sweep, where to enter, where to place the stop, where to take profit, and which days to skip. A person fills those gaps without noticing. A computer stops at the first gap. This guide turns that one sentence into rules a tool can run, then shows how to test them without writing code.

This is educational information, not financial advice.

Quick answer: write the idea as seven explicit rules, test it on one block of past prices, hold a second block back and look at it once, and subtract the spread from every trade. Several tools can run the test. TradingView's Strategy Tester needs Pine Script, TrendSpider offers a drop-down rule builder with regular listed prices from $82 a month on its Standard plan, FX Replay replays history for manual practice from $0, and Systemly drafts the rules from a description, tests them with five checks and runs the strategy on paper. Prices checked 30 November 2026.

## Three mistakes that make a test meaningless

The first mistake is a vague rule. "Buy a pullback in an uptrend" gives a human a dozen reasonable readings and gives a test engine none. A tool that cannot read the rule either refuses it or, worse, a person quietly substitutes their own reading on each chart (the pullback is, conveniently, whichever one the trader remembers). The test then measures the person's judgement of each chart.

The second mistake is testing on the same data used to tune the rule. Bailey, Borwein, López de Prado and Zhu (Notices of the American Mathematical Society, May 2014) showed that trying a fairly small number of configurations is enough to produce an impressive simulated result, and that more configurations raise the chance of overfitting. It's a bit like a student who is handed the exam paper in advance: the student scores full marks without knowing the subject. The consequence is a strategy that looks sound on 2025 data and loses money on 2026 data.

The third mistake is ignoring costs. Every trade pays the spread, and a stop that sits close to the entry pays a larger share of its risk. A rule that appears to work with zero costs can lose money once costs are in. The worked example below puts numbers on that.

## Step 1: write the idea as seven rules

Start with the sentence, then answer the seven questions. The rules below are our example (the numbers are choices made for illustration, so change them to suit your own idea).

1. Market and timeframe: gold (XAUUSD), 15-minute candles.
2. Range: the high and low between 00:00 and 07:00 UTC (the Asian range, defined by us as those hours).
3. Trigger: during 07:00 to 11:00 UTC, a candle trades below the range low and a later candle closes back above it.
4. Entry: buy at the close of the candle that closes back above the range low.
5. Stop: place the stop loss below the lowest point of the sweep.
6. Targets: take profit at 1, 2 and 3 times the distance from entry to stop (written 1R, 2R and 3R).
7. Filters: skip the trade on Fridays after 12:00 UTC and in the 30 minutes before a major US data release.

Risk per trade is a separate decision: choose a percentage of the account, and the position size follows from the stop distance. Our guides to [how to spot a liquidity sweep](https://systemly.ai/community/how-to-spot-a-liquidity-sweep) and [how to set a stop loss](https://systemly.ai/community/how-to-set-a-stop-loss) cover rules 3 and 5 in more detail, and [how to calculate lot size](https://systemly.ai/community/how-to-calculate-lot-size) covers the position size.

Each rule above gives a yes or no answer on every candle. That is the test for a usable rule: two people reading it on the same chart reach the same decision.

## Step 2: price the costs before testing

The spread is the gap between the buying price and the selling price, and it is paid when you enter. Divide the spread by the stop distance and you get the part of your risk that every trade spends before price moves at all.

The list below uses an assumed gold spread of $0.30 per ounce. This is an invented figure for illustration, so replace it with your broker's actual number.

- Stop of $3.00 with a $0.30 spread: 0.10R of 1R spent on spread.
- Stop of $6.00 with a $0.30 spread: 0.05R of 1R spent on spread.
- Stop of $12.00 with a $0.30 spread: 0.025R of 1R spent on spread.

At a $6.00 stop, 100 trades spend 5R on spread (100 times 0.05R) before any trade has gone right or wrong. A strategy whose average trade earns 0.05R before costs earns nothing after them. TradingView's Strategy Tester has commission and slippage settings in a strategy's Properties tab for this purpose, and TradingView's help page notes that slippage adds ticks to the fill price of market and stop orders, which can help account for the spread. Whatever tool you use, find where it sets costs before you read a result.

## Step 3: split the past prices in two

Choose a block of history. Say 24 months of 15-minute gold data, December 2024 to November 2026. Use the first 16 months (December 2024 to March 2026, two thirds) to build and adjust the rules. Hold the last 8 months (April to November 2026) back and run them once, after the rules are final. Prices the rules were tuned on are called in-sample, and prices held back are called out-of-sample.

Three habits keep this honest:

- Write down how many versions you tried. Bailey and colleagues point out that most reports leave this number out, which hides how much overfitting a result may contain.
- Look at the held-back block once. If you change a rule after seeing it, that block has become part of the tuning data.
- Test a second market or a different period as well. A rule that works on one instrument for one stretch of months has been shown to fit that stretch only.

MetaTrader 5's tester includes a forward test option that splits a period into a backtest part and a forward part for the same purpose. Our article [how to backtest a strategy](https://systemly.ai/community/how-to-backtest-a-strategy) walks through the basics for a first test.

## Which tool can run it?

All prices in US dollars, checked 30 November 2026 on each company's own page. Each entry says where the tool is the better choice.

### TradingView Strategy Tester and Pine Script

Strategies are written in Pine Script, and the Strategy Tester reports on them in the chart's Strategy Report. TradingView's help page notes that strategies on Renko and Heikin Ashi charts can give unrealistic results because they use synthetic prices. Deep Backtesting, which runs a strategy over all available history for a symbol up to two million bars, needs the Premium plan or higher. Paid plans on TradingView's pricing page, billed annually (checked 30 November 2026, when the page also advertised a Cyber Monday promotion, so confirm the price at checkout): Essential $12.95 a month, Plus $29.95 and Premium $59.95. It's the better choice if you write or buy Pine Script and want the test on the same chart you trade from.

### TrendSpider

Backtesting is listed on every plan, and the pricing page describes a Visual Scripting tool with drop-down logic and an AI Condition Entry feature that takes conditions in natural language. The plans differ in how fine a timeframe you can test: Standard from 2 hours (2,000 candles), Premium from 5 minutes (10,000), Enhanced and Advanced from 1 minute (20,000 and 30,000). So our 15-minute example needs Premium or above. The page listed regular prices (shown struck through) of $82 a month for Standard, $137 for Premium, $183 for Enhanced and $321 for Advanced, and it gave no annual prices. It was also running a Cyber Monday sale on 30 November 2026, so we quote the regular prices only. The 14-day trial costs $19 to $49 depending on the plan. It's the better choice if you want a visual rule builder in the same subscription as your charts. Our [TrendSpider comparison](https://systemly.ai/community/trendspider-vs-systemly) goes into more detail.

### FX Replay

It replays past prices bar by bar so you practise trades by hand, with a trade journal, analytics and a Monte Carlo tool. The free plan allows 2 backtesting sessions; Intermediate costs $17.99 monthly or $180 a year, and Pro $35 monthly or $350 a year, with a 5-day free trial on the paid plans (FX Replay's support page and pricing page, checked 30 November 2026, no promotion listed). It's the better choice for building chart-reading skill and for testing a rule by hand when the rule needs your own judgement.

### MetaTrader 5 Strategy Tester

It runs Expert Advisors on history, with a mode that uses real ticks and an optimiser, and it has the forward test option mentioned above. MetaQuotes' help page lists no price. It's the better choice when you already have a coded Expert Advisor and need tick-level detail.

### Systemly

You describe the idea in words, with a market and timeframe, and Build with AI drafts the rules, which you can then edit by hand. The five checks test the rules on past prices. Autoscan then checks the market at every candle close and opens and closes paper trades by itself. It's the better choice if you want to go from a sentence to a running paper strategy without writing code. If your idea needs logic the builder does not offer, a scripting tool is the better choice.

## Where Systemly fits

For the gold example, you would type the idea from Step 1 into Build with AI, choose gold and the 15-minute timeframe, and review the rules it drafts against your seven. The builder supports targets in steps, up to four at multiples of risk, and indicators that include VWAP (time-weighted) and Volume profile. After the five checks, Autoscan runs the strategy on paper, so that each candle close is checked while you work and the paper trades are logged for you to review.

Free includes 3 AI drafts a month, 2 saved strategies and Autoscan on 1 strategy on 1 market. Starter has 5 saved strategies and Autoscan on 2 strategies across 3 markets, Plus has 20 saved and 5 across 10, and Pro has unlimited. Systemly makes no claim about what a tested strategy will earn, and a paper record describes only what the rules did on paper. Our [Systemly versus TradingView](https://systemly.ai/community/tradingview-vs-systemly) article lays the two side by side.

Video: [Read the market before you trade it | Systemly](https://youtu.be/kJi2nmqKSxo)

Watch the demo, [Read the market before you trade it](https://youtu.be/kJi2nmqKSxo), then [turn your first idea into rules, free](https://www.systemly.ai/signup).

For more on writing rules you can follow, see [how to trade your own rules](https://systemly.ai/community/how-to-trade-your-own-rules) and [how to build a setup checklist](https://systemly.ai/community/how-to-build-a-setup-checklist). Our wider piece on [AI in trading in 2027](https://systemly.ai/community/ai-in-trading-2027) covers which tasks to hand to AI, and [why charting apps are rationing AI](https://systemly.ai/community/charting-apps-ai-quotas) covers how the tools above limit it.

## Questions

### Can I test a trading idea without coding?

Yes. TrendSpider's Visual Scripting uses drop-down logic, FX Replay lets you test by hand, and Systemly drafts rules from a description. TradingView's Strategy Tester needs Pine Script.

### What is out-of-sample testing?

Out-of-sample testing means running a rule on prices that were kept out of the tuning. Hold back a block of history, lock the rules, and run the block once.

### How much data do I need?

Each tool limits the history. TrendSpider Standard tests 2,000 candles and Advanced 30,000, and TradingView's Deep Backtesting runs up to two million bars on Premium and above. The right amount for your idea depends on how many trades the rules produce, so count the trades in the result.

### Why should a backtest include the spread?

Every trade pays it, and it takes a larger share of a short stop. TradingView's Strategy Tester has commission and slippage fields in its Properties tab, and slippage adds ticks to the fill price of market and stop orders.

### Does Build with AI test the strategy for me?

Build with AI drafts the rules. The five checks then test them on past prices, and Autoscan runs the strategy on paper at every candle close.

### How many strategies can I save on Systemly?

Free 2, Starter 5, Plus 20 and Pro unlimited (checked 30 November 2026).

## Sources

- TradingView, pricing page, checked 30 November 2026: [https://www.tradingview.com/pricing/](https://www.tradingview.com/pricing/)
- TradingView Help Centre, Strategy Tester: [https://www.tradingview.com/support/solutions/43000481029-strategy-tester/](https://www.tradingview.com/support/solutions/43000481029-strategy-tester/)
- TradingView Help Centre, how to use the Strategy Tester: [https://www.tradingview.com/support/solutions/43000628599-how-to-use-the-strategy-tester/](https://www.tradingview.com/support/solutions/43000628599-how-to-use-the-strategy-tester/)
- TradingView Help Centre, how Deep Backtesting works: [https://www.tradingview.com/support/solutions/43000666265-how-deep-backtesting-works/](https://www.tradingview.com/support/solutions/43000666265-how-deep-backtesting-works/)
- TrendSpider, pricing page, checked 30 November 2026: [https://trendspider.com/pricing/](https://trendspider.com/pricing/)
- FX Replay, homepage, checked 30 November 2026: [https://fxreplay.com/](https://fxreplay.com/)
- FX Replay, pricing page and support article on plans: [https://www.fxreplay.com/company/pricing](https://www.fxreplay.com/company/pricing) and https://support.fxreplay.com/articles/what-are-the-differences-between-fx-replay-plans-and-their-pricing
- MetaQuotes, MetaTrader 5 help, testing trading strategies: [https://www.metatrader5.com/en/terminal/help/algotrading/testing](https://www.metatrader5.com/en/terminal/help/algotrading/testing)
- Bailey, Borwein, López de Prado and Zhu, "Pseudo-Mathematics and Financial Charlatanism", Notices of the AMS, May 2014: [https://scholarworks.wmich.edu/math_pubs/40/](https://scholarworks.wmich.edu/math_pubs/40/)
- Systemly plans and features, systemly.ai, checked 30 November 2026: [https://www.systemly.ai](https://www.systemly.ai)

## How this was researched

We read each tool's own pricing and help pages on 30 November 2026. TrendSpider's page was running a Cyber Monday sale that day, so the article quotes only its regular listed prices, and TradingView's page also advertised a Cyber Monday promotion. The spread and the trading rules in the worked example are invented for teaching, and no test result is given or implied. AI tools helped with research and drafting. Chike Chiejine, founder of Systemly, reviewed and edited the article. Rules and product availability vary by country, and regulators in each country set their own requirements.

Trading carries a high risk of losing money. Systemly is an educational and trade-planning tool and does not give financial advice.
