← All strategy tests
Historical simulationStocksDaily barsLong onlyOvernight allowed

COST: EMA crossover, daily (profile 1) - training

Selected from a random mix of saved backtests. Profitability and a favorable verdict were not required. Simulated historical strategy test for COST.US using daily bars from 2022-10-10 to 2025-10-09. Asset class: stocks. Indicators and functions used: CROSSED, EMA; Box 1 condition: [CROSSED(input_col=EMA(20), input_col2=EMA(50), direction=above)]; Box 2 condition: [CROSSED(input_col=EMA(20), input_col2=EMA(50), 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 ATR. Take profit: 3 R. Trailing stop: 3 ATR. Commission per side: 0.01 %. Slippage per fill: 0.01 points. Maximum holding period: 100 bars. Risk-setting ATR period: 14. Session: 09:30 to 16:00 (exchange time). Saved results. Trades: 6; Net P&L: 539.44043; Return: 2.157762%; Win rate: 50%. 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
COST.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 6 trades, which is not enough to judge the strategy. Test a longer period.

Net P&L
539.44
Return
2.16%
Trades
6
Win rate
50.0%
Profit factor
2.39
Maximum drawdown
-2.41%
Average trade
89.91
Average R
0.43R
Sharpe ratio
0.41
Commission paid
7.14
Chance a no-edge strategy does this well
24.4%
P&L without the 2 best trades
-247.90

Read before trusting the numbers

  • Only 6 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&L539.44539.44N/A
Return on starting equity2.16%N/AN/A
Profit factor2.392.39N/A
Average trade (expectancy)89.9189.91N/A
Average R per trade0.43R0.43RN/A
Total R2.57R2.57RN/A
Annualized return0.71%N/AN/A
Buy & hold return (same period)100.75%N/AN/A
Trades
Trades660
Win rate50.00%50.00%N/A
Average win309.25309.25N/A
Average loss-129.44-129.44N/A
Average win / average loss2.392.39N/A
Largest win604.68604.68N/A
Largest loss-196.41-196.41N/A
Most wins in a row33N/A
Most losses in a row33N/A
Average bars in trade15.0015.00N/A
Average time in trade20d20dN/A
Average adverse excursion (MAE)111.25111.25N/A
Average favorable excursion (MFE)370.28370.28N/A
Risk
Max drawdown-606.72N/AN/A
Max drawdown %-2.41%N/AN/A
Longest drawdown796dN/AN/A
Sharpe ratio (daily, annualized)0.41N/AN/A
Sortino ratio (daily, annualized)0.16N/AN/A
Calmar ratio0.30N/AN/A
Time in the market11.16%N/AN/A
Costs
Commission paid7.147.14N/A
Same-bar exits assumed stop-first0N/AN/A
Luck check
Chance a no-edge strategy does this well24%N/AN/A
Net P&L without the 2 best trades-247.90N/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=EMA(20), input_col2=EMA(50), direction=above)]

Exit / short entry

[CROSSED(input_col=EMA(20), input_col2=EMA(50), 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.00 ATR
Take profit
3.00 R
Trailing stop
3.00 ATR
Move stop to breakeven at R
Not set
Maximum bars in trade
100.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

6 trades in this snapshot. All times are UTC.

#SideEntryExitSizeEntry priceExit priceNet P&LExit reason
1.0Long2022-11-162022-12-0111.00521.3200508.2000-145.45trailing_stop
2.0Long2023-01-312023-02-0912.00503.2400499.4700-46.44trailing_stop
3.0Long2023-04-042023-04-0612.00496.5100480.2400-196.41stop_loss
4.0Long2023-05-302023-07-0712.00509.7950525.1200182.66trailing_stop
5.0Long2025-01-222025-02-066.00951.24001052.2200604.68take_profit
6.0Long2025-04-292025-06-096.00978.01001001.6100140.41trailing_stop