OPEN-SOURCE SCRIPT
Updated

STRAT - MTF Dashboard + FTFC + Reversals v2.7

2 654
# STRAT Indicator - Complete Description

## Overview
A comprehensive multi-timeframe STRAT trading system indicator that combines market structure analysis, flip levels, Full Timeframe Continuity (FTFC), and reversal pattern detection across 12 timeframes.

## Core Features

### 1. **Multi-Timeframe STRAT Dashboard**
- Displays STRAT combos (1, 2u, 2d, 3) across 12 timeframes: 1m, 5m, 15m, 30m, 1H, 4H, 12H, Daily, Weekly, Monthly, Quarterly, Yearly
- Color-coded directional bias (green/red/doji)
- Inside bars (●) and Outside bars (●) highlighted
- Current timeframe marked with ★

### 2. **HTF Flip Levels with Smart Grouping**
- Displays higher timeframe (HTF) flip levels (open prices) as labels on the right side
- Automatically groups multiple timeframes at the same price level (e.g., "★ 1H/4H/D")
- Current timeframe flip level always displayed with ★ marker
- Color-coded: Green (above price) / Red (below price)

### 3. **Full Timeframe Continuity (FTFC)**
- User-selectable 4 timeframes for FTFC analysis (default: D, W, M, Q)
- Green line: FTFC Up (highest open of 4 timeframes)
- Red line: FTFC Down (lowest open of 4 timeframes)
- Identifies when price is above/below all 4 timeframe opens

### 4. **Hammer & Shooting Star Detection**
- **Hammer Pattern**: Long lower wick (≥2x body), small upper wick, signals potential bottom reversal
- **Shooting Star Pattern**: Long upper wick (≥2x body), small lower wick, signals potential top reversal
- Scans last 100 bars (adjustable) and marks ALL historical patterns
- Chart markers: 🔨 (Hammer) below bars, 🔻 (Shooting Star) above bars
- Dashboard column shows reversal patterns for each timeframe
- Adjustable wick-to-body ratio sensitivity (1.5 to 5.0)

### 5. **Debug Tables**
- **FTFC Debug**: Shows close vs. 4 timeframe opens, confirms all-green/all-red conditions
- **Reversal Debug**: Real-time analysis of current bar - body size, wick measurements, ratios, and pattern qualification

## Settings

### Display Settings
- Dashboard position (9 options: top-left to bottom-right)
- Dashboard text size (tiny to huge)
- Label offset and text size
- Toggle individual features on/off

### FTFC Settings
- Select 4 custom timeframes for continuity analysis
- Default: Daily, Weekly, Monthly, Quarterly

### Reversal Settings
- **Wick to Body Ratio**: Sensitivity for pattern detection (default 2.0)
- **Lookback Bars**: How many historical bars to scan (default 100, max 500)
- Show/hide reversal markers on chart
- Show/hide reversal debug table

## Use Cases

1. **Momentum Trading**: Identify STRAT setups (2-2, 2-1-2 reversals, 3-bar plays) across multiple timeframes
2. **Swing Trading**: Use HTF flip levels as support/resistance and FTFC for trend confirmation
3. **Reversal Trading**: Catch hammer/shooting star patterns at key levels for counter-trend entries
4. **Multi-Timeframe Analysis**: Confirm alignment across timeframes before entering trades

## How to Use

### For STRAT Traders
- Look for 2-1-2 reversal setups in the dashboard
- Watch for inside bars (●) at HTF flip levels for breakout trades
- Use outside bars (●) to identify potential volatility expansion

### For Reversal Traders
- 🔨 Hammers after downtrends = potential long entries
- 🔻 Shooting stars after uptrends = potential short entries
- Combine with HTF flip levels for high-probability setups

### For Trend Followers
- FTFC green line above = bullish structure
- FTFC red line below = bearish structure
- Enter when price breaks and holds above/below FTFC levels

## Visual Elements

- **Green Labels**: HTF flip levels above current price (resistance)
- **Red Labels**: HTF flip levels below current price (support)
- **Lime Line**: FTFC Up (highest timeframe open)
- **Red Line**: FTFC Down (lowest timeframe open)
- **🔨 Icon**: Hammer pattern (potential reversal up)
- **🔻 Icon**: Shooting Star pattern (potential reversal down)
- **★ Symbol**: Current timeframe or multiple timeframes grouped

## Performance Notes
This indicator performs 12 multi-timeframe security calls and may take 15-30 seconds to calculate on initial load. This is normal for comprehensive MTF analysis.

## Version
v2.7 - Simplified reversal detection, current TF labeling, optimized performance

---

**Perfect for**: STRAT traders, multi-timeframe analysts, reversal pattern traders, swing traders looking for high-probability setups with confluence across timeframes.



snapshot

Release Notes
# STRAT Indicator - Complete Description

## Overview
A comprehensive multi-timeframe STRAT trading system indicator that combines market structure analysis, flip levels, Full Timeframe Continuity (FTFC), and reversal pattern detection across 12 timeframes.

## Core Features

### 1. **Multi-Timeframe STRAT Dashboard**
- Displays STRAT combos (1, 2u, 2d, 3) across 12 timeframes: 1m, 5m, 15m, 30m, 1H, 4H, 12H, Daily, Weekly, Monthly, Quarterly, Yearly
- Color-coded directional bias (green/red/doji)
- Inside bars (●) and Outside bars (●) highlighted
- Current timeframe marked with ★

### 2. **HTF Flip Levels with Smart Grouping**
- Displays higher timeframe (HTF) flip levels (open prices) as labels on the right side
- Automatically groups multiple timeframes at the same price level (e.g., "★ 1H/4H/D")
- Current timeframe flip level always displayed with ★ marker
- Color-coded: Green (above price) / Red (below price)

### 3. **Full Timeframe Continuity (FTFC)**
- User-selectable 4 timeframes for FTFC analysis (default: D, W, M, Q)
- Green line: FTFC Up (highest open of 4 timeframes)
- Red line: FTFC Down (lowest open of 4 timeframes)
- Identifies when price is above/below all 4 timeframe opens

### 4. **Hammer & Shooting Star Detection**
- **Hammer Pattern**: Long lower wick (≥2x body), small upper wick, signals potential bottom reversal
- **Shooting Star Pattern**: Long upper wick (≥2x body), small lower wick, signals potential top reversal
- Scans last 100 bars (adjustable) and marks ALL historical patterns
- Chart markers: 🔨 (Hammer) below bars, 🔻 (Shooting Star) above bars
- Dashboard column shows reversal patterns for each timeframe
- Adjustable wick-to-body ratio sensitivity (1.5 to 5.0)

### 5. **Debug Tables**
- **FTFC Debug**: Shows close vs. 4 timeframe opens, confirms all-green/all-red conditions
- **Reversal Debug**: Real-time analysis of current bar - body size, wick measurements, ratios, and pattern qualification

## Settings

### Display Settings
- Dashboard position (9 options: top-left to bottom-right)
- Dashboard text size (tiny to huge)
- Label offset and text size
- Toggle individual features on/off

### FTFC Settings
- Select 4 custom timeframes for continuity analysis
- Default: Daily, Weekly, Monthly, Quarterly

### Reversal Settings
- **Wick to Body Ratio**: Sensitivity for pattern detection (default 2.0)
- **Lookback Bars**: How many historical bars to scan (default 100, max 500)
- Show/hide reversal markers on chart
- Show/hide reversal debug table

## Use Cases

1. **Momentum Trading**: Identify STRAT setups (2-2, 2-1-2 reversals, 3-bar plays) across multiple timeframes
2. **Swing Trading**: Use HTF flip levels as support/resistance and FTFC for trend confirmation
3. **Reversal Trading**: Catch hammer/shooting star patterns at key levels for counter-trend entries
4. **Multi-Timeframe Analysis**: Confirm alignment across timeframes before entering trades

## How to Use

### For STRAT Traders
- Look for 2-1-2 reversal setups in the dashboard
- Watch for inside bars (●) at HTF flip levels for breakout trades
- Use outside bars (●) to identify potential volatility expansion

### For Reversal Traders
- 🔨 Hammers after downtrends = potential long entries
- 🔻 Shooting stars after uptrends = potential short entries
- Combine with HTF flip levels for high-probability setups

### For Trend Followers
- FTFC green line above = bullish structure
- FTFC red line below = bearish structure
- Enter when price breaks and holds above/below FTFC levels

## Visual Elements

- **Green Labels**: HTF flip levels above current price (resistance)
- **Red Labels**: HTF flip levels below current price (support)
- **Lime Line**: FTFC Up (highest timeframe open)
- **Red Line**: FTFC Down (lowest timeframe open)
- **🔨 Icon**: Hammer pattern (potential reversal up)
- **🔻 Icon**: Shooting Star pattern (potential reversal down)
- **★ Symbol**: Current timeframe or multiple timeframes grouped

## Performance Notes
This indicator performs 12 multi-timeframe security calls and may take 15-30 seconds to calculate on initial load. This is normal for comprehensive MTF analysis.

## Version
v2.7 - Simplified reversal detection, current TF labeling, optimized performance

---

**Perfect for**: STRAT traders, multi-timeframe analysts, reversal pattern traders, swing traders looking for high-probability setups with confluence across timeframes.
Release Notes
# STRAT MTF Dashboard - Complete Trading System

## What It Does
A comprehensive multi-timeframe analysis tool combining **Rob Smith's STRAT methodology**, **FTFC (Full TimeFrame Continuity)**, and **reversal pattern detection** - all displayed in a single dashboard for instant market structure analysis.

## Core Components

### 1. STRAT Bar Classification (3 Bar Patterns)
Analyzes price action using Rob Smith's STRAT system:
- **Inside Bar (1)**: Price consolidation - high ≤ prev high AND low ≥ prev low
- **Directional Up (2u)**: Bullish momentum - high > prev high AND low ≥ prev low
- **Directional Down (2d)**: Bearish momentum - low < prev low AND high ≤ prev high
- **Outside Bar (3)**: Expansion/volatility - high > prev high AND low < prev low

Shows 3-bar sequences like "2u-1-3" to identify actionable setups.

### 2. FTFC (Full TimeFrame Continuity)
Tracks trend alignment across 4 user-selected timeframes:
- **Green dot**: Price above ALL 4 FTFC opens (strong bullish alignment)
- **Red dot**: Price below ALL 4 FTFC opens (strong bearish alignment)
- **Gray dot**: Mixed (price between FTFC levels)
- **Visual lines**: Displays max/min FTFC levels on chart

### 3. Reversal Pattern Detection
Identifies high-probability turning points:
- **🔨 Hammer**: Long lower wick (bullish reversal) - scans last 100 bars
- **🔻 Shooting Star**: Long upper wick (bearish reversal) - scans last 100 bars
- Configurable wick-to-body ratio (default 2.0x)

### 4. HTF Flip Levels
Shows higher timeframe period opens as support/resistance:
- Groups multiple timeframes at same price (e.g., "★ 1H/4H/D - 2650.50")
- Always displays current timeframe with ★ marker
- Color coded: Green above price, Red below

### 5. Multi-Timeframe Dashboard
Real-time table showing 12 timeframes simultaneously:
- **1m, 5m, 15m, 30m, 1H, 4H, 12H, D, W, M, Q, Y**
- Columns: Timeframe | STRAT Combo | Bar Type Indicator | FTFC Status | Reversal
- Color coding: Green (bullish), Red (bearish), Orange (inside), Purple (outside)
- ★ highlights your current viewing timeframe

## Key Features

### Performance Optimized
- Only **16 `request.security()` calls** (works on free TradingView plans)
- Bundled data retrieval for maximum efficiency
- Real-time updates with `lookahead_off` (shows forming bars, not completed)

### Fully Customizable
- **FTFC Timeframes**: Choose any 4 timeframes (default: D/W/M/Q)
- **Reversal Settings**: Adjust wick ratio (1.5-5.0x) and lookback period (10-500 bars)
- **Display Options**: Dashboard position, text size, label offset
- **Toggle Features**: HTF labels, FTFC lines, table, reversals, debug modes

### Debug Tools
- **FTFC Debug Table**: Shows close vs all 4 FTFC opens with color indicators
- **Reversal Debug Table**: Real-time body/wick measurements and ratio calculations

## Trading Application

Perfect for:
- **Scalpers**: Identify STRAT setups (2-1-2 reversals, 3-2-2 continuations) across multiple timeframes
- **Swing Traders**: Confirm FTFC alignment before entries (all green/red dots)
- **Multi-Timeframe Analysis**: See entire market structure at a glance
- **Reversal Trading**: Spot hammers/shooting stars on key timeframes

## Example Setup (Your Gold Trading)
- **Current TF**: 5m chart for execution
- **FTFC**: D/W/M/Q for trend bias
- **Dashboard**: Shows 5m forming "3-2u-2u green" with green FTFC dot = bullish alignment
- **Reversals**: 1H showing shooting star = potential resistance
- **Decision**: Strong multi-timeframe bullish setup for 50-60 pip target during 13:00-17:00 Istanbul hours

This indicator eliminates the need to switch between multiple charts - everything you need for STRAT + FTFC analysis is in one place, updating in real-time.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.