← All strategy tests
Historical simulationStocksDaily barsLong onlyOvernight allowed

UNH: EMA pullback with trend filter, daily (profile 2) - training

Selected from a random mix of saved backtests. Profitability and a favorable verdict were not required. Simulated historical strategy test for UNH.US using daily bars from 2022-10-10 to 2025-10-09. 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(200)]; 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. Risk-setting ATR period: 14. Session: 09:30 to 16:00 (exchange time). Saved results. Trades: 14; Net P&L: -1,876.944105; Return: -7.507776%; Win rate: 14.285714%. No saved robustness results are available for this run.

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
UNH.US
Timeframe
Daily bars
Test window
2022-10-10 – 2025-10-09
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 14 trades, which is not enough to judge the strategy. Test a longer period.

Net P&L
-1,876.94
Return
-7.51%
Trades
14
Win rate
14.3%
Profit factor
0.22
Maximum drawdown
-9.14%
Average trade
-134.07
Average R
-0.43R
Sharpe ratio
-1.00
Commission paid
16.12
Chance a no-edge strategy does this well
97.8%
P&L without the 2 best trades
-2,412.66

Read before trusting the numbers

  • Only 14 trades. That is too few to tell skill from luck; test a longer period or a faster timeframe.
  • 2 stop exits filled at the open because price gapped past the stop, so they closed beyond the stop price (worst -1.63R).

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-1,876.94-1,876.94N/A
Return on starting equity-7.51%N/AN/A
Profit factor0.220.22N/A
Average trade (expectancy)-134.07-134.07N/A
Average R per trade-0.43R-0.43RN/A
Total R-6.05R-6.05RN/A
Annualized return-2.57%N/AN/A
Buy & hold return (same period)-27.28%N/AN/A
Trades
Trades14140
Win rate14.29%14.29%N/A
Average win267.86267.86N/A
Average loss-201.05-201.05N/A
Average win / average loss1.331.33N/A
Largest win491.48491.48N/A
Largest loss-432.95-432.95N/A
Most wins in a row11N/A
Most losses in a row55N/A
Average bars in trade8.298.29N/A
Average time in trade11d 3h11d 3hN/A
Average adverse excursion (MAE)195.46195.46N/A
Average favorable excursion (MFE)162.51162.51N/A
Risk
Max drawdown-2,325.74N/AN/A
Max drawdown %-9.14%N/AN/A
Longest drawdown1074dN/AN/A
Sharpe ratio (daily, annualized)-1.00N/AN/A
Sortino ratio (daily, annualized)-0.40N/AN/A
Calmar ratio-0.28N/AN/A
Time in the market14.87%N/AN/A
Costs
Commission paid16.1216.12N/A
Same-bar exits assumed stop-first0N/AN/A
Luck check
Chance a no-edge strategy does this well98%N/AN/A
Net P&L without the 2 best trades-2,412.66N/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(200)]

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
No
Commission per side
0.01 %
Slippage per fill
0.01 points
Session
09:30 – 16:00 (exchange time)

Simulated trades

14 trades in this snapshot. All times are UTC.

#SideEntryExitSizeEntry priceExit priceNet P&LExit reason
1.0Long2022-10-172022-11-1112.00517.7500511.2300-79.47trailing_stop
2.0Long2022-11-212022-11-2211.00529.0200519.9300-101.14exit_signal
3.0Long2022-11-252022-11-3011.00534.0100529.7100-48.47exit_signal
4.0Long2022-12-012022-12-1611.00552.3700525.1400-300.72exit_signal
5.0Long2022-12-282022-12-2911.00535.0800532.5300-29.22exit_signal
6.0Long2023-09-212023-10-1312.00494.2000535.2600491.48take_profit
7.0Long2023-12-012023-12-1511.00550.4300529.9900-226.03exit_signal
8.0Long2024-01-032024-01-1211.00543.0500518.8500-267.37stop_loss
9.0Long2024-02-082024-02-2811.00520.6400495.4300-278.43exit_signal
10.0Long2024-09-302024-10-0810.00583.5100588.050044.23exit_signal
11.0Long2024-10-102024-10-1510.00595.1900552.0100-432.95stop_loss
12.0Long2024-11-072024-11-209.00598.7000582.7000-145.06exit_signal
13.0Long2024-11-212024-12-069.00600.0100582.0950-162.30exit_signal
14.0Long2025-01-142025-01-1710.00539.6550505.6100-341.50exit_signal