Indicator · Pine Script v6 · On the chart

HTF / Power Play Levels

by mirkothepirko

This indicator detects High Tight Flag (HTF) and Power Play chart patterns on the price chart.

View on GitHub

GitHub stars2on the repository
Pine versionv6current
Lines of code100
Settings16inputs
LicenceCustom licence
Last update3 months ago10 Jul 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.

Source Code

The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.

Overview

HTF / Power Play Levels measures pole gain, flag consolidation duration, and depth, while checking for volume dry-up and moving average trend alignment. When a pattern qualifies, it plots breakout pivot levels, a swing-low stop-loss line, and R-multiple price targets directly on the chart. Key inputs configure pole gains, consolidation lengths, maximum depth, volume thresholds, and risk-reward ratios. It also optionally displays a 10-period EMA for pullback tracking.

Details

Published by

mirkothepirko on GitHub

Type

Indicator, Pine Script v6

Draws

On the price chart

Category

Breakout, Support & resistance, Volume, Moving averages

Markets

Stocks

Timeframes

Any timeframe

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
HTF: Mast min. Gewinn %float90.0poleMinGain
HTF: Flagge max. Tiefe %float25.0flagMaxDepth
HTF: Flagge min. Tageint5flagMinDays
HTF: Flagge max. Tageint25flagMaxDays
Mast max. Tageint40poleMaxDays
PP: min. Gewinn %float100.0ppMinGain
PP: Basis min. Tageint10ppBaseMinDays
PP: Basis max. Tageint30ppBaseMaxDays
max. % unter Pivotfloat8.0nearPivotMax
Volumen-Austrocknung <float0.65volDryup
Pivot Lookback (Bars)int20pivotLookback
Stop: Swing-Low der letzten N Barsint7swingLookback
Show all 16 settings
SettingTypeDefaultVariable
Risiko-Warnung ab %float5.0maxRiskPct
1. Ziel = x Risiko (risikofrei)float1.5targetR1
2. Ziel = x Risikofloat2.0targetR2
10 EMA anzeigen (Pullback/Trail)booltrueshow10ema
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.

Similar Pine Scripts

Midnight VWAP

by TradersPost
218 stars

The Midnight VWAP indicator calculates and overlays two distinct Volume Weighted Average Price (VWAP) lines on the price chart based on customizable session timeframes. It tracks an overnight or pre-market session alongside regular trading hours, resetting cal

Indicator v6 Moving averagesSessions & time
Updated 3 months ago · None stated GitHub repository of Midnight VWAP
13 stars

This script identifies and visualizes bullish and bearish order blocks on the price chart. It detects low-volatility consolidation ranges followed by breakout moves accompanied by high trading volume. Users can select between Simple, Relative, or Weighted volu

Indicator v6 SMC / ICT / price actionSupport & resistance
Updated 6 months ago · MIT GitHub repository of Advanced Order Blocks with Volume

This indicator identifies and plots price compression zones directly on the price chart using multi-module scoring. It measures ATR compression, ADX chop levels, boundary touches, volume dry-up, and historical pivot levels to identify consolidation areas and s

Indicator v6 BreakoutSupport & resistance
Updated yesterday · MIT GitHub repository of CoilForge Zones [WavesUnchained]

Nexural ORB

by JasonTeixeira
9 stars

This indicator plots opening range breakout levels across multiple timeframes, including five, fifteen, thirty, and sixty minutes, directly on the price chart. It also displays the session open and overnight high and low levels. The script calculates an openin

Indicator v6 BreakoutSessions & time
Updated 12 days ago · Custom licence GitHub repository of Nexural ORB

More indicators

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers