Volume Range Map [BigBeluga]This volume-based tool identifies the highest and lowest price extremes within a lookback period and constructs two dynamic range zones. Each zone is filled with horizontal volume profiles that visualize the distribution of traded volume across price bins, helping traders pinpoint key areas of accumulation and distribution.
🔵Key Features:
Dynamic High/Low Zones:
➣ Automatically detects the highest and lowest price levels within a custom lookback window.
➣ Draws two shaded zones: one near the high and one near the low, representing potential supply and demand areas.
Volume Profiles per Zone:
➣ Each zone is filled with a volume profile histogram divided into bins.
➣ The length of each horizontal bar represents the relative volume traded at that price level.
➣ Bins collectively account for 100% of the zone’s volume.
POC Highlighting:
➣ The price bin with the highest volume is marked as the Point of Control (POC), along with a label showing its share of total volume in percentage.
➣ A dashed line is drawn at the middle level of the zone.
Customizable Display:
➣ Traders can adjust the number of bins, zone width, and toggle midline visibility to match their strategy needs.
➣ Colors of upper and lower volume zones are fully customizable.
🔵Usage:
Supply/Demand Analysis: Use upper/lower volume zones to find key reversal or continuation areas where market participants were most active.
Volume Confirmation: Confirm breakout or rejection trades by watching how price reacts to high-volume areas inside each zone.
POC Strategy: Treat POC levels as magnet zones — price tends to revisit them due to high liquidity.
Trade Planning: Use volume-weighted levels instead of raw price action to plan entries, stop-losses, and targets.
Volume Range Map offers a clean and powerful way to analyze volume distribution at price extremes. By combining precise volume histograms, POC highlights, and adaptive zone drawing, it brings market structure into sharper focus for range and breakout traders alike.
지표 및 전략
MA Deviation// -----------------------------------------------------------------------------
// MA Deviation Marking & Alert (MA Divergence)
// -----------------------------------------------------------------------------
// Short Title: MA Deviation Radar
// Author: zhipeng luo
// Version: 1.0
// Date: 2025-04-11
// -----------------------------------------------------------------------------
// Overview:
// This indicator identifies and highlights price bars where the closing price
// deviates significantly from its Simple Moving Average (SMA) by a user-defined
// percentage. It visually marks these bars on the chart and provides
// configurable alert conditions for threshold breaches.
//
// How it Works:
// 1. Calculates the Simple Moving Average (SMA) based on the 'MA Period' input.
// 2. Computes the percentage deviation of the closing price from the SMA value.
// Formula: `((Close - SMA) / SMA) * 100`
// 3. Compares the calculated deviation percentage against the positive and
// negative 'Threshold (%)' input values.
// 4. Marks the background of the price bars when a threshold is exceeded:
// - Red Background: Price deviation is greater than the positive threshold.
// - Green Background: Price deviation is less than the negative threshold.
// 5. Includes an optional, non-visible plot of the MA line itself.
// 6. Offers three distinct alert conditions for automation and notifications.
//
// Features:
// - Customizable Simple Moving Average period.
// - Adjustable deviation threshold percentage.
// - Clear visual signals using background colors on the main chart.
// - Built-in Alert Conditions:
// - MA Positive Deviation Alert (Triggers when price > MA + Threshold %)
// - MA Negative Deviation Alert (Triggers when price < MA - Threshold %)
// - MA Deviation Alert - Any (Triggers on either positive or negative breach)
//
// How to Use:
// - Identify Potential Extremes: Useful for spotting potential overbought (large
// positive deviation) or oversold (large negative deviation) conditions
// which might precede price corrections or mean reversion.
// - Gauge Trend Extension: Extreme deviations can sometimes indicate that a
// trend is overextended and might be due for a pause or reversal.
// - Parameter Tuning: Adjust the 'MA Period' and '(Threshold %)' settings to
// suit the specific asset, timeframe, and volatility characteristics you
// are analyzing. Lower thresholds yield more signals; higher thresholds
// focus on more significant deviations.
// - Alerts: Set up alerts via the TradingView alert menu using the provided
// conditions ("MA Positive Deviation Alert", "MA Negative Deviation Alert",
// "MA Deviation Alert - Any") to get notified of potential setups.
//
// Parameters:
// - MA Period (Default: 200): The lookback period for the SMA calculation.
// - (Threshold %) (Default: 7.0): The percentage deviation (positive and
// negative) from the MA required to trigger a background signal and alert.
//
// Alerts & Important Note:
// Three alert conditions corresponding to the signals are available:
// 1. "MA Positive Deviation Alert"
// 2. "MA Negative Deviation Alert"
// 3. "MA Deviation Alert - Any"
//
// ***Please Note:*** The value shown after "( {{plot_0}}%)" or
// "( {{plot_0}}%)" in the default alert message refers to the
// **Moving Average value** (`plot_0`), not the actual deviation percentage.
// The alert *triggers correctly* based on the deviation percentage crossing
// the threshold, but the number displayed by the `{{plot_0}}` placeholder
// in the message is the MA's value at that time due to the script's
// internal plot order.
//
// Disclaimer: This indicator is provided for informational and analytical
// purposes only. It does not constitute financial advice or a recommendation
// to buy or sell any asset. Always conduct your own research and use proper
// risk management. Trading involves significant risk.
// -----------------------------------------------------------------------------
Leavitt Convolution ProbabilityTechnical Analysis of Markets with Leavitt Market Projections and Associated Convolution Probability
The aim of this study is to present an innovative approach to market analysis based on the research "Leavitt Market Projections." This technical tool combines one indicator and a probability function to enhance the accuracy and speed of market forecasts.
Key Features
Advanced Indicators : the script includes the Convolution line and a probability oscillator, designed to anticipate market changes. These indicators provide timely signals and offer a clear view of price dynamics.
Convolution Probability Function : The Convolution Probability (CP) is a key element of the script. A significant increase in this probability often precedes a market decline, while a decrease in probability can signal a bullish move. The Convolution Probability Function:
At each bar, i, the linear regression routine finds the two parameters for the straight line: y=mix+bi.
Standard deviations can be calculated from the sequence of slopes, {mi}, and intercepts, {bi}.
Each standard deviation has a corresponding probability.
Their adjusted product is the Convolution Probability, CP. The construction of the Convolution Probability is straightforward. The adjusted product is the probability of one times 1− the probability of the other.
Customizable Settings : Users can define oversold and overbought levels, as well as set an offset for the linear regression calculation. These options allow for tailoring the script to individual trading strategies and market conditions.
Statistical Analysis : Each analyzed bar generates regression parameters that allow for the calculation of standard deviations and associated probabilities, providing an in-depth view of market dynamics.
The results from applying this technical tool show increased accuracy and speed in market forecasts. The combination of Convolution indicator and the probability function enables the identification of turning points and the anticipation of market changes.
Additional information:
Leavitt, in his study, considers the SPY chart.
When the Convolution Probability (CP) is high, it indicates that the probability P1 (related to the slope) is high, and conversely, when CP is low, P1 is low and P2 is high.
For the calculation of probability, an approximate formula of the Cumulative Distribution Function (CDF) has been used, which is given by: CDF(x)=21(1+erf(σ2x−μ)) where μ is the mean and σ is the standard deviation.
For the calculation of probability, the formula used in this script is: 0.5 * (1 + (math.sign(zSlope) * math.sqrt(1 - math.exp(-0.5 * zSlope * zSlope))))
Conclusions
This study presents the approach to market analysis based on the research "Leavitt Market Projections." The script combines Convolution indicator and a Probability function to provide more precise trading signals. The results demonstrate greater accuracy and speed in market forecasts, making this technical tool a valuable asset for market participants.
Live Risk On/Off Sentiment Big Basket🔥 Live Risk On/Off Sentiment Indicator 🔥
This indicator provides a clear and immediate assessment of global market risk sentiment by combining multiple key financial instruments across various asset classes. It helps traders quickly gauge whether the market is currently in a risk-on or risk-off environment.
📈 Included Assets:
- Risk-off indicators:** VIX, Gold, US Dollar Index (DXY), US10Y Treasury Yields, TLT (Treasury Bonds)
- Risk-on indicators:** S&P 500 (SPY), Bitcoin (BTC), High Yield Bonds (HYG), AUD/JPY (Forex), Copper/Gold ratio, and Oil (WTI)
🛠️ How it Works:
The indicator calculates a weighted Z-score for each asset, dynamically capturing its performance relative to recent history. Positive values (green) indicate a risk-on sentiment, while negative values (red) suggest a risk-off sentiment.
🚨 Features:
- Fully customizable asset selection and weighting
- Easy-to-understand visual signals
- Adaptable lookback period for short-term and long-term market analysis
💡 How to Use:
- Identify market phases quickly (bullish or bearish sentiment).
- Enhance your decision-making for entries and exits based on broader market conditions.
- Incorporate into any trading strategy to improve alignment with global risk sentiment.
Harness the power of macro analysis and elevate your trading performance!
Enjoy and trade smart! 📊📈
Riseofatrader
DI+/- Cross Strategy with ATR SL and 2% TPDI+/- Cross Strategy with ATR Stop Loss and 2% Take Profit
📝 Script Description for Publishing:
This strategy is based on the directional movement of the market using the Average Directional Index (ADX) components — DI+ and DI- — to generate entry signals, with clearly defined risk and reward targets using ATR-based Stop Loss and Fixed Percentage Take Profit.
🔍 How it works:
Buy Signal: When DI+ crosses above 40, signaling strong bullish momentum.
Sell Signal: When DI- crosses above 40, indicating strong bearish momentum.
Stop Loss: Dynamically calculated using ATR × 1.5, to account for market volatility.
Take Profit: Fixed at 2% above/below the entry price, for consistent reward targeting.
🧠 Why it’s useful:
Combines momentum breakout logic with volatility-based risk management.
Works well on trending assets, especially when combined with higher timeframe filters.
Clean BUY and SELL visual labels make it easy to interpret and backtest.
✅ Tips for Use:
Use on assets with clear trends (e.g., major forex pairs, trending stocks, crypto).
Best on 30m – 4H timeframes, but can be customized.
Consider combining with other filters (e.g., EMA trend direction or Bollinger Bands) for even better accuracy.
ATR % Oscillator - DolphinTradeBot1️⃣ Overview
🔸 This is a simplified version of ATR and TR that shows volatility as percentage changes , making it easier to compare two symbols.
🔸 The indicator compares the volatility of two different assets by calculating the percentage-based price ranges and their moving averages .
📌 This is especially useful for pair traders, as it helps identify which symbol is more volatile, allowing for strategic decisions based on relative movement rather than overall market direction.
2️⃣ How Is It Work?
🔸 For each symbol, it calculates the absolute percentage difference between either:
• Close and Open (net price change), or
• High and Low (daily price range).
🔸 The results are visualized as column bars — the taller the bar, the higher the volatility.
🔸 It also plots a moving average line (SMA) based on the selected range length.
📌 These calculations are independent of the chart you're on — they work purely based on the two selected symbols.
If no symbols are selected, it defaults to using the current chart's symbol.
3️⃣ How to Use It?
With this indicator, you can:
🔸 Compare the volatility between two assets.
🔸 Detect sudden volatility spikes that may signal upcoming momentum.
🔸 Support spread, arbitrage, or correlation-based strategies .
🔸 See which symbol is gaining market attention (a larger difference = more activity).
Example: Compare BTC vs ETH to see which one is dominating in terms of price action or volatility.
4️⃣⚙️ Settings
🔸 Symbol Settings
• Symbol-1 / Symbol-2: Choose the two assets to compare.
• Checkboxes: Enable/disable visibility for each symbol's data.
🔸 Calculation Settings
• Range Average: The number of bars used for the moving average.
• Calculation Source:
- Close-Open: Measures net price movement.
- High-Low: Measures total price range.
Wave Analyzer - Bobal [hamgkia]The Bobal tool is a volume-based wave analyzer designed to highlight the effort behind price movement within trend waves. It is built with a focus on clarity, speed of response, and a Wyckoff-inspired philosophy, where volume and trend direction are deeply intertwined.
This script offers a unique visualization of directional volume flow — up or down — in clearly segmented waves, allowing traders to assess who is in control and how strong their effort is. It does this by calculating dynamic trend waves, accumulating volume within those waves, and comparing volume to volatility for normalization.
🔶 WHAT'S INCLUDED
Detects directional waves based on your selected moving average (SMA, EMA, WMA, or HMA).
Accumulates volume within each wave, creating a distinct "volume block" per wave.
Normalizes volume by ATR (optional) to adjust for current market volatility.
Applies a power function to volume strength for dynamic contrast (stronger waves stand out visually).
Plots volume histograms in real-time: green/orange for up waves, red/fuchsia for down waves.
Optional - displays trend strength background based on recent price expansion vs ATR.
🔷 HOW IT WORKS
Wave Definition
A wave is defined as a sequence of bars moving in the same direction based on a selected moving average:
If the MA rises → uptrend wave
If the MA falls → downtrend wave
Wave resets on direction change.
Volume Accumulation
Volume is accumulated within each wave, starting fresh at the beginning of each new wave. This clean segmentation reveals whether the current wave is attracting participation (volume).
Normalization (Optional)
Volume can be normalized by the ATR (Average True Range) to account for volatility differences across symbols and timeframes. This makes comparisons more meaningful.
Strength Calculation
Volume strength is calculated by comparing current wave volume to the maximum over a recent period (default: 50 bars), and applying a pow() function for expressive scaling. This emphasizes high-effort waves while de-emphasizing noise.
🔶 USAGE
A new wave starts when the selected MA (SMA, EMA, WMA, HMA) changes direction.
Read the Strength of the Current Wave
🟩 — strong up
🟧 — weak up
🟪 — weak down
🟥 — strong down
Look for these setups
📉 Strong down wave 🟥 followed by weak up wave 🟧 — possible lower high, selling may resume.
📈 Strong up wave 🟩 followed by weak down wave 🟪 — possible bullish absorption, look for long setups.
Wave is long, but volume fades (bars shrink) — trend may be slowing, consider tightening stops or avoiding late entries.
Trend is increasing, volumes are growing — potential entry points.
Use Background Strength for Context
🟩 — bright green — strong bullish
🟥 — bright red — strong bearish
Any dim or translucent color — no clear trend
What NOT to do
Don’t enter blindly on volume spikes — check direction and trend background first.
Don’t treat every strong bar as a signal — look for sequences and transitions, not isolated bars.
Ideal Use Cases
Confirming trend strength before entry.
Avoiding fakeouts in low-volume waves.
Spotting transitions in buyer/seller dominance.
Reading market participation in real time.
Rendon1 Swing Market Turns**Swing Market Turns Indicator**
This indicator identifies potential swing highs and swing lows by integrating Relative Strength Index (RSI), volume confirmation, and higher timeframe (HTF) levels to accurately detect market reversals and turning points. Specifically optimized for swing traders, this tool aims to pinpoint moments when price momentum is shifting, providing clear signals for trade entries and exits.
### How It Works:
- **RSI Divergence:** Detects momentum shifts through RSI overbought and oversold conditions.
- **Higher Timeframe Levels:** Confirms reversals using support and resistance levels from higher timeframes.
- **Volume Confirmation:** Ensures stronger validity of signals by checking if current volume exceeds the moving average of recent volume.
### Key Features:
- Visual labels on chart clearly indicating potential swing highs and lows.
- Customizable RSI period, RSI overbought/oversold thresholds, volume moving average length, and higher timeframe selections.
- Built-in alert conditions for immediate notifications when swing opportunities are detected.
### Recommended Use:
- Ideal for traders focusing on swing trading strategies, particularly those looking for high-probability turning points.
- Effective across multiple assets including forex, stocks, commodities, and crypto.
- Suitable for various intraday and higher timeframes, with customization options available.
### Settings:
- **RSI Period:** Adjust the sensitivity of RSI calculation.
- **Higher Timeframe:** Select the timeframe used for support/resistance reference.
- **RSI Overbought/Oversold:** Customize thresholds defining extreme RSI values.
- **Volume MA Length:** Specify the length for volume moving average calculation.
Feel free to customize the parameters to best fit your trading style and asset of choice.
**Disclaimer:**
This indicator does not guarantee profitable trades and should be used in conjunction with proper risk management and additional analysis methods.
Liquidity Stress Index SOFR - IORBLiquidity Stress Index (SOFR - IORB)
This indicator tracks the spread between the Secured Overnight Financing Rate (SOFR) and the Interest on Reserve Balances (IORB) set by the Federal Reserve.
A persistently positive spread may indicate funding stress or liquidity shortages in the repo market, as it suggests overnight lending rates exceed the risk-free rate banks earn at the Fed.
Useful for monitoring monetary policy transmission or market/liquidity stress.
Drawdown Visualizer v1.0Drawdown Visualizer
The Drawdown Visualizer tracks the percentage decline from all-time highs, providing valuable insights into market corrections and potential buying opportunities.
Key Features:
1) Real-Time Drawdown Tracking: The indicator continuously calculates and displays the current percentage drawdown from the all-time high price, color-coded from green (minimal drawdown) to red (severe drawdown) for instant visual feedback.
2) Maximum Drawdown Detection: Permanently tracks and displays the maximum historical drawdown encountered during the analyzed period, helping traders understand worst-case scenarios.
3) Statistical Analysis: Calculates and displays three important statistical measures:
* Average Drawdown: The mean value of all drawdowns recorded
* Median Drawdown: The middle value in the sorted list of all drawdowns, providing insight
into typical decline patterns
* Normal Drawdown Range: Visualizes the expected range of typical drawdowns based on
statistical standard deviation
Practical Applications:
1) Risk Management: Understand typical and extreme drawdowns to set appropriate stop-loss levels
2) Market Context: Gain perspective on whether current corrections are normal or exceptional
3) Entry Point Analysis: Identify potential buying opportunities when drawdowns reach statistical extremes
RSI Full [Titans_Invest]RSI Full
One of the most complete RSI indicators on the market.
While maintaining the classic RSI foundation, our indicator integrates multiple entry conditions to generate more accurate buy and sell signals.
All conditions are fully configurable, allowing complete customization to fit your trading strategy.
⯁ WHAT IS THE RSI❓
The Relative Strength Index (RSI) is a technical analysis indicator developed by J. Welles Wilder. It measures the magnitude of recent price movements to evaluate overbought or oversold conditions in a market. The RSI is an oscillator that ranges from 0 to 100 and is commonly used to identify potential reversal points, as well as the strength of a trend.
⯁ HOW TO USE THE RSI❓
The RSI is calculated based on average gains and losses over a specified period (usually 14 periods). It is plotted on a scale from 0 to 100 and includes three main zones:
Overbought: When the RSI is above 70, indicating that the asset may be overbought.
Oversold: When the RSI is below 30, indicating that the asset may be oversold.
Neutral Zone: Between 30 and 70, where there is no clear signal of overbought or oversold conditions.
⯁ ENTRY CONDITIONS
The conditions below are fully flexible and allow for complete customization of the signal.
______________________________________________________
🔹 CONDITIONS TO BUY 📈
______________________________________________________
• Signal Validity: The signal will remain valid for X bars .
• Signal Sequence: Configurable as AND/OR .
📈 RSI Conditions:
🔹 RSI > Upper
🔹 RSI < Upper
🔹 RSI > Lower
🔹 RSI < Lower
🔹 RSI > Middle
🔹 RSI < Middle
🔹 RSI > MA
🔹 RSI < MA
📈 MA Conditions:
🔹 MA > Upper
🔹 MA < Upper
🔹 MA > Lower
🔹 MA < Lower
📈 Crossovers:
🔹 RSI (Crossover) Upper
🔹 RSI (Crossunder) Upper
🔹 RSI (Crossover) Lower
🔹 RSI (Crossunder) Lower
🔹 RSI (Crossover) Middle
🔹 RSI (Crossunder) Middle
🔹 RSI (Crossover) MA
🔹 RSI (Crossunder) MA
🔹 MA (Crossover) Upper
🔹 MA (Crossunder) Upper
🔹 MA (Crossover) Lower
🔹 MA (Crossunder) Lower
📈 RSI Divergences:
🔹 RSI Divergence Bull
🔹 RSI Divergence Bear
______________________________________________________
______________________________________________________
🔸 CONDITIONS TO SELL 📉
______________________________________________________
• Signal Validity: The signal will remain valid for X bars .
• Signal Sequence: Configurable as AND/OR .
📉 RSI Conditions:
🔸 RSI > Upper
🔸 RSI < Upper
🔸 RSI > Lower
🔸 RSI < Lower
🔸 RSI > Middle
🔸 RSI < Middle
🔸 RSI > MA
🔸 RSI < MA
📉 MA Conditions:
🔸 MA > Upper
🔸 MA < Upper
🔸 MA > Lower
🔸 MA < Lower
📉 Crossovers:
🔸 RSI (Crossover) Upper
🔸 RSI (Crossunder) Upper
🔸 RSI (Crossover) Lower
🔸 RSI (Crossunder) Lower
🔸 RSI (Crossover) Middle
🔸 RSI (Crossunder) Middle
🔸 RSI (Crossover) MA
🔸 RSI (Crossunder) MA
🔸 MA (Crossover) Upper
🔸 MA (Crossunder) Upper
🔸 MA (Crossover) Lower
🔸 MA (Crossunder) Lower
📉 RSI Divergences:
🔸 RSI Divergence Bull
🔸 RSI Divergence Bear
______________________________________________________
______________________________________________________
🤖 AUTOMATION 🤖
• You can automate the BUY and SELL signals of this indicator.
______________________________________________________
______________________________________________________
⯁ UNIQUE FEATURES
______________________________________________________
Signal Validity: The signal will remain valid for X bars
Signal Sequence: Configurable as AND/OR
Condition Table: BUY/SELL
Condition Labels: BUY/SELL
Plot Labels in the Graph Above: BUY/SELL
Automate and Monitor Signals/Alerts: BUY/SELL
Signal Validity: The signal will remain valid for X bars
Signal Sequence: Configurable as AND/OR
Condition Table: BUY/SELL
Condition Labels: BUY/SELL
Plot Labels in the Graph Above: BUY/SELL
Automate and Monitor Signals/Alerts: BUY/SELL
______________________________________________________
📜 SCRIPT : RSI Full
🎴 Art by : @Titans_Invest & @DiFlip
👨💻 Dev by : @Titans_Invest & @DiFlip
🎑 Titans Invest — The Wizards Without Gloves 🧤
✨ Enjoy the Spell!
______________________________________________________
o Mission 🗺
• Inspire Traders to manifest Magic in the Market.
o Vision 𐓏
• To elevate collective Energy 𐓷𐓏
Gap Day Stats TableDescription:
This Pine Script helps you analyze gap up and gap down days using a user-defined gap percentage threshold. It generates a real-time statistics table that tracks:
📈 Number of Gap Up Days
🔻 How many of those days closed lower (Open > Close)
🧮 Total points lost on such gap up days (Open - Close)
📉 Number of Gap Down Days
🔺 How many of those days closed higher (Close > Open)
🧮 Total points gained on such gap down days (Close - Open)
🔧 Customization:
Gap threshold is adjustable via input
Automatically updates stats daily
Ideal for spotting behavioral edge in gaps
This tool is useful for traders building gap trading systems, mean reversion models, or studying post-gap behavior in equities and indices.
BONK 1H Long Volatility StrategyGrok 1hr bonk strategy:
Key Changes and Why They’re Made
1. Indicator Adjustments
Moving Averages:
Fast MA: Changed to 5 periods (from, e.g., 9 on a higher timeframe).
Slow MA: Changed to 13 periods (from, e.g., 21).
Why: Shorter periods make the moving averages more sensitive to quick price changes on the 1-hour chart, helping identify trends faster.
ATR (Average True Range):
Length: Set to 10 periods (down from, e.g., 14).
Multiplier: Reduced to 1.5 (from, e.g., 2.0).
Why: A shorter ATR length tracks recent volatility better, and a lower multiplier lets the strategy catch smaller price swings, which are more common hourly.
RSI:
Kept at 14 periods with an overbought level of 70.
Why: RSI stays the same to filter out overbought conditions, maintaining consistency with the original strategy.
2. Entry Conditions
Trend: Requires the fast MA to be above the slow MA, ensuring a bullish direction.
Volatility: The candle’s range (high - low) must exceed 1.5 times the ATR, confirming a significant move.
Momentum: RSI must be below 70, avoiding entries at potential peaks.
Price: The close must be above the fast MA, signaling a pullback or trend continuation.
Why: These conditions are tightened to capture frequent volatility spikes while filtering out noise, which is more prevalent on a 1-hour chart.
3. Exit Strategy
Profit Target: Default is 5% (adjustable from 3-7%).
Stop-Loss: Default is 3% (adjustable from 1-5%).
Why: These levels remain conservative to lock in gains quickly and limit losses, suitable for the faster pace of a 1-hour timeframe.
4. Risk Management
The strategy may trigger more trades on a 1-hour chart. To avoid overtrading:
The ATR filter ensures only volatile moves are traded.
Trading fees (e.g., 0.5% on Coinbase) reduce the net profit to ~4% on winners and -3.5% on losers, requiring a win rate above 47% for profitability.
Suggestion: Risk only 1-2% of your capital per trade to manage exposure.
5. Visuals and Alerts
Plots: Blue fast MA, red slow MA, and green triangles for buy signals.
Alerts: Trigger when an entry condition is met, so you don’t need to watch the chart constantly.
How to Use the Strategy
Setup:
Load TradingView, select BONK/USD on the 1-hour chart (Coinbase pair).
Paste the script into the Pine Editor and add it to your chart.
Customize:
Adjust the profit target (e.g., 5%) and stop-loss (e.g., 3%) to your preference.
Tweak ATR or MA lengths if BONK’s volatility shifts.
Trade:
Look for green triangle signals and confirm with market context (e.g., volume or news).
Enter trades manually or via TradingView’s broker tools if supported.
Exit when the profit target or stop-loss is hit.
Test:
Use TradingView’s Strategy Tester to backtest on historical data and refine settings.
Benefits of the 1-Hour Timeframe
Faster Opportunities: Captures shorter-term uptrends in BONK’s volatile price action.
Responsive: Adjusted indicators react quickly to hourly changes.
Conservative: Maintains the 3-7% profit goal with tight risk control.
Potential Challenges
Noise: The 1-hour chart has more false signals. The ATR and MA filters help, but caution is needed.
Fees: Frequent trading increases costs, so ensure each trade’s potential justifies the expense.
Volatility: BONK can move unpredictably—monitor broader market trends or Solana ecosystem news.
Final Thoughts
Switching to a 1-hour timeframe makes the strategy more active, targeting shorter volatility spikes while keeping profits conservative at 3-7%. The adjusted indicators and conditions balance responsiveness with reliability. Backtest it on TradingView to confirm it suits BONK’s behavior, and always use proper risk management, as meme coins are highly speculative.
Disclaimer: This is for educational purposes, not financial advice. Cryptocurrency trading, especially with assets like BONK, is risky. Test thoroughly and trade responsibly.
Daily LevelsOverview:
The Daily Levels indicator plots key price levels from the previous trading day, including the high, low, median (pivot), and projected extensions. These levels help traders identify potential support/resistance zones and anticipate breakout or reversal opportunities.
Key Features:
✅ Previous Day High & Low – Visualizes the prior day’s high and low as dynamic support/resistance levels.
✅ Median (Pivot) Line – Calculates the midpoint between the previous day’s high and low, acting as a key intraday reference.
✅ Projected Levels – Extends the high/low range symmetrically above and below the median, highlighting potential breakout zones.
✅ Customizable Display – Toggle visibility, adjust colors, and modify line styles (solid, dotted, dashed).
✅ Price Labels – Clear on-chart labels showing exact price values for quick reference.
✅ Built-in Alerts – Get notified when price crosses any of the key levels.
How to Use:
Trend Identification: If price holds above the median, the bias is bullish; below suggests bearish momentum.
Breakout Trading: Watch for moves beyond the projected levels for potential continuation.
Mean Reversion: Fade moves toward the previous day’s high/low if the median holds as support/resistance.
Ideal For:
Day Traders – Intraday support/resistance levels.
Swing Traders – Context for multi-day trends.
Breakout/Reversal Strategies – Clear levels for trade triggers.
Settings Recommendations:
High/Low Lines: Use semi-transparent colors (e.g., green/red) for clarity.
Projections: Helpful for anticipating extended moves (e.g., teal for upper, orange for lower).
Alerts: Enable notifications for key crosses (e.g., median or high/low breaks).
DTFX Time based range candle box [Wang Indicators]DTFX Time based range candle box
Overview : This indicator highlights HTF Candles in specified timeframe within boxes and extend them until they are mitigated. Allowing traders to use them as zones from which you could find some turn-around or scalp
How does it works ?
Users can setup up to 8 desired timeframe with the hour/minute of the HTF candle
Be carrefull when you chose the time. You must put something coherent with the timeframe (e.g : you can't put 'minutes' = 45 if your timeframe is '1h')
Everyday, the indicator will draw a box around the specified candle for it timeframe
Once the price close above or bellow this candle in the same timeframe, the Zone become "active"
As long as the price doesn't came back into the zone, the retracements will extends
Once the price came back into the zone (in the current timeframe), it stops the expension
Exemple
Here we have those settings :
timeframe : 1 hour
time : 9am
mitigation : 10%
fibs : visible & dashed
The box highlights the 9am 1H candle (9am to 10am)
We now wait for the price to close in the same timeframe (1h here) above or bellow the price
At 11am we close above - the zone is now "active"'
Now we wait for the price to go back in this zone in the current timeframe (here 5min)
12:40am : we put a low above the 10% of the zone -> we stop the retracements, the zone is considered as "mitigated"
Settings
Hour : The hour of the begiging of the candle
Minute : Combined with hour (default 0)
Timeframe : In whichtimeframe we are looking for the candle
% Mitigation : % of the box in wich the price must go back-in in order to "mitigate" the box and stop the expension of the fibs/box (if settings enabled)
Retracements style : Hidden, dashed, dotted or lines for the fibs
Extend Box : extend the box itself until it get mitigated
Number of unmitigated zones : Max unmitigated zone drawed on the chart PER CONFIG
Timezone : Must be set to reflect your needs. (preferably the chart timezone)
How does it helps users ?
Once a Candle is "active" it can be used as a Zone
Fibonnacis levels (30, 50 and 70%) are displayed (if enabled)
Users can customize their apparence and the boxes as they see fit
The 30 - 50 - 70 levels are possible support/resistance that the price tend to bounce of off
You might find some success looking for an entry inside the zone at a level if price gives further confirmations such as a lower time frame flip.
Tactical FlowTactical Flow – Altcoin Swing Strategy with Trend Logic & Dynamic TP System
(Built for 1H timeframe altcoin trading)
🎯 Purpose
Tactical Flow is a swing trading strategy purpose-built for altcoins on the 1-hour timeframe. It targets clean trend continuation setups by combining non-repainting filters for direction, momentum, and volume with a real-time execution engine that strictly avoids same-bar reversals. It includes a dynamic take-profit system with real-time trade tracking and an integrated visual dashboard.
⚙️ Strategy Core Components
Each module was chosen for precision, trend clarity, and altcoin-specific price behavior.
🔹 1. White Line Bias
Defines market structure using the midpoint of recent high/low range.
→ Keeps you trading with the dominant structure.
🔹 2. Tether Trend Engine
Two mid-range bands (Fast & Slow Tether) act like a dynamic trend cloud.
→ Ensures trend direction is confirmed with structural layering.
🔹 3. ZLEMA Gradient Filter
A Zero Lag EMA of price that’s compared to its previous value for momentum slope.
→ Confirms the trend has actual energy behind it.
🔹 4. TEMA Micro-Flow
A smoothed directional signal to confirm price is accelerating, not just trending.
→ Filters out late or fading entries.
🔹 5. Volume Spike Filter
Confirms that breakouts are real by requiring volume > 1.5× median of previous candles.
→ Designed for altcoins to avoid fakeouts during random volatility.
🔹 6. RMI Trend Memory
Keeps track of the trend state over time, allowing for smoother transitions and fewer whipsaws.
→ Helps the strategy stay in trend longer and only reverse when confirmation is strong.
🔹 7. Reversal Cooldown Logic
Exits a trade, then waits 1 full bar before taking a reversal entry.
→ Avoids common backtest false positives where entries and exits occur on the same candle.
💸 Trade Management – TP1/TP2 Logic
TP1 = 50% closed when price hits target 1
TP2 = full exit
Exits early if trend weakens
Supports dynamic reentry after TP2 if trend resumes
→ Keeps risk controlled while allowing position scaling in volatile altcoin swings.
📊 Strategy Dashboard
Visual interface shows:
Current Position (Long / Short / Flat)
Entry Price
TP1 and TP2 hit status
Bars since entry
Real-time Win Rate
Profit Factor
🧪 Backtesting & Execution Compliance
✅ Fully non-repainting
✅ Compatible with TradingView's deep backtesting
✅ Uses strategy.exit with limit logic for accurate TP tracking
✅ No stop-loss — closes trades on trend weakening only
🔥 Best Use Case
Altcoin swing trades on 1H chart
Works well during trending periods with volume
Not designed for choppy or sideways conditions
Pairs well with watchlist scanners and heatmaps
Retirement Portfolio Dashboard1. Set It Up
Paste the script into the Pine Script editor in TradingView
Add to chart (use a daily chart for any TSX ticker)
Configure the inputs on the right panel:
Choose your ETF tickers (default: VFV, XAW, XIC)
Enter your target allocations (U.S., Global, Canada, Cash)
Set your current portfolio value and contribution plan
Adjust your expected return and rebalance trigger
📊 2. What It Tracks
💼 Allocation Overview
Target vs. actual % for each asset class
CAD value of each component
Performance YTD based on Jan 2nd start
Drift % to see how far each asset has deviated
📈 Growth Forecast
Future value projection with contributions
Weighted return (based on typical historical returns)
Inflation-adjusted real return (assuming 2% inflation)
⚠ Rebalancing
If any drift exceeds your set threshold (e.g., 5%), the script:
Highlights the issue in red
Displays "⚠ Rebalance Suggested"
Triggers a TradingView alert if you've activated it
🔔 3. Set Up Alerts
Go to Alerts > Create Alert
Choose your script from the dropdown
Under Condition, select "Rebalance Alert"
Choose your desired alert type (popup, email, webhook, etc.)
✅ 4. How to Use It Effectively
Task What to Do
Monitor allocations Check dashboard weekly or monthly
Spot imbalances Use Drift % and Status (green/red)
Forecast retirement growth Adjust contributions, return rate, and horizon
Prepare to rebalance Use alerts when drift > threshold
Tune assumptions Change expected returns or inflation rate as needed
💡 Tips
You can edit return assumptions (e.g., make Global equity more conservative)
Use this on a “blank” ticker (like TSX:XIC) so you don't overlay the chart
Copy values from your broker or retirement account to update real allocations
Quarterly Cycle Theory with DST time AdjustedThe Quarterly Theory removes ambiguity, as it gives specific time-based reference points to look for when entering trades. Before being able to apply this theory to trading, one must first understand that time is fractal:
Yearly Quarters = 4 quarters of three months each.
Monthly Quarters = 4 quarters of one week each.
Weekly Quarters = 4 quarters of one day each (Monday - Thursday). Friday has its own specific function.
Daily Quarters = 4 quarters of 6 hours each = 4 trading sessions of a trading day.
Sessions Quarters = 4 quarters of 90 minutes each.
90 Minute Quarters = 4 quarters of 22.5 minutes each.
Yearly Cycle: Analogously to financial quarters, the year is divided in four sections of three months each:
Q1 - January, February, March.
Q2 - April, May, June (True Open, April Open).
Q3 - July, August, September.
Q4 - October, November, December.
S&P 500 E-mini Futures (daily candles) — Monthly Cycle.
Monthly Cycle: Considering that we have four weeks in a month, we start the cycle on the first month’s Monday (regardless of the calendar Day):
Q1 - Week 1: first Monday of the month.
Q2 - Week 2: second Monday of the month (True Open, Daily Candle Open Price).
Q3 - Week 3: third Monday of the month.
Q4 - Week 4: fourth Monday of the month.
S&P 500 E-mini Futures (4 hour candles) — Weekly Cycle.
Weekly Cycle: Daye determined that although the trading week is composed by 5 trading days, we should ignore Friday, and the small portion of Sunday’s price action:
Q1 - Monday.
Q2 - Tuesday (True Open, Daily Candle Open Price).
Q3 - Wednesday.
Q4 - Thursday.
S&P 500 E-mini Futures (1 hour candles) — Daily Cycle.
Daily Cycle: The Day can be broken down into 6 hour quarters. These times roughly define the sessions of the trading day, reinforcing the theory’s validity:
Q1 - 18:00 - 00:00 Asia.
Q2 - 00:00 - 06:00 London (True Open).
Q3 - 06:00 - 12:00 NY AM.
Q4 - 12:00 - 18:00 NY PM.
S&P 500 E-mini Futures (15 minute candles) — 6 Hour Cycle.
6 Hour Quarters or 90 Minute Cycle / Sessions divided into four sections of 90 minutes each (EST/EDT):
Asian Session
Q1 - 18:00 - 19:30
Q2 - 19:30 - 21:00 (True Open)
Q3 - 21:00 - 22:30
Q4 - 22:30 - 00:00
London Session
Q1 - 00:00 - 01:30
Q2 - 01:30 - 03:00 (True Open)
Q3 - 03:00 - 04:30
Q4 - 04:30 - 06:00
NY AM Session
Q1 - 06:00 - 07:30
Q2 - 07:30 - 09:00 (True Open)
Q3 - 09:00 - 10:30
Q4 - 10:30 - 12:00
NY PM Session
Q1 - 12:00 - 13:30
Q2 - 13:30 - 15:00 (True Open)
Q3 - 15:00 - 16:30
Q4 - 16:30 - 18:00
S&P 500 E-mini Futures (5 minute candles) — 90 Minute Cycle.
Micro Cycles: Dividing the 90 Minute Cycle yields 22.5 Minute Quarters, also known as Micro Sessions or Micro Quarters:
Asian Session
Q1/1 18:00:00 - 18:22:30
Q2 18:22:30 - 18:45:00
Q3 18:45:00 - 19:07:30
Q4 19:07:30 - 19:30:00
Q2/1 19:30:00 - 19:52:30 (True Session Open)
Q2/2 19:52:30 - 20:15:00
Q2/3 20:15:00 - 20:37:30
Q2/4 20:37:30 - 21:00:00
Q3/1 21:00:00 - 21:23:30
etc. 21:23:30 - 21:45:00
London Session
00:00:00 - 00:22:30 (True Daily Open)
00:22:30 - 00:45:00
00:45:00 - 01:07:30
01:07:30 - 01:30:00
01:30:00 - 01:52:30 (True Session Open)
01:52:30 - 02:15:00
02:15:00 - 02:37:30
02:37:30 - 03:00:00
03:00:00 - 03:22:30
03:22:30 - 03:45:00
03:45:00 - 04:07:30
04:07:30 - 04:30:00
04:30:00 - 04:52:30
04:52:30 - 05:15:00
05:15:00 - 05:37:30
05:37:30 - 06:00:00
New York AM Session
06:00:00 - 06:22:30
06:22:30 - 06:45:00
06:45:00 - 07:07:30
07:07:30 - 07:30:00
07:30:00 - 07:52:30 (True Session Open)
07:52:30 - 08:15:00
08:15:00 - 08:37:30
08:37:30 - 09:00:00
09:00:00 - 09:22:30
09:22:30 - 09:45:00
09:45:00 - 10:07:30
10:07:30 - 10:30:00
10:30:00 - 10:52:30
10:52:30 - 11:15:00
11:15:00 - 11:37:30
11:37:30 - 12:00:00
New York PM Session
12:00:00 - 12:22:30
12:22:30 - 12:45:00
12:45:00 - 13:07:30
13:07:30 - 13:30:00
13:30:00 - 13:52:30 (True Session Open)
13:52:30 - 14:15:00
14:15:00 - 14:37:30
14:37:30 - 15:00:00
15:00:00 - 15:22:30
15:22:30 - 15:45:00
15:45:00 - 15:37:30
15:37:30 - 16:00:00
16:00:00 - 16:22:30
16:22:30 - 16:45:00
16:45:00 - 17:07:30
17:07:30 - 18:00:00
S&P 500 E-mini Futures (30 second candles) — 22.5 Minute Cycle.
Forever Model [Pro+] (Sniper)Introduction
Forever Model (Sniper) is a clean, structured framework for visualizing internal liquidity to external liquidity rotations. It identifies shifts in market delivery by combining internal liquidity zones (Fair Value Gaps), divergence between correlated markets (Smart Money Technique), and lower timeframe orderflow changes (Orderblocks).
Designed for repeatability, the model helps analysts build confidence through familiarity, not complexity.
Rather than attempting to forecast direction, this model focuses on recognizing recurring patterns in delivery behavior across Timeframes. It presents a structured visual logic that can support manual analysis, with the aid of alerts that prompt analysts to investigate and validate potential price rotations.
The model is non-repainting, thoughtfully built to highlight past rotations once formed. It offers flexibility across assets and Timeframes, adapting to analysts' preferences while remaining consistent in its components.
Description
The model is organized into a three-part sequence. These three conditions form the visual foundation of the model. All parameters can be customized to match your preferred timeframe, session, and market:
Internal Range Liquidity Tag (IRL)
Price must interact with a defined internal inefficiency—typically a Fair Value Gap (FVG), which is an area between a three candle structure where price moves rapidly, leaving an imbalance that may later be revisited to be filled for efficiency.
Smart Money Technique Divergence Detected (SMT)
SMT transpires as a crack in correlation between two assets – this divergence is used to indicate potential shifts in price delivery.
SMT can be observed between two correlated assets, where one makes a lower low while the other holds a higher low (or conversely, one makes a higher high while the other forms a lower high).
Similarly, SMT can also occur between inverse correlated assets, where one makes a lower low while the other holds a lower high (or conversely, one makes a higher high while the other forms a higher low).
Change in State of Delivery (CISD)
After SMT occurs, the model identifies a CISD—a strong close engulfing the body of a previous directional candle that sweeps a short-term high or low. This suggests that price may be shifting from one delivery regime to another. The candle is labelled as an Orderblock (OB) candidate, with optional projected measures for better range of opportunity estimation.
Key Features
Model History Control
Controls how many past model formations appear on the chart, with a maximum of 40. Analysts may use shorter history for live charting or increase the count when studying past performance or recurring conditions.
When History is equal to 0, it will only show only live models in development, or nothing if no models are currently active.
Note: historical invalidated rotations are visualized through small markers, and may not display the model's components unless reviewed in Replay Mode. This mechanism keeps the chart clean, and allows the analyst to focus on the confirmed rotations.
Directional Bias Filter
Filters whether the model shows formations in only one direction or both. For example, selecting “Bullish” displays only internal range zones and divergence setups that meet criteria for upside movement. This feature is crucial for allowing analysts to align with higher Timeframe bias or studying unidirectional structures.
SMT Pair Input
The model compares your active chart with a second asset to detect SMT Divergence. You may manually enter a symbol (e.g., ES1!, BTCUSD, NZDUSD) or use Automatic SMT Pair Detection , which selects the most relevant correlated market. Inverse SMT inverts the logic, useful for negatively correlated pairs (e.g., gold vs dollar).
For example, although the Automatic SMT Pair Detection for CME_MINI:NQ1! is CME_MINI:ES1! , one may decide to use a leading stock in the NASDAQ such as NASDAQ:NVDA :
Timeframe Alignment
Defines which higher Timeframe the IRL is drawn from, and which lower Timeframe is used to evaluate the Model's conditions. These Timeframe Alignments can be selected individually to only showcase a specific combination of IRL and LTF Conditions; for a more dynamic approach, the "Automatic" option adjusts these pairings based on the current chart Timeframe. By selecting the "Custom" option, analysts can define and monitor their own preferred Timeframe Alignment.
Example: 5m Conditions ➞ 1H IRL vs. 4H Conditions ➞ Weekly IRL
Fair Value Gap (FVG) Visualization
Fair Value Gaps are areas where price moved quickly between two candles without overlap—these areas represent the IRL of the model, and are often revisited before continuing. Optionally, the analyst can decide to showcase the Consequent Encroachment (CE), the midpoint where price begins to fill the imbalance. Further, the analyst can maintain a cleaner chart by only showing FVG where SMT occurs, substantially limiting the number of drawings on the chart.
SMT Visualization
Draws visual lines connecting SMT points between the HTF reference points of the current chart's asset, and the SMT Pair asset. Helps analysts confirm divergence location and relationship at a glance, especially when reviewing multiple correlated pairs.
Liquidity Sweep Visualization
Most recent short-term liquidity swept, which resulted in a CISD. Marking this liquidity pool—a high or low that has been taken out—provides context and can give additional insight to evaluate the current market rotation.
Orderblock + Projections (OB)
When a CISD is recognized, an OB candidate is plotted. Projections from the OB can be displayed at customizable distances, serving as measurements for better range of opportunity estimation.
External Range Liquidity (ERL)
External Range Liquidity refers to price levels that sit beyond internal structures—typically local highs or lows that may be revisited after a retracement, for continuation.
Session Filters + Timezone Control
Define up to four time blocks (e.g., London Open, NY AM, PM session, Asia) for when the model is active. Timezones are fully customizable, supporting global use cases and precise filtering of formations to sessions with expected volume or cleaner structure.
Information Table
A compact, floating panel is available to display key model parameters in real time: Timeframe Alignment, Bias Direction, Active SMT Pair, Time Filter Conditions, Date.
This feature provides immediate context under which the model is operating — especially useful during active chart review or multi-pair monitoring. The table can be repositioned, resized, or disabled entirely depending on visual preference.
Model Markers & Backtest Support
The model includes a visual marker system to support chart review and backtesting. These overlays provide reference points for past structure, showcasing the following:
Reaching an OB Projection after revisiting the OB
Reaching the External Range Liquidity after revisiting the OB
Reaching an OB Projection without revisiting the OB
Reaching the External Range Liquidity without revisiting the OB
Invalidating the detected OB
Fully Automated Framework: all these components, when put together in the Forever Model ($niper), yield a clean and simple approach to studying and observing market rotations, empowering analysts in seeing the market through $niper's point of view. Each component is customizable to the analyst's liking to match their unique visual and technical preferences.
Usage Guidance:
Add Forever Model ($niper) to your TradingView chart.
Select your preferred SMT Pair, Timeframe Alignments, Model Style, and Time Filters.
Automate your analysis process with Forever Model (Sniper) and leverage it into your existing strategies to fine-tune your view through Sniper's point of view.
Terms and Conditions
Our charting tools are products provided for informational and educational purposes only and do not constitute financial, investment, or trading advice. Our charting tools are not designed to predict market movements or provide specific recommendations. Users should be aware that past performance is not indicative of future results and should not be relied upon for making financial decisions. By using our charting tools, the purchaser agrees that the seller and the creator are not responsible for any decisions made based on the information provided by these charting tools. The purchaser assumes full responsibility and liability for any actions taken and the consequences thereof, including any loss of money or investments that may occur as a result of using these products. Hence, by purchasing these charting tools, the customer accepts and acknowledges that the seller and the creator are not liable nor responsible for any unwanted outcome that arises from the development, the sale, or the use of these products. Finally, the purchaser indemnifies the seller from any and all liability. If the purchaser was invited through the Friends and Family Program, they acknowledge that the provided discount code only applies to the first initial purchase of the Toodegrees Premium Suite subscription. The purchaser is therefore responsible for cancelling – or requesting to cancel – their subscription in the event that they do not wish to continue using the product at full retail price. If the purchaser no longer wishes to use the products, they must unsubscribe from the membership service, if applicable. We hold no reimbursement, refund, or chargeback policy. Once these Terms and Conditions are accepted by the Customer, before purchase, no reimbursements, refunds or chargebacks will be provided under any circumstances.
By continuing to use these charting tools, the user acknowledges and agrees to the Terms and Conditions outlined in this legal disclaimer.
Candle PercentageThis script calculates the percentage movement of the candle body from open to close and displays it as a label on the chart. The label color changes based on the candle's direction:
Green for bullish (price closes higher than it opened),
Red for bearish (price closes lower than it opened).
The script also allows you to select the label size, with the following options:
Tiny (very small text)
Small (small text)
Normal (default text size)
Large (large text)
Huge (giant text)
By default, the label size is set to Normal.
The percentage is calculated using the formula:
(Body Size / Open Price) * 100
This is helpful for traders who want to quickly assess the magnitude of price movement within each candle and analyze market sentiment based on the size of the body.
NYCSessionLibrary "NYCSession"
Library for New York trading session time functions
@author abneralvarado
@version 1.0
isInNYSession(sessionStart, sessionEnd)
Determines if the current bar is within New York trading session
Parameters:
sessionStart (simple int) : Starting time of NY session in 24hr format (HHMM) like 0930 for 9:30 AM ET
sessionEnd (simple int) : Ending time of NY session in 24hr format (HHMM) like 1600 for 4:00 PM ET
Returns: True if current bar is within the NY session time, false otherwise
getNYSessionStartTime(lookback, sessionStart)
Gets the start time of NY session for a given bar
Parameters:
lookback (simple int) : Bar index to check (0 is current bar)
sessionStart (simple int) : Starting time of NY session in 24hr format (HHMM)
Returns: Unix timestamp for the start of NY session on the given bar's date
getNYSessionEndTime(lookback, sessionEnd)
Gets the end time of NY session for a given bar
Parameters:
lookback (simple int) : Bar index to check (0 is current bar)
sessionEnd (simple int) : Ending time of NY session in 24hr format (HHMM)
Returns: Unix timestamp for the end of NY session on the given bar's date
isNYSessionOpen(sessionStart)
Checks if current bar opens the NY session
Parameters:
sessionStart (simple int) : Starting time of NY session in 24hr format (HHMM)
Returns: True if current bar marks the session opening, false otherwise
isNYSessionClose(sessionEnd)
Checks if current bar closes the NY session
Parameters:
sessionEnd (simple int) : Ending time of NY session in 24hr format (HHMM)
Returns: True if current bar marks the session closing, false otherwise
isWeekday()
Determines if the current day is a weekday (Mon-Fri)
Returns: True if current bar is on a weekday, false otherwise
getSessionBackgroundColor(sessionStart, sessionEnd, bgColor)
Gets session background color with transparency
Parameters:
sessionStart (simple int) : Starting time of NY session in 24hr format (HHMM)
sessionEnd (simple int) : Ending time of NY session in 24hr format (HHMM)
bgColor (color) : Background color for session highlighting
Returns: Color value for background or na if not in session
XX Swing TraderThe "XX Swing Trader" indicator is a versatile tool for TradingView that helps traders spot trends and manage risk directly on the price chart. Here’s a thorough explanation of its stop-loss strategy, described in plain terms as if you’re looking at the chart without knowing the code details.
### Stop-Loss Strategy Overview
This indicator gives you a clear way to set and adjust your stop-loss as a trade unfolds. It starts with fixed yellow lines marking key price levels and then uses two sets of moving trend lines—one tight and one loose—to trail your stop-loss as the trend grows.
1. **Initial Stop-Loss: Yellow Lines**
- **What You See**: Horizontal yellow lines appear on the chart—one above the price (a peak high) and one below (a peak low).
- **What They Mean**:
- The yellow line below the price is a major support level—a price where buyers have stepped in before.
- The yellow line above the price is a major resistance level—a price where sellers have pushed back.
- **How to Use Them**:
- For a **buy trade (long)**: Place your initial stop-loss just below the yellow line under the price. If the price drops below this support, it’s a sign the trade might be failing.
- For a **sell trade (short)**: Set your initial stop-loss just above the yellow line over the price. If the price climbs past this resistance, the trade could be going against you.
- **Why It Works**: These lines act as your first safety net, locking in a fixed point to exit if the price moves the wrong way early on.
2. **Moving Trend Lines: Tight and Loose Stop Areas**
- **What You See**: Two sets of colored lines appear as the price starts trending:
- **Green Lines** show an uptrend (price moving up).
- **Red Lines** show a downtrend (price moving down).
- Each trend has two lines: one closer to the price (tight) and one further away (loose).
- **First Trend Line (Tight Stop Area)**:
- **Appearance**: This is the green or red line nearest to the price.
- In an uptrend, it’s a green line below the price.
- In a downtrend, it’s a red line above the price.
- **What It Means**: This tight line follows the price closely, adjusting to recent ups and downs. It’s like a shadow that sticks near the action.
- **How to Use It**:
- For a **buy trade**: Once the price starts climbing and the green tight line appears, move your stop-loss from the yellow support line to just below this green line. It keeps your risk small while letting the trade develop.
- For a **sell trade**: When the price drops and the red tight line forms, shift your stop-loss from the yellow resistance line to just above this red line.
- **Why It Works**: The tight line is your cautious trailing stop—it protects profits early and gets you out fast if the trend stalls.
- **Second Trend Line (Loose Stop Area)**:
- **Appearance**: This is the green or red line farther from the price.
- In an uptrend, it’s a green line lower than the tight one.
- In a downtrend, it’s a red line higher than the tight one.
- **What It Means**: This loose line moves with the price but gives it more breathing room, tracking the bigger trend rather than every little wiggle.
- **How to Use It**:
- For a **buy trade**: As the uptrend gains steam and the price keeps rising, adjust your stop-loss to just below this green loose line. It lets the trade ride longer without getting stopped out by normal dips.
- For a **sell trade**: As the downtrend strengthens, move your stop-loss to just above the red loose line, allowing the price to bounce a bit without ending the trade.
- **Why It Works**: The loose line is your patient trailing stop—it’s great for bigger moves, giving the trend space to grow while still keeping you safe.
### How It Plays Out on the Chart
- **Starting a Trade**: You might enter a buy when the price bounces off the yellow support line or a sell when it rejects the yellow resistance line. Little yellow dots might also pop up to hint at trend changes.
- **Early Trend**: Once the trend kicks in (green lines for up, red for down), shift your stop-loss to the tight line. This keeps you close to the action.
- **Strong Trend**: As the price keeps trending, slide your stop-loss to the loose line. This locks in more profit while letting the trade run.
### Visual Guide
- **Yellow Lines**: Fixed high and low markers—your starting stop-loss.
- **Green Tight Line**: Close below the price in an uptrend—your early trailing stop.
- **Green Loose Line**: Further below in an uptrend—your longer-term stop.
- **Red Tight Line**: Close above the price in a downtrend—your early trailing stop.
- **Red Loose Line**: Further above in a downtrend—your longer-term stop.
This step-by-step system—yellow lines to tight trend lines to loose trend lines—helps you manage risk smartly, from the trade’s first moments to its full potential.
OverUnder Yield Spread🗺️ OverUnder is a structural regime visualizer , engineered to diagnose the shape, tone, and trajectory of the yield curve. Rather than signaling trades directly, it informs traders of the world they’re operating in. Yield curve steepening or flattening, normalizing or inverting — each regime reflects a macro pressure zone that impacts duration demand, liquidity conditions, and systemic risk appetite. OverUnder abstracts that complexity into a color-coded compression map, helping traders orient themselves before making risk decisions. Whether you’re in bonds, currencies, crypto, or equities, the regime matters — and OverUnder makes it visible.
🧠 Core Logic
Built to show the slope and intent of a selected rate pair, the OverUnder Yield Spread defaults to 🇺🇸US10Y-US2Y, but can just as easily compare global sovereign curves or even dislocated monetary systems. This value is continuously monitored and passed through a debounce filter to determine whether the curve is:
• Inverted, or
• Steepening
If the curve is flattening below zero: the world is bracing for contraction. Policy lags. Risk appetite deteriorates. Duration gets bid, but only as protection. Stocks and speculative assets suffer, regardless of positioning.
📍 Curve Regimes in Bull and Bear Contexts
• Flattening occurs when the short and long ends compress . In a bull regime, flattening may reflect long-end demand or fading growth expectations. In a bear regime, flattening often precedes or confirms central bank tightening.
• Steepening indicates expanding spread . In a bull context, this may signal healthy risk appetite or early expansion. In a bear or crisis context, it may reflect aggressive front-end cuts and dislocation between short- and long-term expectations.
• If the curve is steepening above zero: the world is rotating into early expansion. Risk assets behave constructively. Bond traders position for normalization. Equities and crypto begin trending higher on rising forward expectations.
🖐️ Dynamically Colored Spread Line Reflects 1 of 4 Regime States
• 🟢 Normal / Steepening — early expansion or reflation
• 🔵 Normal / Flattening — late-cycle or neutral slowdown
• 🟠 Inverted / Steepening — policy reversal or soft landing attempt
• 🔴 Inverted / Flattening — hard contraction, credit stress, policy lag
🍋 The Lemon Label
At every bar, an anchored label floats directly on the spread line. It displays the active regime (in plain English) and the precise spread in percent (or basis points, depending on resolution). Colored lemon yellow, neither green nor red, the label is always legible — a design choice to de-emphasize bias and center the data .
🎨 Fill Zones
These bands offer spatial, persistent views of macro compression or inversion depth.
• Blue fill appears above the zero line in normal (non-inverted) conditions
• Red fill appears below the zero line during inversion
🧪 Sample Reading: 1W chart of TLT
OverUnder reveals a multi-year arc of structural inversion and regime transition. From mid-2021 through late 2023, the spread remains decisively inverted, signaling persistent flattening and credit stress as bond prices trended sharply lower. This prolonged inversion aligns with a high-volatility phase in TLT, marked by lower highs and an accelerating downtrend, confirming policy lag and macro tightening conditions.
As of early 2025, the spread has crossed back above the zero baseline into a “Normal / Steepening” regime (annotated at +0.56%), suggesting a macro inflection point. Price action remains subdued, but the shift in yield structure may foreshadow a change in trend context — particularly if follow-through in steepening persists.
🎭 Different Traders Respond Differently:
• Bond traders monitor slope change to anticipate policy pivots or recession signals.
• Equity traders use regime shifts to time rotations, from growth into defense, or from contraction into reflation.
• Currency traders interpret curve steepening as yield compression or divergence depending on region.
• Crypto traders treat inversion as a liquidity vacuum — and steepening as an early-phase risk unlock.
🛡️ Can It Compare Different Bond Markets?
Yes — with caveats. The indicator can be used to compare distinct sovereign yield instruments, for example:
• 🇫🇷FR10Y vs 🇩🇪DE10Y - France vs Germany
• 🇯🇵JP10Y vs 🇺🇸US10Y - BoJ vs Fed policy curves
However:
🙈 This no longer visualizes the domestic yield curve, but rather the differential between rate expectations across regions
🙉 The interpretation of “inversion” changes — it reflects spread compression across nations , not within a domestic yield structure
🙊 Color regimes should then be viewed as relative rate positioning , not absolute curve health
🙋🏻 Example: OverUnder compares French vs German 10Y yields
1. 🇫🇷 Change the long-duration ticker to FR10Y
2. 🇩🇪 Set the short-duration ticker to DE10Y
3. 🤔 Interpret the result as: “How much higher is France’s long-term borrowing cost vs Germany’s?”
You’ll see steepening when the spread rises (France decoupling), flattening when the spread compresses (convergence), and inversions when Germany yields rise above France’s — historically rare and meaningful.
🧐 Suggested Use
OverUnder is not a signal engine — it’s a context map. Its value comes from situating any trade idea within the prevailing yield regime. Use it before entries, not after them.
• On the 1W timeframe, OverUnder excels as a macro overlay. Yield regime shifts unfold over quarters, not days. Weekly structure smooths out rate volatility and reveals the true curvature of policy response and liquidity pressure. Use this view to orient your portfolio, define directional bias, or confirm long-duration trend turns in assets like TLT, SPX, or BTC.
• On the 1D timeframe, the indicator becomes tactically useful — especially when aligning breakout setups or trend continuations with steepening or flattening transitions. Daily views can also identify early-stage regime cracks that may not yet be visible on the weekly.
• Avoid sub-daily use unless you’re anchoring a thesis already built on higher timeframe structure. The yield curve is a macro construct — it doesn’t oscillate cleanly at intraday speeds. Shorter views may offer clarity during event-driven spikes (like FOMC reactions), but they do not replace weekly context.
Ultimately, OverUnder helps you decide: What kind of world am I trading in? Use it to confirm macro context, avoid fighting the curve, and lean into trades aligned with the broader pressure regime.
Stoch_RSI_ChartEnhanced Stochastic RSI Divergence Indicator with VWAP Filter for Charts
This custom indicator builds upon the classic Stochastic RSI to automatically detect both regular and hidden divergences. It’s designed to help traders spot potential market reversals or continuations using two methods for divergence detection (fractal‑ and pivot‑based) while offering optional VWAP filtering for confirmation.
Key Features
Stoch RSI Calculation
The indicator computes a smoothed Stoch RSI using configurable parameters for RSI length, stochastic length, and smoothing periods. An option to average the K and D lines provides a cleaner momentum view.
Divergence Detection via Fractals & Pivots
Fractal-Based Divergences:
Looks for 4-candle patterns to identify higher-highs or lower-lows in the price that are not confirmed by the oscillator, signaling potential reversals.
Pivot-Based Divergences:
Utilizes TradingView’s built-in pivot functions to find divergence conditions over adjustable pivot ranges.
Regular vs. Hidden Divergences:
Regular Divergence: Occurs when price makes a new extreme (higher high or lower low) while the Stoch RSI fails to follow suit.
Hidden Divergence: Indicates potential trend continuations when the oscillator diverges against the established price trend.
Optional VWAP Filtering
The script includes two optional VWAP filters that work as follows:
VWAP Filter on Regular Divergences:
Only confirms regular divergence signals if the current price satisfies the VWAP condition (e.g., price is above VWAP for bullish signals, below VWAP for bearish signals).
VWAP Filter on Hidden Divergences:
Similarly, hidden divergence signals are validated only when the price meets specific VWAP conditions, adding an extra layer of trend confirmation.
Customizable Alerts and Visual Labels
Easily configure divergence labels (“B” for bullish, “S” for bearish) and enable up to four alert conditions for real‑time notifications when a divergence occurs.
Credits & History:
Log RSI by @fskrypt
Divergence Detection originally by @RicardoSantos (with edits from @JustUncleL)
Further Edits by @NeoButane on August 8, 2018
Latest Edits by @FYMD on June 1, 2024