Before trusting a TradingView backtest, check when it assumes your orders fill. The setting is in the strategy declaration.
Code: Select all
//@version=5
strategy("Cross test", overlay=true, process_orders_on_close=false,
commission_type=strategy.commission.percent, commission_value=0.0,
slippage=0)
fast = ta.ema(close, 9)
slow = ta.ema(close, 21)
if ta.crossover(fast, slow)
strategy.entry("L", strategy.long)
Commission and slippage both default to zero. The slippage argument is in ticks, so on a 5 digit EURUSD feed 3 means 3 points, or 0.3 pips.
A test to run: use the same script with the setting off and on, and compare the net result and number of trades. If the profit mostly disappears when the fills move to the next open, the system is relying on the close price it couldn't get.
Then put your real costs into the declaration and run again.