Order Flow RSI — Price / CVD / OIOrder Flow RSI blends three powerful market perspectives — Price , Cumulative Volume Delta (CVD) , and Open Interest (OI) — into one unified RSI-style oscillator.
It reveals momentum and imbalance across these data streams and highlights situations where participation, liquidity, and positioning disagree — moments that often precede reversals.
What it does
The indicator converts:
Price → RSI (classic momentum),
CVD → RSI (buy/sell pressure balance),
OI → RSI (position expansion/contraction)
…then plots all three RSIs together on the same 0–100 scale.
A fourth Consensus RSI (average of any two or all three) can optionally be shown to simplify the view.
Core logic
CVD engine – based on TradingView’s native volume-delta request.
Modes: Continuous (default, smooth line), Anchored (resets each session), Rolling window.
Open Interest – pulled automatically from the symbol’s “_OI” feed; aligns to chart timeframe for real-time flow.
RSI calculation – standard RSI applied to each data stream, optionally smoothed (SMA / EMA / RMA / WMA / VWMA).
Signals – optional background highlights when:
All three RSIs are overbought (red) or oversold (green), or
Any pair show opposite extremes (e.g., price overbought + OI oversold).
Consensus RSI – arithmetic mean of the selected RSIs, summarizing overall market tone.
Inputs overview
CVD settings: anchor period, lower-TF delta, mode, rolling length
RSI lengths: separate for price, CVD, OI
Smoothing: type + period applied to all RSIs at once
Consensus: choose which RSIs to average
Signals: enable/disable each combination; optional alerts
Levels: adjustable OB/MID/OS (default 70 / 50 / 30)
Visuals: fill between active RSIs, background highlights, level lines, colors in Style tab
How to read it
All 3 overbought (red): broad exhaustion → possible correction
All 3 oversold (green): broad depletion → possible bounce
Opposite pairs: divergence between price and participation
Price↑ but OI↓ (red) → weak rally, fading participation
Price↓ but CVD↑ (green) → hidden accumulation
Combine with structure and volume profile for confirmation.
Notes
Works best on assets with full CVD + OI data (futures, BTC, etc.).
Use Continuous CVD for smooth RSI, Anchored for session analysis.
Smoothing 2–5 EMA is a good starting point to reduce noise.
All styling (colors, line types, thickness) is adjustable in the Style tab.
Limitations & caveats
CVD requires accurate tick/volume/delta data from your data feed. Performance may differ across instruments.
OI availability varies by exchange / symbol. Where OI is absent, pairwise OI signals are not evaluated.
This indicator is a tool — it generates signals of interest, not guaranteed profitable trades. Backtest and combine with your risk rules.
Smoothing introduces lag; longer smoothing reduces noise but delays signals.
Order Flow RSI bridges traditional momentum analysis and order-flow context — giving a multi-dimensional view of when markets are truly stretched or quietly reloading.
Sometimes it works, sometimes it doesn't.
Indicadores y estrategias
FVG Buy/Sell [Multi-TF] by akshaykiriti1443The FVG Buy/Sell indicator is a precision trading tool designed for traders who operate with a clear directional bias. It excels at identifying high-probability entry points by detecting when price interacts with Fair Value Gaps (FVGs).
This indicator is built on a core principle: instead of predicting the market's direction, it provides the timing for an entry after you, the trader, have established your market bias. By automatically pinpointing bullish and bearish imbalances on both the current and a higher timeframe, it allows you to wait for the market to pull back to a key level and then provides a clear signal for execution.
The Core Strategy: Bias First, Entry Second
This indicator is most powerful when used as part of a two-step trading process. It is not a standalone signal generator; it is an entry confirmation tool.
Step 1: Determine Your Directional Bias
Before looking for any signals from this indicator, you must first have an opinion on the market's most likely direction. This bias should be derived from your primary analysis method, such as:
The Golden Rule:
If your bias is BULLISH, you will ONLY look for BUY signals generated by bullish (green/blue) FVGs. You will ignore all SELL signals.
If your bias is BEARISH, you will ONLY look for SELL signals generated by bearish (pink/orange) FVGs. You will ignore all BUY signals.
Step 2: Execute with the FVG Tap-In Signal
Once your bias is set, the indicator does the rest of the work. You simply wait for the price to pull back into an FVG zone that aligns with your bias and then wait for the confirmation arrow to appear.
A green up arrow confirms that price has tapped a bullish FVG and closed above it, signaling that support has held and it's a valid moment to enter a long position.
A red down arrow confirms that price has tapped a bearish FVG and closed below it, signaling that resistance has held and it's a valid moment to enter a short position.
How to Take a Trade (Step-by-Step Examples)
Example of a Bullish (Long) Trade Setup:
Establish Bias: Your primary analysis shows the market is in a clear uptrend. Your bias is Bullish. You are now only looking for buying opportunities.
Identify Zone: The indicator draws a bullish FVG (a green or blue box) during an impulsive up-move.
Wait for Pullback: Be patient and let the price retrace down into this FVG zone. Do not chase the price.
Confirmation Signal: A green UP arrow appears below a candle. This is your signal. It confirms that buyers have stepped in at the FVG level and defended it.
Entry: Enter a long (buy) position at the open of the candle immediately following the signal candle.
Stop Loss: Place your stop loss below the low of the signal candle or, for a safer stop, below the bottom of the FVG zone itself.
Take Profit: Target a previous high, a higher-timeframe resistance level, or use a risk-to-reward ratio like 1:2 or 1:3.
Example of a Bearish (Short) Trade Setup:
Establish Bias: Your primary analysis shows the market is breaking down into a downtrend. Your bias is Bearish. You are now only looking for selling opportunities.
Identify Zone: The indicator draws a bearish FVG (a pink or orange box) during an impulsive down-move.
Wait for Pullback: Patiently wait for the price to rally back up into this FVG zone.
Confirmation Signal: A red DOWN arrow appears above a candle. This is your confirmation that sellers have rejected the price at this level.
Entry: Enter a short (sell) position at the open of the next candle.
Stop Loss: Place your stop loss above the high of the signal candle or above the top of the FVG zone.
Take Profit: Target a previous low, a key support level, or the next major FVG below.
Features Explained in Detail
Multi-Timeframe (MTF) Analysis: HTF zones (dotted lines) carry more weight. A signal from a 4-hour FVG while you are on a 15-minute chart is significantly more powerful than a signal from a 15-minute FVG alone. Use HTF zones as major points of interest.
Confirmed Tap-In Logic: The arrow only appears after price has touched the zone and then closed outside of it in the expected direction. This built-in confirmation filters out wicks that simply pass through a zone without a real market reaction.
Dual Alert System:
Entry Alert ("Price has entered..."): This is a heads-up alert. It tells you to pay attention because price is now in your pre-defined zone of interest.
Tap-In Alert ("Confirmed tap-in..."): This is the execution alert. It signals that the conditions for a trade have been met according to the indicator's logic.
Fade on Tapped: When enabled, a zone will become transparent after a confirmed signal. This visually cleans up your chart, showing you which zones have already been tested and "mitigated."
Minimum FVG Size (Ticks): In volatile or ranging markets, many tiny, insignificant FVGs can form. Use this setting to filter out the noise. Increase the value to only display larger, more significant imbalances.
Disclaimer: Trading involves substantial risk. This indicator is a tool for analysis and should not be used as a sole reason to enter a trade. Always practice robust risk management and use this tool in conjunction with your own trading plan. Past performance is not indicative of future results.
Session High/LowWhat it does:
Plots the High and Low of three sessions—Asia (19:00–02:00), London (02:00–08:00), New York (09:30–16:00)—all in UTC-4. After a session closes, it draws a horizontal line starting at the bar where the level first formed, extends it live to the current bar, and shows a label at the line’s end. If price sweeps the level (by wick or close, configurable), the line stops at that bar.
Settings: show/hide sessions, sweep on close toggle, how many past sessions to keep, line style/width, colors per session, and custom label text.
Works on any timeframe. Note: session times are fixed to UTC-4 (adjust if your market uses DST).
Volume Profile Two-Tone - Hit Counter - Meter V1 Volume Profile Two-Tone - Hit Counter - Meter V1
Overview
The Volume Profile Two-Tone - Hit Counter - Meter V1 is a Pine Script v6 indicator for TradingView, designed to visualize buy and sell activity distribution across price levels within a user-defined window or intraday session. It plots a dual-color horizontal histogram showing buying (green) and selling (red) volume intensity, along with optional hit-count numbers and meter overlays. The profile dynamically updates as new bars form, providing an intuitive picture of where market participants are most active.
The enhanced V1 edition introduces persistent hit counts, real-time adaptive row rebuilding, and improved memory management for smoother performance in both rolling-window and session modes.
How It Works
The indicator divides the selected range into rows (price bins) and aggregates trade volume (or tick volume) per bar.
Each bin separately sums up bullish and bearish contributions based on candle direction and delta logic, then draws side-by-side histogram bars:
• Buy Volume (green): Total volume from bullish bars within the bin.
• Sell Volume (red): Total volume from bearish bars within the bin.
A rolling or session-based window determines how many recent bars are analyzed. Value Area (VA), Point of Control (POC), and total hits per bin are computed continuously. The display auto-adjusts as price moves, keeping the profile anchored to the latest visible bars.
Behind the scenes, optimized arrays manage active boxes, lines, and labels for each bin. Functions like ensure_rows() rebuild buffers only when necessary, guaranteeing efficiency without repainting past data. Persistent hit-tracking ensures each price level maintains its count even when temporarily hidden.
Key Features
• Dual-Tone Volume Histogram: Buy/sell split with distinct colors for immediate visual contrast.
• Rolling or Session Profiles: Choose between continuous rolling windows or intraday session resets.
• Persistent Hit Counts: Displays total touches per bin, remaining stored even when bins refresh.
• Adaptive Row Management: Automatic rebuilding when zooming, scrolling, or changing resolution.
• Value Area + POC Detection: Highlights the most active price levels and volume concentration zones.
• Meter Overlay Option: Adds gradient bars or directional meters for quick trend context.
• Performance Optimized: Uses lightweight arrays and cached line handles for minimal CPU load.
• Custom Color Control: Editable buy/sell colors, opacity, row count, and profile width.
• Full Persistence Mode: Profiles remain visually consistent across bar updates without redraw gaps.
What It Displays
The Volume Profile Two-Tone - Hit Counter - Meter V1 presents an adaptive horizontal histogram beside the chart’s candles, revealing how volume is distributed across price.
• Green segments show dominant buying interest; red segments reveal selling pressure.
• POC line identifies the highest-volume price.
• Hit-count numbers quantify how often price traded at each level.
• Optional meters display relative directional strength within the same range.
This visual layering helps traders quickly identify supply/demand zones, balance areas, and developing auction profiles across intraday or multi-session contexts.
Originality
The Pine Script v6 indicator uses efficient array management (array.new_*, array.set, array.get) and native math operations for rendering.
It avoids external dependencies, relying only on built-in TradingView functions like request.security, box.new, line.new, and label.new for dynamic plotting.
Common Ways People Use It
• Scalpers: Study short-term imbalances or high-activity levels to time entries/exits.
• Day Traders: Track evolving session volume and POC migration.
• Swing Analysts: Compare rolling distributions to identify value shifts over multiple days.
• Volume Profilers: Combine with VWAP or order-flow tools for deeper context.
Configuration Notes
Profile Mode: Select Rolling Window (bars) or Session (intraday).
Rows and Width: Default = 72 rows, 44 bars width.
Colors and Opacity: Adjust to match chart theme.
Performance Mode: Choose Accurate or Fast (approximate) for speed control.
Show Hits / Meter: Enable hit-count numbers and gradient meters for added context.
Legal Disclaimer
For informational and educational purposes only—not investment, financial, or trading advice. Past performance does not guarantee future results; trading involves significant risk. Provided “as is,” without warranties. Consult a qualified professional before making decisions. By using, you accept all risks and agree to this disclaimer.
Free Stock ScreenerMissing great trade opportunities is annoying, and unless you have 12 screens or only trade one market, you are missing a lot of trades. To fix that, we created this free stock screener so you get notified instantly of potential great trading conditions in real time, right on your chart.
You get notified of trading benchmarks being met by the value being displayed on the scanner as well as a color change so that it grabs your attention and makes you aware that you should take a look at the other market and look for a potential trade. It also has built in alerts so you can have an alert notification go off when any of your trading conditions are met instead of needing to watch the scanner for color changes.
The screener will change the ticker symbol background color to red green when price is above or below the previous daily range and above or below both VWAPs. This signals that the ticker is trending, which typically means it is a great time to trade that market and follow the trend.
This free stock screener allows you to scan up to 10 different markets at the same time for various different conditions so you always know what is going on with your favorite trading symbols. If you want to scan more tickers, just add the indicator to your chart again and change the table position to the other side of the screen and update the tickers on the 2nd screener, allowing you to have 20 tickers at a time.
The scanner can be fully customized by changing the markets that it screens and turning on or off as many of them as you would like. You can also turn on or off any of the different data sets so that you only get information about trading conditions that matter to you.
The screener can provide data on any type of market, such as stocks, crypto, futures, forex and more. Each ticker can be adjusted to whatever market you would like it to scan for data in the settings panel, the only limitation is that it will not provide data for the VWAP and volume trend score if the ticker you are screening does not provide volume data.
Screener Features
The scanner will provide the following types of data for each ticker that is turned on:
Volume - Provides a volume score compared to the average volume and notifies you of higher than normal volume and volume spikes on individual bars by changing colors.
Volatility - Provides a volatility score compared to the average volatility and notifies you of higher than normal volatility by changing colors.
Oscillator - Choose between the RSI or CCI. The value of that oscillator will be displayed and will notify you when values are in extreme ranges such as overbought or oversold conditions according to the threshold values you enter in the settings panel. When those thresholds have been breached, you will be notified by it changing color.
Big Candles - Compares the current candle to average previous candle sizes, and changes color to notify you of big candles including a big top wick, big bottom wick, big candle body and big candle high to low range.
Daily Level Touches & Trends - Calculates and displays various daily candle and intraday open price levels that act as support and resistance. Notifies you when price is touching any of the daily levels that are turned on. The levels you can have on are as follows: previous day high, previous day low or previous day open. It also will notify you when price is touching the current day’s open, NY 930am open, Asia 8pm open, London 2am open and NY midnight 12am open. It will also say “Above” if price is above the previous day’s high or it will say “Below” if price is below the previous day’s low. The color of the cell will also change when a level touch is happening or price is above the previous day high or below the previous day low.
VWAP - Choose from 2 different VWAP lengths, default settings are daily and weekly VWAPs. You will get notified if price touches either of the VWAPs and they will also say “Above” or “Below” if price is currently above or below each VWAP.
How To Use The Screener To Help You Trade
The main purpose of the screener is to scan other markets and notify you of potential good trading opportunities such as price bouncing off of the daily levels or VWAPs. It can also be used to know when price is trending according to the VWAPs and daily levels. Lastly, you can use it to know how the volume and volatility trends are currently which gives you more confidence in taking a trade with this data when volume and volatility are present.
Volume Score
When volume is high, this represents a good time to trade because there are many market participants and price is likely to be volatile while there is high volume which can present a lot of good trade setups for you to take.
The volume score shown on the screener measures the current volume trend compared to previous volume trends and calculates that into a score based on 100 being the same as the previous volume trend. So any value above 100 means it is high volume and any value less than 100 means it is lower volume than normal.
In the settings panel, you can adjust the volume threshold that needs to be met for a volume notification to show up. The default setting is at 120, so you will get notified when the current volume trend score is 120 or higher or you can adjust that threshold value to whatever value you prefer.
It also will notify you when there is a volume spike on the current bar. This is determined by calculating an average of the recent volume totals and then checking to see if the current bar is greater than or equal to that average multiplied by 3. So if a single bar has volume that is greater than 3 times what the average volume is, then you will get a notification that says “Spike” to make you aware of that volume spike.
The volume trend threshold, volume spike multiplier and lookback length for the average volume used in volume spike calculations can all be adjusted in the settings panel to fit your desired preferences.
Volatility Score
High volatility can mean it is a great time to trade because the market is moving quickly and providing large enough movements that you can get in and out in a short amount of time, while still accruing decent sized trade PnL.
The volatility score will calculate the current volatility for each market compared to previous conditions and then divide the current volatility by the average volatility to give you a volatility score. Anything over 100 means the market is decently volatile and you should look at that market to find potential trade setups to execute on. Anything below 100 means the market is not very volatile and it is usually best to just wait until volatility returns before you start trading again.
The screener will notify you when the volatility score is above the threshold you set. The default value is set to 90, but can be adjusted to your preference. Pay attention to any market that shows an alert and take a look at that chart because the high volatility may present a good trade setup for you in the near future.
Oscillator Score
The oscillator data can be switched between Relative Strength Index(RSI) and Commodity Channel Index(CCI).
The RSI provides a value between 0 and 100 that indicates the momentum and strength of the recent price action. Many traders use the extremes of the 0-100 range to signal overbought or oversold conditions and use that as a sign to look for price to reverse in the near future. The typical values used for this and the default settings to provide notifications are: 70 for overbought and 30 for oversold. The scanner will notify you when the RSI value is considered overbought or oversold so you know to take a look at the chart and analyze if it is ready for a trade to be taken.
The CCI provides a value that can be used to determine the trend strength of the underlying asset when the oscillator moves above 100 or below -100. These extreme values are outside of the normal accumulation range and signify that price is moving strongly in that direction so it may be a good time to take a trade in the direction of the trend. The scanner will show you the value of the CCI for each market and notify you if that value is above 100 or below -100.
Both RSI and CCI settings can be adjusted in the settings panel to your desired settings so you have the exact oscillator settings you prefer to use as well as the exact values that you want to use for being notified.
Big Candles
Big candles can mean that many traders are buying or selling at the same time and many times indicate a good signal to trade in that same direction. That is why we included this calculation in the screener, so you are always aware when a large candle prints.
It calculates the average size of the recent candles and then uses that average as the benchmark to determine if the current candle is considered big and worthy of notifying you to take a look at that chart.
You can adjust the multiplier used for the big candle threshold to whatever you desire, but the default setting is 3 which means the candle will be considered big and notify you if it is 3 times as large as an average candle.
The big candles data will track the following candle values and notify you with these labels:
High to Low candle size = HL
Candle Body from open to close candle size = OC
Top Wick size = TW
Bottom Wick size = BW
Daily Level Touches & Trend
Daily level touches are excellent levels to watch for price to bounce because they often act as support and resistance levels for intraday trading. The scanner will track each market and notify you when the current candle is touching any of the daily levels that you have turned on in the settings panel.
The main levels that are turned on by default and are useful for all markets and how they will be labeled on the scanner are as follows:
Previous Day High = High
Previous Day Low = Low
Previous Day Open = < Open
Previous Day Close = Close
Current Day Open = Open
We also included some extra levels that are useful for futures traders. They are as follows:
NY 930am Open = 930am
NY 12am Midnight Open = 12am
Asia Open at 8pm NY time = Asia
London Open at 2am NY Time = London
Watch how price reacts to these levels and then trade the bounces off of these levels if the price action confirms that it is going to respect that level.
When price is currently above the previous day high, the scanner will say “Above” and show a green color, indicating a bullish trend and that price is above the previous daily candle’s high.
When price is currently below the previous day low, the scanner will say “Below” and show a red color, indicating a bearish trend and that price is below the previous daily candle’s low.
Pay attention to when price is trending above or below the previous daily candle as those trends can provide excellent trend trading opportunities.
The daily levels that you have turned on in the settings will also show as lines on the chart and include a label next to them, identifying each level so you know what each line represents. You can turn on or off all of the lines shown on the chart in the main settings or turn them off one by one in the style panel of the settings. Labels can also be turned on or off for all of the lines in the main settings panel. You can adjust the label positioning in the Label Offset section of the settings panel.
VWAP Touches & Trend
VWAP stands for volume weighted average price and is a very popular tool that traders use to determine trend direction based on volume as well as an excellent level to trade price bounces off of.
The typical VWAP time period used is Daily, which means the volume weighted average price will reset at the beginning of a new day. We set the first VWAP to be the daily VWAP by default and the second one to be the weekly VWAP. You can adjust both of the time periods to be any of the provided time lengths that you choose.
The screener will show “Above” with a green background color when price is above the VWAP, indicating a bullish trend. It will show “Below” with a red background color when price is below the VWAP, indicating a bearish trend. When both VWAPs are showing Above or Below, you can expect price to trend in that direction, so look for pullbacks you can trade in the direction of the trend. If the VWAPs are showing different directions, then you should expect to bounce back and forth between the VWAPs, but be careful and watch out for price to break beyond either one and start a trend.
When the current candle is touching the VWAP, the scanner will change colors and say VWAP to notify you that price is touching the VWAP and you should look at that chart and analyze the market for a potential bounce off of the VWAP to trade.
Trending Market Signals
Strong trends are excellent markets to trade and can many times provide excellent trading opportunities that don’t require expert price action reading skills to be able to take winning trades from. That is why we included a signal to notify you of a strong trending market.
The strong trending market will show up as a green or red background color for the ticker name. If the color of the ticker name is green, it is notifying you that the price is above the previous daily high, above VWAP 1 and above VWAP 2 and is a good market to look for bullish trend trades. If the color of the ticker name is red, it is notifying you that the price is below the previous daily low, below VWAP 1 and below VWAP 2 and is a good market to look for bearish trend trades.
Changing The Tickers It Scans
To change the tickers that the indicator scans, scroll near the bottom of the settings panel and select the ticker symbol you want to update and then search for the exact symbol you want to use. If you want to scan less tickers, then just turn some of the tickers off that you don’t need.
Scanning More Than 10 Tickers
If you want to scan more than 10 tickers, you can add the scanner to your chart again and then just change the table position to the other side of the screen. This will allow you to scan 10 more tickers that will show up separately. Then if you want even more, just add the indicator to your chart again and update the table position until you have as many markets as you want. The table position setting can be found at the bottom of the main settings panel.
Alerts
The screener has alerts that can be used to notify you when any of the data set thresholds have been met or if price is touching one of the levels. You can set alerts for the following events:
Bullish Trend Alert - Price is above the previous daily high and above both VWAPs.
Bearish Trend Alert - Price is below the previous daily low and below both VWAPs.
High Volume Alert - Volume is higher than the threshold or a volume spike is detected.
High Volatility Alert - Volatility is higher than the threshold.
Oscillator Is Extended Alert - Oscillator value has exceeded the upper or lower threshold.
Big Candle Alert - A big candle has been detected.
Daily Level Touch Alert - One of the daily levels that is turned on is being touched.
VWAP Touch Alert - One of the 2 VWAPs are being touched.
An alert will trigger when any one of tickers on your scanner meets the alert conditions, so when you see the alert, you will need to go to your chart and look at the scanner to see which ticker it was and then navigate to that chart to look for potential trade setups.
The alerts will use the exact same settings you have configured in the settings panel to send you alert notifications. With normal settings, this could give you a lot of alerts, so if you only want alerts to fire when abnormal conditions are being met, try setting up a second screener on your chart that has very high threshold values and only has the most important level touches on. Then turn the setting "Do Not Show The Screener On The Chart" to off so the calculations will still run and fire alerts, but won't clog up your charts. This way you can only get alert notifications when major events happen but still have your normal screener settings available on your chart.
Markets This Can Be Used On
This screener uses the price action and volume data so you can use it to scan any type of market you would like as long as the ticker you are scanning has price and volume data feeds. If a market does not have volume data, then it will just show NaN in the volume row and the VWAP rows will not show anything.
Candle Body Break (M/W/D/4H/1H)v5# Candle Body Break (M/W/D/4H/1H) Multi-Timeframe Indicator
This indicator identifies and plots **Candle Body Breaks** across five key timeframes: Monthly (M), Weekly (W), Daily (D), 4-Hour (4H), and 1-Hour (1H).
## Core Logic: Candle Body Break
The core concept is a break in the swing high/low defined by the body of the previous counter-trend candle(s). It focuses purely on **closing price breaks** of remembered highs/lows established by full candle bodies (close > open or close < open).
1. **Remembering the Swing:**
* After a bullish break (upward trend), the indicator waits for the first **bearish (close < open) candle** to appear. This bearish candle's high (`rememberedHigh`) and low (`rememberedLow`) are saved as the **breakout level**.
* Subsequent bearish candles that make a new low update this saved level, continuously adjusting the level to the most significant recent resistance/support established by the body's range.
2. **Executing the Break:**
* **Bull Break (Long signal):** Occurs when a **bullish candle's closing price** exceeds the last remembered bearish high (`rememberedHigh`).
* **Bear Break (Short signal):** Occurs when a **bearish candle's closing price** falls below the last remembered bullish low (`rememberedLow_Bull`).
Once a break occurs, the memory is cleared, and the indicator waits for the next counter-trend candle to establish a new level.
## Features
* **Multi-Timeframe Analysis:** Displays break lines and labels for M, W, D, 4H, and 1H timeframes on any chart.
* **Timeframe Filtering:** Break lines are only shown for timeframes **equal to or higher** than the current chart timeframe (e.g., on a 4H chart, only 4H, D, W, and M breaks are displayed).
* **Candidate Lines (Dotted Green):** Plots the current potential breakout level (the remembered high/low) that must be broken to trigger the next signal.
* **Direction Table:** A table in the top right corner summarizes the latest break direction (⇧ Up / ⇩ Down) for all five timeframes. This can be optionally limited to the 4H chart only.
* **1H Alert:** Triggers an alert when a 1-Hour break is detected.
## Input Settings Translation (for Mod Compliance)
| English Input Text | Original Japanese Text |
| :--- | :--- |
| **Show Monthly Break Lines** | 月足ブレイクを描画する |
| **Show Weekly Break Lines** | 週足ブレイクを描画する |
| **Show Daily Break Lines** | 日足ブレイクを描画する |
| **Show 4-Hour Break Lines** | 4時間足ブレイクを描画する |
| **Show 1-Hour Break Lines** | 1時間足ブレイクを描画する |
| **Show Monthly Candidate Lines** | 月足ブレイク候補ラインを描画する |
| **Show Weekly Candidate Lines** | 週足ブレイク候補ラインを描画する |
| **Show Daily Candidate Lines** | 日足ブレイク候補ラインを描画する |
| **Show 4-Hour Candidate Lines** | 4時間足ブレイク候補ラインを描画する |
| **Show 1-Hour Candidate Lines** | 1時間足ブレイク候補ラインを描画する |
| **Show Only Current TF Candidate Lines** | チャート時間足の候補ラインのみ表示 |
| **Show Table Only on 4H Chart** | テーブルを4Hチャートのみ表示 |
*Please note: The default alert message "1-Hour Break Detected" is also in English.*
※日本語訳
ろうそく足実体ブレイク(M/W/D/4H/1H)マルチタイムフレーム・インジケーター(日本語訳)
このインジケーターは、月足(M)、週足(W)、日足(D)、4時間足(4H)、1時間足(1H)の5つの主要な時間足におけるろうそく足実体ブレイクを検出し、プロットします。
コアロジック:ろうそく足実体ブレイク
このロジックの中核は、直近の**逆行ろうそく足(カウンター・トレンド・キャンドル)**の実体によって定義されたスイングの高値/安値のブレイクです。終値が実体のレンジ外で確定することを純粋に追跡します。
スイングの記憶(Remembering the Swing):
強気のブレイク(上昇トレンド)の後、インジケーターは最初に現れる弱気(終値<始値)のろうそく足を待ちます。この弱気ろうそく足の高値(rememberedHigh)と安値(rememberedLow)が、ブレイクアウトレベルとして保存されます。
その後、安値を更新する弱気ろうそく足が続いた場合、この保存されたレベルが更新され、実体のレンジによって確立された最新の重要なレジスタンス/サポートにレベルが継続的に調整されます。
ブレイクの実行(Executing the Break):
ブルブレイク(買いシグナル): 最後に記憶された弱気ろうそく足の高値(rememberedHigh)を、強気ろうそく足の終値が上回ったときに発生します。
ベアブレイク(売りシグナル): 最後に記憶された強気ろうそく足の安値(rememberedLow_Bull)を、弱気ろうそく足の終値が下回ったときに発生します。
一度ブレイクが発生すると、記憶されたレベルはクリアされ、インジケーターは次の逆行ろうそく足が出現し、新しいレベルを確立するのを待ちます。
機能
マルチタイムフレーム分析: 現在のチャートの時間足に関わらず、M、W、D、4H、1Hのブレイクラインとラベルを表示します。
時間足フィルタリング: ブレイクラインは、現在のチャート時間足と同じか、それよりも上位の時間足のもののみが表示されます(例:4時間足チャートでは、4H、D、W、Mのブレイクのみが表示されます)。
候補ライン(緑の点線): 次のシグナルをトリガーするためにブレイクされる必要がある、現在の潜在的なブレイクアウトレベル(記憶された高値/安値)をプロットします。
方向テーブル: 右上隅のテーブルに、5つの全時間足の最新のブレイク方向(⇧ 上昇 / ⇩ 下降)をまとめて表示します。これは、オプションで4時間足チャートのみに表示するように制限できます。
1時間足アラート: 1時間足のブレイクが検出されたときにアラートをトリガーします。
入力設定の翻訳
コード内の入力設定(UIテキスト)の日本語訳は以下の通りです。
英語の入力テキスト 日本語訳
Show Monthly Break Lines 月足ブレイクを描画する
Show Weekly Break Lines 週足ブレイクを描画する
Show Daily Break Lines 日足ブレイクを描画する
Show 4-Hour Break Lines 4時間足ブレイクを描画する
Show 1-Hour Break Lines 1時間足ブレイクを描画する
Show Monthly Candidate Lines 月足ブレイク候補ラインを描画する
Show Weekly Candidate Lines 週足ブレイク候補ラインを描画する
Show Daily Candidate Lines 日足ブレイク候補ラインを描画する
Show 4-Hour Candidate Lines 4時間足ブレイク候補ラインを描画する
Show 1-Hour Candidate Lines 1時間足ブレイク候補ラインを描画する
Show Only Current TF Candidate Lines チャート時間足の候補ラインのみ表示
Show Table Only on 4H Chart テーブルを4Hチャートのみ表示
Alert Message: 1-Hour Break Detected アラートメッセージ: 1時間足ブレイク発生
Risk sizing toolHelps you manage risk per trade accurately.
Automatically adjusts position size if the stop-loss or account constraints are exceeded.
Gives a clear visual summary directly on your stock chart.
Prevents taking trades that are too large relative to your account.
Volume v4 (Dollar Value) by Koenigsegg📊 Volume v3 (Dollar Value) by Koenigsegg
🎯 Purpose:
Volume v3 (Dollar Value) by Koenigsegg transforms traditional raw-unit volume into dollar-denominated volume, revealing how much money actually flows through each candle.
Instead of measuring how many coins or contracts were traded, this version calculates the total traded value = volume × average price (hlc3), allowing traders to visually assess capital intensity and market participation within each move.
⚙️ Core Features
- Converts raw volume into USD-based traded value for each candle.
- Color-coded bars show bullish (green/teal) vs. bearish (red) activity.
- Built-in SMA and SMMA overlays highlight sustained shifts in value flow.
- Designed for visual clarity to support momentum, exhaustion, and divergence studies.
📖 How to Read It
Rising Dollar Volume — indicates growing market participation and strong capital flow, often aligning with impulsive waves in trend direction.
Falling Dollar Volume — signals waning interest or reduced participation, potentially hinting at correction or exhaustion phases.
Comparing Legs — when price makes new highs/lows but dollar volume weakens, it can reveal divergences between price movement and actual capital commitment.
SMA / SMMA Lines — use them to identify longer-term accumulation or depletion of market activity, separating short bursts from sustained inflows or outflows.
The goal is to visualize the strength of market moves in terms of capital energy, not just tick activity. This distinction helps traders interpret whether a trend is being driven by genuine money flow or low-liquidity drift.
⚠️ Disclaimer
This script is provided for research and educational purposes only.
It does not constitute financial advice, investment recommendations, or trading signals.
Always conduct your own analysis and manage your own risk when trading live markets.
The author accepts no liability for financial losses incurred from use of this tool.
🧠 Credits
Developed and published by Koenigsegg.
Written in Pine Script® v6, fully compliant with TradingView’s House Rules for Pine Scripts.
Licensed under the Mozilla Public License 2.0.
Khosro XAUUSD Strategy [TradingFinder] Trading Room Hunter Setup🔵 Introduction
The Trading Room Hunter (TRH) strategy is an analytical model based on the Smart Money Concept, developed by Khosro, an Iranian international trader based in Dubai. This approach is built upon a deep understanding of liquidity engineering, market structure shifts, and institutional order flow. Its core objective is to identify the so-called TRH Zone, the area where market liquidity gets trapped and institutional investors begin accumulating positions. Unlike traditional indicator-based methods, the TRH Zone focuses purely on price behavior and supply & demand dynamics to pinpoint the most precise reversal zones in the market.
Within Smart Money logic, every impulsive move in price results from the displacement or absorption of liquidity in a specific range. In the TRH model, the last pivot preceding the impulsive move (Origin Pivot) is defined as the Distal Line, and the Break Candle, which disrupts the market structure, forms the Proximal Line. The area between these two points defines the Trading Room Hunter Zone, a reaction zone where price, after creating a displacement or Break of Structure (BoS), often returns to fill an imbalance and provide a precision entry opportunity.
In essence, the TRH Zone is the region where smart money seeks re-entry after a liquidity sweep and a confirmed CHoCH or BoS. It frequently lies between supply/demand boundaries and fair value gaps (FVGs), forming one of the strongest decision-making frameworks within modern price-action theory. Due to its structural accuracy, the TRH setup can also function as a Set & Forget Setup, where the trader defines the zone, places a limit order, and lets the market naturally react, eliminating emotional decision-making and allowing for automated execution aligned with institutional logic.
🔵 How to Use
In the TRH strategy, entries are taken based on price returning to the area between the last impulsive pivot and the break candle. This range (the TRH Zone) represents the region where liquidity from the previous move remains concentrated. Before continuing its main direction, price often revisits this zone to fill imbalances or mitigate unfilled orders. The logic is simple: every explosive move originates from a point where large orders were executed, and TRH precisely highlights that institutional footprint.
🟣 Bullish Setup
When the market breaks a structural high after a strong bearish leg, liquidity shifts from sellers to buyers. The last bearish candle before the breakout marks the origin of the bullish move, and the zone between that candle and the break candle becomes the smart-money entry area. As price revisits this zone and signs of exhaustion in selling pressure appear, that’s the optimal point for a long position. Stop-loss is placed slightly below the origin pivot, and targets are set at the next supply zone or upper liquidity pool.
🟣 Bearish Setup
Conversely, when the market breaks a structural low after a sharp bullish leg, liquidity transitions from buyers to sellers. The last bullish candle before the drop is identified as the origin pivot, while the bearish break candle defines the lower boundary of the zone. The range between these two points forms the TRH Supply Zone, where late buyers are trapped and fresh institutional selling begins. As price retraces into this zone, short entries can be placed near the upper boundary, with stops above the pivot and targets toward the next liquidity pool below.
Because of its structural precision and clearly defined reaction behavior, TRH is one of the most effective Set & Forget setups in Smart Money trading. Simply mark the zone, place your order, and let the market do the rest.
🔵Setting
🟣 Spike Filter | Movement
Minimum Spike Bars : Defines the minimum number of consecutive candles required for a valid spike.
Movement Power : Enables or disables the momentum-based spike filter.
Movement Power Level : Sets the strength threshold; higher values filter out weaker moves and only detect strong spikes.
Pivot Period : Defines the lookback range used to detect swing highs and swing lows in market structure. A higher value smooths out smaller fluctuations and focuses on major pivots, while a lower value increases sensitivity and identifies minor turning points more frequently.
🟣 Position Management
Stop-Loss Threshold : Enables or disables the stop-loss threshold feature.
Stop-Loss Threshold Value : Defines the value of the stop-loss threshold for risk management.
Risk-Reward Ratio : Sets the desired risk-to-reward ratio (e.g., 1:1 or 1:2).
Wide Zone Filter : Filters out zones that exceed a defined width threshold, preventing detection of overly broad TRH areas.
🟣 Display Settings
Display Mode : Chooses between Setup (showing setups) or Signal (showing trade signals).
Show Entry Levels : Displays entry levels on the chart (buy/sell zones) when enabled
Only Display the Last Position : Displays only the most recent position on the chart when enabled.
Setup Width Drawing : Adjusts the visual width of the setup drawings on the chart for better visibility.
🔵 Conclusion
The TRH strategy is a precise structural model of liquidity flow that identifies zones where smart money is most likely to enter and where price is most likely to react. By combining the Origin Pivot and Break Candle, TRH isolates the key areas that drive institutional order flow. Without relying on indicators, it focuses purely on price structure, making it highly effective for both reactive entries and Set & Forget setups.
Ultimately, TRH creates a balance between market structure and liquidity flow, enabling traders to identify institutional decision zones on the chart with minimal risk and maximum clarity
Market Tension Map v2📊 Market Tension Map v2 — Detailed Description
core concept
market tension map v2 measures market "tension" through a combination of three independent metrics: volatility, volume, and open interest changes. the indicator operates on the compressed spring principle—when the market enters a state of low volatility with high volume and growing OI, it creates "tension" that predicts a potential sharp price movement.
calculation methodology
component 1: volatility score (0-100)
relative volatility is measured through price standard deviation over a specified period. key distinction—inversion: low volatility produces a high score because range compression creates energy for future movement.
component 2: volume score (0-100)
normalization of current volume relative to the period range. high volume during low volatility signals accumulation of positions by large players before a move.
component 3: open interest score (0-100)
evaluation of open interest changes (available only for futures). rising OI confirms new positions entering the market rather than just redistribution of existing ones.
final tension index
arithmetic mean of three components (or two if OI unavailable). values above threshold (default 70) signal spring "compression".
signal types
compression signal (🔴 red diamond)
appears when tension index exceeds threshold with normal candle size. this is a predictive signal—market is compressed but explosion hasn't occurred yet. optimal for entry before movement with tight stop.
climax signal (⚠️ orange diamond)
occurs when threshold crossed + large candle (size > ATR × multiplier). this is a reactive signal of culmination—energy already released. often indicates short-term reversal or move exhaustion.
uniqueness of approach
unlike classic compression indicators (bollinger bands squeeze, keltner channels), mtm v2 doesn't rely solely on volatility. adding volume and OI scores creates a multidimensional picture of market microstructure. volatility score inversion is original logic where calm is interpreted as tension.
the algorithm distinguishes two breakout types:
compression without movement (compression)—anticipation trading
compression with large candle (climax)—reversal trading
this separation is absent in standard indicators.
parameter settings
calculation period (20)—normalization window length. lower = more sensitive to short-term changes.
tension threshold (70)—signal activation level. higher = fewer signals but better quality.
atr length (14) + atr multiplier (2.0)—large candle detection parameters for climax signals. increasing multiplier makes filter stricter.
colors and style—full customization of visual elements to adapt to your chart theme.
how to use
main chart: histogram shows current tension level. yellow = rising, gray = falling.
signals on price chart:
red diamond above candle = prepare for entry (compression)
orange diamond = move occurred, watch for reversal (climax)
background highlight: tinted background shows high tension zones.
data table: real-time monitoring of all components + bar status (live/closed).
alerts: configure notifications for compression or climax signals for automatic monitoring.
limitations
open interest available only for futures. for spot markets indicator works with two components.
requires sufficient bar history (>= calculation period) for correct calculations.
on live bar (not closed) values may repaint—use confirmed signals for trading.
recommended timeframes
1h-4h: optimal for swing trading, signals more reliable.
15m-30m: suitable for intraday but requires false breakout filtering.
d: strategic positions, high risk/reward ratio.
license: mozilla public license 2.0
version: pinescript v6
Livermore's Pyramiding Trading - 3Commas [SwissAlgo]
📊 J. LIVERMORE'S PYRAMIDING TRADING - 3Commas Integrated
A Trading Approach Inspired by Jesse Livermore's Position Building Principles
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
DISCLAIMER
This indicator is an educational tool based on historical trading principles. Past performance is not indicative of future results. Trading involves substantial risk of loss. Only trade with capital you can afford to lose. You are responsible for all trading decisions.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📚 WHO WAS JESSE LIVERMORE?
Jesse Livermore (1877-1940) was one of the greatest traders in history.
His core insight: "Most traders do everything backward."
♦ "They deploy all capital at once" → Livermore entered with a small fraction of his capital (he started with a 'test position' to validate his trade idea and waited for market confirmation to deploy more, building positions in steps = "pyramiding")
♦ "They average down" (DCA) → Livermore added to trades showing good results only, and never to losing trades, as the trend kept aligning with his trade idea
♦ "They use arbitrary % stops" → Livermore exited when structure appeared broken (he trailed his stop loss to try to protect unrealized profit - if any)
♦ "They take profits too early or set arbitrary TP%" → Livermore let trades showing positive results run until proven wrong (trial take profit)
💬 "I always made money when I was sure I was right before I began. What beat me was not having enough brains to stick to my own game."
— Jesse Livermore
This indicator tries to translate his principles into a SYSTEMATIC FRAMEWORK :
BO = Base Order (first order, base of the pyramid)
PO = Pyramid Orders (additional layers of capital deployed as long as the 'tape' does not invalidate the trade idea)
♦ Test First (BO - 20%) - Small entry to test your idea. If wrong, lose small. If right, can consider pyramiding into strength.
♦ Build Position Size (PO1-3 - 80%) - Add only as trend unfolds favorably (the indicator uses specific Fibonacci levels to track milestones - 0.618, 1.0, 1.272 - and looks for strong confluence among price, volume, trend, momentum, break of resistance/support levels to suggest and trigger actions: entries, exit)
♦ Attempt to Protect Capital - Dynamic stops: the indicator trails the stop loss, to try to protect potential gains from previous steps (if any)
♦ Discipline - Trades fire only when ALL conditions align
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 INDICATOR FEATURES
You map 3 points on the chart → The indicator generates a systematic trading plan structure based on your wave analysis.
✓ Auto-detects trade direction: Uptrend wave (A➚B➘C) = Long signals | Downtrend wave (A➘B➚C) = Short signals
✓ Entry/exit prices: BO, PO1, PO2, PO3, and dynamic EXIT (trailing stop)
✓ Real-time condition monitoring: Live ✓/✗ checks for each order (price closes + volume + trend + pivot breaks + candle quality + sequence)
✓ Visual trade execution: Green labels mark entries (BO/PO1/PO2/PO3), red labels mark EXIT
✓ Optional 3Commas automation: JSON webhooks for hands-free execution via Signal Bots
⏰ Recommended Timeframes: 1H, 4H, Daily
(Lower timeframes like 15m/5m produce excessive noise and false signals)
💬 "Watch the market leaders, the stocks that have led the charge. That is where the action is and where the money is made."
— Jesse Livermore
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙️ SETUP IN 3 STEPS
🟡 STEP 1: Map Your Wave (Points A → B → C)
Identify a completed wave pattern:
For LONGS:
♦ Point A = Swing low (wave start)
♦ Point B = Swing high (impulse end)
♦ Point C = Pullback low (retrace end - where next wave may begin)
For SHORTS:
♦ Point A = Swing high (wave start)
♦ Point B = Swing low (impulse end)
♦ Point C = Pullback high (retrace end - where next wave may begin)
How to set points:
Settings → Enter dates manually OR drag the vertical lines directly on the chart (easier - just click and drag the pre-mapped A/B/C lines)
Requirements (auto-validated by code):
✓ All dates must be in the past (Point C = completed retrace, not forming)
✓ Clear impulse A→B (minimum 5% move)
✓ Clear retrace B→C (minimum 3% pullback)
───────────────────────────────────────────
🟡 STEP 2: Set Budget & Allocation
Settings → "TRADE PARAMETERS"
♦ Total Budget: $10,000 (example - capital for THIS trade only, not your entire account)
♦ Allocation (must total 100%):
BO = 20% ($2,000) - test position
PO1 = 25% ($2,500) @ Fib 0.618
PO2 = 30% ($3,000) @ Fib 1.0
PO3 = 25% ($2,500) @ Fib 1.272
💬 "It was never my thinking that made big money for me. It was always my sitting. Men who can both be right and sit tight are uncommon."
— Jesse Livermore
───────────────────────────────────────────
🟡 STEP 3: Monitor Your Trade Plan Table
The table (top-right corner) has 4 sections that guide your execution:
BUDGET DEPLOYMENT
♦ Trigger prices for each order (BO auto-calculated at 0.5 Fib between B-C)
♦ Dollar amount per entry
♦ Fibonacci level assigned to each PO
ENTRY/EXIT CONDITIONS
Each column (BO, PO1, PO2, PO3) shows live status (✓ or ✗) for:
♦ Price: 2 consecutive closes (BO) | 3 consecutive closes (POs)
♦ Volume: OBV directional alignment OR volume spike above average
♦ Trend: Normal or Strong Bull/Bear (no entries in Uncertain trend)
♦ Pivot: Nearest resistance (longs) or support (shorts) broken
♦ Clean Candle: Momentum without reversal wicks <30% (POs only)
♦ Sequence: Prior order must have fired first (POs only - no skipping levels)
TRIGGERED?
Shows execution status for each order (✓ = fired, ✗ = waiting)
If using 3Commas: ✓ confirms JSON alert was sent to your bot for real execution
VALIDATIONS
✓ Green = All checks passed, setup is valid
⚠️ Yellow = Warning (e.g., budget doesn't equal 100%, deep retrace)
✗ Red = Error (e.g., dates in wrong order, invalid wave structure)
⚠️ Wait for ALL ✓✓✓✓✓ (or ✓✓✓✓✓✓) to align in a column before that order fires at bar close
💬 "The game of speculation is the most uniformly fascinating game in the world. But it is not a game for the stupid, the mentally lazy, the person of inferior emotional balance, or the get-rich-quick adventurer."
— Jesse Livermore
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 CHART VISUALS - READING THE INDICATOR
Fibonacci Extension Lines
After mapping A-B-C, horizontal lines extend to the right:
♦ Solid green/red lines = Active PO entry levels (0.618, 1.0, 1.272)
♦ Dotted gray lines = Reference Fib levels used for exit tracking (2.0, 2.618, 3.0, etc.)
♦ Labels on right = Show level and price: "Fib 0.618 / $67,324 "
Entry/Exit Price Lines
♦ Thick green line (longs) / red line (shorts) = BO entry price with direction label
♦ Dashed red line = Current EXIT price (your trailing stop loss - appears after BO fires and moves as price extends)
Trade Execution Labels
Visual confirmation when orders fire on the chart:
♦ Green labels (below/above candles) = BO, PO1, PO2, PO3 entries executed
♦ Red label = EXIT triggered (position closed)
Trend Strength Indicator (EMA Line)
The thick colored line shows real-time trend status:
♦ Bright lime = Strong bullish trend
♦ Light green = Normal bullish trend
♦ Bright red = Strong bearish trend
♦ Light red = Normal bearish trend
♦ Gray = Uncertain/weak trend (no entries fire in this state)
Entries require at least Normal trend strength aligned with your trade direction.
💬 "I never argue with the tape. Getting sore at the market doesn't get you anywhere."
— Jesse Livermore
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔧 ENTRY LOGIC - TECHNICAL DETAILS
💬 "The big money was never made in the buying or the selling. The big money was made in the waiting."
— Jesse Livermore
───────────────────────────────────────────
🟢 BASE ORDER (BO) - TEST POSITION
BO Price Calculation
Auto-calculated at the 0.5 Fibonacci retracement between Point B and Point C
Formula: (Price B + Price C) / 2
Why this level?
♦ Midpoint between impulse end (B) and retrace end (C)
♦ Breakout above/below suggests retrace may be complete
♦ Designed to help position BO below all Fib extensions (to control sequence issues)
───────────────────────────────────────────
BO Entry Conditions - ALL 5 Must Align:
1️⃣ PRICE: 2 Consecutive Closes Beyond BO
♦ Longs: close > BO AND close > BO
♦ Shorts: close < BO AND close < BO
♦ Why: Designed to confirm breakout commitment and filter fakeouts
2️⃣ TREND: Normal OR Strong Trend Aligned
♦ Detection: 18-period EMA + ADX/DMI + higher timeframe slope
♦ States: Strong Bull/Bear (ADX>30), Normal Bull/Bear (price vs EMA), Uncertain
♦ Confirmation: Requires 3 consecutive bars in the same state (to reduce flip-flop)
♦ BO accepts: Normal OR Strong (you're testing early, basic alignment sufficient)
3️⃣ PIVOT: Nearest Resistance/Support Broken
♦ Storage: 60 most recent pivot highs/lows (dynamic lookback per timeframe)
♦ Longs: Nearest pivot HIGH above BO → must break with 2 closes
♦ Shorts: Nearest pivot LOW below BO → must break with 2 closes
♦ Price Discovery: If no pivot exists beyond BO = auto-pass
♦ Why: Aims to confirm momentum has overcome previous rejection zones
4️⃣ VOLUME: OBV Aligned OR Spike
♦ Directional OBV: OBV > 20-EMA (longs) OR OBV < 20-EMA (shorts)
♦ OR Volume Spike: Current volume > 20-period SMA
♦ Why: Checks for institutional participation signals
5️⃣ VALIDATIONS: Setup Valid (✅)
♦ Dates valid (A < B < C, all in past)
♦ Wave structure valid (min 5% impulse, min 3% retrace)
♦ Budget allocation = 100%
♦ Prices detected at all points
⚠️ BO fires once per bar close. Flag set permanently until trade resets.
───────────────────────────────────────────
🔺 PYRAMID ORDERS (PO1-3) - PYRAMIDING INTO STRENGTH
💬 "Never buy a stock because it has had a big decline from its previous high. The big money was never made in the stock market by buying on declines."
— Jesse Livermore
PO Price Calculation
Fixed Fibonacci extensions from Point C:
Formula: Price C ± (Impulse Range × Fib Level)
Where: Impulse Range = |Price B - Price A|
Default Levels:
♦ PO1 @ Fib 0.618 (Golden Ratio)
♦ PO2 @ Fib 1.000 (Full impulse repeat)
♦ PO3 @ Fib 1.272 (Fibonacci sequence extension)
───────────────────────────────────────────
PO Entry Conditions - ALL 6 Must Align (STRICTER):
1️⃣ PRICE: 3 Consecutive Closes Beyond PO
♦ Longs: close > PO AND close > PO AND close > PO
♦ Shorts: close < PO AND close < PO AND close < PO
♦ Why: Higher conviction needed when adding capital (3 vs 2 closes for BO)
2️⃣ TREND: Same as BO
Normal OR Strong trend must remain aligned with trade direction
3️⃣ PIVOT: Per-Level Pivot Break
♦ Each PO checks its OWN nearest pivot (not shared with BO)
♦ Same 2-close break requirement
♦ PO3 Exception: Price discovery allowed (no pivot required if already profitable)
4️⃣ VOLUME: Same as BO
Sustained confirmation required (not weakening)
5️⃣ CLEAN CANDLE: <30% Reversal Wick (NEW)
♦ Filter: Uses ATR(14) - candles < ATR auto-pass (consolidation noise)
♦ Longs: Upper wick < 30% of candle range (no rejection at top)
♦ Shorts: Lower wick < 30% of candle range (no rejection at bottom)
♦ Why: Don't pyramid into weakness/rejection - only add on clean momentum
♦ Not checked for BO: Test position tolerates some wick risk
6️⃣ SEQUENCE: Prior Order Fired
♦ PO1 requires: BO fired
♦ PO2 requires: PO1 fired
♦ PO3 requires: PO2 fired
♦ Why: No skipping levels - disciplined building only
───────────────────────────────────────────
⚙️ KEY DIFFERENCE:
BO (20% capital) = Lighter requirements, testing your idea early
POs (80% capital) = Stricter requirements, adding only to confirmed winners
♦ BO: 2 closes | POs: 3 closes
♦ BO: No candle check | POs: Clean candle required
♦ BO: Independent | POs: Sequential (must follow order)
♦ BO: No price discovery | PO3: Allows price discovery when profitable
💬 "Profits always take care of themselves, but losses never do. The speculator has to ensure himself against considerable losses by taking the first small loss."
— Jesse Livermore
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚪 EXIT LOGIC - TECHNICAL DETAILS
🔴 EXIT PHILOSOPHY
The indicator uses TWO INDEPENDENT EXIT TRIGGERS (whichever fires first):
1) Structural Breakdown
Price breaks through the EXIT level with confirmation
2) Trend Reversal
Trend flips against your position AND price breaks EXIT level
Why two methods?
♦ Structure = price-based protection (hard stop)
♦ Trend = momentum-based exit (early warning when market character changes)
♦ Combined: Exit either when proven wrong (structure) or when conditions no longer favor your direction (trend)
───────────────────────────────────────────
🔴 EXIT PRICE CALCULATION
The EXIT price (your stop loss) adjusts dynamically based on position size:
BEFORE PO3 Fires (Fixed Stops):
♦ BO only = Stop at Point C (small position, tight stop near entry)
♦ PO1 fired = Stop at Fib 0.5 (moved to breakeven zone)
♦ PO2 fired = Stop at Fib 0.786 (protecting partial profits)
AFTER PO3 Fires (Trailing Stops):
♦ Tracking: Monitors the highest Fib reached (longs) or the lowest Fib reached (shorts)
♦ Placement: EXIT moves 1-2 Fib levels below the highest (longs) or above the lowest (shorts)
♦ Example: Price reaches Fib 2.618 → EXIT trails up to Fib 2.0
♦ Purpose: Designed to protect accumulated profits while allowing room for normal pullbacks
💬 "It never was my thinking that made the big money for me. It was always my sitting. Men who can both be right and sit tight are uncommon."
— Jesse Livermore
───────────────────────────────────────────
🔴 EXIT CONDITIONS
Exit Speed (Based on Risk Exposure):
♦ Full position (PO3 fired) = 1 close required (fast exit - more capital at risk)
♦ Partial position (BO/PO1/PO2 only) = 2 closes required (confirmation - less urgency)
METHOD 1: Structural Breakdown
Price violates the EXIT level with clean momentum:
For Longs:
♦ Price closes BELOW EXIT level (1 or 2 closes depending on position size)
♦ Clean candle required (lower wick < 50% of range - no false breakdown)
For Shorts:
♦ Price closes ABOVE EXIT level (1 or 2 closes depending on position size)
♦ Clean candle required (upper wick < 50% of range - no false breakout)
Why clean candle check?
Designed to reduce exits on wicks/fakeouts. If there's a large reversal wick (>50%), it suggests buyers/sellers are defending the level - not a true breakdown.
METHOD 2: Trend Reversal
Market character shifts against your position:
For Longs:
♦ Trend shifts from Bull → Normal Bear OR Strong Bear
♦ AND price breaks below EXIT level (same close requirements)
For Shorts:
♦ Trend shifts from Bear → Normal Bull OR Strong Bull
♦ AND price breaks above EXIT level (same close requirements)
Why this matters?
♦ Proactive exit before structural stop is hit
♦ If the trend that confirmed your entries reverses, the setup is invalidated
♦ Livermore principle: Exit when market proves you wrong, don't wait for max pain
───────────────────────────────────────────
⚠️ EXIT BEHAVIOR
♦ Fires once per bar close (same as entries)
♦ Resets all tracking after exit (ready for fresh trade setup)
♦ Clears flags: boSignalFired, po1/po2/po3SignalFired, highestFib/lowestFib tracking
♦ If using 3Commas: Sends exit_long or exit_short JSON (market order closes 100% position)
💬 "I never argue with the tape. Getting sore at the market doesn't get you anywhere."
— Jesse Livermore
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🤖 3COMMAS AUTOMATION (OPTIONAL)
💬 "There is the plain fool, who does the wrong thing at all times everywhere, but there is also the Wall Street fool, who thinks he must trade all the time."
— Jesse Livermore
Automation designed to help remove emotion and support disciplined execution.
───────────────────────────────────────────
⚡ QUICK SETUP IN 5 STEPS
STEP 1: Create Your Signal Bots
You need 2 SEPARATE BOTS (one for Longs, one for Shorts):
Go to 3Commas → Bots → Create Bot → Select "Signal Bot"
Basic Settings:
♦ Bot Name: "Livermore Long - " (example: "Livermore Long - BTCUSDT")
♦ Exchange: Your connected exchange
♦ Trading Pair: Must match TradingView chart exactly
♦ Strategy: Custom Signal
♦ Direction: LONG (for first bot) or SHORT (for second bot)
♦ Max Active Deals: 1
⚠️ CRITICAL SETTINGS:
Entry Orders:
♦ Toggle ON: "Entry Orders"
♦ Volume per Order: "Send in webhook, quote"
♦ Why: This lets the indicator control exact $ amounts per order (BO=$2K, PO1=$2.5K, etc.)
♦ If you skip this: Orders will use wrong sizes and break your allocation plan
Exit Orders:
♦ Toggle ON: "Exit Orders"
♦ Volume per Order: "100 Position %"
♦ Why: Closes your entire position when EXIT signal fires
♦ Toggle OFF: "Take Profit" (managed by indicator)
♦ Toggle OFF: "Stop Loss" (managed by indicator)
Click "Start Bot" for both Long and Short bots.
───────────────────────────────────────────
STEP 2: Get Your Bot Credentials
For EACH BOT (Long and Short):
♦ Open the bot → Click "Orders" tab
♦ Scroll down to "Webhook Messages" section
♦ Copy these 3 values:
bot_uuid (long string like: a362cbcf-7e68-4379-a83d-ae6e47dba656)
secret (very long token starting with: eyJhbGciOiJ...)
webhook URL (refer to 3commas to get exact webhook - signal bots)
Note: The secret is usually the same for both bots, but the bot_uuid is different.
───────────────────────────────────────────
STEP 3: Enter Credentials in Indicator
Back in TradingView:
♦ Open indicator Settings
♦ Find section: "1️⃣ INTEGRATE 3COMMAS"
♦ Paste:
Long = Your Long bot UUID
Short = Your Short bot UUID
Secret = Your secret token (same for both)
♦ Click "OK"
The indicator now has everything needed to build JSON payloads.
───────────────────────────────────────────
STEP 4: Create TradingView Alert
This alert bridges TradingView → 3Commas. ONE ALERT HANDLES ALL SIGNALS (BO, PO1, PO2, PO3, EXIT).
How to create:
♦ Right-click chart → "Add Alert" (or click clock icon)
♦ Condition: Select this indicator from dropdown
♦ Trigger: "Any alert() function call"
♦ Alert Name: "Livermore Pyramiding - "
♦ Message: Leave default (indicator sends its own JSON)
♦ Webhook URL: Paste your 3Commas webhook URL from Step 2
♦ ⚠️ Alert Frequency: "Once Per Bar Close" (CRITICAL - controls duplicate orders)
♦ Expiration: Open-ended (or set specific date)
♦ Click "Create"
───────────────────────────────────────────
STEP 5: Test Before Going Live
🧪 NEVER TEST WITH REAL CAPITAL FIRST. Use one of these methods:
Test 1: Check Bot Status
♦ 3Commas → Bots → Both bots show "Active" (green)
♦ Click into each bot → Orders tab → Should say "Waiting for signal"
Test 2: Verify Alert Active
♦ TradingView → Alerts panel (bell icon)
♦ Your alert should show "Active" status
Test 3: Paper Trade / Tiny Position
♦ Use 3Commas paper mode if available, OR
♦ Set Total Budget to $10-50 for first real test
♦ Map a wave that's about to trigger
♦ Watch if orders actually appear on 3Commas
Test 4: Check JSON Format
♦ When alert fires → TradingView Alerts → Click your alert
♦ Look at "History" or "Log"
♦ Verify JSON has: bot_uuid, secret, action, price, amount
───────────────────────────────────────────
🛠️ COMMON ISSUES & SOLUTIONS
✗ Problem: Orders not appearing on 3Commas
Possible causes:
♦ Wrong webhook URL → Must be exact 3Commas URL (check for typos)
♦ Bot paused → Check bot status must be "Active" (green)
♦ Wrong bot UUID → Verify you copied Long UUID for longs, Short UUID for shorts
♦ Secret mismatch → Double-check secret is correct
♦ Exchange API issues → Verify exchange connection in 3Commas settings
How to debug:
♦ 3Commas → Your Signal Bot → Orders tab
♦ Look for "Rejected Signals" section
♦ Should show error messages if webhook failed
───────────────────────────────────────────
✗ Problem: Orders executing at wrong prices
Possible causes:
♦ Limit order not filled → Price gapped through your level before order filled
♦ Slippage on exits → Exits use market orders (intentional - speed over exact price)
♦ Exchange minimums → Some exchanges have minimum order sizes
Solution:
♦ Entries use limit orders (wait for exact price - may not fill if price gaps)
♦ Exits use market orders (prioritize fast execution when structure breaks)
♦ This is INTENTIONAL DESIGN following Livermore's principle: exit when proven wrong
───────────────────────────────────────────
✗ Problem: PO orders firing out of sequence or skipping
Possible causes:
♦ Alert not set to "Once Per Bar Close" → Change alert frequency setting
♦ Multiple alerts running → Delete old/duplicate alerts for this indicator
♦ Conditions changed mid-bar → Indicator only fires at bar close (protective feature)
Solution:
♦ Keep only 1 active alert per indicator instance
♦ Always use "Once Per Bar Close" frequency
♦ Wait for full bar to close before signals can fire
───────────────────────────────────────────
✗ Problem: Bot not closing position on EXIT
Possible causes:
♦ Exit order setting wrong → Check bot settings
♦ Wrong JSON action → Should be "exit_long" or "exit_short"
♦ No position open → Can't close what doesn't exist
Solution:
♦ Verify: Bot Settings → Exit Orders → Volume per Order = "100 Position %"
♦ Check alert history for correct JSON payload
♦ If stuck: Manually close position in 3Commas, then fix settings
♦ Delete and recreate alert if JSON format is wrong
───────────────────────────────────────────
🔒 SECURITY BEST PRACTICES
♦ Never share bot UUID or Secret - Treat them like passwords
♦ Use restricted API keys - Limit to specific pairs, disable withdrawals
♦ Start small - Test with $10-50 first, scale up only after success
♦ Monitor first trades - Don't set-and-forget immediately
♦ Delete old alerts - If you change A/B/C points, delete old alert and create new one
───────────────────────────────────────────
📊 PREFER MANUAL TRADING?
Skip 3Commas entirely and use the indicator for planning only:
♦ Watch Trade Plan table for ✓✓✓✓✓ alignment
♦ Manually place limit orders at displayed prices
♦ Manually move stop loss as EXIT price updates
♦ Manually close when EXIT signal fires
Benefits: Full control, no API concerns, can override based on context
Drawbacks: Must watch chart constantly, emotions can interfere, may miss signals
───────────────────────────────────────────
✅ FINAL CHECKLIST BEFORE LIVE TRADING
✓ Both Signal Bots created (Long + Short)
✓ Entry Orders: Volume = "Send in webhook, quote"
✓ Exit Orders: Volume = "100 Position %"
✓ Take Profit and Stop Loss disabled in bots
✓ Bot UUIDs and Secret entered in indicator
✓ TradingView alert created with correct webhook
✓ Alert frequency = "Once Per Bar Close"
✓ Alert status shows "Active"
✓ Tested with small amounts successfully
✓ Trade Plan table shows ✅ (no validation errors)
✓ Understand your risk per trade
Once all checked: You're ready for automated pyramiding execution.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💡 KEY REMINDERS - BEFORE YOU TRADE
💬 "The speculator's chief enemies are always boring from within. It is inseparable from human nature to hope and to fear."
— Jesse Livermore
───────────────────────────────────────────
⚠️ COMMON MISTAKES (AVOID THESE)
Mapping Incomplete Waves
♦ Point C must be in the PAST (completed retrace, not currently forming)
♦ Don't map a wave that's still developing - wait for confirmation
♦ Minimum requirements: 5% impulse (A→B), 3% retrace (B→C)
Ignoring Validation Warnings
♦ Never create alerts when status shows ✗ (red) or ⚠️ (yellow)
♦ Fix all errors first: dates in order, budget = 100%, valid wave structure
♦ Common issues: dates in future, Point C above B (longs) or below B (shorts)
Premature Manual Entries
♦ Don't enter just because price touched the level
♦ Wait for ALL ✓✓✓✓✓ (or ✓✓✓✓✓✓) to align in Trade Plan table
♦ Patience pays - partial confluence = partial edge = higher risk of losing trades
Wrong Timeframe Selection
♦ Avoid: 15m, 5m, 1m (too much noise, false signals)
♦ Use: 1H, 4H, Daily (cleaner structure, better confluence)
♦ Lower timeframes require faster decisions and produce more whipsaws
Over-Risking Capital
♦ Trade budget ≠ Account size
♦ Never risk capital you can't afford to lose
♦ One bad trade should NOT destroy your account
───────────────────────────────────────────
✅ LIVERMORE PRINCIPLES IN ACTION
Confirmation > Prediction
♦ Don't predict where price will go
♦ Wait for price to INDICATE direction via pivots + volume + trend
♦ Test first (BO 20%), build only when confirmed (POs 80%)
💬 "A man must believe in himself and his judgment if he expects to make a living at this game."
Pyramid on Strength, Never Weakness
♦ Add only when: 3 closes + clean candles + volume + pivot breaks
♦ Never average down (DCA into losers)
♦ If BO wrong, take small loss fast - don't hope and add more
💬 "Never buy a stock because it has had a big decline from its previous high."
Respect Market Structure
♦ Pivots = where smart money previously acted (support/resistance)
♦ Breaking them = momentum overcoming barriers
♦ Entering before pivot break = entering into known rejection zones
Trend is Your Friend
♦ Never pyramid against the trend
♦ If trend shifts to Uncertain or reverses → no new entries
♦ Exit when trend proves you wrong (don't fight it)
💬 "I never argue with the tape. Getting sore at the market doesn't get you anywhere."
Discipline > Emotion
♦ Can't "almost" have all conditions met
♦ Either 100% aligned (all ✓) or you wait
♦ No exceptions, no "this time is different"
♦ Automation designed to help remove emotion - consider using 3Commas
💬 "It never was my thinking that made the big money for me. It always was my sitting."
───────────────────────────────────────────
🎯 FINAL THOUGHT
This indicator is a SYSTEMATIC FRAMEWORK, not a magic solution. It translates Livermore's century-old principles into actionable rules:
♦ Test small, build big
♦ Add to winners, cut losers fast
♦ Let structure guide exits
♦ Stay disciplined when emotions scream
The market will test your patience, discipline, and conviction. The indicator aims to reduce guesswork - but YOU still need to:
♦ Find valid wave structures
♦ Choose appropriate market conditions
♦ Size positions properly
♦ Accept losses as part of the game
💬 "The game of speculation is the most uniformly fascinating game in the world. But it is not a game for the stupid, the mentally lazy, the person of inferior emotional balance, or the get-rich-quick adventurer."
— Jesse Livermore
ICT Turtle SoupICT Turtle Soup identifies classic “failed breakout” reversals after liquidity sweeps of recent highs/lows, then augments the setup with volume validation, market structure context, Kill Zone (session) filters, Order Blocks (OB), Fair Value Gaps (FVG), OTE (61.8–78.6%) zones, and optional risk targets (SL/TP 1:1, 1:2, 1:3). A compact dashboard summarizes current context (recent high/low, lookbacks, active session, structure state, mitigation counts).
What the Script Does
⦁ Detects Turtle Soup events: Price breaks a prior swing extreme and then quickly reverses back inside the range.
⦁ Grades signal quality: Factors include reversal speed, volume confirmation, breakout magnitude, and consecutive patterns.
⦁ Overlays market context: Trend/range classification (ADX / MA / ATR Bands / Combined), Kill Zones (Asian/London/NY), and time-of-day filters.
⦁ Marks IMB / mitigation zones: Draws Order Blocks and Fair Value Gaps, with optional live mitigation tracking and fading/removal on mitigation.
⦁ Shows OTE zones (61.8–78.6%) after confirmed reversals to highlight potential pullback entries.
⦁ Plots risk management guides: Optional SL buffer below/above reversal wick and TP bands at 1:1, 1:2, 1:3 R multiples.
⦁ Emits alerts on bullish/bearish Turtle Soup confirmations.
How It Works (Conceptual)
1. Liquidity Sweep & Breakout Check
⦁ Looks back over user-defined windows (single or multiple lookbacks: short/medium/long) to find the most recent swing high/low.
⦁ Flags a breakout when price pierces that swing (above for bearish, below for bullish).
⦁ Optional breakout bar volume check requires volume > avg(volume, N) × multiplier.
⦁ Optional swing age check requires the broken swing to be at least X bars old.
2. Reversal Confirmation
⦁ Within N bars after the sweep, validates a mean-reversion close back inside the prior range with a minimum wick/body ratio to confirm rejection.
⦁ Quality Score adds points for:
⦁ Speed: reversal within fast_reversal_bars;
⦁ Volume: breakout and/or reversal volume spike;
⦁ Series: previous consecutive signals;
⦁ Magnitude: sufficient sweep distance.
⦁ Optional high-quality filter only shows signals meeting a minimum score.
3. Context Filters (Optional)
⦁ Sessions/Kill Zones: Only allow signals in selected sessions (Asian/London/NY) with fully custom HHMM inputs.
⦁ Time Window: Restrict to specific hours (e.g., 08–12).
⦁ Market Structure: Classify Trending vs. Ranging (via ADX, MA separation/slope, ATR bands, or Combined). You can allow signals in trends, ranges, or both.
4. Smart Confluence Layers
⦁ Order Blocks: Finds likely OBs with structural validation (e.g., bearish up-candle prior to down move), imbalance score (body/range × volume factor), and extend-until-touched with mitigation % tracking.
⦁ Fair Value Gaps: Detects valid 3-bar gaps (bull/bear) with size threshold, supports touch / 50% / full mitigation logic, and can fade or remove after mitigation.
⦁ OTE Zones: After a reversal, projects the 61.8–78.6% retracement box from the actual swing range; offset scales to timeframe to avoid clutter.
5. Risk & Display
⦁ SL/TP guides: Optional wick-buffered SL and 1:1/1:2/1:3 TPs.
⦁ Dashboard: Recent high/low, active lookbacks, current session, structure label, and live counts of mitigated OBs/FVGs.
Signals & Visuals
⦁ Bullish Turtle Soup: Triangle up + label (🐢S/M/L/D + star rating).
⦁ Bearish Turtle Soup: Triangle down + label (🐢S/M/L/D + star rating).
⦁ Labels can show: quality stars, FAST/SLOW reversal, reversal & breakout volume tags, previous consecutive count, and last move %.
⦁ Lines/Boxes: OBs, FVGs, OTE zones, SL/TP bands, and optional breakout magnitude line.
Inputs (Key Groups)
⦁ Turtle Soup: Lookbacks (single or S/M/L), reversal bars, wick ratio, magnitude line, reversal speed, volume confirmation (multiplier/length), consecutive tracking.
⦁ Order Blocks: Show/validate structure, lookback, extend-until-touched, mitigation % threshold, colors.
⦁ Fair Value Gaps: Show, min size %, colors, mitigation mode (Touch/50%/Full), optional remove-on-mitigation.
⦁ Kill Zones/Sessions: Enable Asian/London/NY with custom HHMM, colors.
⦁ OTE: Show OTE (61.8–78.6%), color, timeframe-adaptive offsets.
⦁ Signal Filters: Filter by session, time window, market structure method (ADX/MA/ATR/Combined), thresholds (ADX, MA periods, ATR multiplier), trending/ranging allowances, structure label & offset.
⦁ SL/TP: SL buffer %, TP 1:1/1:2/1:3 toggles & colors.
⦁ Breakout Validation: Require breakout-bar volume, min swing age, volume label toggles.
⦁ Alerts: Enable/disable.
⦁ Dashboard: Position, text size, colors, border.
How to Use
1. Markets & Timeframes: Works on FX, crypto, indices, and futures. Start with M5–H1 for intraday and H1–H4 for swing; refine lookbacks per instrument volatility.
2. Core Flow:
⦁ Enable multiple lookbacks for robustness on mixed volatility.
⦁ Turn on validate_swing_significance to avoid micro sweeps.
⦁ Use validate_breakout_volume + use_volume_confirmation to filter weak pokes.
3. Context Choice:
⦁ In ranging environments, allow both sides; in trends, consider counter-trend only at HTF OB/FVG/OTE confluence.
⦁ Narrow to London/NY for higher activity if desired.
4. Entries/Stops/Targets:
⦁ Entry on confirmed label close or at OTE pullback post-signal.
⦁ SL: below/above reversal wick + sl_buffer%.
⦁ TP: scale at 1:1/1:2/1:3 or manage via OB/FVG/structure breaks.
5. Confluence: Prefer Turtle Soup that aligns with OB/FVG zones and Combined structure method for added reliability.
Alerts
⦁ “Bullish Turtle Soup detected” and “Bearish Turtle Soup detected” fire on confirmation.
⦁ Set to Once Per Bar (as coded) or adjust in the alert dialog per your workflow.
Notes & Tips
⦁ Multiple lookbacks (S/M/L) help capture both shallow and deep liquidity sweeps.
⦁ Use market structure label with offset to keep it readable on the right of price.
⦁ Mitigation tracking visually communicates when OB/FVG confluence is no longer valid.
⦁ Dashboard = fast situational awareness; keep it on during live trading.
Limitations & Disclaimer
⦁ This tool is educational and not financial advice. No profitability or win-rate is implied. Markets carry risk; manage position size and test thoroughly.
⦁ Signal quality depends on market regime, spreads, news, and data quality. Backtests/forward-tests may differ.
⦁ Visual objects are capped for performance; old items may auto-clean to keep charts responsive.
ICT Killzones & MacrosICT Killzones & Macros (v1.1.5) — configurable ICT session windows + refined “macro” windows with live High/Low levels, optional extensions, next-window previews, and lightweight opening-price lines. Built to be clock-robust, timezone-aware, and performant on intraday charts.
Tip: All times are interpreted in your chosen IANA timezone (default: America/New_York) and auto-handle DST. You can rename, recolor, enable/disable, and retime every window.
What it plots
- Killzones (5) : Asia (19:00–02:00), London (02:00–05:00), NY AM (07:00–09:30), London Close (10:00–12:00), NY PM (13:30–16:00) — full-height boxes with optional header.
- Macros (8) (defaults tailored for common ICT “refined” windows): Asia-1 (18:00–21:00), Asia-2 (21:00–00:00), London-1 (01:00–04:00), AM-1 (09:45–10:15), AM-2 (10:45–11:15), Lunch (12:00–13:00), PM-1 (13:30–14:30), Power Hour (15:10–16:00).
- Live High/Low lines for the current Macro/Killzone window.
- Optional HL extension to the right until price crosses or the trading day rolls (style selectable).
- “Next” previews : earliest upcoming Macro and Killzone header; optional next-window background band.
- Opening Prices (3 lightweight time lines) : defaults 00:00, 08:30, 09:30 with right-edge labels, scoped to a session you choose (auto-cleans at session end).
- Key inputs & styling
- General : Timezone (IANA), “Sessions to show” (per window) to keep only the last N completed windows.
- Header : height (ticks), gap (ticks), fill opacity, border width/style, text size/color, toggle “Next Macro/Killzone” headers.
- Boxes : global fill opacity, global border width/style (used by both Macros & Killzones).
- High/Low : show HL, HL line style, extend on/off + extension style, optional extension labels.
- Opening Prices : enable Time 1/2/3, set HH:MM for each, session window, per-line colors, style (dotted/dashed/solid), width.
- Per-window controls : each Macro/Killzone has Enable, Session (HHMM-HHMM), Label, Fill color.
How to use (quick start)
- Set Timezone to your preference (default America/New_York).
- Toggle on the Macros and Killzones you trade. Adjust session times if needed.
- (Optional) Turn on Extend High/Low to project levels until crossed/day-roll.
- (Optional) Enable Next… headers to see the next upcoming window at a glance.
- (Optional) Configure Opening Prices (00:00 / 08:30 / 09:30 by default) and the session over which they appear.
Behavior & notes
- Time windows are computed by clock, not by guessing bar timestamps, making them robust across brokers and timeframes.
- With HL extension on, the current window’s levels extend until crossed or the end of the trading day (in your timezone). With it off, completed windows keep static HL markers (limited by “Sessions to show”).
- “Sessions to show” applies per Macro/Killzone to automatically prune older windows and keep charts snappy.
- Opening-price lines exist only within the chosen “Opening Prices Session” and are removed when it ends (keeps charts clean).
Defaults (color cues)
Killzones: Asia (blue), London (purple), NY AM (green), London Close (yellow), NY PM (orange).
Macros: neutral greys with Lunch and PM accents out of the box (all customizable).
Performance tips
- Reduce “Sessions to show” if you scroll far back in history.
- Disable “Next…” previews and/or extension labels on very slow machines.
- Narrow the “Opening Prices Session” window to exactly when you need those lines.
Changelog highlights
- v1.1.5 : Internal refinements and stability.
- v1.1.3 : Live High/Low lines for current windows + optional extension.
- v1.1.2 : Added “next Killzone” preview (to match “next Macro”).
- v1.1.0 : Defaults updated (5 KZ, 8 Macros). Removed “snap-to-killzone” behavior.
- v1.0.0 : Independent Macro vs. Killzone rendering; cleaner header logic.
- Known limitations
If your chart warns about drawings, trim “Sessions to show”.
If your broker session times differ from NY hours, adjust the sessions or change the indicator timezone.
Credits & intent
Inspired by ICT timing concepts; provided for education/mark-up, not financial advice.
Built to be flexible so you can mirror your personal playbook and journaling workflow.
ATR Adaptive (auto timeframe)This indicator automatically adjusts the Average True Range (ATR) period based on the current chart timeframe, helping traders define dynamic Stop Loss (SL) and Take Profit (TP) levels that adapt to market volatility.
The ATR measures the average range of price movement over a defined number of bars. By using adaptive periods, the indicator ensures that volatility is interpreted consistently across different timeframes — from 1-minute charts to daily or weekly charts.
It plots two main levels on the chart:
🔴 Low – ATR × Multiplier → Suggested Stop Loss (below the candle’s low)
🟢 High + ATR × Multiplier → Suggested Take Profit or trailing level (above the candle’s high)
Optional additional lines show ATR-based TP levels calculated from the current close.
💡 How to use
Select your desired ATR multiplier (e.g., 1.3× for SL, 1.0× for TP).
The script automatically detects the chart timeframe and uses an appropriate ATR length (e.g., ATR(30) on M5, ATR(21) on H1, ATR(14) on Daily).
Use the plotted levels to:
Set Stop Loss just below the red ATR band (for long trades).
Set Take Profit near or slightly below the green ATR band (for short trades, reverse logic).
⚙️ Why it helps
Maintains consistent volatility-based risk across multiple timeframes.
Avoids arbitrary fixed SL/TP values.
Makes the trading strategy more responsive in high-volatility markets and more conservative when volatility contracts.
Particularly useful for intraday and swing trading, where volatility varies significantly between sessions.
Directional Indicator Crossovers v1[JopAlgo]Directional Indicator Crossovers v1 — the classic DMI, made clearer and easier to act on
We'd like to introduce you to a more relaxed, streamlined version of DI. While it may not seem like it at first glance, we've taken the D+/D- method as a starting point and developed our own version of this indicator: two lines, a smooth green/red field indicating who's in control, and clear crossover alerts for a flip. We deliberately chose the step line representation because it closely matches the candlestick patterns on the chart. Designed to help you react faster—without clutter.
What you’ll see
+DI (green) and −DI (red) using classic Wilder smoothing.
A soft control zone between the lines: green when +DI dominates, red when −DI dominates.
Crossover alerts (no labels, no background flooding)—just the turning points.
Why this helps
Instant bias: the shaded field tells you who’s in control without reading values.
Cleaner execution: minimal visuals keep focus on the handoff (+DI↔−DI) and your price levels.
Actionable by design: built-in alerts fire right at the flip to route into your workflow.
How to read it
Bias: Green zone → buyers lead. Red zone → sellers lead.
Trigger: Consider entries on the DI crossover that aligns with your higher-timeframe context (trend, S/R, OB).
Patience in chop: If flips are frequent in tight ranges, wait for sustained zone dominance or confirm on a higher TF.
Exit/flip: Opposite crossover or a clear loss of dominance.
Settings that matter
DI Length (default 14): Higher = calmer, fewer flips. Lower = faster, more signals.
Visuals: Keep the control zone on for quick reads; hide crossover marks if you prefer pure lines.
Alerts: Enable bullish and bearish DI cross alerts; connect to notifications or webhooks as needed.
Starter presets
Intraday (15m–1H): DI Length 12–14 for quicker handoffs.
Swing (4H–1D): DI Length 14–20 for cleaner signals.
Choppy assets: Nudge length higher to dampen noise.
Where it shines (and limits)
Best: Liquid markets (crypto majors, indices, large caps) where handoffs matter.
Works elsewhere: Still useful on slower pairs; extend length for stability.
Limit: Frequent flips in low-range sessions—pair with HTF bias or structure.
Alerts included
Bullish DI Crossover: +DI crosses above −DI.
Bearish DI Crossover: −DI crosses above +DI.
Attribution & License
Built on the Directional Movement Index concept by J. Welles Wilder Jr. (1978).
Independent Pine v6 implementation (not derived from TradingView’s built-in source).
Released as Open Source (MPL-2.0)—please keep the license header intact.
Disclaimer
For educational purposes only; not financial advice. Trading involves risk. Test first, use clear levels, and manage risk. This project is independent and not affiliated with or endorsed by TradingView.
ICT Sessions With BOS [TradeWithRon]
WITH BOS
This version includes BOS with filter for each session.
NONE,FVG,CISD Filter preset
you can choose how many BOS per session, style etc.
ICT Sessions and killzones maps three intraday sessions on your chart (Asia, London, NY), tracks each session’s live high/low, draws optional session range boxes, and projects ICT OTE zones in real time—with granular styling, touch/mitigation logic, and alerting.
What it does
*Live Session high/low tracking.
Historical session lines:
When a session ends, its final High/Low are preserved as tracked lines (with optional labels) for a configurable number of recent sessions.
Session boxes (ranges):
Draws a shaded box from session start to end that expands with new highs/lows. Limit how many recent boxes remain on chart.
ICT OTE zones (live):
For the currently active session, projects user-defined Fibonacci OTE levels (e.g., 61.8%, 70.5%, 78.6) between the session’s running high and low. Zones update tick-by-tick and can show labels. You can retain a history of recent sessions’ OTE levels.
snapshot
Break visualization (mitigation):
Optionally color the bar when price breaks a stored session High/Low. You can:
Require a body close through the level (vs. any touch)
Auto-remove the line and/or label on touch/close
Use custom break colors per session and side (high/low)
Timestamps:
Add up to two recurring vertical timestamp markers (e.g., 08:00, 09:30), plus an opening horizontal marker (e.g., 09:30) with label that extends until the next occurrence.
Alerts:
Built-in alerts for:
Touch of Session 1/2/3 High/Low (Asia/London/NY)
Touch of OTE levels (per session)
Key inputs:
Time & Limits
Timezone (e.g., GMT-4)
Timeframe limit: hide all drawings on and above a specified TF
Sessions
Session windows (default):
Session 1 (Asia): 18:00–00:00
Session 2 (London): 00:00–06:00
Session 3 (NY): 08:00–12:00
How many to keep (lines/boxes)
Line width, colors, and label suffixes (“High”/“Low”)
Labels: toggle, text (“Asia”, “London”, “NY”), size, and colors
Boxes: toggle per session and background colors
ICT OTE Zones
Toggle per session (Asia/London/NY)
Levels (comma-separated %s, e.g., 61.8,70.5,78.6)
History: number of past sessions to retain
Opacity, line width/style, and label size
Custom label text per session (e.g., “Asia OTE”)
Break/Mitigation Behavior:
Enable Mitigated Candles (bar color on break)
Remove line on touch and/or remove label on touch
Require body close (vs. wick touch)
Custom break colors by session and side
Timestamps
Opening horizontal line (time, style, width, color, label text/size, drawing limit)
Two vertical timestamps (times, style, width, color, drawing limit)
Alerts
Master Enable Alerts
Per-session toggles for High/Low touches
OTE touch alerts
How it works (under the hood)
Detects session state via input.session() windows in the chosen timezone.
Live session High/Low lines and labels update in real time; on session end, final levels are stored with optional labels and tracked length.
OTE zones are live-computed from current session High↔Low and refreshed every bar; a compact rolling history is enforced.
Bar coloring reacts to break events (touch or body-close, per your setting) and uses session-specific colors when enabled.
Timestamp lines/labels are created on each occurrence and trimmed to a drawing limit for performance.
Tips:
To hide session lines but keep boxes, set line color opacity to 0.
Use Timeframe Limit to keep higher-TF charts clean.
Fine-tune OTE Levels and History to balance clarity and performance.
For stricter break logic, enable Require Body Close.
Note: The script reserves high limits for lines/labels/boxes to keep recent context visible while managing cleanup automatically. Adjust “Session Number” and “Number Of Boxes” to suit your workflow.
— © TradeWithRon
PulseGrid Universal Scalper - Adaptive Pulse and Symmetric SpansInstrument agnostic. Works on any symbol and timeframe supported by TradingView.
Message or hit me up in chat for full access .
Purpose and scope
PulseGrid is a short timeframe strategy designed to read intrabar structure and recent path so that entries align with actionable momentum and context. The strategy is private. The description below provides all the information needed to understand how it behaves, how it sizes risk, how to tune it responsibly, and how to evaluate results without making unrealistic claims. The design is instrument agnostic. It runs on any asset class that prints open high low close bars on TradingView. That includes commodities such as Gold and WTI, currencies, crypto, equity indices, and single stocks. Performance will always depend on the symbol’s liquidity, spread, slippage, and session structure, which is why the description focuses on principles and safe parameter ranges instead of hard promises.
What the strategy does at a glance
It builds a composite entry signal named Pulse from five normalized bar features that reflect short term pressure and follow through.
It applies regime guards that keep the strategy inactive when the tape is either too quiet, too bursty, or too directionally random.
It optionally uses a directional filter where a fast and a slow exponential average must agree and their gap must be material relative to recent true range.
When a signal is allowed, risk is sized using symmetric spans that come from nearby untraded price distances above and below the market. The strategy sets a single stop and a single take profit from those spans.
Lines for entry, stop, and take profit are drawn on the chart. A compact on chart table shows trade counts, win rate, average R per trade, and profit factor for all trades, longs only, and shorts only.
This combination yields entries that are reactive but not chaotic, and risk lines that respect the market’s recent path instead of generic pip or point targets.
Why the design is original and useful
The core originality is the union of a composite entry that adapts to volatility and a geometry based risk model. The entry uses five different viewpoints on the same bar space instead of relying on a single technical indicator. The risk model uses spans that come from actual untraded distance rather than fixed multipliers of a generic volatility measure. The result is a framework that is simple to read on a chart and simple to evaluate, yet it avoids the traps of curve fitting to one symbol or one month of data. Because everything is normalized locally, the same logic translates across asset classes with only modest tuning.
The Pulse composite in detail
Pulse is a weighted blend of the following normalized features.
Impulse imbalance. The script sums upward and downward impulses over a short window. An upward impulse is the extension of highs relative to the prior bar. A downward impulse is the extension of lows relative to the prior bar. The net imbalance, scaled by the local range, captures whether extension pressure is building or fading.
Wick and close location. Inside each bar, the distance between the close and the extremes carries information about rejection or acceptance. A bar that closes near the high with relatively heavier lower wick suggests upward acceptance. A bar that closes near the low with heavier upper wick suggests downward acceptance. A weight controls the contribution of wick skew versus close location so that users can favor reversal or momentum behaviour.
Shock touches. Within the recent range window, touches that occur very near the top decile or bottom decile are marked. A short sliding window counts recent shocks. Frequent top shocks in a rising context suggest supply tests. Frequent bottom shocks in a declining context suggest demand tests. The count is normalized by window length.
Breakout ledger. The script compares current extremes to lagged extremes and keeps a simple count of recent upside and downside breakouts. The difference behaves as a short term polarity meter.
Curvature. A simple second difference in closing price acts as a curvature term. It is normalized by the recent maximum of absolute one bar returns so that the value remains bounded and comparable to other terms.
Pulse is smoothed over a fraction of the main signal length. Smoothing removes impulse spikes without destroying the quick reaction that scalpers need. The absolute value of smoothed Pulse can be used with an adaptive gate so that only the top percentile of energy for the recent environment is eligible for entries. A small floor prevents accidental entries during very quiet periods.
Regime guards that keep the strategy selective
Three guards must all pass before any entry can occur.
Auction Balance Factor. This is the proportion of closes that land inside a mid band of the prior bar’s high to low range. High values indicate balanced chop where breakouts tend to fail. Low values indicate directional conditions. The strategy requires ABF to sit below a user chosen maximum.
Dispersion via a Gini style measure on absolute returns. Very low dispersion means bars are small and uniform. Very high dispersion means a few outsized bars dominate and slippage risk can be elevated. The strategy allows the user to require the dispersion measure to remain inside a band that reflects healthy activity.
Binary entropy of direction. Over the core window, the proportion of up closes is used to compute a simple entropy. Values near one indicate coin flip behaviour. Values near zero indicate one sided sequences. The guard requires entropy below a ceiling so that random directionality does not produce noise entries.
An optional directional filter asks that a fast and a slow exponential average agree on direction and that their gap, when divided by an average true range, exceed a threshold. This filter can be enabled on symbols that trend cleanly and disabled when the composite entry is already selective enough.
Risk sizing with symmetric spans
Instead of fixed points or a pure ATR multiplier, the strategy sizes stops and targets from a pair of spans. The upward span reflects recent untraded distance above the market. The downward span reflects recent untraded distance below the market. Each span is floored by a fallback that comes from the maximum of a short simple range average and a standard average true range. A tick based floor prevents microscopic stops on instruments with high tick precision. An asymmetry cap prevents one span from becoming many times larger than the other. For long entries the stop is a multiple of the downward span and the target is a multiple of the upward span. For short entries the stop is a multiple of the upward span and the target is a multiple of the downward span. This creates a risk box that is symmetric by construction yet adaptive to recent voids and gaps.
Execution, ties, and housekeeping
Entries evaluate at bar close. Exits are tested from the next bar forward. If both stop and target are hit within the same bar, the outcome can be resolved in a consistent way that favors the stop or the target according to a single user setting. A short cooldown in bars prevents flip flops. Users can restrict entries to specific sessions such as London and New York. The chart renders entry, stop, and target lines for each trade so that every action is visible. The table in the top right shows trade counts, take profit and stop counts, win rate, average R per trade, and profit factor for the whole set and by direction.
Defaults and responsible backtesting
The default properties in the script use a realistic initial capital and commission value. Users should also set slippage in the strategy properties to reflect their broker and symbol. Small timeframe trading is sensitive to friction and the strategy description does not claim immunity to that reality. The strategy is intended to be tested on a dataset that produces a meaningful sample of trades. A sample in the range of a hundred trades or more is preferred because variance in short samples can be large. On thin symbols or periods with little regular trading, users should either change timeframe, change sessions, or use more selective thresholds so that the sample contains only liquid scenarios.
Universal usage across markets
The strategy is universal by design. It will run and produce lines on any open high low close series on TradingView. The composite entry is made of normalized parts. The regime guards use proportions and bounded measures. The spans use untraded distance and range floors measured in the local price scale. This allows the same logic to function on a currency pair, a commodity, an index future, a stock, or a crypto pair. What changes is calibration.
A safe approach for universal use is as follows.
Start with the default signal length and wick weight.
If the chart prints many weak signals, enable the directional filter and raise the normalized gap threshold slightly.
If the chart is too quiet, lower the adaptive percentile or, with adaptive off, lower the fixed pulse threshold by a small amount.
If stops are too tight in quiet regimes, raise the fallback span multiplier or raise the minimum tick floor in ticks.
If you observe long one sided days, lower the maximum entropy slightly so that entries only occur when directionality is genuine rather than alternating.
Because the logic is bounded and local, these simple steps carry over across symbols. That is why the strategy can be used literally on any asset that you can load on a TradingView chart. The code does not depend on a specific tick size or a specific exchange calendar. It will still remain true that symbols with higher spread or fewer regular trading hours demand stricter thresholds and larger floors.
Suggested parameter ranges for common cases
These ranges are guidelines for one to five minute bars. They are not promises of performance. They reflect the balance between having enough signals to learn from and keeping noise controlled.
Signal length between 18 and 34 for liquid commodities and large capitalization equities.
Wick weight between 0.30 and 0.50 depending on whether you want reversal recognition or close momentum.
Adaptive gate percentile between 85 and 93 when adaptive is enabled. Fixed threshold between 0.10 and 0.18 when adaptive is disabled. Use a non zero floor so very quiet periods still require some energy.
Auction Balance Factor maximum near 0.70 for symbols with clear session bursts. Slightly higher if you prefer to include more balanced prints.
Dispersion band with a lower bound near 0.18 and an upper bound near 0.68 for most session instruments. Tighten the band if you want to skip very bursty days or very flat days.
Entropy maximum near 0.90 so coin flip phases are filtered. Lower the ceiling slightly if the symbol whipsaws frequently.
Stop multiplier near one and take profit multiplier between two and three for a single target approach. Larger target multipliers reduce hit rate and lengthen holding time.
These are safe starting points across commodities, currencies, indices, equities, and crypto. From there, small increments are preferred over dramatic changes.
How to evaluate responsibly
A clean chart and a direct test process help avoid confusion. Use standard candles for signals and exits. If you use a non standard chart type such as Heikin Ashi or Renko, do so only for visualization and not for the strategy’s signal computation, as those chart types can produce unrealistic fills. Turn off other indicators on the published chart unless they are needed to demonstrate a specific property of this strategy. When you post results or discuss outcomes, include the symbol, timeframe, commission and slippage settings, and the session settings used. This makes the context clear and avoids misleading readers.
When you look at results, consider the following.
The distribution of R per trade. A positive average R with a moderate profit factor suggests that exits are sized appropriately for the symbol.
The balance between long and short sides. The HUD table separates the two so you can see if one side carries the edge for that symbol.
The sensitivity to the tie preference. If many bars hit both stop and take profit, the market is chopping inside the risk box and you may need larger floors or stricter regime guards.
The session effect. Session hours matter for many instruments. Align your session filter with where liquidity and volatility concentrate.
Known limitations and honest warnings
PulseGrid is not a guarantee of future profit. It is a systematic way to read short term structure and to size risk in a way that reflects recent path. It assumes that the data feed reflects the exchange reality. It assumes that slippage and spread are non zero and uses explicit commission and user provided slippage to approximate that. It does not place multiple targets. It does not trail stops. It is not a high frequency system and does not attempt to model queue priority or microsecond fills. On illiquid symbols or very short timeframes outside regular hours, signals will be less reliable. Users are responsible for choosing realistic settings and for evaluating whether the symbol’s conditions are suitable.
First use checklist
Load the symbol and timeframe you care about.
If the instrument has clear sessions, turn on the session filter and select realistic London and New York hours or other sessions relevant to the instrument.
Set commission and slippage in the strategy properties to values that match your broker or exchange.
Run the strategy with defaults. Look at the HUD summary and the lines.
Decide whether to enable the directional filter. If you see frequent reversals around the entry line, enable it and raise the normalized gap threshold slightly.
Adjust the adaptive gate. If the chart floods, raise the percentile. If the chart starves, lower it or use a slightly lower fixed threshold.
Adjust the fallback span multiplier and tick floor so that stops are never microscopic.
Review per session performance. If one session underperforms, restrict entries to the better one.
This simple process takes minutes and transfers to any other symbol.
Why this script is private
The source remains private so that the underlying method and its implementation details are not copied or republished. The description here is complete and self contained so that users can understand the purpose, originality, usage, and limitations without needing to inspect the source. Privacy does not change the strategy’s on chart behavior. It only protects the specific coding details.
Guarantee and compliance statements
This description does not contain advertising, solicitations, links, or contact information. It does not make performance promises. It explains how the script is original and how it works. It also warns about limitations and the need for realistic assumptions. The strategy is not investment advice and is not created only for qualified investors. It can be tested and used for educational and research purposes. Users should read TradingView’s documentation on script properties and backtesting. Users should avoid non standard chart types for signal computation because those produce unrealistic results. Users should select realistic account sizes and friction settings. Users should not post claims without showing the settings used.
Closing summary
PulseGrid is a compact framework for short timeframe trading that combines a composite entry built from multiple normalized bar features with a symmetric span model for risk. The entry adapts to volatility. The regime guards keep the strategy inactive when the tape is either too quiet or too erratic. The risk geometry respects recent untraded spans instead of arbitrary distances. The entire design is instrument agnostic. It will run on any symbol that TradingView supports and it will behave consistently across asset classes with modest tuning. Use it with a clean chart, realistic friction, and enough trades to make your evaluation meaningful. Use sessions if the instrument concentrates activity in specific hours. Adjust one control at a time and prefer small increments. The goal is not to find a magic parameter. The goal is to maintain a stable rule set that reads market structure in a way you can trust and audit.
Daily ATR Zones
Dynamic Daily ATR Projection Zones
### **Description:**
This indicator projects potential price levels for the current trading day based on the Average True Range (ATR) of the previous day. It is designed to help intraday traders visualize daily volatility and identify key potential support, resistance, or target levels that are fixed for the entire session and do not repaint.
**How It Works**
The logic is based on two key components: a stable base price and a reliable volatility measure.
* **Base Price:** The indicator uses the **Open price of the current day** as the central anchor point for all projections.
* **Volatility Measure:** The calculation uses the final, completed **ATR value from the previous day**. This ensures that the projected zones are constant throughout the current trading day and are not subject to repainting.
The projection levels are then calculated using the formula:
`Current Day's Open + (Previous Day's ATR * Multiplier)`
**Features**
This script is fully customizable to fit your trading style:
* **Customizable ATR Multipliers:** Easily define your own price zones by entering a comma-separated list of multipliers (e.g., `0.5, 1.0, 1.5, -0.5, -1.0`).
* **Dynamic & Movable Labels:** The price labels are designed to stay on the right edge of the chart, ensuring they never obscure the current price action.
* **Adjustable Label Position:** Use the "Label Horizontal Offset" setting to control how far the labels are positioned from the current bar, keeping your chart clean.
* **Adjustable Label Size:** Choose from five different sizes (Tiny, Small, Normal, Large, Huge) to ensure the labels are perfectly readable on any device.
* **Toggle Labels:** You can turn all labels on or off with a single checkbox.
* **Full Color Customization:** Set unique colors for the positive (upper), negative (lower), and neutral projection zones.
**How to Use**
This tool can be integrated into various intraday trading strategies:
* **Intraday Targets:** The projected levels can serve as potential take-profit or stop-loss targets for scalpers and day traders.
* **Support & Resistance:** Watch for price reactions, such as bounces or rejections, at these ATR levels, as they often act as dynamic support and resistance zones.
* **Volatility Gauge:** The zones provide a quick visual reference for how far the price has moved relative to its recent average daily range. For example, if the price reaches the `1.0 ATR` level, it has completed an "average" day's move.
HTF Cross Breakout [CHE] HTF Cross Breakout — Detects higher timeframe close crossovers for breakout signals, anchors VWAP for trend validation, and flags continuations or traps with visual extensions for delta percent and stop levels.
Summary
This indicator spots moments when the current chart's close price crosses a higher timeframe close, marking potential breakouts only when the current bar shows directional strength. It anchors a volume-weighted average price line from the breakout point to track trend health, updating labels to show if the move continues or reverses into a trap. Extensions add a dotted line linking the breakout level to the current close with percent change display, plus a stop-loss marker at the VWAP end. Signals gain robustness from higher timeframe confirmation and anti-repainting options, reducing noise in live bars compared to simple crossover tools.
Motivation: Why this design?
Traders often face false breakouts from intrabar wiggles on lower timeframes, especially without higher timeframe alignment, leading to whipsaws in volatile sessions. This design uses higher timeframe close as a stable reference for crossover detection, combined with anchored volume weighting to gauge sustained momentum. It addresses these by enforcing bar confirmation and directional filters, providing clearer entry validation and risk points without overcomplicating the chart.
What’s different vs. standard approaches?
Reference baseline
Standard crossover indicators like moving average crosses operate solely on the chart timeframe, ignoring higher timeframe context and lacking volume anchoring.
Architecture differences
- Higher timeframe data pulls via security calls with optional repainting control for stability.
- Anchored VWAP resets at each signal, accumulating from the breakout bar only.
- Label dynamics update in real-time for continuation checks, with extensions for visual delta and stop computation.
- Event-driven line finalization prunes old elements after a set bar extension.
Practical effect
Charts show persistent lines and labels that extend live but finalize cleanly on new events, avoiding clutter. This matters for spotting trap reversals early via label color shifts, and extensions provide quick risk visuals without manual calculations, improving decision speed in trend trades.
How it works (technical)
The indicator first determines a higher timeframe based on user selection, pulling its close price securely. It checks for crossovers or crossunders of the current close against this higher close, but only triggers on confirmed bars with matching directional opens and closes. On a valid event, a horizontal line and label mark the higher close level, while a dashed VWAP line starts accumulating typical price times volume from that bar onward. During the active phase, the breakout line extends to the current bar, the label repositions and updates text based on whether the current close holds above or below the level for bulls or bears. A background tint warns if the close deviates adversely from the current VWAP. Extensions draw a vertical dotted line at the last bar between the breakout level and close, placing a midpoint label with percent difference; separately, a label at the VWAP end shows a computed stop price. Persistent variables track the active state and accumulators, resetting on new events after briefly extending old elements. Repaint risk from security calls is mitigated by confirmed bar gating or user opt-in.
Parameter Guide
Plateau Length (reserved for future, currently unused): Sets a length for potential plateau detection in extensions; default 3, minimum 1. Higher values would increase stability but are not active yet—leave at default to avoid tuning.
Line Width: Controls thickness of breakout, VWAP, and extension lines; default 2, range 1 to 5. Thicker lines improve visibility on busy charts but may obscure price action—use 1 for clean views, 3 or more for emphasis.
+Bars after next HTF event (finalize old, then delete): Extends old lines and labels by this many bars before deletion on new signals; default 20, minimum 0. Shorter extensions keep charts tidy but risk cutting visuals prematurely; longer aids review but builds clutter over time.
Evaluate label only on HTF close (prevents gray traps intrabar): When true, label updates wait for higher timeframe confirmation; default true. Enabling reduces intrabar flips for stabler signals, though it may delay feedback—disable for faster live trading at repaint cost.
Allow Repainting: Permits real-time security data without confirmation offset; default false. False ensures historical accuracy but lags live bars; true speeds updates but can repaint on HTF closes.
Timeframe Type: Chooses HTF method—Auto Timeframe (dynamic steps up), Multiplier (chart multiple), or Manual (fixed string); default Auto Timeframe. Auto adapts to chart scale for convenience; Multiplier suits custom scaling like 5 times current; Manual for precise like 1D on any chart.
Multiplier for Alternate Resolution: Scales chart timeframe when Multiplier type selected; default 5, minimum 1. Values near 1 mimic current resolution for subtle shifts; higher like 10 jumps to broader context, increasing signal rarity.
Manual Resolution: Direct timeframe string like 60 for 1H when Manual type; default 60. Match to trading horizon—shorter for swing, longer for positional—to balance frequency and reliability.
Show Extension 1: Toggles dotted line and delta percent label between breakout level and current close; default true. Disable to simplify for basic use, enable for precise momentum tracking.
Dotted Line Width: Thickness for Extension 1 line; default 2, range 1 to 5. Align with main Line Width for consistency.
Text Size: Size for delta percent label; options tiny, small, normal, large; default normal. Smaller reduces overlap on dense charts; larger aids glance reads.
Decimals for Δ%: Precision in percent change display; default 2, range 0 to 6. Fewer decimals speed reading; more suit low-volatility assets.
Positive Δ Color: Hue for upward percent changes; default lime. Choose contrasting for visibility.
Negative Δ Color: Hue for downward percent changes; default red. Pair with positive for quick polarity scan.
Dotted Line Color: Color for Extension 1 line; default gray. Neutral tones blend well; brighter for emphasis.
Background Transparency (0..100): Opacity for delta label background; default 90. Higher values fade for subtlety; lower solidifies for readability.
Show Extension 2: Toggles stop-loss label at VWAP end; default true. Turn off for entry focus only.
Stop Method: Percent from VWAP end or fixed ticks; options Percent, Ticks; default Percent. Percent scales with price levels; Ticks suits tick-based instruments.
Stop %: Distance as fraction of VWAP for Percent method; default 1.0, step 0.05, minimum 0.0. Tighter like 0.5 reduces risk but increases stops; wider like 2.0 allows breathing room.
Stop Ticks: Tick count offset for Ticks method; default 20, minimum 0. Adjust per asset volatility—fewer for tight control.
Price Decimals: Rounding for stop price text; default 4, range 0 to 10. Match syminfo.precision for clean display.
Text Size: Size for stop label; options tiny, small, normal, large; default normal. Scale to chart zoom.
Text Color: Foreground for stop text; default white. Ensure contrast with background.
Inherit VWAP Color (BG tint): Bases stop label background on VWAP hue; default true. True maintains theme; false allows custom black base.
BG Transparency (0..100): Opacity for stop label background; default 0. Zero for no tint; up to 100 for full fade.
Reading & Interpretation
Breakout lines appear green for bullish crosses or red for bearish, extending live until a new event finalizes them briefly then deletes. Labels start blank, updating to Bull Cont. or Bear Cont. in matching colors if holding the level, or gray Bull Trap/Bear Trap on reversal. VWAP dashes yellow for bulls, orange for bears, sloping with accumulated volume weight—deviations trigger faint red background warnings. Extension 1's dotted vertical shows at the last bar, with midpoint label green/red for positive/negative percent from breakout to close. Extension 2 places a left-aligned label at VWAP end with stop price and method note, tinted to VWAP for context.
Practical Workflows & Combinations
For trend following, enter long on green Bull Cont. labels above VWAP with higher highs confirmation, filtering via rising structure; short on red Bear Cont. below. Pair with volume surges or RSI above 50 for bulls to avoid traps. For exits, trail stops using the Extension 2 level, tightening on warnings or gray labels—aggressive on continuations, conservative post-trap. In multi-timeframe setups, use default Auto on 15m charts for 1H signals, scaling multiplier to 4 for daily context on hourly; test on forex/stocks where volume is reliable, avoiding low-liquidity assets.
Behavior, Constraints & Performance
Signals confirm on bar close with HTF gating when strict mode active, but live bars may update if repainting enabled—opt false for backtest fidelity, true for intraday speed. Security calls risk minor repaints on HTF closes, mitigated by confirmation offsets. Resources cap at 1000 bars back, 50 lines/labels total, with event prunes to stay under budgets—no loops, minimal arrays. Limits include VWAP lag in low-volume periods and dependency on accurate HTF data; gaps or holidays may skew anchors.
Sensible Defaults & Quick Tuning
Defaults suit 5m-1H charts on liquid assets: Auto HTF, no repaint, 1% stops. For choppy markets with excess signals, enable strict eval and bump multiplier to 10 for rarer triggers. If sluggish in trends, shorten extend bars to 10 and allow repainting for quicker visuals. On high-vol like crypto, widen stop % to 2.0 and use Ticks method; for stables like indices, tighten to 0.5% and keep Percent.
What this indicator is—and isn’t
This is a signal visualization layer for breakout confirmation and basic risk marking, best as a filter in discretionary setups. It isn’t a standalone system or predictive oracle—combine with price structure, news awareness, and sizing rules for real edges.
Disclaimer
The content provided, including all code and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.
Do not use this indicator on Heikin-Ashi, Renko, Kagi, Point-and-Figure, or Range charts, as these chart types can produce unrealistic results for signal markers and alerts.
Best regards and happy trading
Chervolino
Bollinger Band Screener [Pineify]Multi-Symbol Bollinger Band Screener Pineify – Advanced Multi-Timeframe Market Analysis
Unlock the power of rapid, multi-asset scanning with this original TradingView Pine Script. Expose trends, volatility, and reversals across your favorite tickers—all in a single, customizable dashboard.
Key Features
Screens up to 8 symbols simultaneously with individual controls.
Covers 4 distinct timeframes per symbol for robust, multi-timeframe analysis.
Integrates advanced Bollinger Band logic, adaptable with 11+ moving average types (SMA, EMA, RMA, HMA, WMA, VWMA, TMA, VAR, WWMA, ZLEMA, and TSF).
Visualizes precise state changes: Open/Parallel Uptrends & Downtrends, Consolidation, Breakouts, and more.
Highly interactive table view for instant signal interpretation and actionable alerts.
Flexible to any market: crypto, stocks, forex, indices, and commodities.
How It Works
For each chosen symbol and timeframe, the script calculates Bollinger Bands using your specified source, length, standard deviation, and moving average method.
Real-time state recognition assigns one of several states (Open Rising, Open Falling, Parallel Rising, Parallel Falling), painting the table with unique color codes.
State detection is rigorously defined: e.g., “Open Rising” is set when both bands and the basis rise, indicating strong up momentum.
All bands, signals, and strategies dynamically update as new bars print or user inputs change.
Trading Ideas and Insights
Identify volatility expansions and compressions instantly, spotting breakouts and breakdowns before they play out.
Spot multi-timeframe confluences—when trends align across several TFs, conviction increases for potential trades.
Trade reversals or continuations based on unique Bollinger Band patterns, such as squeeze-break or persistent parallel moves.
Harness this tool for scalping, swing trading, or systematic portfolio screens—your logic, your edge!
How Multiple Indicators Work Together
This screener’s core strength is its integration of multiple moving average types into Bollinger Band construction, not just standard SMA. Each average adapts the bands’ responsiveness to trend and noise, so traders can select the underlying logic that matches their market environment (e.g., HMA for fast moves or ZLEMA for smoothed lag). Overlaying 4 timeframes per symbol ensures trends, reversals, and volatility shifts never slip past your radar. When all MAs and bands synchronize across symbols and TFs, it becomes easy to separate real opportunity from market noise.
Unique Aspects
Perhaps the most flexible Bollinger Band screener for TradingView—choose from over 10 moving average methods.
Powerful multi-timeframe and multi-asset design, rare among Pine scripts.
Immediate visual clarity with color-coded table cells indicating band state—no need for guesswork or chart clutter.
Custom configuration for each asset and time slice to suit any trading style.
How to Use
Add the script to your TradingView chart.
Use the user-friendly input settings to specify up to 8 symbols and 4 timeframes each.
Customize the Bollinger Band parameters: source (price type), band length, standard deviation, and type of moving average.
Interpret the dashboard: Color codes and “state” abbreviations show you instantly which symbols and timeframes are trending, consolidating, or breaking out.
Take trades according to your strategy, using the screener as a confirmation or primary scan tool.
Customization
Fully customize: symbols, timeframes, source, band length, standard deviation multiplier, and moving average type.
Supports intricate watchlists—anything TradingView allows, this script tracks.
Adapt for cryptos, equities, forex, or derivatives by changing symbol inputs.
Conclusion
The Multi-Symbol Bollinger Band Screener “Pineify” is a comprehensive, SEO-optimized Pine Script tool to supercharge your market scanning, trend spotting, and decision-making on TradingView. Whether you trade crypto, stocks, or forex—its fast, intuitive, multi-timeframe dashboard gives you the informational edge to stay ahead of the market.
Try it now to streamline your trading workflow and see all the bands, all the trends, all the time!
Advanced Speedometer Gauge [PhenLabs]Advanced Speedometer Gauge
Version: PineScript™v6
📌 Description
The Advanced Speedometer Gauge is a revolutionary multi-metric visualization tool that consolidates 13 distinct trading indicators into a single, intuitive speedometer display. Instead of cluttering your workspace with multiple oscillators and panels, this gauge provides a unified interface where you can switch between different metrics while maintaining consistent visual interpretation.
Built on PineScript™ v6, the indicator transforms complex technical calculations into an easy-to-read semi-circular gauge with color-coded zones and a precision needle indicator. Each of the 13 available metrics has been carefully normalized to a 0-100 scale, ensuring that whether you’re analyzing RSI, volume trends, or volatility extremes, the visual interpretation remains consistent and intuitive.
The gauge is designed for traders who value efficiency and clarity. By consolidating multiple analytical perspectives into one compact display, you can quickly assess market conditions without the visual noise of traditional multi-indicator setups. All metrics are non-overlapping, meaning each provides unique insights into different aspects of market behavior.
🚀 Points of Innovation
13 selectable metrics covering momentum, volume, volatility, trend, and statistical analysis, all accessible through a single dropdown menu
Universal 0-100 normalization system that standardizes different indicator scales for consistent visual interpretation across all metrics
Semi-circular gauge design with 21 arc segments providing smooth precision and clear visual feedback through color-coded zones
Non-redundant metric selection ensuring each indicator provides unique market insights without analytical overlap
Advanced metrics including MFI (volume-weighted momentum), CCI (statistical deviation), Volatility Rank (extended lookback), Trend Strength (ADX-style), Choppiness Index, Volume Trend, and Price Distance from MA
Flexible positioning system with 5 chart locations, 3 size options, and fully customizable color schemes for optimal workspace integration
🔧 Core Components
Metric Selection Engine: Dropdown interface allowing instant switching between 13 different technical indicators, each with independent parameter controls
Normalization System: All metrics converted to 0-100 scale using indicator-specific algorithms that preserve the statistical significance of each measurement
Semi-Circular Gauge: Visual display using 21 arc segments arranged in curved formation with two-row thickness for enhanced visibility
Color Zone System: Three distinct zones (0-40 green, 40-70 yellow, 70-100 red) providing instant visual feedback on metric extremes
Needle Indicator: Dynamic pointer that positions across the gauge arc based on precise current metric value
Table Implementation: Professional table structure ensuring consistent positioning and rendering across different chart configurations
🔥 Key Features
RSI (Relative Strength Index): Classic momentum oscillator measuring overbought/oversold conditions with adjustable period length (default 14)
Stochastic Oscillator: Compares closing price to price range over specified period with smoothing, ideal for identifying momentum shifts
MFI (Money Flow Index): Volume-weighted RSI that combines price movement with volume to measure buying and selling pressure intensity
CCI (Commodity Channel Index): Measures statistical deviation from average price, normalized from typical -200 to +200 range to 0-100 scale
Williams %R: Alternative overbought/oversold indicator using high-low range analysis, inverted to match 0-100 scale conventions
Volume %: Current volume relative to moving average expressed as percentage, capped at 100 for extreme spikes
Volume Trend: Cumulative directional volume flow showing whether volume is flowing into up moves or down moves over specified period
ATR Percentile: Current Average True Range position within historical range using specified lookback period (default 100 bars)
Volatility Rank: Close-to-close volatility measured against extended historical range (default 252 days), differs from ATR in calculation method
Momentum: Rate of change calculation showing price movement speed, centered at 50 and normalized to 0-100 range
Trend Strength: ADX-style calculation using directional movement to quantify trend intensity regardless of direction
Choppiness Index: Measures market choppiness versus trending behavior, where high values indicate ranging markets and low values indicate strong trends
Price Distance from MA: Measures current price over-extension from moving average using standard deviation calculations
🎨 Visualization
Semi-Circular Arc Display: Curved gauge spanning from 0 (left) to 100 (right) with smooth progression and two-row thickness for visibility
Color-Coded Zones: Green zone (0-40) for low/oversold conditions, yellow zone (40-70) for neutral readings, red zone (70-100) for high/overbought conditions
Needle Indicator: Downward-pointing triangle (▼) positioned precisely at current metric value along the gauge arc
Scale Markers: Vertical line markers at 0, 25, 50, 75, and 100 positions with corresponding numerical labels below
Title Display: Merged cell showing “𓄀 PhenLabs” branding plus currently selected metric name in monospace font
Large Value Display: Current metric value shown with two decimal precision in large text directly below title
Table Structure: Professional table with customizable background color, text color, and transparency for minimal chart obstruction
📖 Usage Guidelines
Metric Selection
Select Metric: Default: RSI | Options: RSI, Stochastic, Volume %, ATR Percentile, Momentum, MFI (Money Flow), CCI (Commodity Channel), Williams %R, Volatility Rank, Trend Strength, Choppiness Index, Volume Trend, Price Distance | Choose the technical indicator you want to display on the gauge based on your current analytical needs
RSI Settings
RSI Length: Default: 14 | Range: 1+ | Controls the lookback period for RSI calculation, shorter periods increase sensitivity to recent price changes
Stochastic Settings
Stochastic Length: Default: 14 | Range: 1+ | Lookback period for stochastic calculation comparing close to high-low range
Stochastic Smooth: Default: 3 | Range: 1+ | Smoothing period applied to raw stochastic value to reduce noise and false signals
Volume Settings
Volume MA Length: Default: 20 | Range: 1+ | Moving average period used to calculate average volume for comparison with current volume
Volume Trend Length: Default: 20 | Range: 5+ | Period for calculating cumulative directional volume flow trend
ATR and Volatility Settings
ATR Length: Default: 14 | Range: 1+ | Period for Average True Range calculation used in ATR Percentile metric
ATR Percentile Lookback: Default: 100 | Range: 20+ | Historical range used to determine current ATR position as percentile
Volatility Rank Lookback (Days): Default: 252 | Range: 50+ | Extended lookback period for Volatility Rank metric using close-to-close volatility
Momentum and Trend Settings
Momentum Length: Default: 10 | Range: 1+ | Lookback period for rate of change calculation in Momentum metric
Trend Strength Length: Default: 20 | Range: 5+ | Period for directional movement calculations in ADX-style Trend Strength metric
Advanced Metric Settings
MFI Length: Default: 14 | Range: 1+ | Lookback period for Money Flow Index calculation combining price and volume
CCI Length: Default: 20 | Range: 1+ | Period for Commodity Channel Index statistical deviation calculation
Williams %R Length: Default: 14 | Range: 1+ | Lookback period for Williams %R high-low range analysis
Choppiness Index Length: Default: 14 | Range: 5+ | Period for calculating market choppiness versus trending behavior
Price Distance MA Length: Default: 50 | Range: 10+ | Moving average period used for Price Distance standard deviation calculation
Visual Customization
Position: Default: Top Right | Options: Top Left, Top Right, Bottom Left, Bottom Right, Middle Right | Controls gauge placement on chart for optimal workspace organization
Size: Default: Normal | Options: Small, Normal, Large | Adjusts overall gauge dimensions and text size for different monitor resolutions and preferences
Low Zone Color (0-40): Default: Green (#00FF00) | Customize color for low/oversold zone of gauge arc
Medium Zone Color (40-70): Default: Yellow (#FFFF00) | Customize color for neutral/medium zone of gauge arc
High Zone Color (70-100): Default: Red (#FF0000) | Customize color for high/overbought zone of gauge arc
Background Color: Default: Semi-transparent dark gray | Customize gauge background for contrast and chart integration
Text Color: Default: White (#FFFFFF) | Customize all text elements including title, value, and scale labels
✅ Best Use Cases
Quick visual assessment of market conditions when you need instant feedback on whether an asset is in extreme territory across multiple analytical dimensions
Workspace organization for traders who monitor multiple indicators but want to reduce chart clutter and visual complexity
Metric comparison by switching between different indicators while maintaining consistent visual interpretation through the 0-100 normalization
Overbought/oversold identification using RSI, Stochastic, Williams %R, or MFI depending on whether you prefer price-only or volume-weighted analysis
Volume analysis through Volume %, Volume Trend, or MFI to confirm price movements with corresponding volume characteristics
Volatility monitoring using ATR Percentile or Volatility Rank to identify expansion/contraction cycles and adjust position sizing
Trend vs range identification by comparing Trend Strength (high values = trending) against Choppiness Index (high values = ranging)
Statistical over-extension detection using CCI or Price Distance to identify when price has deviated significantly from normal behavior
Multi-timeframe analysis by duplicating the gauge on different timeframe charts to compare metric readings across time horizons
Educational purposes for new traders learning to interpret technical indicators through consistent visual representation
⚠️ Limitations
The gauge displays only one metric at a time, requiring manual switching to compare different indicators rather than simultaneous multi-metric viewing
The 0-100 normalization, while providing consistency, may obscure the raw values and specific nuances of each underlying indicator
Table-based visualization cannot be exported or saved as an image separately from the full chart screenshot
Optimal parameter settings vary by asset type, timeframe, and market conditions, requiring user experimentation for best results
💡 What Makes This Unique
Unified Multi-Metric Interface: The only gauge-style indicator offering 13 distinct metrics through a single interface, eliminating the need for multiple oscillator panels
Non-Overlapping Analytics: Each metric provides genuinely unique insights—MFI combines volume with price, CCI measures statistical deviation, Volatility Rank uses extended lookback, Trend Strength quantifies directional movement, and Choppiness Index measures ranging behavior
Universal Normalization System: All metrics standardized to 0-100 scale using indicator-appropriate algorithms that preserve statistical meaning while enabling consistent visual interpretation
Professional Visual Design: Semi-circular gauge with 21 arc segments, precision needle positioning, color-coded zones, and clean table implementation that maintains clarity across all chart configurations
Extensive Customization: Independent parameter controls for each metric, five position options, three size presets, and full color customization for seamless workspace integration
🔬 How It Works
1. Metric Calculation Phase:
All 13 metrics are calculated simultaneously on every bar using their respective algorithms with user-defined parameters
Each metric applies its own specific calculation method—RSI uses average gains vs losses, Stochastic compares close to high-low range, MFI incorporates typical price and volume, CCI measures deviation from statistical mean, ATR calculates true range, directional indicators measure up/down movement, and statistical metrics analyze price relationships
2. Normalization Process:
Each calculated metric is converted to a standardized 0-100 scale using indicator-appropriate transformations
Some metrics are naturally 0-100 (RSI, Stochastic, MFI, Williams %R), while others require scaling—CCI transforms from ±200 range, Momentum centers around 50, Volume ratio caps at 2x for 100, ATR and Volatility Rank calculate percentile positions, and Price Distance scales by standard deviations
3. Gauge Rendering:
The selected metric’s normalized value determines the needle position across 21 arc segments spanning 0-100
Each arc segment receives its color based on position—segments 0-8 are green zone, segments 9-14 are yellow zone, segments 15-20 are red zone
The needle indicator (▼) appears in row 5 at the column corresponding to the current metric value, providing precise visual feedback
4. Table Construction:
The gauge uses TradingView’s table system with merged cells for title and value display, ensuring consistent positioning regardless of chart configuration
Rows are allocated as follows: Row 0 merged for title, Row 1 merged for large value display, Row 2 for spacing, Rows 3-4 for the semi-circular arc with curved shaping, Row 5 for needle indicator, Row 6 for scale markers, Row 7 for numerical labels at 0/25/50/75/100
All visual elements update on every bar when barstate.islast is true, ensuring real-time accuracy without performance impact
💡 Note:
This indicator is designed for visual analysis and market condition assessment, not as a standalone trading system. For best results, combine gauge readings with price action analysis, support and resistance levels, and broader market context. Parameter optimization is recommended based on your specific trading timeframe and asset class. The gauge works on all timeframes but may require different parameter settings for intraday versus daily/weekly analysis. Consider using multiple instances of the gauge set to different metrics for comprehensive market analysis without switching between settings.
Mayer Mutiple | QRMayer Multiple | QR — Publication Description
What it does
Mayer Multiple | QR is a cycle/valuation style oscillator that measures how far price sits above or below its longer-term average and normalizes that distance by current volatility. It helps you spot overheated extensions and deep discounts relative to trend, with adaptive bands that expand/contract as conditions change.
How it works (principle)
The script compares price to a long lookback moving average (default uses a 200-period average of ohlc4) and turns that gap into an oscillator.
It then computes a rolling standard deviation of that oscillator to build dynamic upper/lower bands (±1σ, ±2σ, ±3σ).
When the oscillator rises above the upper bands, the move is statistically stretched (potential distribution/risk). When it falls below the lower bands, it’s statistically depressed (potential accumulation/opportunity).
A small baseline band around zero (scaled from volatility) provides a quick trend-bias read without crowding the view.
Why this matters: Classic “Mayer Multiple” tools use a fixed threshold over a single moving average. This version is volatility-aware: its bands adapt to the market’s current dispersion, reducing false signals in quiet regimes and avoiding constant “overheat” flags in high-vol regimes.
What you see on the chart
White oscillator line: volatility-normalized deviation from the long-term average.
Adaptive bands:
Upper 1/2/3σ (shaded blue tones) = progressively more extended.
Lower 1/2/3σ (shaded green tones) = progressively more discounted.
Baseline ribbon: subtle band around zero for quick bias.
Background highlights: optional flashes when the oscillator exceeds the ±3σ extremes.
All visuals are generated by this script alone; no other indicator is required to understand usage.
How to use it
Context: Use on higher timeframes to gauge where price sits versus its long-term “fair value corridor.”
Signal reading:
Above +1σ/+2σ/+3σ: extension → consider de-risking, trailing stops, or waiting for mean reversion.
Below −1σ/−2σ/−3σ: discount → consider scaling in, watching for trend resumption cues.
Confluence: Treat it as a condition, not a trigger. Pair with structure (higher highs/lows), breadth, or momentum for entries/exits.
Regime awareness: As volatility rises, bands widen; prioritize trend context over single print extremes.
Inputs you can tune
Color mode: preset palettes for lines/fills/backgrounds.
Dynamic Threshold Length: lookback for the volatility (σ) calculation driving the adaptive bands.
Source: price input used for the long-term reference.
Band toggles: show/hide ±1σ / ±2σ / ±3σ envelopes to reduce clutter.
Originality & value
Adaptive, volatility-aware implementation of a Mayer-style concept: rather than one fixed threshold, it scales to current regime, keeping readings comparable across cycles.
Clear, clean presentation (oscillator + bands + optional background) designed for publication with a clean chart so the script’s output is immediately identifiable.
Offers actionable context (stretch/discount zones) while leaving trade execution to the user’s process.
Limitations & good practices
Best used for context and risk framing, not stand-alone entries.
Adaptive bands depend on the lookback you choose; very short windows can overfit, very long windows can lag.
Extremes can persist in strong trends—don’t fade momentum blindly.
Disclaimer
This tool is for research and education only and not investment advice. Markets involve risk. Past performance does not predict or guarantee future results. Use prudent risk management and test settings on your instruments/timeframes.
HPAS – Historical Price Action StatisticsHPAS – Historical Price Action Statistics (v7)
A data-driven overview of weekday behavior: price, volatility, and volume.
1) OVERVIEW
HPAS analyzes how each weekday behaves across your selected history. It aggregates daily returns, intraday ranges, and volumes into a compact heatmap table and optionally plots daily range bands (historical & today) on the chart.
Note: All weekday statistics are calculated using UTC-based daily candles for consistent results across markets (especially 24/7 assets like crypto).
The goal is context and probabilities — not signals.
2) HOW IT WORKS
Collects daily bar stats: % gain/loss (close vs open), intraday range ((High−Low) ÷ Open × 100), and contracts (volume).
Groups data by weekday (Sun–Sat) and computes: win/loss frequencies, average and max moves, average intraday ranges, and average volume.
Note: “Weekday” refers to the calendar day in UTC time . This ensures consistency across all assets and exchanges, particularly for 24/7 markets like crypto.
Compares average weekday volume to the current 20-day average (% of 20D).
Displays results in a color-shaded table; optionally draws historical daily range bands plus today’s projection with optional smoothing.
3) INCLUDED FEATURES
Core metrics
Total → Gain / Loss (% of Days): How often the day closes above/below open.
Closing → Avg / Max: Average and largest daily % moves up/down.
Intrabar (optional) → Avg / Max: Typical and extreme intraday % ranges.
Contracts → Avg (K): Average daily volume (shown in thousands).
Contracts → %20D: Weekday’s average volume as % of the current 20-day average.
Visualization & UX
Heatmap coloring: lower values appear darker; higher values lighter.
Current weekday highlight with a left-side triangle.
Tooltips on headers explain what/why/how.
Dark/Light theme support; Colorblind-safe palette toggle (Okabe–Ito).
Projection Bands
Plots historical daily range bands and today’s projected band.
Optional smoothing (SMA) for cleaner band movement.
Band Smoothing Explained: Applies a simple moving average over recent projection values to reduce sudden jumps in the upper/lower bands.
Higher values make the range lines steadier but slower to react; lower values show more real-time variability.
4) USAGE TIPS
Context, not prediction: Use stats to frame expectations, not to force trades.
Cycle awareness: Compare long vs short date windows; behavior can shift across regimes.
Volume tells a story: Elevated %20D can hint at increased participation or attention on certain weekdays.
Targets & risk: Range bands provide realistic context for sizing stops/targets.
Accessibility: Enable Colorblind-safe mode if red/green contrast is hard to read.
5) INTERPRETATION GUIDE
% Gain / % Loss — Frequency of up/down closes. Higher % Gain suggests a bullish weekday bias.
Avg Gain / Avg Loss — Mean daily % move on green/red days. Gauges typical magnitude.
Max Gain / Max Loss — Largest observed daily % change. Sets an upper bound of past extremes.
Hi-Lo Avg / Max — Typical and extreme intraday % ranges. Context for expected volatility.
Contracts Avg (K) — Average daily volume in thousands. Participation proxy.
%20D — Volume vs current 20-day average. 100% = typical, >100% = above-normal, <100% = lighter-than-normal.
6) CREDITS
Inspired by the HPAS concept popularized by Krown Trading and The Caretaker.
Rebuilt and extended for clarity, accessibility, and practical context.
Version: v7 (October 2025)
License: Educational, non-commercial use
Key Inputs (snippet)
// Projection Bands
grpBands = “Projection Bands”
showBands = input.bool(true, “Show daily range bands (historical & today)”, group=grpBands)
smoothLen = input.int(1, “Band smoothing (days)”, minval=1, maxval=20, group=grpBands)