📊 Market Conditions
Overview
Market Conditions define when your strategy is allowed to trade and which market conditions must be present during testing.
Here, you can configure an optional custom volatility filter using the Volume-Over-Moving Average settings, and up to two custom trading sessions (with UTC offsets).
Volume Over MvgAvg
Filters trades to periods where at least one candle in your pattern has volume above a volume-weighted moving average. This helps filter out low-volatility zones and ensures your pattern occurs in a context of active price movement.
Settings
- MvgAvg Type: Simple Moving Average (SMA) or Exponential Moving Average (EMA).
- Length: number of bars used to compute the moving average of volume
- Multiplier: scales the moving average threshold.
(Use Multiplier = 1 to keep the raw moving average as the threshold. Increase it (e.g., 1.5–2.0) to demand stronger-than-usual volume).
Example
This helps avoid low-volatility zones and focuses backtests on active, high-participation market contexts.
Trading Sessions
You can define up to two trading sessions. If none is enabled, trades are allowed at any time.
When one or more sessions are enabled, a trade is valid only if the last candlestick of your setup occurs inside one of the enabled sessions.
Session
- Enable: turn on/off Session filtering.
- Session: set the HHMM–HHMM time window (e.g.,
0930–1600). - UTC: set the UTC offset (e.g.,
-4for New York).
To set a UTC+, enter a positive value (e.g. 2 for UTC+2). To set a UTC-, enter a negative value (e.g. -4 for UTC-4).
UTC Offset Examples
Time is based on the UTC offset (Universal Time Coordinated) :
- New York = UTC-4
- London = UTC+1
- Tokyo = UTC+9
- Sydney = UTC+10
Example
To see all available UTC offsets, click the clock at the bottom-right of your TradingView chart and open the 'Timezone' dropdown list.

