← All strategy tests
Historical simulationStocksDaily barsLong onlyOvernight allowed

WMT: 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 WMT.US using daily bars from 2022-10-11 to 2025-10-10. 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: 33; Net P&L: 954.155984; Return: 3.816624%; Win rate: 33.333333%. 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
WMT.US
Timeframe
Daily bars
Test window
2022-10-11 – 2025-10-10
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

Inconclusive

Up $954.16, but that could easily be luck: a strategy with no real edge and trades this variable would do this well about 21% of the time, and without its 2 best trades it loses $33.51. Test a longer period before trusting it.

Net P&L
954.16
Return
3.82%
Trades
33
Win rate
33.3%
Profit factor
1.51
Maximum drawdown
-2.63%
Average trade
28.91
Average R
0.10R
Sharpe ratio
0.48
Commission paid
41.26
Chance a no-edge strategy does this well
21.2%
P&L without the 2 best trades
-33.51

Read before trusting the numbers

  • 1 stop exit filled at the open because price gapped past the stop, so it closed beyond the stop price (worst -0.49R).

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&L954.16954.16N/A
Return on starting equity3.82%N/AN/A
Profit factor1.511.51N/A
Average trade (expectancy)28.9128.91N/A
Average R per trade0.10R0.10RN/A
Total R3.33R3.33RN/A
Annualized return1.26%N/AN/A
Buy & hold return (same period)-21.37%N/AN/A
Trades
Trades33330
Win rate33.33%33.33%N/A
Average win256.76256.76N/A
Average loss-85.01-85.01N/A
Average win / average loss3.023.02N/A
Largest win507.33507.33N/A
Largest loss-244.47-244.47N/A
Most wins in a row22N/A
Most losses in a row44N/A
Average bars in trade8.248.24N/A
Average time in trade11d 10h11d 10hN/A
Average adverse excursion (MAE)83.2883.28N/A
Average favorable excursion (MFE)181.76181.76N/A
Risk
Max drawdown-662.45N/AN/A
Max drawdown %-2.63%N/AN/A
Longest drawdown571dN/AN/A
Sharpe ratio (daily, annualized)0.48N/AN/A
Sortino ratio (daily, annualized)0.37N/AN/A
Calmar ratio0.48N/AN/A
Time in the market35.33%N/AN/A
Costs
Commission paid41.2641.26N/A
Same-bar exits assumed stop-first0N/AN/A
Luck check
Chance a no-edge strategy does this well21%N/AN/A
Net P&L without the 2 best trades-33.51N/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

33 trades in this snapshot. All times are UTC.

#SideEntryExitSizeEntry priceExit priceNet P&LExit reason
1.0Long2022-11-162022-12-0942.00147.8900147.4600-19.30exit_signal
2.0Long2023-01-092023-01-1342.00146.3300145.5200-35.25exit_signal
3.0Long2023-01-172023-01-1842.00145.3000144.1900-47.84exit_signal
4.0Long2023-01-302023-01-3143.00142.1300142.31006.52exit_signal
5.0Long2023-02-012023-02-0643.00143.6700141.8100-81.21exit_signal
6.0Long2023-02-132023-02-2443.00144.7200140.8300-168.50exit_signal
7.0Long2023-03-212023-03-2343.00141.4000140.1900-53.24exit_signal
8.0Long2023-03-242023-04-2143.00141.0200152.2200480.34take_profit
9.0Long2023-05-192023-05-2241.00151.4100149.6900-71.75exit_signal
10.0Long2023-06-052023-07-1042.00149.3800154.5500215.86exit_signal
11.0Long2023-07-112023-07-1240.00154.7800155.300019.56exit_signal
12.0Long2023-07-132023-07-1440.00155.4400154.1100-54.44exit_signal
13.0Long2023-07-182023-07-1940.00154.6800154.79003.16exit_signal
14.0Long2023-07-212023-08-1839.00157.9100155.3000-103.01exit_signal
15.0Long2023-08-292023-09-2239.00159.0100162.2200123.94exit_signal
16.0Long2023-09-262023-09-2838.00162.9500161.9900-37.71exit_signal
17.0Long2023-09-292023-10-0238.00163.0400159.4800-136.51exit_signal
18.0Long2023-10-172023-10-2338.00160.7500158.7200-78.35exit_signal
19.0Long2023-10-242023-11-1638.00161.4100158.7400-102.68trailing_stop
20.0Long2023-12-262024-02-0139.00156.6600167.8800436.31take_profit
21.0Long2024-12-262024-12-3068.0092.550090.7200-125.69exit_signal
22.0Long2025-01-102025-01-1468.0092.500091.8500-45.45exit_signal
23.0Long2025-01-212025-02-0468.0092.490099.9700507.33take_profit
24.0Long2025-03-032025-03-0464.0097.990095.7500-144.60exit_signal
25.0Long2025-04-022025-04-0471.0088.210085.6300-184.41exit_signal