Build a trading strategy from honest building blocks, backtest it on six months of real 5-minute bars, then export to TradingView Pine Script. No signup. No affiliate links. No download. Just a browser tab.
Add up to four conditions. They are AND-joined: the strategy enters when every condition is satisfied on the same bar.
Backtests overstate. This page evaluates your strategy on past data only. Real-world fills suffer slippage, latency and spread. Past statistical edge ≠ future statistical edge. If your equity curve only looks good after you tuned the parameters until it did, you have overfit — not edge.
| # | Entry time | Side | Entry | Exit | R | Reason |
|---|
Take your strategy to TradingView for forward-testing on live charts, or grab the YAML config to run it on your own machine.
Pine Script v5. Tested as of generator version 1.0. If the script fails to compile in TradingView after a future Pine update, regenerate it from this page — usually fixes it.
1. Block-based design. Every condition is a pre-vetted fragment. You can’t write arbitrary code — only stitch blocks. That keeps generated Pine compiling cleanly and keeps the backtest engine simple.
2. Browser-only compute. The CSV bar data is fetched once on first run; everything else runs in your browser. Nothing is sent to a server. No accounts, no tracking of your strategies.
3. R-multiples. Results are reported in R, not cash. R is your planned risk on the trade. +2R means you made twice what you risked; −1R is a clean stop hit. Trading in R neutralises position size.
4. What this is not. Not a live signal service, not advice, not a guaranteed system. It is a fast way to test ideas honestly.
A backtest with positive expectancy is the easy part. Executing it in real time, accepting the losing trades, sizing for the drawdowns — that is the work the psychology series covers.
Read the Trading Psychology Series →