← All strategy tests
Historical simulationStocksDaily barsLong onlyOvernight allowed

ORCL: 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 ORCL.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: 37; Net P&L: 1,482.718541; Return: 5.930874%; Win rate: 35.135135%. 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
ORCL.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

Inconclusive

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

Net P&L
1,482.72
Return
5.93%
Trades
37
Win rate
35.1%
Profit factor
1.31
Maximum drawdown
-8.51%
Average trade
40.07
Average R
0.12R
Sharpe ratio
0.33
Commission paid
47.33
Chance a no-edge strategy does this well
29.1%
P&L without the 2 best trades
-1,290.88

Read before trusting the numbers

  • 3 stop exits filled at the open because price gapped past the stop, so they closed beyond the stop price (worst -1.95R).
  • A trade was still open at the end of the test and was closed at the last price.

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&L1,482.721,482.72N/A
Return on starting equity5.93%N/AN/A
Profit factor1.311.31N/A
Average trade (expectancy)40.0740.07N/A
Average R per trade0.12R0.12RN/A
Total R4.38R4.38RN/A
Annualized return1.94%N/AN/A
Buy & hold return (same period)366.84%N/AN/A
Trades
Trades37370
Win rate35.14%35.14%N/A
Average win479.76479.76N/A
Average loss-198.09-198.09N/A
Average win / average loss2.422.42N/A
Largest win1,979.601,979.60N/A
Largest loss-838.64-838.64N/A
Most wins in a row33N/A
Most losses in a row66N/A
Average bars in trade6.496.49N/A
Average time in trade8d 20h8d 20hN/A
Average adverse excursion (MAE)179.04179.04N/A
Average favorable excursion (MFE)298.04298.04N/A
Risk
Max drawdown-2,281.36N/AN/A
Max drawdown %-8.51%N/AN/A
Longest drawdown477dN/AN/A
Sharpe ratio (daily, annualized)0.33N/AN/A
Sortino ratio (daily, annualized)0.30N/AN/A
Calmar ratio0.23N/AN/A
Time in the market30.54%N/AN/A
Costs
Commission paid47.3347.33N/A
Same-bar exits assumed stop-first0N/AN/A
Luck check
Chance a no-edge strategy does this well29%N/AN/A
Net P&L without the 2 best trades-1,290.88N/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

37 trades in this snapshot. All times are UTC.

#SideEntryExitSizeEntry priceExit priceNet P&LExit reason
1.0Long2022-12-092022-12-1678.0079.660079.950021.38exit_signal
2.0Long2022-12-202022-12-2977.0080.510080.960033.41exit_signal
3.0Long2022-12-302023-01-2476.0081.140089.7800655.34take_profit
4.0Long2023-02-142023-02-1771.0089.010087.1900-130.47exit_signal
5.0Long2023-02-242023-03-0172.0087.320086.8900-32.21exit_signal
6.0Long2023-03-062023-03-1071.0089.420084.4000-357.65exit_signal
7.0Long2023-03-212023-04-2772.0087.500094.3000488.29exit_signal
8.0Long2023-04-282023-05-1867.0094.2800101.9800514.59take_profit
9.0Long2023-07-132023-07-2156.00117.1000116.4800-36.03exit_signal
10.0Long2023-07-242023-07-2755.00117.9500117.5400-23.85exit_signal
11.0Long2023-08-012023-08-0355.00116.9300115.2300-94.78exit_signal
12.0Long2023-08-152023-08-1756.00115.4600115.730013.83exit_signal
13.0Long2023-08-212023-08-2555.00116.9100112.9000-221.81exit_signal
14.0Long2023-08-282023-09-1255.00116.3800112.0700-238.31trailing_stop
15.0Long2023-10-102023-10-1157.00110.2200109.5000-42.29exit_signal
16.0Long2023-11-022023-12-0760.00106.4600112.4000355.09exit_signal
17.0Long2023-12-122023-12-1356.00102.7100101.0700-92.98exit_signal
18.0Long2024-03-042024-03-0656.00113.5900111.4900-118.86exit_signal
19.0Long2024-03-072024-03-1157.00113.9500111.6000-135.24exit_signal
20.0Long2024-03-122024-04-1055.00126.2700121.3400-272.51exit_signal
21.0Long2024-05-072024-05-0953.00118.0100117.3800-34.64exit_signal
22.0Long2024-05-152024-05-3052.00120.1800117.8100-124.48trailing_stop
23.0Long2024-06-062024-06-1251.00122.8900135.2300628.02take_profit
24.0Long2024-07-232024-07-2545.00141.3100140.1400-53.92exit_signal
25.0Long2024-08-012024-08-0246.00139.3000132.7600-302.09exit_signal