← All strategy tests
Historical simulationStocks30m barsLong onlyIntraday

HD: EMA pullback with trend filter, 30m (profile 2) - validation

Selected from a random mix of saved backtests. Profitability and a favorable verdict were not required. Simulated historical strategy test for HD.US using 30-minute bars from 2026-07-19 to 2026-10-16. Asset class: stocks. Indicators and functions used: CROSSED, EMA, SMA; Box 1 condition: [CROSSED(input_col=close, input_col2=EMA(20), direction=above)] AND [close > SMA(100)]; Box 2 condition: [CROSSED(input_col=close, input_col2=EMA(20), direction=below)]. Long only. Fills at the next bar's open. Opposite signal reverses the position. Starting equity: 25,000. Position size: 25 % of equity. Stop loss: 2.5 ATR. Take profit: 2 R. Trailing stop: 4 ATR. Commission per side: 0.01 %. Slippage per fill: 0.01 points. Maximum holding period: 60 bars. Close positions at session end. Risk-setting ATR period: 14. Session: 09:30 to 16:00 (exchange time). Saved results. Trades: 10; Net P&L: -66.285838; Return: -0.265143%; Win rate: 30%.

Shared by pk78 · Published 2026-10-18 · Snapshot 2026-10-18 · Report revision 2

Test your versionLoads these rules and settings. Review them before starting a new test.

What was tested

Market
HD.US
Timeframe
30-minute bars
Test window
2026-07-19 – 2026-10-16
Engine
tv-engine-3

Simulated historical results, not live trading performance. Historical results do not predict future returns. Shared sections are selected by the author; hidden sections have not been independently verified. The author controls which sections are visible. This is a saved result; market data revisions or engine updates can change a later rerun.

Result and evidence

Too few trades

Only 10 trades, which is not enough to judge the strategy. Test a longer period.

Net P&L
-66.29
Return
-0.27%
Trades
10
Win rate
30.0%
Profit factor
0.64
Maximum drawdown
-0.84%
Average trade
-6.63
Average R
-0.05R
Sharpe ratio
-1.08
Commission paid
12.27
Chance a no-edge strategy does this well
70.5%
P&L without the 2 best trades
-159.47

Read before trusting the numbers

  • Only 10 trades. That is too few to tell skill from luck; test a longer period or a faster timeframe.

The luck check is a statistical estimate for this sample, not the probability of future success. Costs, sample size and testing many variants affect how much confidence a result deserves.

Equity and drawdown

Saved simulated equity across this test window. Drag the range control to inspect a period.

Full performance statistics

Compare the full run with its long and short trades.

Statistics from the saved run, for All, Long and Short trades. N/A means unavailable or not applicable.
MetricAllLongShort
Performance
Net P&L-66.29-66.29N/A
Return on starting equity-0.27%N/AN/A
Profit factor0.640.64N/A
Average trade (expectancy)-6.63-6.63N/A
Average R per trade-0.05R-0.05RN/A
Total R-0.46R-0.46RN/A
Buy & hold return (same period)-8.92%N/AN/A
Trades
Trades10100
Win rate30.00%30.00%N/A
Average win39.7239.72N/A
Average loss-26.49-26.49N/A
Average win / average loss1.501.50N/A
Largest win59.1459.14N/A
Largest loss-63.86-63.86N/A
Most wins in a row22N/A
Most losses in a row66N/A
Average bars in trade5.905.90N/A
Average time in trade2h 57m2h 57mN/A
Average adverse excursion (MAE)38.6138.61N/A
Average favorable excursion (MFE)33.8433.84N/A
Risk
Max drawdown-210.96N/AN/A
Max drawdown %-0.84%N/AN/A
Longest drawdown58d 5hN/AN/A
Sharpe ratio (daily, annualized)-1.08N/AN/A
Sortino ratio (daily, annualized)-0.97N/AN/A
Time in the market6.49%N/AN/A
Costs
Commission paid12.2712.27N/A
Same-bar exits assumed stop-first0N/AN/A
Luck check
Chance a no-edge strategy does this well70%N/AN/A
Net P&L without the 2 best trades-159.47N/AN/A

N/A means the metric is unavailable or does not apply to that side. Colors describe individual metrics, not the reliability of the strategy.

Strategy rules

Entry / long entry

[CROSSED(input_col=close, input_col2=EMA(20), direction=above)] AND [close > SMA(100)]

Exit / short entry

[CROSSED(input_col=close, input_col2=EMA(20), direction=below)]

Execution and risk settings

Direction
Long only
Signal mode
Entry and exit
Order fills
Next bar's open
Opposite signal
Reverse position
Starting equity
25,000.00
Position size
25.00 % of equity
Stop loss
2.50 ATR
Take profit
2.00 R
Trailing stop
4.00 ATR
Move stop to breakeven at R
Not set
Maximum bars in trade
60.00
Flat at session end
Yes
Commission per side
0.01 %
Slippage per fill
0.01 points
Session
09:30 – 16:00 (exchange time)

Robustness check

The same strategy tested across periods, symbols and nearby settings. These checks do not make a strategy immune to overfitting.

Earlier periods

Profitable in 3 of 5 periods with sufficient price coverage.

TestTradesNet P&LProfit factorDrawdownFinding
Jul 19 to Oct 16, 2026
Available data: 2026-07-20 to 2026-10-16, 832 bars.
10-66.290.64-0.84%Too few trades
Apr 20 to Jul 18, 2026
Available data: 2026-04-20 to 2026-07-17, 806 bars.
12321.612.67-0.56%Too few trades
Jan 20 to Apr 19, 2026
Available data: 2026-01-20 to 2026-04-17, 806 bars.
16118.381.63-0.83%Too few trades
Oct 22, 2025 to Jan 19, 2026
Available data: 2025-10-22 to 2026-01-16, 779 bars.
11259.693.56-0.27%Too few trades
Jul 24 to Oct 21, 2025
Available data: 2025-07-24 to 2025-10-21, 819 bars.
34-349.720.33-1.66%Unprofitable

Other symbols

Profitable on 1 of 3 other symbols.

TestTradesNet P&LProfit factorDrawdownFinding
Jul 19 to Oct 16, 2026
Available data: 2026-07-20 to 2026-10-16, 832 bars.
10-66.290.64-0.84%Too few trades
AAPL.US
Available data: 2026-07-20 to 2026-10-16, 832 bars.
2021.591.08N/AToo few trades
MSFT.US
Available data: 2026-07-20 to 2026-10-15, 650 bars.
25-272.220.51N/AToo few trades
NVDA.US
Available data: 2026-07-20 to 2026-10-15, 650 bars.
14-134.780.50N/AToo few trades

Stops and targets

2 of 42 stop/target settings were profitable in your window. Yours ranks 5. 37 were profitable in most of the 5 periods; the steadiest is a 1 ATR stop with 1R target (4 of 5 periods, $189.70 in total).

Net P&L in the original test window for each setting.
SettingNo target1R1.5R2R3R4R5R
0.5 ATR-171.79-9.8030.90-30.62-171.79-171.79-171.79
1 ATR-114.1914.11-123.64-120.49-114.19-114.19-114.19
1.5 ATR-179.31-188.75-179.10-179.31-179.31-179.31-179.31
2 ATR-188.32-194.62-188.32-188.32-188.32-188.32-188.32
2.5 ATR-66.29-66.29-66.29-66.29-66.29-66.29-66.29
3 ATR-66.29-66.29-66.29-66.29-66.29-66.29-66.29

Condition numbers

0 of 5 condition settings were profitable in your window. Yours ranks 2. 5 were profitable in most of the 5 periods; the steadiest uses 15 for 20 (3 of 5 periods, $283.91 in total).

Net P&L in the original test window for each setting.
Setting
10-227.64
15-140.57
20-66.29
30-40.36
40-66.42

Simulated trades

10 trades in this snapshot. All times are UTC.

#SideEntryExitSizeEntry priceExit priceNet P&LExit reason
1.0Long2026-07-29 16:30:002026-07-29 18:30:0018.00341.8550340.6500-22.92exit_signal
2.0Long2026-08-03 14:00:002026-08-03 20:00:0018.00338.5600340.070025.96session_end
3.0Long2026-08-19 14:00:002026-08-19 20:00:0018.00346.9600344.3400-48.40session_end
4.0Long2026-08-24 14:00:002026-08-24 16:00:0018.00340.6400337.1600-63.86exit_signal
5.0Long2026-10-12 14:30:002026-10-12 16:30:0021.00291.4650290.6400-18.55exit_signal
6.0Long2026-10-12 17:00:002026-10-12 17:30:0021.00291.2100291.0750-4.06exit_signal
7.0Long2026-10-12 18:00:002026-10-12 18:30:0021.00291.5000291.0200-11.30exit_signal
8.0Long2026-10-12 19:00:002026-10-12 20:00:0021.00291.3000290.5800-16.34session_end
9.0Long2026-10-13 14:00:002026-10-13 20:00:0021.00292.2300293.910034.05session_end
10.0Long2026-10-14 16:30:002026-10-14 20:00:0021.00292.6250295.500059.14session_end