Backtesting on TradingViewBased on the massive feedback from our previous article about backtesting we decided to make a follow up on how to backtest your strategy.
Every trader talks about strategy.
Few actually test it.
Backtesting is where ideas meet data — and TradingView makes it surprisingly simple.
Whether you code your own system or use built-in tools, backtesting shows you how your logic performs before you risk a single dollar.
1. Open the Strategy Tester
Start by opening the chart of the asset you want to test.
Click “Strategy Tester” at the bottom of the screen.
This activates TradingView’s built-in engine that simulates your system’s historical trades automatically.
You’ll see three tabs appear:
Overview: a summary of your results.
Performance Summary: key stats like profit, drawdown, and win rate.
List of Trades: every single historical trade your strategy executed.
2. Load or Create a Strategy
Go to the Indicators & Strategies tab.
TradingView separates indicators from strategies — only strategies can trigger trades for backtesting!
You have two options:
Use a built-in or public strategy: like “MACD Strategy” or “Moving Average Crossover.”
Paste your own Pine Script strategy: under “Pine Editor,” then click “Add to Chart.”
Once applied, TradingView automatically calculates historical trades based on your logic.
Tip: Indicators are for signals, strategies are for testing execution.
3. Adjust the Test Parameters
To make your test realistic, click the ⚙️ icon next to your strategy name.
In the Properties tab, you can define:
Initial capital (e.g. $10,000)
Position size (fixed or percent-based)
Commission and slippage
Pyramiding (how many positions can stack)
Then set your date range in the Strategy Tester — for example, test from 01-01-2022 to 01-01-2024.
The goal is to simulate what your system would have done under real conditions.
4. Analyze the Results
Once the test runs, TradingView gives you a detailed breakdown:
Net Profit (%) — your total gain or loss.
Max Drawdown — your biggest loss from peak to trough.
Win Rate & Profit Factor — how often you win and how much you win versus lose.
Average Trade — the mean result per trade.
Equity Curve — how your balance evolved over time.
Scroll through the List of Trades to see how each entry and exit behaved.
If you spot clusters of losses, note the pattern — that’s where improvements start.
This is the part where you analyze and think why did a trade fail and how can I avoid it.
TradingView also enables you to export data in excel so its super easy to analyze and look for improvement.
5. Refine and Forward-Test
Once you’ve seen how your system performs historically, make small adjustments.
Change one parameter at a time — like EMA length, RSI threshold, or stop-loss distance — and rerun the test.
When you find consistent results across timeframes or markets, move to paper trading mode.
Forward-testing confirms your backtest logic under real conditions, including live volatility and execution timing.
If your live and backtested results align closely, you’ve built something solid and you are ready to make money.
A big tip here, even a small thing such as a change in stop loss or timeframe change from 15 minutes to 14 minutes can make a huge difference so try out different conditions.
Scapling
Building a Trading System: From Idea to ExecutionEvery trader starts with an idea — a setup, a pattern, a theory that seems to work.
But until that idea becomes a structured system, it’s just intuition.
A trading system gives your ideas rules, logic, and repeatability.
That’s the difference between a trader who hopes, and a trader who executes.
Define the Core Idea
Every system begins with an observation.
Maybe you notice breakouts after volume spikes, or reversals after RSI divergence.
Whatever the logic, write it down.
A system has to be specific, if you can’t define it clearly, you can’t test it.
Set Your Entry and Exit Rules
Your system should answer three things precisely:
When to enter a trade
When to exit a trade
How much to risk
Ambiguity is the enemy.
Rules make your strategy repeatable, testable, and objective.
Backtest the Logic
Before going live, test your rules on past data.
You’re not looking for perfection, you’re looking for consistency.
If your logic survives bull, bear, and sideways markets, it’s valid.
Track win rate, drawdown, and profit factor — they’ll tell you what’s working.
Execute With Discipline
A system only works if you do.
Follow the rules exactly as tested, even when it feels uncomfortable.
Consistency turns probability into profit — emotions destroy both.
Application
Here we have a very good example from our trading signals where we executed one of our strategies for 10 days. The strategy was designed with detailed inputs, logic and executed with a precise setup in a trading bot.
Refine and Evolve
Once live, keep notes.
Track how the system performs under real conditions.
Make small, measured improvements based on data, not emotion.
A system should evolve, not change its identity.
Redefining and tuning is a part of the process, there is no strategy that lasts forever, everything needs to evolve and adjust!
BULL WEEK! EURUSD Long from support + Weekly projectionFriday, price wicked off of the median price from the consolidation zone we broke out of the other week. Daily ATR is sitting at 103pips, Stochastic supports Friday's late reversal, but a little divergence would go a long way..still waiting on that. Scalpers should feel comfortable looking long on Monday. I'm aiming for the 1.06 mark on Monday. It would be asking a lot to see price break into my supply zone this early in the week, I'm thinking a drawback to support is more likely. 1.05 could be a discount price this week, before a late-week surge to the top of the channel, which price has formed on the Daily chart.
SPX500 BEARISH SCALPThis could be a triple top on the 15M time frame if price breaks support (3683.50) look for a nice bearish move to Dec 20 8:30 am Low. The trade is a a 1:1. If price breaks resistance at the top of the triple top structure kill this idea and wait for the next level of resistant at level 3693.
XRP Scalp QuickpostVery quick post. XRPUSD is outside the 4h bollinger band and it has a lot of hidden bullish divergence (higher low on the price action, lower low on the indicator) which behooved me to close my short and look for a move at least to the top of the bollinger band.
Price action has broken the resistance I was using to add to my shorts. This is a relatively high risk entry because I am using a low timeframe and pulling the trigger with little confirmation. There is a slight chance that XRPUSD goes out of my channel but that is basically hopium for me at this point.
My linked post shows my head and shoulders short entry and I made it very clear I was concerned that we would get a lot of under performance. With that background I am long right now. Due to the rapid nature of this trade I hope to have a profitable stop loss or manual close shortly. I hope to continue to beat money out of XRPUSD and buy ETH, which is a marginable collateral currency in Kraken.






















