### Backtest Run Summary Metadata (metadata.csv) Source: https://tradingtune.com/backtests A one-line summary recorded for each optimization run, including run ID, optimization method, start time, cycle counts, and the best cycle's net profit percentage. This CSV format allows for re-importing and side-by-side comparison of runs. ```csv runId,optMethod,startedAt,totalCycles,cyclesCompleted,bestCycle,bestNetProfitPct 2026-05-20T14:02:11.880Z,bisection_then_tpe,2026-05-20T14:02:11.880Z,240,240,137,318.6 ``` -------------------------------- ### Example Momentum Strategy in Pine v5 Source: https://tradingtune.com/backtests An illustrative Pine v5 strategy skeleton used for optimization. It includes input parameters for moving average lengths and RSI, and defines entry and exit conditions based on crossovers and RSI thresholds. Commission and slippage are configured to reflect real trading costs. ```pine #@version=5 strategy("Example Momentum", overlay=true, commission_type=strategy.commission.percent, commission_value=0.05, slippage=2, default_qty_type=strategy.percent_of_equity, default_qty_value=10) fastLen = input.int(20, "Fast MA Length", minval=1) slowLen = input.int(100, "Slow MA Length", minval=1) rsiLen = input.int(14, "RSI Length", minval=1) fast = ta.sma(close, fastLen) slow = ta.sma(close, slowLen) rsi = ta.rsi(close, rsiLen) if ta.crossover(fast, slow) and rsi > 50 strategy.entry("Long", strategy.long) if ta.crossunder(fast, slow) strategy.close("Long") ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.