Walk-Forward AnalysisFold Inspector

Fold Inspector

The Fold Inspector occupies the bottom of the right column and provides a complete statistical breakdown for any selected fold, split between the in-sample (IS) and out-of-sample (OOS) windows.

Opening the Inspector

The Fold Inspector is always visible in the right column once a WFA run has completed and a fold is selected. Select a fold by:

  • Clicking a row in the Fold Table (top of center column)
  • Clicking on a bar in the IS vs OOS bar chart
  • Clicking on a fold boundary marker in the Equity Curve chart
  • Clicking on a fold row in the Gantt chart
  • Clicking a dot in the Parameter Stability chart
Header bar shows Fold number (1-based) and the fold's per-fold WFE %. A close (×) button dismisses the inspector and deselects the fold.

IS / OOS Tabs

The inspector has two tabs at the top of its body:

OOS (default)

Shows statistics from the out-of-sample (test) window. This reflects how the best IS parameters actually performed on unseen data. The bar range label shows testRange[0]–testRange[1].

This is the more important tab — OOS results determine strategy validity.

IS (In-Sample)

Shows statistics from the in-sample (training) window with the best parameters. The bar range label shows trainRange[0]–trainRange[1].

Use to compare IS vs OOS degradation manually.
Best Params row:Both tabs display the best parameters found during IS optimisation (they are identical — only the stat window differs). The label bestParamsLabel is shown below the tab bar.

Statistic Sections

The 30+ statistics are grouped into 8 colour-coded sections. Each section has a header with a distinct accent colour. Values are formatted and colour-coded by sign/context.

Capital
Stat KeyDisplay LabelFormat
initialCapitalInitial CapitalCurrency
finalEquityFinal EquityCurrency
totalReturnTotal ReturnCurrency
totalReturnPctReturn %Percent
Trades
Stat KeyDisplay LabelFormat
totalTradesTotal TradesInteger
winsWinsInteger
lossesLossesInteger
winRateWin RatePercent
Profit & Loss
Stat KeyDisplay LabelFormat
grossProfitGross ProfitCurrency (green)
grossLossGross LossCurrency (red)
netPnLNet P&LCurrency
profitFactorProfit Factor∞ if infinite, else 2 decimals
Averages
Stat KeyDisplay LabelFormat
avgWinAvg WinCurrency
avgLossAvg LossCurrency
avgPnLAvg P&LCurrency
expectancyExpectancyCurrency
Extremes
Stat KeyDisplay LabelFormat
largestWinLargest WinCurrency
largestLossLargest LossCurrency
bestTradeBest TradeCurrency
worstTradeWorst TradeCurrency
Duration (bars)
Stat KeyDisplay LabelFormat
avgHoldingBarsAverage Hold1 decimal
maxHoldingBarsMax HoldInteger
minHoldingBarsMin HoldInteger
Streaks
Stat KeyDisplay LabelFormat
maxConsecutiveWinsMax Consec. WinsInteger
maxConsecutiveLossesMax Consec. LossesInteger
Drawdown
Stat KeyDisplay LabelFormat
maxDrawdownMax DrawdownCurrency
maxDrawdownPctMax Drawdown %Percent

Value Color Coding

Stats in the P&L category group (netPnL, totalReturn, bestTrade, worstTrade, grossProfit, grossLoss, avgPnL, expectancy) use color coding:

Green
Positive P&L values. grossProfit is always green regardless of sign.
Red
Negative P&L values. grossLoss is always red regardless of sign.
Neutral
All non-P&L stats (trade counts, durations, streaks, drawdown percentages) use the default text color.

Empty & Null States

No fold selected
The right column shows an empty WFA Statistics panel (no stats). The Fold Inspector is hidden until a fold is selected.
Null stats
If a fold's inSampleStats or outOfSampleStats is null (backtest produced no trades), the tab shows empty stat values.