Pullback Trading Tool R5-65 by JustUncleLBy request this is an updated version of the "PullBack Trading Tool": removes experimental "OCC" channel, added option to display ribbons or just single moving average lines, added alert arrows for "PB" exits, added alertcondition for TV alarm subsystem, added some extract options for Pivot points and general cleanup of code.
Description:
This project incorporates the majority of the indicators needed to analyse and trade Trends for Pullbacks, swings and reversals.
Incorporated within this tool are the following indicators:
1. Major industry (Banks) recognised important EMAs in an EMA Ribbon:
Lime = EMA5 (Optional Display)
DodgerBlue = EMA12 (Optional Display)
Red = EMA36 (Optional display)
Green = EMA89
Blue = EMA200
Black = EMA633
2. The 5 EMA (default) High/Low/Close Price Action Channel (PAC), the PAC channel display is disabled by default.
3. Optionally display Fractals and optional Fractal levels
4. Optional HH, LH, LL, HL finder.
5. Optional Buy/Sell "PB" exit Alerts with Optional 200EMA filter.
6. Coloured coded Bar high lighting based on the PAC:
blue = bar closed above PAC
red = bar closed below PAC
gray = bar closed inside PAC
7. Alert condition sent to TradingView's Alarm subsystem for PB exits.
8. Pivot points with optional labels.
9. EMA5-12 Ribbon is displayed by default.
10.EMA12-36 Ribbon is displayed by default
Set up and hints:
I am unable to provide a full description here, as Pullback Trading incorporates a full trading Methodology, there are a number of articles and books written on the subject.
Set the chart to Heikin Ashi Candles (optional).
I also add a "Sweetspot Gold R3" indicator to the chart as well to help with support and resistance finding and shows where the important "00" lines are.
First on a weekly basis say Sunday night or Monday morning, analyse the Daily and Weekly charts to establish overall trends, and support/resistant levels. Draw significant mini trend lines (2/3 TL), vertical trend lines (VTL) and S/R levels. Can use the Pivots points to guide VTL drawing and Fractals to help guide 2/3 TL drawing.
Once the trend direction and any potential major reversals highlighted, drop down to lower timeframe chart and draw appropriate mini Trend line (2/3 TL) matching the established momentum direction. Take note of potential pull backs from and of the EMAs, in particular the EMA5-12 ribbon, EMA12-36 Ribbon and the 200EMA. Can use the Pivots and/or Fractals points to guide your 2/3 TL drawing.
Set a TradingView alarm on the "PBTOOL alert", with the default settings this normally occurs before or during the Break of the manually drawn TL lines.
Once alerted check to see if the TL is broken and is returning to trend away from the EMA lines, this is indicated by bar colour change to trend directional colour.
You can trade that alert or drop down to even lower time frames and perform the same TL analysis there to find trades at the lower TF. Trading at lower TF you will allow tighter Stop loss settings.
Other than the "SweetSpot Gold R3" indicator, you should not need any other indicator to successfully trade trends for Pullbacks and reversals. If you really want another indicator I suggest a momentum one for example: AO ( Awesome Oscillator ), MACD or Squeeze Momentum.
Cerca negli script per "weekly"
KK_Average Directional Index (ADX) Higher TFHey guys,
sometimes you just want to plot an Indicator value from a higher Timeframe on your Chart. For most Indicators this is pretty straightforward however there is one Indicator that has been giving me quite a headache while trying to do this: The Average Directional Index . Anyway after going through almost 200 versions of this script I finally found a solution that works and thought I would share this with you, since I'm sure some of you have encountered the same problem.
How it works
Go to your desired Instrument/Timeframe and add the Script
Under Settings in the field for "Higher ADX TF" put the Timeframe-code you want to pull the ADX Values from.
- Codes: Monthly - M, Weekly W, Daily - D
- Codes Intraday: The amount of hours in minutes, e.g. if you want to pull values from the 4h-Chart the code is 240 (60 for 1h, 15 for 15m ...)
In some cases (see below) the calculation might not be correct. So make sure the values are correct:
a) Write down the latest ADX of the higher TF while you are on the lower TF
b) Switch the Resolution to the higher TF
c) Compare the value you have just written down to the next to last value. They should be the same.
d) Switch back the Resolution to the lower TF and you're good to go.
Limitations
You can only pull values from higher Timeframes, e.g. you're on a 4h Chart, so you can only pull values from the Daily, Weekly and Monthly Chart. You can't pull values from the 1h Chart.
You can only pull values from Timeframes, where the higher Timeframe Close always has a corresponding Close on the lower Timeframe, e.g. you can't pull values from the 3h Chart when you are on a 2h Chart. This should be pretty rare.
The Script needs a certain amount of Data from the Higher TF before the calculated values are correct. I have tested this on several Instruments and the Script usually needs approximately 100 Bars on the higher Timeframe (often less) for the values to be correct (error < 1%).
So when the difference between your lower Timeframe and you higher Timeframe is large, e.g. you want to pull the Daily ADX value on a 15m-Chart, the calculation can be wrong. This can lead to errors in 2 Cases:
a) Backtesting: When you go over old data and get close to the last available Bar the Data will be wrong. This will limit the amount of data you can backtest.
b) Live values: When the difference between the two Timeframes is too large, it is possible that even live values are wrong, e.g. this will be the case when you are trying to pull the Daily ADX value on a 5 minute Chart. Always check if the calculation works with your desired combination of Timeframes before using it (see above).
I hope this is useful for you and whish all of you successful trading!
Best regards
Kurbelklaus
Range Delta Heiken Ashi Bollinger|Buy/Sell |OB & OS CandlesPurpose: Mathematically represent buying and selling zones for Daily/ Weekly Traders
Indicator: Calculates moving average of the candle's body with respect to the daily trading range
Buy and Sell Signals: Calculates Bollinger Range with Max/Min and Buy/Sell Bollinger signals
Overbought and Oversold Signals: Candlesticks show overbought and oversold conditions
Level of Difficulty: This indicator was written to make life easier. Follow the Rules and anyone can use it.
Rule 1: Buy when candlestick is below "purple" line
Rule 2: Sell when candlestick is above "blue" line
Rule 3: Add bollinger bands to your currency chart
Rule 4: Confirm indicator bollinger bands with currency chart's bollinger bands
Rule 5: Trade in direction of trend
Rule 6: As with all trading; no indicators are fool proof. Please trade responsibly.
****Full Customization for you****
Suggestion 1: Add bollinger bands to currency chart to improve probability
Suggestion 2: Trade the direction of Trend
Suggestion 3: This indicator works very well with Ranged Markets (or use Suggestion 2)
Disclaimer 1: This Indicator words best on Daily and Weekly time frames
Disclaimer 2: Enjoy the Indicator and feel free to ADD COMMENTS; I worked very hard for you and me :)
Auto Pivots with S/R LevelsPlots out the pivot point with corresponding Support / Resistance levels.
It will automatically determine the time frame to calculate pivots based on the current view resolution.
Monthly resolution will pull a yearly pivot
Weekly resolution will pull a monthly pivot
Daily view will pull a weekly pivot
Intraday view will pull a daily pivot.
You have the choice of using Standard pivots or Fibonacci pivots
You can choose to only display the most recent pivot or all pivots
You can chose to extend the most recent pivot across the whole chart as a price line
TODO:
- Add in the ability to choose how far back historically to display pivots
- Add in calculations for smaller resolutions to calculate off lower time frames. EX: minute resolution should pull hour time frame to calculate pivots.
Herrick Payoff Index for Quandl DataUpdate to my previous Herrick Payoff Index script. This script pulls Quandl futures data with daily open interest. The prior version only used the weekly Commitment of Traders open interest data so could only be used on weekly bars. Note: Must use Quandl Symbol methodology in chart (i.e. enter symbol as QUANDL:CHRIS/CME_FC2, QUANDL:CME/FCX2016, ect.). Unfortunately, I haven't been able to program this to pull from the embedded futures data.
UCS_S_Stochastic Pop and Drop StrategyMy Contribution to Jake Bernstein Educational Series, Initiated by Chris Moody.
The Stochastic Pop was developed by Jake Bernstein and modified by David Steckler. Bernstein's original Stochastic Pop is a trading strategy that identifies price pops when the Stochastic Oscillator surges above 80. Steckler modified this strategy by adding conditional filters using the Average Directional Index (ADX) and the weekly Stochastic Oscillator.
Modifications
1. Weekly Stochastic Oscillator for Trading Bias = 5* Daily Stochastic
2. Optional Volume Confirmation, Custom Average Volume Length
Future Plans
1. Adding Triggers for Entry, Stops and Target. - This will be release when we have ability to code the complete Strategy. Although it can be done with the current pinescript options, it would be far more easier if we have strategy ability.
Link for Educational Purpose
stockcharts.com
-
Good Luck Trading
UCSgears
COT Comm OsciDescription
The COT Comm Osci is a sentiment oscillator based on net positions from the weekly Commitments of Traders (COT) report.
It transforms net positions of Commercials, Noncommercials, or Nonreportables into a 0–100 index.
A value of 100 = highest net position within the selected timeframe.
A value of 0 = lowest net position.
You can define three historical intervals (e.g. 26/ 52 / 156 weeks).
Tip
To improve your analysis, it's recommended to add a separate COT indicator that visualizes raw Long/Short or net positions directly. This helps interpret the oscillator in context.
This script is based on “Commercial Index–Buschi” by MagicEins and has been extended with new features and error handling.
Features
Select between Commercial, Noncommercial, or Nonreportable trader groups
Proper handling of HG Futures (Copper)
Displays a warning if the root code is invalid (unsupported market symbol)
DI/ADX Trend Strategy | (1-Min Scalping)Strategy Overview
This is an experimental 1-minute trend-following strategy combining DI+/DI-, ADX, RSI, MACD, VWAP, and EMA filters with a time-based exit. It aims to catch strong directional moves while strictly managing risk.
Indicator Components
• DI+/DI- + ADX – Trend direction + strength filter
• RSI (14) – Momentum confirmation (RSI > 55 or < 45)
• MACD Histogram – Detects directional momentum shifts
• Candle Body % Filter – Screens for strong commitment candles
• EMA 600 / 2400 – Long-term trend alignment
• Weekly VWAP – Entry only when price is above/below VWAP
• Trade Limit – Max 2 trades per direction per VWAP cycle
• Time-Based Stop – 0.50% SL, 3.75% TP, 12h (720 bars) time stop
Entry Logic
Long Entry:
• DI+ crosses above DI−
• RSI > 55
• MACD histogram > 0
• Strong bullish candle
• Price > VWAP
• EMA600 > EMA2400
• Within 25 bars of EMA crossover
• Max 2 long trades before VWAP resets
Short Entry:
• DI+ crosses below DI−
• RSI < 45
• MACD histogram < 0
• Strong bearish candle
• Price < VWAP
• EMA2400 > EMA600
• Within 25 bars of EMA crossover
• Max 2 short trades before VWAP resets
Exit Logic
• Stop Loss: 0.50%
• Take Profit: 3.75% (7.5R)
• Time Stop: 720 bars (~12 hours on 1m chart)
• Each trade exits independently
Testing Parameters
• Initial Capital: $10,000
• Commission: 0.10%
• Timeframe: 1-minute
• Tested on: BTCUSDT, ETHUSDT
• Pyramiding: Up to 5 positions allowed
• VWAP resets trade counter to reduce overtrading
Alerts
• Buy / Sell signal
• Trade Opened / Closed
• SL/TP triggered
⚠️ Notes
• Early-stage strategy — entry count varies by trend conditions
• Shared for educational use and community feedback
• Please forward-test before using live
• Open-source — contributions and suggestions welcome!
Disclaimer
This strategy is for educational purposes only and should not be considered financial advice. Past performance does not guarantee future results. Always validate independently before trading live.
Date Marker GPTDate Marker GPT
By Jimmy Dimos (corrected by ChatGPT-o3)
Description
This overlay indicator automatically plots vertical lines at each weekly option-expiration timestamp (Friday at 3 PM CST) for both historical and upcoming periods, helping you visualize key expiration dates alongside your price action and regression tools. Shown is my Date Maker GPT vertical blue Lines, Linear Regression Channel(not part of my script) and zigzag++ also not part of my script.
⸻
Key Features
• Past Expirations: Draws 12 past Friday markers at 3 PM CST
• Future Expirations: Projects 12 upcoming Friday markers at 3 PM CST
• Timezone Handling: Uses UTC internally (21:00 UTC = 3 PM CST)
• Customizable: num_fridays_past and num_fridays_future inputs let you adjust how many weeks to display
⸻
How It Works
1. Timestamp Calculation
• Uses Pine Script’s dayofweek() and timestamp() functions to find each Friday at the target hour.
• Two helper functions, get_previous_friday() and get_next_friday(), compute offsets in days/weeks based on the current bar’s date.
2. Drawing Lines
• Loops through the specified number of weeks in the past and future.
• Calls line.new() for each expiration timestamp, extending lines across the entire chart.
⸻
Usage Tips
• Overlay this script on any OHLC chart to see how price tends to cluster around option expirations.
• Combine with a linear regression or trend-channel indicator to anticipate likely trading ranges leading into expiration.
• Tweak the num_fridays_past and num_fridays_future parameters to focus on shorter or longer horizons.
⸻
Disclaimer: This tool is provided for educational and analytical purposes only. It is not financial advice. Always conduct your own research and risk management.
Bias Dashboard + All Open Lines (M/W/D/H4/H1/15min)What does the script do?
This script displays a dashboard that shows the current market bias relative to the open prices of multiple timeframes:
Monthly
Weekly
Daily
4H
1H
15min
Additionally, it plots horizontal lines at each of these open levels on the chart.
How it works
Fetch Open Prices:
The script uses request.security() to get the open prices for each timeframe.
Determine Bias:
Compares the current close price to each open:
If close > open, then "Bullish"
If close < open, then "Bearish"
Display Dashboard:
A visual dashboard shows:
The timeframe label
Whether the current price is above (bullish) or below (bearish) that level
Plot Lines:
Colored horizontal lines are drawn on the chart to indicate each timeframe’s open level.
Custom Opening TimesThis indicator displays custom opening levels on your chart. Define multiple opening times, each with its own customizable style. Display these levels as horizontal lines at the opening price, or as vertical lines to mark the opening time.
Custom Opening Times
4 Independent Groups with 4 custom opening levels each
Set any custom opening time (displayed in New York Local Time)
Choose between Opening Price lines, Vertical time markers, or Both
Cutoff Times: Stop extending lines after specified times
Higher Timeframe Levels
5 Configurable HTF levels supporting any timeframe
Display opening prices from Daily, Weekly, Monthly, Quarterly, and custom timeframes
Show Previous High/Low levels from higher timeframes
HTF OHLC Candle + 50% @MaxMaseratiHTF OHLC Candle + 50% @MaxMaserati
This advanced multi-timeframe indicator displays higher timeframe OHLC data as visual candle boxes and extended key levels on lower timeframe charts, providing essential context for institutional trading decisions.
Core Functionality:
Multi-Timeframe Box Display:
Main Timeframe Box (Default H4): Shows complete higher timeframe candles as colored boxes with separate body and wick visualization, including bullish (green) and bearish (red) candle representation with customizable transparency levels.
Independent Box 2 (Default M15): Secondary timeframe display with lime/fuchsia color scheme, allowing traders to monitor intermediate timeframes simultaneously with different visual styling.
Independent Box 3 (Default H1): Third independent timeframe with blue/orange color scheme, providing additional context for multi-timeframe analysis and confluence identification.
OHLC Level Analysis:
Each timeframe box includes individual Open, High, Low, and Close level lines with customizable colors and visibility settings. These levels act as key support and resistance zones that institutional traders often respect.
50% Retracement Levels:
Automatic calculation and display of 50% levels between each timeframe's high and low, representing critical equilibrium zones where price often finds support or resistance during retracements.
Extended Line System:
Current Live Timeframe Extended Lines: Real-time extension of the forming candle's Open, High, Low, and 50% levels with customizable line weights and label positioning.
TF2 Extended Lines (Default H4): Previous completed candle's key levels extended forward, showing immediate higher timeframe reference points for current price action.
TF3 Extended Lines (Default Daily): Longer-term reference levels from daily or weekly timeframes, providing macro trend context and major institutional levels.
Key Features:
Smart Timeframe Detection: Only displays boxes for timeframes higher than the current chart timeframe, preventing redundant information and maintaining chart clarity.
Global Box Limit Control: Intelligent cleanup system that maintains optimal performance by limiting total displayed elements while preserving the most recent and relevant timeframe periods.
Comprehensive Customization: Full control over colors, transparency, line weights, label sizes, and visibility for each timeframe component, allowing personalized setups for different trading styles.
Label System: Automatic timeframe identification labels (H4, M15, D1, etc.) positioned on each box for instant timeframe recognition and clear multi-timeframe organization.
Current Candle Options: Optional display of forming/current candles for each timeframe, enabling real-time monitoring of developing price action and potential setup completion.
This indicator is essential for traders utilizing multi-timeframe analysis, institutional trading concepts, and higher timeframe confluence strategies, providing clear visual representation of key levels and candle structures that drive major market movements.
CandleSensei – EMA200, Wick & Pattern Alerts)CandleSensei is an advanced Pine Script designed for traders who need real-time alerts on key price action signals and candlestick patterns. It combines EMA200 analysis, volatility (ATR), wick/body detection, and classical candlestick pattern recognition (Engulfing, Pin Bar, Doji, Marubozu) – all in a single tool.
Key Features:
EMA200 HUD – Displays price deviation from EMA200 with directional arrows (▲ / ▼) and percentage values.
Wick Alerts – Alerts for significant wicks:
WICK ALERT: ↓🐂 3.5% (long lower wick – bullish signal).
WICK ALERT: ↑🐻 4.2% (long upper wick – bearish signal).
Big Body Alerts – Detects strong candle bodies exceeding a customizable threshold.
BIG BODY ALERT: ↑ 5.8%
BIG BODY ALERT: ↓ 4.7%
Candlestick Patterns – Automatic alerts for:
Engulfing (🟢🐂 or 🔴🐻).
Pin Bar (🟢🔨 Hammer, 🔴☄️ Shooting Star).
Doji (⚪ Doji 🟢↑ / 🔴↓).
Marubozu (📏 Marubozu 🟢↑ / 🔴↓).
On-Chart HUD – Shows ATR, price vs EMA200, wick size, and full body % in a compact table.
Why use CandleSensei?
Perfect for swing traders (Daily/Weekly analysis) and intraday traders (1H).
Combines trend direction, volatility, and price action patterns in a single dashboard.
Fully customizable thresholds for wick and body alerts.
Four Trading SessionsIve adapted this from someone else's script to include 4 sessions instead of 3
TradingView Indicator Description: Trading Sessions
Overview:
The "Trading Sessions" indicator, written in Pine Script v5, visually highlights major forex trading sessions (Tokyo, London, New York, and Sydney) on intraday charts. It displays session ranges as colored boxes, with optional open/close lines, average price lines, and labels showing session names, tick ranges, and average prices. Users can customize session times, time zones, colors, and display options.
Key Features:
Customizable Sessions: Supports up to four trading sessions (Tokyo, London, New York, Sydney) with user-defined names, time ranges, and time zones (e.g., "Asia/Tokyo", "America/New_York").
Visual Elements:
Draws semi-transparent boxes to mark session price ranges (high/low).
Optional dashed lines for session open and close prices.
Optional dotted line for the session's average price.
Labels displaying session name, tick range, and/or average price (configurable).
Time Zone Support: Specify time zones using IANA database names (e.g., "Australia/Sydney") or GMT notation, with a recommendation for IANA to handle daylight savings.
Display Options: Toggle session names, open/close lines, tick range, and average price visibility.
Intraday Restriction: Works only on intraday timeframes, with an error for daily/weekly/monthly charts.
Performance Optimized: Limits boxes, lines, and labels to 500 each to ensure smooth performance.
Inputs:
General Settings:
Show session names, open/close lines, tick range, and average price (all enabled by default).
Per Session (Tokyo, London, New York, Sydney):
Enable/disable session display.
Custom session name (e.g., "Tokyo").
Session time range (e.g., "0900-1500" for Tokyo).
Time zone (e.g., "Asia/Tokyo").
Session color (semi-transparent blue, orange, green, purple by default).
How It Works:
The script checks if the current bar falls within a session’s time range (adjusted for the specified time zone).
For each active session, it creates a box spanning the session’s high/low and updates it bar-by-bar.
Optional open/close lines and an average price line are drawn and updated dynamically.
Labels display user-selected metrics (name, range, average price) at the bottom of each session box.
Sessions reset daily, ensuring accurate representation across days.
Use Case:
Ideal for forex traders who want to analyze price action during specific trading sessions. The indicator helps identify session-specific volatility, key price levels, and trends, with clear visual cues and customizable settings.
Limitations:
Only works on intraday timeframes.
Limited to 500 boxes, lines, and labels to prevent performance issues.
Requires accurate time zone settings for proper session alignment.
Example:
Enable the Tokyo and New York sessions, set their respective time zones, and toggle on all display options to see colored boxes, open/close lines, average price lines, and labels with tick ranges and averages for each session.
The Kyber Cell's – TTM Wave CThe Kyber Cell’s Wave C – TTM Squeeze Macro Bias & Structural Filter
⸻
1. Introduction
Wave C is the strategic compass in the TTM Squeeze Wave system — the final layer that helps you align with the larger trend or macro context. While Wave A delivers momentum bursts and Wave B confirms active trend direction, Wave C filters trades through a broader lens, helping you avoid taking strong intraday setups that go against the dominant structure.
Wave C is designed to act as your macro bias validator — filtering out trades that contradict higher-timeframe flows or major moving average slopes. When all three waves line up, you’re no longer just reacting to signals — you’re trading with intention and structure. When in doubt, zoom out and that is what Wave C gives you.
⸻
2. Core Concept and Calculation
Wave C is built to measure high-level trend bias, either on the current chart timeframe or derived from a higher timeframe (HTF). Its logic is based on one or more of the following structural tools:
• Long-term EMA slope (e.g., 55, 89, or 200 EMA)
• HTF VWAP positioning (price above or below)
• Long-period HMA slope (e.g., HMA 144 or HMA 233)
• Directional bias from HTF TTM Squeeze or MTF trend engine
Unlike Wave A and B, which may fluctuate during normal price swings, Wave C changes more slowly. That’s the point — it gives a “big picture” backdrop against which all lower-level signals should be evaluated. It reduces false positives and helps you wait for trades in the direction of the broader trend.
⸻
3. Visual Output and Color Logic
Wave C uses a simple and deliberate color scheme to communicate macro alignment:
• Green: Bullish macro structure
• Red: Bearish macro structure
• Gray: Neutral, indecisive, or flat macro trend
This muted but firm logic encourages patient, structured trading. The goal isn’t to trigger trades directly from Wave C, but to filter out trades that contradict market posture.
• When Wave C is Green, you ideally want Wave B to be blue and Wave A to turn cyan before going long.
• When Wave C is Red, you look for Wave B to be red and Wave A to turn bright red before shorting.
• If Wave C is Gray, it may signal choppy, indecisive structure — use caution or reduce trade size.
⸻
4. Ideal Use Case
Wave C functions as your global bias filter:
1. Set your directional bias for the session or week.
2. Only take trades that agree with Wave C direction.
3. When all waves align, trade with size and confidence.
4. When Wave C disagrees, wait or downshift your trade plan.
This makes Wave C especially valuable for swing traders, position traders, or intraday traders who want to anchor their entries within a broader trend.
⸻
5. Configuration and Customization
Wave C is built with advanced users in mind, and its configuration allows multiple structural methods:
• EMA Slope Method: Set EMA length and threshold angle
• HTF Source Method: Request HTF data for squeeze trend, VWAP, or Wave B analog
• HMA Trend Filter: Longer-term smoothing to detect sustained directional flow
• Color Preferences: Customize green/red/gray scheme as needed
This flexibility allows you to tailor Wave C to your strategy — whether you’re anchoring to a Daily EMA while scalping the 5-minute chart, or aligning swing entries with the Weekly VWAP.
⸻
6. Alerts and Add-ons
Although Wave C isn’t typically used for alerts, it can be incorporated into confluence-based alert stacks. For example:
• Alert only when Wave C = Green, Wave B = Blue, and Wave A = Rising
• Alert on macro flip (e.g., Green → Red) as a possible regime change
• Alert when macro bias agrees with MTF Squeeze Panel bias
These setups are more advanced but help automate disciplined trade selection.
⸻
7. Disclaimer
This indicator is for educational and research purposes only. It is not trading advice. Wave C is most effective when used in conjunction with Wave A, Wave B, and other structural context. All trades should be executed with proper risk management and backtested methodology.
Multi-Timeframe EMA Table (Woche, Tag, 4h, 1h)Title: Multi-Timeframe EMA Table (Weekly, Daily, 4h, 1h)
Description:
This Pine Script indicator provides a concise and clear Multi-Timeframe (MTF) Exponential Moving Average (EMA) analysis directly on your TradingView chart. It displays the EMA values for the 1-hour, 4-hour, 1-day, and 1-week timeframes in a customizable table.
Features:
Clear Table Display: Shows the current EMA values for predefined higher timeframes (1h, 4h, Day, Week).
Dynamic Status: The status column immediately visualizes whether the current price of your chart is above (Green) or below (Red) its respective Multi-Timeframe EMA.
Customizable EMA Length: The length of the EMA can be easily adjusted via the indicator settings, allowing you to tailor it to your preferred analysis.
Visual Confirmation: The corresponding Multi-Timeframe EMA lines are optionally plotted directly on the chart to visually confirm the table values.
Non-Repainting: The displayed EMA values and lines are programmed to be non-repainting, meaning their values do not change on already closed candles.
This indicator is a useful tool for traders who want to quickly get an overview of the EMA's position across different timeframes without constantly switching their chart timeframe. It's ideal for confirming trends and identifying support and resistance levels from a higher perspective.
Price discovery indicatorGives an ability to show places where price drops more than n percent in x candles. Use cases: see dips of btc, get a notification when a stablecoin goes crazy, validate that webhook integration works as expected using keep alive messages.
Features included:
- Price dip alerts. Create an alert that sends a notification every time price dips more than expected (yellow zone at the chart).
- Percentage drop threshold. Define how many percents price should drop to trigger an alert and to show a yellow zone.
- Candles length threshold. Define within how many candles this drop should happen. If price drops in 2% within 10 candles, but this option is 5 - the alert will not be triggered because price dropped not as fast as expected.
- Templates of messages on price dip and price recovery. Set your message that should be triggered with alert.
- Keep alive feature. Set to trigger keep alive alerts every period. Can be helpful if you don't check charts often - this feature will trigger alert every period with "hey, the integration is alive" message. I use it to validate on weekly basis that tradingview triggers my alerts (example: you created an alert with expiration date and forgot to recreate it), that webhook integration receives these alerts, that the integration sends these alerts to telegram. Example: I expect to see this message every monday's morning, otherwise something is broken and I have to check what is wrong with my alerting system.
Multi-Timeframe SMTSummery
The Multi-Timeframe SMT indicator is designed to identify and visualize Higher Timeframe (HTF) data on a Lower Timeframe (LTF) chart, allowing traders to see the broader market context without changing their current chart's resolution. It accurately draws pivots and SMT divergences from higher timeframes on the corresponding candles of your current lower timeframe chart.
Its core features include:
Multi-Timeframe Analysis: Configure and monitor pivots on up to four independent timeframes, from intraday to monthly.
Customizable Pivot Detection: Define the strength of pivots by adjusting the number of bars to the left and right.
SMT Divergence: Automatically identifies bullish and bearish SMT divergences by comparing the price action of the main chart symbol with a chosen correlated asset.
Early SMT Detection: A unique feature that monitors a lower "detection timeframe" to provide early warnings of potential SMT setups before they're confirmed on the main timeframe. Note that this early detection is only shown on timeframes equal to or lower than the "Detection timeframe" you have set.
Visual Cues & Alerts: Clear on-chart labels, lines, and fully customizable alerts notify you of confirmed pivots and SMT divergences, ensuring you don't miss key opportunities.
Important Nuance Regarding Pivot Label Display
Due to a self-imposed limit within this script's drawing management logic, the indicator might quickly reach its drawing capacity if you enable pivot crosses for multiple timeframes simultaneously. When this internal drawing limit is exceeded, the script is designed to automatically remove the oldest drawings to make space for new ones.
Therefore, to ensure optimal performance and visibility of the most recent and relevant pivots, it's highly recommended to only enable the "Show Pivot Crosses" option for one timeframe at a time. If you wish to view pivots for a different timeframe, simply disable the pivot crosses for the currently active timeframe and then enable them for your desired one. This approach prevents the rapid cycling and disappearance of pivot labels, providing a clearer and more stable visual experience.
In-Depth Explanation of the Logic
This script is built on two primary concepts: pivot points and Smart Money Technique (SMT) divergence. It systematically collects historical data on multiple timeframes, identifies pivots, and then compares them between two assets to find divergences.
Pivot Point Identification
A pivot is a turning point in the market. A pivot high is a candle that has a higher high than the candles to its immediate left and right. Conversely, a pivot low is a candle with a lower low than its neighbors.
How it Works in the Script:
The script tracks the highest high and lowest low for each period of the selected timeframe (e.g., for each 4-hour candle). When a new high-timeframe candle closes, it stores that high/low value and its bar index in an array. The checkForPivot() function then checks if a recently stored high or low qualifies as a pivot.
Key Inputs:
Left Strength (leftBars1): The number of candles to the left that must have a lower high (for a pivot high) or higher low (for a pivot low).
Right Strength (rightBars1): The number of candles to the right that must meet the same criteria.
For example, with Left Strength and Right Strength both set to 3, a pivot high is only confirmed when its high is greater than the highs of the 3 previous high-timeframe candles and the 3 subsequent high-timeframe candles. Increasing these values will identify more significant, longer-term pivots.
Smart Money Technique (SMT) Divergence
SMT Divergence is a concept popularized by The Inner Circle Trader (ICT). It occurs when two closely correlated assets fail to move in sync. For instance, if Asset A makes a higher high but Asset B fails to do so and instead makes a lower high, this creates a bearish SMT divergence. It suggests that the "smart money" may not be supporting the move in Asset A, signaling a potential reversal.
Bearish SMT: Main asset makes a higher high, while the correlated asset makes a lower high. This is a potential sell signal.
Bullish SMT: Main asset makes a lower low, while the correlated asset makes a higher low. This is a potential buy signal.
How it Works in the Script:
Data Request: For each timeframe, the script uses the request.security() function to fetch the high and low data for both the main chart symbol (syminfo.tickerid) and the chosen Comparison Asset.
Pivot Comparison: When a new pivot is confirmed on the main asset, the script checks if a corresponding pivot also formed on the comparison asset at the same time.
Divergence Check: It then compares the direction of the pivots. For a bearish SMT, it checks if the main asset's new pivot high is higher than its previous pivot high, while the comparison asset's new pivot high is lower than its previous one. The logic is reversed for bullish SMT.
Visualization: If a divergence is found, the script draws a red (bearish) or green (bullish) line connecting the two pivots on your chart and places an "SMT" label.
Early SMT Detection
This is a proactive feature designed to give you a heads-up. Waiting for a 4-hour or daily pivot to form can take a long time. The early detection system looks for SMT divergences on a much smaller, user-defined Detection timeframe (e.g., 15-minute).
How it Works in the Script:
Awaiting Setup: After a primary pivot (Pivot A) is formed on the main timeframe (e.g., a Daily pivot high), the script begins monitoring.
Intraday Monitoring: It then watches the Detection timeframe (e.g., 15-minute) for smaller intraday pivots.
Potential Divergence: It looks for an intraday pivot that forms a divergence against the primary Pivot A.
Watchline & Alert: When this "potential" divergence occurs, the script draws a dashed white line and triggers a "Potential SMT" alert. This isn't a confirmed SMT on the main timeframe yet, but it's a powerful early warning that one may be forming.
Drawing & Object Management
To keep the chart clean and prevent performance issues, the script manages its drawings (lines and labels) efficiently. It stores them in arrays and uses a drawing limit to automatically delete the oldest drawings as new ones are created, ensuring your TradingView remains responsive.
How to Use the Indicator
Configuration
Enable Timeframes: Use the checkboxes (Enable Timeframe 1, Enable Timeframe 2, etc.) to activate the timeframes you want to monitor. It's often best to start with one or two to keep the chart clean.
Select Timeframes: Choose the higher timeframes you want to analyze (e.g., 240 for 4-hour, D for Daily, W for Weekly).
Set Pivot Strength: The default of 3 for Left/Right strength is a good starting point. Increase it to find more significant market structure points or decrease it for more frequent, shorter-term pivots.
Configure SMT:
Check Enable SMT for the timeframes where you want to detect divergence.
Enter a Comparison Asset . This is crucial. Ensure the assets are correlated.
To use the early warning system, check Enable early SMT detection and select an appropriate Detection timeframe (e.g., 15 or 60 minutes for a Daily analysis).
🌊 Reinhart-Rogoff Financial Instability Index (RR-FII)Overview
The Reinhart-Rogoff Financial Instability Index (RR-FII) is a multi-factor indicator that consolidates historical crisis patterns into a single risk score ranging from 0 to 100. Drawing from the extensive research in "This Time is Different: Eight Centuries of Financial Crises" by Carmen M. Reinhart and Kenneth S. Rogoff, the RR-FII translates nearly a millennium of crisis data into practical insights for financial markets.
What It Does
The RR-FII acts like a real-time financial weather forecast by tracking four key stress indicators that historically signal the build-up to major financial crises. Unlike traditional indicators based only on price, it takes a broader view, examining the global market's interconnected conditions to provide a holistic assessment of systemic risk.
The Four Crisis Components
- Capital Flow Stress (Default weight: 25%)
- Data analyzed: Volatility (ATR) and price movements of the selected asset.
- Detects abrupt volatility surges or sharp price falls, which often precede debt defaults due to sudden stops in capital inflow.
- Commodity Cycle (Default weight: 20%)
- Data analyzed: US crude oil prices (customizable).
- Watches for significant declines from recent highs, since commodity price troughs often signal looming crises in emerging markets.
- Currency Crisis (Default weight: 30%)
- Data analyzed: US Dollar Index (DXY, customizable).
- Flags if the currency depreciates by more than 15% in a year, aligning with historical criteria for currency crashes linked to defaults.
- Banking Sector Health (Default weight: 25%)
- Data analyzed: Performance of financial sector ETFs (e.g., XLF) relative to broad market benchmarks (SPY).
- Monitors for underperformance in the financial sector, a strong indicator of broader financial instability.
Risk Scale Interpretation
- 0-20: Safe – Low systemic risk, normal conditions.
- 20-40: Moderate – Some signs of stress, increased caution advised.
- 40-60: Elevated – Multiple risk factors, consider adjusting positions.
- 60-80: High – Significant probability of crisis, implement strong risk controls.
- 80-100: Critical – Several crisis indicators active, exercise maximum caution.
Visual Features
- The main risk line changes color with increasing risk.
- Background colors show different risk zones for quick reference.
- Option to view individual component scores.
- A real-time status table summarizes all component readings.
- Crisis event markers appear when thresholds are breached.
- Customizable alerts notify users of changing risk levels.
How to Use
- Apply as an overlay for broad risk management at the portfolio level.
- Adjust position sizes inversely to the crisis index score.
- Use high index readings as a warning to increase vigilance or reduce exposure.
- Set up alerts for changes in risk levels.
- Analyze using various timeframes; daily and weekly charts yield the best macro insights.
Customizable Settings
- Change the weighting of each crisis factor.
- Switch commodity, currency, banking sector, and benchmark symbols for customized views or regional focus.
- Adjust thresholds and visual settings to match individual risk preferences.
Academic Foundation
Rooted in rigorous analysis of 66 countries and 800 years of data, the RR-FII uses empirically validated relationships and thresholds to assess systemic risk. The indicator embodies key findings: financial crises often follow established patterns, different types of crises frequently coincide, and clear quantitative signals often precede major events.
Best Practices
- Use RR-FII as part of a comprehensive risk management strategy, not as a standalone trading signal.
- Combine with fundamental analysis for complete market insight.
- Monitor for differences between component readings and the overall index.
- Favor higher timeframes for a broader macro view.
- Adjust component importance to suit specific market interests.
Important Disclaimers
- RR-FII assesses risk using patterns from past crises but does not predict future events.
- Historical performance is not a guarantee of future results.
- Always employ proper risk management.
- Consider this tool as one element in a broader analytical toolkit.
- Even with high risk readings, markets may not react immediately.
Technical Requirements
- Compatible with Pine Script v6, suitable for all timeframes and symbols.
- Pulls data automatically for USOIL, DXY, XLF, and SPY.
- Operates without repainting, using only confirmed data.
The RR-FII condenses centuries of financial crisis knowledge into a modern risk management tool, equipping investors and traders with a deeper understanding of when systemic risks are most pronounced.
Bitcoin Stock-to-Flow Model Price Bands# Bitcoin Stock-to-Flow Model Price Bands
Overview
This indicator implements the famous Stock-to-Flow (S2F) model created by PlanB (@100trillionUSD), which uses Bitcoin's scarcity to predict its long-term value. The S2F model has gained significant attention for its historical accuracy in capturing Bitcoin's price movements across multiple market cycles.
What is Stock-to-Flow?
Stock-to-Flow is a ratio that measures scarcity by dividing the current supply (stock) by the annual production (flow). The model suggests that as Bitcoin becomes scarcer through halving events, its value should increase proportionally.
This indicator features:
Dynamic S2F Calculation
- Automatically calculates Bitcoin's current supply based on block height
- Adjusts for halving events (every 210,000 blocks)
- Updates the S2F ratio in real-time
Visual Elements
- Orange Line: S2F model price based on the formula: Price = 0.4 × S2F³
- Confidence Bands: Upper (red) and lower (green) bands showing expected price ranges
- Colored Candles: Green when above model price, red when below
- Info Table: Displays current S2F ratio, model price, actual price, and price multiple
Customizable Parameters
- Model Coefficient: Adjust the multiplier (default: 0.4)
- Model Exponent: Modify the power factor (default: 3.0)
- Band Width: Control confidence band spread (1-5 standard deviations)
- Display Options: Toggle individual elements on/off
Built-in Alerts
- Price crossing above/below S2F model price
- Price exceeding upper/lower confidence bands
How to Use
1. Trend Identification: When price is above the orange S2F line, Bitcoin may be overvalued; below suggests undervaluation
2. Cycle Analysis: The model steps up at each halving, creating distinct price "floors"
3. Risk Management: Use confidence bands to identify extreme deviations from the model
4. Long-term Perspective: Best suited for macro analysis rather than short-term trading
Important to understand:
This is a model, not a guarantee. The S2F model:
- Assumes scarcity is the primary driver of value
- Doesn't account for demand-side factors
- Has shown deviations during certain market conditions
- Should be used alongside other analysis methods
Model Performance
Historically, the S2F model has captured major Bitcoin price movements:
- 2013 Bull Run: Price followed model predictions
- 2017 Peak: Reached model targets
- 2021 Cycle: Initially tracked, then deviated
- 2024-2025: Model suggests $500k-$1M potential
Technical Details
- Uses logarithmic regression similar to the original S2F model
- Accounts for "lost" coins (est. 1M BTC from early mining)
- Implements dynamic supply calculation through halving cycles
- Confidence bands use log-normal distribution
Best Timeframes
- Weekly/Monthly: Ideal for long-term trend analysis
Credits
Based on the Stock-to-Flow model by PlanB (@100trillionUSD)
Original article: "Modeling Bitcoin's Value with Scarcity" (2019)
HMA Trend Line (Croc Signal Line)HMA Trend Line (Croc Signal Line) — The Ultimate Hull Moving Average Trend Indicator
Full English description here:
What is the HMA Trend Line (Croc Signal Line)?
The HMA Trend Line (Croc Signal Line) is a powerful, adaptive trend indicator for TradingView, based on the Hull Moving Average (HMA). This indicator is designed to help traders identify real market trends with less lag and reduced noise compared to traditional moving averages like SMA (Simple Moving Average) and EMA (Exponential Moving Average).
Why use the HMA Trend Line?
+ Faster Trend Detection: The Hull Moving Average (HMA) responds more quickly to price action, giving you earlier buy and sell signals.
+ Smoother and Cleaner: It provides a visually clean trend line that avoids the choppiness of classic EMAs and SMAs.
+ Reduced Lag: The HMA Trend Line follows the market closer, helping you avoid late entries or exits and spot trend reversals sooner.
+ Dynamic Support and Resistance: Use the line as a dynamic support or resistance to manage trades and identify pullbacks or breakouts.
What does “Croc Signal Line” mean?
The “Croc” in Croc Signal Line stands for:
+ Clean
+ Responsive
+ Optimized
+ Curve
This highlights the unique advantage of this indicator: a curve that is both fast-reacting and smooth, helping traders focus on real trends and filter out market noise.
How does the Hull Moving Average (HMA) work?
The HMA was developed by Alan Hull and uses weighted moving averages and a unique calculation to deliver both responsiveness and smoothness. Unlike standard moving averages, the HMA reacts faster to new price moves and avoids false signals in ranging or volatile markets.
How to use the HMA Trend Line (Croc Signal Line) on TradingView?
+ Watch for price crossing above the trend line for potential bullish signals, and below for bearish signals.
+ Use on any timeframe: from 1-minute scalping to daily, weekly, or even monthly charts.
+ Works with all asset classes: Forex, stocks, indices, cryptocurrencies, commodities, and futures.
+ Combine with other indicators (like Stochastics, RSI, or volume) for confirmation and to build your unique trading strategy.
+ Adjust the Signal Line Period for your market and style: shorter periods for faster markets, longer for smoother trends.
Who should use this indicator?
+ Day traders, swing traders, and long-term investors looking for reliable, actionable trend signals.
+ Anyone seeking a cleaner, more responsive alternative to the classic moving averages.
+ Traders who want a simple, visually clear way to filter out market noise and see real price direction.
Disclaimer:
This indicator is for educational and study purposes only. Please perform your own backtesting and analysis before using it in live trading. This script does not constitute financial advice. Use at your own risk.
--------
FVG 9:31–10:00 AM ETFVG 9:31–10:00 AM ET - Script Description
What This Script Does
This indicator finds **Fair Value Gaps (FVGs)** that form during the first 29 minutes of the U.S. stock market (9:31 AM to 10:00 AM Eastern Time). A Fair Value Gap is a price imbalance where there's a gap between candles that often becomes an important support or resistance level.
Key Features:
- **Time Window**: Only looks for FVGs between 9:31-10:00 AM ET (most important opening period)
- **One Per Day**: Finds only the first FVG that forms in this time window each day
- **Visual Display**: Draws a purple box around the gap with a clear "FVG" label
- **Price Tracking**: Monitors when price comes back to test the gap level
- **Alert System**: Sends notifications when price returns to the FVG zone
How FVGs Are Detected:
- **Bullish FVG**: When there's a gap up (low of middle candle is above high of 3rd candle back)
- **Bearish FVG**: When there's a gap down (high of middle candle is below low of 3rd candle back)
The 9:31-10:00 AM window is chosen because this is when institutions and algorithms create their biggest price moves right after market open, making these gaps very reliable.
Customization Options
User Settings
Extend FVG Box (Bars)
- **What it does**: Makes the purple box longer to the right
- **Default**: 0 (box ends right after the gap forms)
- **Options**: Any number from 0 to 100+
- **When to use**:
- Keep at 0 for clean historical view
- Set to 10-20 to track the gap during the current session
- Set higher for longer reference
Code Settings (Can Be Changed)
Time Window
- **Start**: 9:31 AM Eastern Time
- **End**: 10:00 AM Eastern Time
- **Can modify**: Change the hour/minute numbers in the code
Visual Style
- **Color**: Purple with see-through background
- **Label**: Shows "FVG" text in white
- **Can modify**: Change colors and transparency in the code
How to Use:
Setup
Chart Settings
1. Use 1-minute, 5-minute, or 15-minute charts (works best on these timeframes)
2. Apply to liquid markets like ES, NQ, major stocks, or forex pairs
3. Set the "Extend FVG Box" to your preference (start with 0 or 10)
What You'll See
- A purple box appears when an FVG forms during 9:31-10:00 AM
- Box shows the exact price levels of the gap
- "FVG" label appears on the box
- Only one FVG per day will be marked
Trading Strategies
Basic FVG Trading
1. **Wait for Formation**: Let the purple box appear during 9:31-10:00 AM
2. **Watch Price Movement**: See if price moves away from the gap
3. **Enter on Retest**: When price comes back to the purple box area, consider entering
4. **Trade Direction**:
- Bullish FVG = look for long opportunities when price retests
- Bearish FVG = look for short opportunities when price retests
Entry Methods
- **Bounce Play**: Enter when price touches the FVG box and bounces away
- **Break Play**: Enter if price strongly breaks through the FVG box
- **Rejection Play**: Enter opposite direction if price gets rejected at the FVG
Risk Management
Stop Losses
- Place stops just outside the FVG box (a few ticks beyond the gap)
- If trading a bounce, stop goes on opposite side of the gap
- If trading a break, stop goes back inside the gap
Position Sizing
- Start small until you understand how FVGs work in your market
- Bigger gaps = smaller position size (more risk)
- Smaller gaps = can use larger position size
Profit Targets
- Take profits at obvious levels like round numbers, previous highs/lows
- Consider taking half profits at 1:1 risk/reward ratio
- Let some position run if the move is strong
Best Practices
When It Works Best
- High-volume stocks and futures (ES, NQ work great)
- Normal market days without major news during the 9:31-10:00 window
- When there's clear institutional activity in the opening period
When to Be Careful
- Low-volume stocks or markets
- Major economic news releases during the time window
- Market holidays when volume is low
- Very choppy or sideways days
Alert Usage
- The script will alert you when price comes back to test the FVG
- Don't trade the alert blindly - always check the current market situation
- Use the alert as a heads-up to start watching the setup more closely
Tips for Success
- The earlier the FVG forms in the 9:31-10:00 window, often the more significant it is
- FVGs that form with high volume are usually more reliable
- Always consider the overall market direction - don't fight the main trend
- Practice on paper first to understand how FVGs behave in your chosen market
🔗 Works Best With:
✅ Liquidity Levels — Smart Swing Lows: Spot key structural lows that can fuel stop hunts and reversals.
✅ ICT Turtle Soup — Liquidity Reversal: Add a classic reversal pattern to your toolkit to catch fakeouts cleanly.
✅ ICT SMC Liquidity Grabs and OBs- Liquidity Grabs, Order Block Zones, and Fibonacci OTE Levels, allowing traders to identify institutional entry models with clean, rule-based visual signals.
This script is most valuable for day traders who want to catch institutional moves right after market open, but it can also help swing traders identify important intraday levels.
✅ ICT Macro Zones (Grey Box Version)- It tracks real-time highs and lows for each Silver Bullet session.
✅ Weekly Opening Gap (cryptonnnite)