Skip to main content
Print

Higher Timeframe (HTF) Configuration

The Higher Timeframe (HTF) functionality is one of the most powerful features of the BWT Precision AutoTrader. It allows the strategy to reference a higher timeframe chart (the “Anchor Chart”) for trend filtering and exit signals, implementing true multi-timeframe analysis.


Understanding Multi-Timeframe Analysis

Concept

Multi-timeframe analysis is a professional trading technique where you:

  1. Higher Timeframe (HTF/Anchor Chart): Determine the overall trend direction
  2. Lower Timeframe (Primary Chart): Execute trades in the direction of the HTF trend

Example

  • Primary Chart: 5-minute bars (where trades execute)
  • Anchor Chart: 60-minute bars (determines trend filter)
  • Logic: Only take long trades on the 5-min chart when the 60-min chart is also bullish

This dramatically improves win rate by ensuring you trade WITH the larger trend, not against it.


Group: 300 – HTF Data Series

These settings define the characteristics of the Higher Timeframe (Anchor) chart that will be used for filtering and/or exits.

001 – Bars Period Type

Type: Dropdown
Options: Minute, Second, Tick, Volume, Range, Day, Week, Month
Default: Minute
Description: The bar type for the HTF/Anchor chart.

Most Common: Minute-based bars for intraday trading.

Examples:

  • Primary: 5-minute → HTF: Minute
  • Primary: 1-minute → HTF: Minute
  • Primary: Tick → HTF: Minute or Volume

002 – Value

Type: Integer
Default: 60
Description: The period value for the HTF bars.

Examples:

  • For 60-minute bars: Set Value = 60
  • For 15-minute bars: Set Value = 15
  • For Daily bars: Set Bars Period Type = Day, Value = 1

Common HTF Setups:

  • 5-min primary → 60-min HTF (12:1 ratio)
  • 1-min primary → 15-min HTF (15:1 ratio)
  • 3-min primary → 30-min HTF (10:1 ratio)

003 – Value2

Type: Integer
Default: 5
Description: Secondary value for certain bar types (Renko, Line Break, etc.). Not used for standard Minute/Second bars.

When to Configure: Only relevant for specialized bar types. Leave at default for standard Minute/Second bars.


004 – Base Bars Period Type

Type: Dropdown
Default: Minute
Description: Base bar type for certain chart types (Range, Renko, etc.).

When to Configure: Only needed for specialized bar types. Leave at default for standard setups.


005 – Base Bars Period Value

Type: Integer
Default: 5
Description: Base period value for specialized bar types.


006 – Reversal Type

Type: Dropdown
Default: Tick
Description: Reversal type for Renko bars.

Note: Only relevant if using Renko bars for HTF. Most users can ignore this setting.


007 – Price Type

Type: Dropdown
Default: Close
Description: Price type for Point & Figure charts.

Note: Only relevant if using Point & Figure bars for HTF.


008 – Delta Type

Type: Dropdown
Default: BidAsk
Description: Delta type for volumetric bar types.

Note: Only relevant if using volumetric bars for HTF.


Group: 301 – Precision Trend HTF Filter/Exit

These settings configure the Precision Trend indicator specifically for the HTF/Anchor chart. This indicator can be used for:

  1. Filtering: Via the “Precision Trend Filter HTF” (Group 100, Parameter 004)
  2. Exits: Via the “Precision Trend Exit” when set to use HTF

001 – Sensitivity (Multiplier)

Type: Decimal
Range: 1.0 to 6.0
Default: 1.4
Description: Sensitivity of the HTF Precision Trend indicator. Higher values = less sensitive = fewer trend changes.

Optimization Tips:

  • Lower (1.0-1.8): More responsive, catches trends earlier but may have more false signals
  • Medium (1.8-2.5): Balanced approach
  • Higher (2.5-6.0): Very stable, only major trends, fewer trades

Recommended Starting Point: 1.4 (default) – then adjust based on backtesting


002 – ATR Average Period

Type: Integer
Default: 14
Description: ATR lookback period for the HTF Precision Trend calculation.

Common Values:

  • 10: Shorter, more reactive
  • 14: Standard (recommended)
  • 20: Longer, more stable

003 – Smoothing Period

Type: Integer
Default: 1
Description: Smoothing period for the HTF Precision Trend. Set to 1 for no smoothing.

When to Increase: If HTF trend is too choppy or changing too frequently, increase to 2-3 for more stability.


004 – Moving Average Type

Type: Integer
Options:

  • 0: SMA (Simple Moving Average)
  • 1: PrecisionMA
  • 2: SSMA (Smoothed Simple Moving Average)
  • 3: VWMA (Volume Weighted Moving Average)
  • 4: WMA (Weighted Moving Average)

Default: 0 (SMA)
Description: Type of moving average used in the HTF Precision Trend smoothing algorithm.


005 – Background Color (Enable/Disable)

Type: Checkbox
Default: False
Description: Enable background color on the primary chart showing the HTF trend direction.

When Enabled: Your primary chart background will change color based on HTF trend:

  • Bullish HTF → Green/Up color background
  • Bearish HTF → Red/Down color background

Benefit: Provides instant visual confirmation of HTF trend without having to look at a separate chart.


006 – Background Long Color

Type: Color Picker
Default: Dark Sea Green
Description: Background color when HTF trend is bullish.


007 – Background Short Color

Type: Color Picker
Default: Misty Rose
Description: Background color when HTF trend is bearish.


008 – Background Opacity

Type: Decimal (0.0 to 1.0)
Default: 0.5 (50%)
Description: Opacity/transparency of the HTF background color.

Settings:

  • 0.0: Completely transparent (invisible)
  • 0.5: 50% transparent (recommended – visible but not overwhelming)
  • 1.0: Fully opaque (solid color)

HTF Setup Examples

Example 1: ES Day Trading (Conservative)

Goal: Day trade ES with strong trend confirmation

Setup:

  • Primary Chart: 5-minute bars
  • Anchor Chart Settings:
  • Bars Period Type: Minute
  • Value: 60 (60-minute bars)
  • All other defaults
  • HTF Precision Trend:
  • Sensitivity: 1.8 (more conservative)
  • ATR Period: 14
  • Smoothing: 1
  • Filters:
  • Precision Trend Filter HTF: 1 (Enabled)
  • Background Color: Enabled with 40% opacity

Result: Only trades 5-min signals when 60-min trend agrees. Very high win rate but fewer trades.


Example 2: NQ Scalping (Moderate)

Goal: Quick scalps on NQ with HTF bias

Setup:

  • Primary Chart: 1-minute bars
  • Anchor Chart Settings:
  • Bars Period Type: Minute
  • Value: 15 (15-minute bars)
  • All other defaults
  • HTF Precision Trend:
  • Sensitivity: 1.4 (default)
  • ATR Period: 14
  • Smoothing: 2 (slightly smoothed)
  • Filters:
  • Precision Trend Filter HTF: 1 (Enabled)
  • Background Color: Disabled (cleaner for scalping)

Result: More frequent trades than Example 1, still filtered by 15-min trend.


Example 3: CL (Crude Oil) – Aggressive

Goal: Catch strong momentum moves

Setup:

  • Primary Chart: 3-minute bars
  • Anchor Chart Settings:
  • Bars Period Type: Minute
  • Value: 30 (30-minute bars)
  • All other defaults
  • HTF Precision Trend:
  • Sensitivity: 1.2 (very responsive)
  • ATR Period: 10
  • Smoothing: 1
  • Filters:
  • Precision Trend Filter HTF: 1 (Enabled)
  • Background Color: Enabled

Result: Aggressive setup for volatile instrument, catches strong directional moves.


HTF Usage in Strategy

The HTF can be utilized in two main ways within the strategy:

1. As an Entry Filter

Enabled via: Group 100, Parameter 004 – “Precision Trend Filter HTF”

When this filter is enabled (set to 1):

  • Long trades only allowed when HTF Precision Trend is bullish
  • Short trades only allowed when HTF Precision Trend is bearish
  • Prevents counter-HTF trend trading

Use Case: Most common HTF usage. Dramatically improves win rate.


2. As an Exit Signal

Enabled via: Group 400, Exit Mode settings

HTF can also be used to exit trades when the HTF trend reverses:

  • In a long position, exit when HTF trend turns bearish
  • In a short position, exit when HTF trend turns bullish

Use Case: Automatic trend-following exits based on higher timeframe.


Best Practices for HTF Configuration

Choosing HTF Timeframe

General Rule: Use 5-15x the primary timeframe

Examples:

  • 1-min primary → 10-15 min HTF
  • 3-min primary → 30-60 min HTF
  • 5-min primary → 60 min HTF
  • 15-min primary → 240 min (4-hour) HTF

Why: Too small a ratio (2-3x) doesn’t provide enough trend context. Too large (30x+) may be too slow.


Sensitivity Settings

Start Conservative, Then Loosen:

  1. Begin with higher sensitivity (1.8-2.0) for stable HTF trend
  2. Backtest and note trade frequency
  3. If too few trades, lower sensitivity to 1.4-1.6
  4. Find the sweet spot where HTF catches major trends without excessive chop

Background Color Usage

Recommendation for New Users: Enable background color

Benefits:

  • Instant visual confirmation of HTF trend
  • Helps understand why some signals don’t trade (wrong HTF trend)
  • Educational tool during learning phase

Advanced Users: May prefer cleaner chart without background color once familiar with the system.


HTF with Multiple Filters

HTF filter works excellently in combination with other filters:

Powerful Combination Example:

  • Precision Trend Filter HTF (1) ← Ensures HTF trend agreement
  • MA1 Filter (200 SMA) ← Ensures major trend agreement on primary chart
  • ADX Filter (25+) ← Ensures sufficient trend strength

This “triple filter” produces very high probability setups.


Troubleshooting HTF

“No Trades Being Generated”

Possible Causes:

  1. HTF trend too stable – never changing direction
  2. HTF sensitivity too high
  3. Primary chart signals always against HTF trend

Solutions:

  • Lower HTF sensitivity (try 1.2-1.4)
  • Check HTF chart visually – is it trending reasonably?
  • Verify your HTF timeframe isn’t too large

“HTF Background Color Not Showing”

Checklist:

  1. Is “Background Color” checkbox enabled in Group 301?
  2. Is background opacity > 0?
  3. Is HTF actually loading? (Check NinjaTrader Log for data series errors)

“HTF Trend Changing Too Frequently”

Solutions:

  1. Increase sensitivity (try 2.0-2.5)
  2. Increase smoothing period (try 2-3)
  3. Consider using a larger HTF timeframe

Performance Considerations

Data Loading

When HTF filter is enabled, NinjaTrader loads an additional data series (the Anchor Chart). This can:

  • Slightly increase strategy loading time
  • Use more memory
  • Require more historical data

Impact: Minimal on modern systems. Generally not a concern.


Backtesting with HTF

Important: When backtesting with HTF enabled, ensure you have sufficient historical data loaded for BOTH timeframes.

Example: If backtesting 30 days of 5-minute data with 60-minute HTF:

  • Load at least 30 days of 5-min data
  • NinjaTrader automatically loads corresponding 60-min data

Advanced HTF Concepts

HTF for Exits vs Filters

You can use HTF for BOTH filtering AND exits:

Setup:

  • Enable HTF Filter (Group 100) → Filters entries
  • Enable Precision Trend Exit with HTF (Group 400) → Exits trades

Benefit: Enter with HTF trend, exit when HTF trend reverses. Pure trend-following approach.


Multiple Timeframe Stack

Advanced traders can create a “timeframe stack”:

  • Daily: Major trend
  • 60-min (HTF): Trade direction
  • 5-min (Primary): Entry timing

Implementation: Use HTF for trend + Daily ORB Filter for daily bias.


Next Section: Signal-Based Exits Configuration →

Table of Contents