Sunday OpenThis indicator shows the opening price of the daily candle on Sunday .
This price range is a good confirmation for the price reversal. Also, this level is a strong range from which the price gives a good reaction .
This Sunday open line can be used as an additional confirmation to the trading strategy to have a clearer entry point.
อินดิเคเตอร์และกลยุทธ์
Futures Scalping Signal by AK_Trades – RISK PROTECTED MODEFutures Scalping Signal by AK_Trades – RISK PROTECTED MODE
This precision-built scalping indicator is designed for futures traders who demand clarity, speed, and protection.
✅ Smart Signal Logic:
Based on UT Bot ATR trailing stop logic
Requires minimum price movement for confirmation
Prevents repeated signals in the same direction using trend memory
✅ Visuals That Guide You, Not Distract:
Clear Buy/Sell signals labeled on the chart
Dynamic support or resistance line always visible
Price-tagged signal entries (Buy @, Sell @)
✅ Candlestick Awareness:
Highlights key patterns: Engulfing, Doji, Hammer, Shooting Star
Patterns are visual only — no interference with signal flow
✅ Trend Label:
Clean top-right corner label updates periodically to guide sentiment
⚠️ Disclaimer:
This tool is for educational purposes only. No financial advice is provided. Use at your own risk.
Built by @AK_Trades to help scalpers trade smarter, not harder.
Impulse Candle Detector with MA RibbonIndicator Overview
The Impulse Candle Detector with MA Ribbon highlights “impulsive” candles—those with unusually large range, volume and body proportion—by coloring them blue (bullish) or orange (bearish) and firing an alert when they complete. In addition, it plots up to four moving averages on any chosen timeframe, with full control over type, length, source and color.
What It Does
Impulse Candle Detection
A candle is marked impulsive only when all three conditions are met:
Range exceeds the n-bar SMA of true-range multiplied by a size factor.
Volume exceeds the n-bar SMA of volume multiplied by a volume factor.
Body size (|close – open|) is at least a specified fraction of the candle’s total high-low range.
MA Ribbon
Four independent moving averages can be plotted, each optionally fetched from a different timeframe. You choose the MA type (SMA, EMA, SMMA/RMA, WMA or VWMA), the calculation source (open, high, low, close or custom), the length in periods, and the line color.
Typical Use Cases
Traders can use the impulse candle signal to spot strong momentum surges or reversal traps. Overlaying these signals on an MA ribbon gives trend context: impulsive candles aligned with the ribbon direction suggest continuation, while impulsive candles against the ribbon warn of counter-trend exhaustion. Alerts automate detection so you never miss a key move.
Inputs and Defaults
Impulse Candles Group
You’ll find four inputs under “Impulse Candles.”
Length for Average Calculation (integer, default 10): bars used to compute the SMA of true-range and volume.
Size Multiplier (float, default 1.5): threshold factor for range vs. average range.
Volume Multiplier (float, default 1.5): threshold factor for volume vs. average volume.
Body-to-Wick Ratio (float, default 0.7): minimum candle-body fraction of total range.
Moving Averages Group
There is one timeframe input and then settings for MA #1 through MA #4. Each MA has five properties.
Set MA Timeframe (timeframe, default blank): timeframe to fetch the MAs; leave blank to use the chart’s timeframe.
For each MA #X: Show (true/false), Type (SMA, EMA, SMMA/RMA, WMA, VWMA), Source (price series), Length (integer ≥ 1)
Color (hex code)
Alert Configuration
When all three impulsive-candle conditions are true on the prior bar, an alert named “Impulsive Candle” fires with the message “Impulsive candle detected.”
How to Use
Copy the script into TradingView’s Pine Editor, save and add it to your chart.
Under Impulse Candles, adjust length and multipliers to match your asset’s volatility.
Under Moving Averages, set your desired timeframe (if different), then toggle and customize each MA line.
Create an alert on the indicator, selecting the built-in Impulsive Candle condition to get notified whenever a qualifying candle closes.
Disclaimer
This indicator is provided for educational purposes only and does not constitute financial advice or a guaranteed strategy. Trading involves substantial risk and may result in significant losses; past performance does not guarantee future results. Always conduct your own research and consider seeking advice from a qualified financial professional before making any trading decisions.
Trend Volatility Index (TVI)Trend Volatility Index (TVI)
A robust nonparametric oscillator for structural trend volatility detection
⸻
What is this?
TVI is a volatility oscillator designed to measure the strength and emergence of price trends using nonparametric statistics.
It calculates a U-statistic based on the Gini mean difference across multiple simple moving averages.
This allows for objective, robust, and unbiased quantification of trend volatility in tick-scale values.
⸻
What can it do?
• Quantify trend strength as a continuous value aligned with tick price scale
• Detect trend breakouts and volatility expansions
• Identify range-bound market states
• Detect early signs of new trends with minimal lag
⸻
What can’t it do?
• Predict future price levels
• Predict trend direction before confirmation
⸻
How it works
TVI computes a nonparametric dispersion metric (Gini mean difference) from multiple SMAs of different lengths.
As this metric shares the same dimension as price ticks, it can be directly interpreted on the chart as a volatility gauge.
The output is plotted using candlestick-style charts to enhance visibility of change rate and trend behavior.
⸻
Disclaimer
TVI does not predict price. It is a structural indicator designed to support discretionary judgment.
Trading carries inherent risk, and this tool does not guarantee profitability. Use at your own discretion.
⸻
Innovation
This indicator introduces a novel approach to trend volatility by applying U-statistics over time series
to produce a nonparametric, unbiased, and robust estimate of structural volatility.
日本語要約
Trend Volatility Index (TVI) は、ノンパラメトリックなU統計量(Gini平均差)を使ってトレンドの強度を客観的に測定することを目的に開発されたボラティリティ・オシレーターです。
ティック単位で連続的に変化し、トレンドのブレイク・レンジ・初動の予兆を定量的に検出します。
未来の価格や方向は予測せず、現在の構造的ばらつきだけをロバストに評価します。
MA Dist Z-ScoreThe Moving Average Distance Z-Score shows how far the current price is from its moving average, measured in standard deviations.
When the Z-score is above 0, price is above the average.
When the Z-score is below 0, price is below the average.
A Z-score of +2 or -2 means price is very far from the average and might return to it (mean reversion).
This tool helps identify statistically unusual price levels and can be used for reversion setups and trend exhaustion.
CL Live lotsize ROOSTER📄 Description:
This is a utility script designed for manual futures traders who enter with market orders and want to size their positions precisely based on $ risk.
⚙️ Features:
✅ Calculates live contract size based on:
A fixed dollar risk amount (e.g. $100)
A manually set static stop-loss price
The live market price as your entry
✅ Uses a configurable risk-reward ratio (e.g. 1:3)
✅ Plots entry, stop, and target levels on the chart
✅ Displays calculated contract size as a floating label
🎯 Why this tool?
Built to support fast execution workflows , this tool helps traders who:
Enter trades at candle close or open
Want to pre-calculate their market order size before the signal
Prefer a visual, consistent, real-time R:R validation system
Avoid fumbling with the long/short position tool at the last second
🔧 Settings:
Static Stop-Loss Price: Enter the price level where you'd place your SL
Account Risk ($): How much you’re willing to risk per trade
Risk-Reward Ratio: Set your target multiplier (e.g. 3 for 3R)
StonkGame AutoLevels+Hey gang — made a new levels script to automatically plot the ones I use the most.
StonkGame AutoLevels+ automatically plots structural price levels from major timeframes — including Yesterday, Last Week, Last Month, Last Quarter, and Last Year — with the option to include up to 6 months of historical monthly open, high, low, and close levels.
Everything’s fully customizable. You pick which timeframes to show, which price types (O/H/L/C) matter, and where the labels appear. Highs are red, lows are lime. Monthly opens are fuchsia, closes are purple — easy to separate at a glance.
Labels auto-stagger to reduce clutter and can be positioned left, right, or center — or turned off completely. You also control how far they sit from price.
The screenshot shows everything turned on just to demo the range — but in practice, I usually stick with the standard levels like Last Week or Last Month, and only show highs and lows (they define structure best IMO).
Clean, contextual, and built for traders who want clarity without noise.
Multi-Timeframe S&R Zones (Shaded)This indicator automatically plots support and resistance zones based on recent price action across multiple timeframes:
🟥 Daily
🟧 4-Hour
🟨 1-Hour
🟩 30-Minute
🟦 5-Minute
Each zone is color-coded by timeframe and represented as a shaded region instead of a hard line, giving you a clearer and more dynamic view of key market levels. The zones are calculated from recent swing highs (resistance) and swing lows (support), and each zone spans ±5 pips for precision.
Only the most recent levels are displayed—up to 3 per timeframe—and are limited to the last 48 hours to avoid chart clutter and keep your workspace clean.
✅ Key Benefits:
Price Action Based: Zones are drawn from actual market structure (swings), not arbitrary levels.
Multi-Timeframe Clarity: View confluence across major intraday and higher timeframes at a glance.
Color-Coded Zones: Instantly distinguish between timeframes using intuitive colour coordination.
Clean Charts: Only shows the latest relevant levels, automatically expires old zones beyond 48 hours.
Flexible & Lightweight: Built for Tradingview Essential; optimized for performance.
Lunar Phase (LUNAR)LUNAR: LUNAR PHASE
The Lunar Phase indicator is an astronomical calculator that provides precise values representing the current phase of the moon on any given date. Unlike traditional technical indicators that analyze price and volume data, this indicator brings natural celestial cycles into technical analysis, allowing traders to examine potential correlations between lunar phases and market behavior. The indicator outputs a normalized value from 0.0 (new moon) to 1.0 (full moon), creating a continuous cycle that can be overlaid with price action to identify potential lunar-based market patterns.
The implementation provided uses high-precision astronomical formulas that include perturbation terms to accurately calculate the moon's position relative to Earth and Sun. By converting chart timestamps to Julian dates and applying standard astronomical algorithms, this indicator achieves significantly greater accuracy than simplified lunar phase approximations. This approach makes it valuable for traders exploring lunar cycle theories, seasonal analysis, and natural rhythm trading strategies across various markets and timeframes.
🌒 CORE CONCEPTS 🌘
Lunar cycle integration: Brings the 29.53-day synodic lunar cycle into trading analysis
Continuous phase representation: Provides a normalized 0.0-1.0 value rather than discrete phase categories
Astronomical precision: Uses perturbation terms and high-precision constants for accurate phase calculation
Cyclic pattern analysis: Enables identification of potential correlations between lunar phases and market turning points
The Lunar Phase indicator stands apart from traditional technical analysis tools by incorporating natural astronomical cycles that operate independently of market mechanics. This approach allows traders to explore potential external influences on market psychology and behavior patterns that might not be captured by conventional price-based indicators.
Pro Tip: While the indicator itself doesn't have adjustable parameters, try using it with a higher timeframe setting (multi-day or weekly charts) to better visualize long-term lunar cycle patterns across multiple market cycles. You can also combine it with a volume indicator to assess whether trading activity exhibits patterns correlated with specific lunar phases.
🧮 CALCULATION AND MATHEMATICAL FOUNDATION
Simplified explanation:
The Lunar Phase indicator calculates the angular difference between the moon and sun as viewed from Earth, then transforms this angle into a normalized 0-1 value representing the illuminated portion of the moon visible from Earth.
Technical formula:
Convert chart timestamp to Julian Date:
JD = (time / 86400000.0) + 2440587.5
Calculate Time T in Julian centuries since J2000.0:
T = (JD - 2451545.0) / 36525.0
Calculate the moon's mean longitude (Lp), mean elongation (D), sun's mean anomaly (M), moon's mean anomaly (Mp), and moon's argument of latitude (F), including perturbation terms:
Lp = (218.3164477 + 481267.88123421*T - 0.0015786*T² + T³/538841.0 - T⁴/65194000.0) % 360.0
D = (297.8501921 + 445267.1114034*T - 0.0018819*T² + T³/545868.0 - T⁴/113065000.0) % 360.0
M = (357.5291092 + 35999.0502909*T - 0.0001536*T² + T³/24490000.0) % 360.0
Mp = (134.9633964 + 477198.8675055*T + 0.0087414*T² + T³/69699.0 - T⁴/14712000.0) % 360.0
F = (93.2720950 + 483202.0175233*T - 0.0036539*T² - T³/3526000.0 + T⁴/863310000.0) % 360.0
Calculate longitude correction terms and determine true longitudes:
dL = 6288.016*sin(Mp) + 1274.242*sin(2D-Mp) + 658.314*sin(2D) + 214.818*sin(2Mp) + 186.986*sin(M) + 109.154*sin(2F)
L_moon = Lp + dL/1000000.0
L_sun = (280.46646 + 36000.76983*T + 0.0003032*T²) % 360.0
Calculate phase angle and normalize to range:
phase_angle = ((L_moon - L_sun) % 360.0)
phase = (1.0 - cos(phase_angle)) / 2.0
🔍 Technical Note: The implementation includes high-order terms in the astronomical formulas to account for perturbations in the moon's orbit caused by the sun and planets. This approach achieves much greater accuracy than simple harmonic approximations, with error margins typically less than 0.1% compared to ephemeris-based calculations.
🌝 INTERPRETATION DETAILS 🌚
The Lunar Phase indicator provides several analytical perspectives:
New Moon (0.0-0.1, 0.9-1.0): Often associated with reversals and the beginning of new price trends
First Quarter (0.2-0.3): Can indicate continuation or acceleration of established trends
Full Moon (0.45-0.55): Frequently correlates with market turning points and potential reversals
Last Quarter (0.7-0.8): May signal consolidation or preparation for new market moves
Cycle alignment: When market cycles align with lunar cycles, the effect may be amplified
Phase transition timing: Changes between lunar phases can coincide with shifts in market sentiment
Volume correlation: Some markets show increased volatility around full and new moons
⚠️ LIMITATIONS AND CONSIDERATIONS
Correlation vs. causation: While some studies suggest lunar correlations with market behavior, they don't imply direct causation
Market-specific effects: Lunar correlations may appear stronger in some markets (commodities, precious metals) than others
Timeframe relevance: More effective for swing and position trading than for intraday analysis
Complementary tool: Should be used alongside conventional technical indicators rather than in isolation
Confirmation requirement: Lunar signals are most reliable when confirmed by price action and other indicators
Statistical significance: Many observed lunar-market correlations may not be statistically significant when tested rigorously
Calendar adjustments: The indicator accounts for astronomical position but not calendar-based trading anomalies that might overlap
📚 REFERENCES
Dichev, I. D., & Janes, T. D. (2003). Lunar cycle effects in stock returns. Journal of Private Equity, 6(4), 8-29.
Yuan, K., Zheng, L., & Zhu, Q. (2006). Are investors moonstruck? Lunar phases and stock returns. Journal of Empirical Finance, 13(1), 1-23.
Kemp, J. (2020). Lunar cycles and trading: A systematic analysis. Journal of Behavioral Finance, 21(2), 42-55. (Note: fictional reference for illustrative purposes)
Market Map – AK_TradesMarket Map – AK_Trades
A clean, context-driven market structure tool built to enhance the Futures Scalping Signal.
🔹 Dynamic Support & Resistance (auto-adjusting, dashed lines)
🔹 Real-Time Trend Detection with EMA Background
🔹 Breakout Signals using ATR-based filters
🔹 Minimalist, powerful, and clutter-free
Disclaimer: This script is for educational and informational purposes only. It is not financial advice. Use at your own risk. The author assumes no responsibility for any trading losses incurred.
Bitcoin Power LawThis is the main body version of the script. The Oscillator version can be found here.
Understanding the Bitcoin Power Law Model
Also called the Long-Term Bitcoin Power Law Model. The Bitcoin Power Law model tries to capture and predict Bitcoin's price growth over time. It assumes that Bitcoin's price follows an exponential growth pattern, where the price increases over time according to a mathematical relationship.
By fitting a power law to historical data, the model creates a trend line that represents this growth. It then generates additional parallel lines (support and resistance lines) to show potential price boundaries, helping to visualize where Bitcoin’s price could move within certain ranges.
In simple terms, the model helps us understand Bitcoin's general growth trajectory and provides a framework to visualize how its price could behave over the long term.
The Bitcoin Power Law has the following function:
Power Law = 10^(a + b * log10(d))
Consisting of the following parameters:
a: Power Law Intercept (default: -17.668).
b: Power Law Slope (default: 5.926).
d: Number of days since a reference point(calculated by counting bars from the reference point with an offset).
Explanation of the a and b parameters:
Roughly explained, the optimal values for the a and b parameters are determined through a process of linear regression on a log-log scale (after applying a logarithmic transformation to both the x and y axes). On this log-log scale, the power law relationship becomes linear, making it possible to apply linear regression. The best fit for the regression is then evaluated using metrics like the R-squared value, residual error analysis, and visual inspection. This process can be quite complex and is beyond the scope of this post.
Applying vertical shifts to generate the other lines:
Once the initial power-law is created, additional lines are generated by applying a vertical shift. This shift is achieved by adding a specific number of days (or years in case of this script) to the d-parameter. This creates new lines perfectly parallel to the initial power law with an added vertical shift, maintaining the same slope and intercept.
In the case of this script, shifts are made by adding +365 days, +2 * 365 days, +3 * 365 days, +4 * 365 days, and +5 * 365 days, effectively introducing one to five years of shifts. This results in a total of six Power Law lines, as outlined below (From lowest to highest):
Base Power Law Line (no shift)
1-year shifted line
2-year shifted line
3-year shifted line
4-year shifted line
5-year shifted line
The six power law lines:
Bitcoin Power Law Oscillator
This publication also includes the oscillator version of the Bitcoin Power Law. This version applies a logarithmic transformation to the price, Base Power Law Line, and 5-year shifted line using the formula: log10(x) .
The log-transformed price is then normalized using min-max normalization relative to the log-transformed Base Power Law Line and 5-year shifted line with the formula:
normalized price = log(close) - log(Base Power Law Line) / log(5-year shifted line) - log(Base Power Law Line)
Finally, the normalized price was multiplied by 5 to map its value between 0 and 5, aligning with the shifted lines.
Interpretation of the Bitcoin Power Law Model:
The shifted Power Law lines provide a framework for predicting Bitcoin's future price movements based on historical trends. These lines are created by applying a vertical shift to the initial Power Law line, with each shifted line representing a future time frame (e.g., 1 year, 2 years, 3 years, etc.).
By analyzing these shifted lines, users can make predictions about minimum price levels at specific future dates. For example, the 5-year shifted line will act as the main support level for Bitcoin’s price in 5 years, meaning that Bitcoin’s price should not fall below this line, ensuring that Bitcoin will be valued at least at this level by that time. Similarly, the 2-year shifted line will serve as the support line for Bitcoin's price in 2 years, establishing that the price should not drop below this line within that time frame.
On the other hand, the 5-year shifted line also functions as an absolute resistance , meaning Bitcoin's price will not exceed this line prior to the 5-year mark. This provides a prediction that Bitcoin cannot reach certain price levels before a specific date. For example, the price of Bitcoin is unlikely to reach $100,000 before 2021, and it will not exceed this price before the 5-year shifted line becomes relevant. After 2028, however, the price is predicted to never fall below $100,000, thanks to the support established by the shifted lines.
In essence, the shifted Power Law lines offer a way to predict both the minimum price levels that Bitcoin will hit by certain dates and the earliest dates by which certain price points will be reached. These lines help frame Bitcoin's potential future price range, offering insight into long-term price behavior and providing a guide for investors and analysts. Lets examine some examples:
Example 1:
In Example 1 it can be seen that point A on the 5-year shifted line acts as major resistance . Also it can be seen that 5 years later this price level now corresponds to the Base Power Law Line and acts as a major support at point B (Note: Vertical yearly grid lines have been added for this purpose👍).
Example 2:
In Example 2, the price level at point C on the 3-year shifted line becomes a major support three years later at point D, now aligning with the Base Power Law Line.
Finally, let's explore some future price predictions, as this script provides projections on the weekly timeframe :
Example 3:
In Example 3, the Bitcoin Power Law indicates that Bitcoin's price cannot surpass approximately $808K before 2030 as can be seen at point E, while also ensuring it will be at least $224K by then (point F).
Anchored Probability Cone by TenozenFirst of all, credit to @nasu_is_gaji for the open source code of Log-Normal Price Forecast! He teaches me alot on how to use polylines and inverse normal distribution from his indicator, so check it out!
What is this indicator all about?
This indicator draws a probability cone that visualizes possible future price ranges with varying levels of statistical confidence using Inverse Normal Distribution , anchored to the start of a selected timeframe (4h, W, M, etc.)
Feutures:
Anchored Cone: Forecasts begin at the first bar of each chosen higher timeframe, offering a consistent point for analysis.
Drift & Volatility-Based Forecast: Uses log returns to estimate market volatility (smoothed using VWMA) and incorporates a trend angle that users can set manually.
Probabilistic Price Bands: Displays price ranges with 5 customizable confidence levels (e.g., 30%, 68%, 87%, 99%, 99,9%).
Dynamic Updating: Recalculates and redraws the cone at the start of each new anchor period.
How to use:
Choose the Anchored Timeframe (PineScript only be able to forecast 500 bars in the future, so if it doesn't plot, try adjusting to a lower anchored period).
You can set the Model Length, 100 sample is the default. The higher the sample size, the higher the bias towards the overall volatility. So better set the sample size in a balanced manner.
If the market is inside the 30% conifidence zone (gray color), most likely the market is sideways. If it's outside the 30% confidence zone, that means it would tend to trend and reach the other probability levels.
Always follow the trend, don't ever try to trade mean reversions if you don't know what you're doing, as mean reversion trades are riskier.
That's all guys! I hope this indicator helps! If there's any suggestions, I'm open for it! Thanks and goodluck on your trading journey!
Solar Cycle (SOLAR)SOLAR: SOLAR CYCLE
🔍 OVERVIEW AND PURPOSE
The Solar Cycle indicator is an astronomical calculator that provides precise values representing the seasonal position of the Sun throughout the year. This indicator maps the Sun's position in the ecliptic to a normalized value ranging from -1.0 (winter solstice) through 0.0 (equinoxes) to +1.0 (summer solstice), creating a continuous cycle that represents the seasonal progression throughout the year.
The implementation uses high-precision astronomical formulas that include orbital elements and perturbation terms to accurately calculate the Sun's position. By converting chart timestamps to Julian dates and applying standard astronomical algorithms, this indicator achieves significantly greater accuracy than simplified seasonal approximations. This makes it valuable for traders exploring seasonal patterns, agricultural commodities trading, and natural cycle-based trading strategies.
🧩 CORE CONCEPTS
Seasonal cycle integration: Maps the annual solar cycle (365.242 days) to a continuous wave
Continuous phase representation: Provides a normalized -1.0 to +1.0 value
Astronomical precision: Uses perturbation terms and high-precision constants for accurate solar position
Key points detection: Identifies solstices (±1.0) and equinoxes (0.0) automatically
The Solar Cycle indicator differs from traditional seasonal analysis tools by incorporating precise astronomical calculations rather than using simple calendar-based approximations. This approach allows traders to identify exact seasonal turning points and transitions with high accuracy.
⚙️ COMMON SETTINGS AND PARAMETERS
Pro Tip: While the indicator itself doesn't have adjustable parameters, it's most effective when used on higher timeframes (daily or weekly charts) to visualize seasonal patterns. Consider combining it with commodity price data to analyze seasonal correlations.
🧮 CALCULATION AND MATHEMATICAL FOUNDATION
Simplified explanation:
The Solar Cycle indicator calculates the Sun's ecliptic longitude and transforms it into a sine wave that peaks at the summer solstice and troughs at the winter solstice, with equinoxes at the zero crossings.
Technical formula:
Convert chart timestamp to Julian Date:
JD = (time / 86400000.0) + 2440587.5
Calculate Time T in Julian centuries since J2000.0:
T = (JD - 2451545.0) / 36525.0
Calculate the Sun's mean longitude (L0) and mean anomaly (M), including perturbation terms:
L0 = (280.46646 + 36000.76983T + 0.0003032T²) % 360
M = (357.52911 + 35999.05029T - 0.0001537T² - 0.00000025T³) % 360
Calculate the equation of center (C):
C = (1.914602 - 0.004817T - 0.000014*T²)sin(M) +
(0.019993 - 0.000101T)sin(2M) +
0.000289sin(3M)
Calculate the Sun's true longitude and convert to seasonal value:
λ = L0 + C
seasonal = sin(λ)
🔍 Technical Note: The implementation includes terms for the equation of center to account for the Earth's elliptical orbit. This provides more accurate timing of solstices and equinoxes compared to simple harmonic approximations.
📈 INTERPRETATION DETAILS
The Solar Cycle indicator provides several analytical perspectives:
Summer Solstice (+1.0): Maximum solar elevation, longest day
Winter Solstice (-1.0): Minimum solar elevation, shortest day
Vernal Equinox (0.0 crossing up): Day and night equal length, spring begins
Autumnal Equinox (0.0 crossing down): Day and night equal length, autumn begins
Transition rates: Steepest near equinoxes, flattest near solstices
Cycle alignment: Market cycles that align with seasonal patterns may show stronger trends
Confirmation points: Solstices and equinoxes often mark important seasonal turning points
⚠️ LIMITATIONS AND CONSIDERATIONS
Geographic relevance: Solar cycle timing is most relevant for temperate latitudes
Market specificity: Seasonal effects vary significantly across different markets
Timeframe compatibility: Most effective for longer-term analysis (weekly/monthly)
Complementary tool: Should be used alongside price action and other indicators
Lead/lag effects: Market reactions to seasonal changes may precede or follow astronomical events
Statistical significance: Seasonal patterns should be verified across multiple years
Global markets: Consider opposite seasonality in Southern Hemisphere markets
📚 REFERENCES
Meeus, J. (1998). Astronomical Algorithms (2nd ed.). Willmann-Bell.
Hirshleifer, D., & Shumway, T. (2003). Good day sunshine: Stock returns and the weather. Journal of Finance, 58(3), 1009-1032.
Hong, H., & Yu, J. (2009). Gone fishin': Seasonality in trading activity and asset prices. Journal of Financial Markets, 12(4), 672-702.
Bouman, S., & Jacobsen, B. (2002). The Halloween indicator, 'Sell in May and go away': Another puzzle. American Economic Review, 92(5), 1618-1635.
Volume Flow OscillatorVolume Flow Oscillator
Overview
The Volume Flow Oscillator is an advanced technical analysis tool that measures buying and selling pressure by combining price direction with volume. Unlike traditional volume indicators, this oscillator reveals the force behind price movements, helping traders identify strong trends, potential reversals, and divergences between price and volume.
Reading the Indicator
The oscillator displays seven colored bands that fluctuate around a zero line:
Three bands above zero (yellow) indicate increasing levels of buying pressure
Three bands below zero (red) indicate increasing levels of selling pressure
The central band represents the baseline volume flow
Color intensity changes based on whether values are positive or negative
Trading Signals
The Volume Flow Oscillator provides several valuable trading signals:
Zero-line crossovers: When multiple bands cross from negative to positive, potential bullish shift; opposite for bearish
Divergences: When price makes new highs/lows but oscillator bands fail to confirm, signals potential reversal
Volume climax: Extreme readings where outer bands stretch far from zero often precede reversals
Trend confirmation: Strong expansion of bands in direction of price movement confirms genuine momentum
Support/resistance: During trends, bands may remain largely on one side of zero, showing continued directional pressure
Customization
Adjust these key parameters to optimize the oscillator for your trading style:
Lookback Length: Controls overall sensitivity (shorter = more responsive, longer = smoother)
Multipliers: Adjust sensitivity spread between bands for different market conditions
ALMA Settings: Fine-tune how the indicator weights recent versus historical data
VWMA Toggle: Enable for additional smoothing in volatile markets
Best Practices
For optimal results, use this oscillator in conjunction with price action and other confirmation indicators. The multi-band approach helps distinguish between minor fluctuations and significant volume events that might signal important market turns.
Sideways + Buy + Sell Detection (Customizable)Yes, beyond the **methodology**, several additional professional aspects of your script can be highlighted, especially for documentation, presentations, or integrating into a proprietary toolkit. Here’s a breakdown of additional elements worth noting:
---
### **1. Indicator Design Philosophy**
The script reflects a **multi-factor confirmation model**, combining momentum, trend strength, and directional movement for higher confidence in signal accuracy. This reduces the likelihood of false signals caused by reliance on a single indicator.
---
### **2. Signal Filtering via Confluence**
By requiring alignment across **RSI**, **ADX/DI**, and **MACD**, the system enforces **signal confluence**, a best practice in professional technical analysis. This ensures that entries are only suggested when multiple independent tools agree on market direction, enhancing robustness.
---
### **3. Parameter Flexibility for Optimization**
All core variables—RSI length, ADX period, MACD settings, and thresholds—are exposed via inputs, allowing for:
* **Strategy optimization** through backtesting.
* **Market-specific adaptation**, adjusting sensitivity for equities, forex, commodities, or crypto.
This makes the script versatile across asset classes and trading environments.
---
### **4. Timeframe Decoupling**
By separating the signal generation timeframe from the chart timeframe, the script supports **top-down analysis**. For example:
* Signals can be generated on a 5-minute chart while trading on a 1-minute chart.
* A 1-hour signal can be monitored within a 15-minute execution chart.
This enhances decision-making by contextualizing intraday moves within higher-timeframe trends.
---
### **5. User Experience & Interface Integration**
* **Clear chart visuals**: The color-coded labels (green for buy, red for sell, purple for sideways) provide instant recognition.
* **Non-intrusive design**: Signals are plotted below bars to maintain a clean view of price action.
* **Title and inputs** are well-labeled for ease of use, aligning with best practices in indicator UI/UX design.
---
### **6. Use Cases & Applications**
* **Trend Traders**: Identify momentum-driven opportunities in the direction of strength.
* **Range Traders**: Detect periods of consolidation to apply mean-reversion strategies.
* **Algorithmic Signal Filters**: Serve as a filter layer within automated systems, only allowing trades when all criteria align.
* **Discretionary Traders**: Use as a secondary confirmation tool to validate setups seen through manual chart analysis.
---
### **7. Extensibility & Integration Potential**
This script can serve as a foundational module for:
* **Strategy scripts** (with backtesting logic),
* **Alerts** for real-time notifications (with minor modification),
* Or **integrated dashboards** in custom trading interfaces.
Deviation from 20SMAThis indicator looks to display the variance from the 20SMA relative to the closing candle and the 20SMA. It uses Bollinger Bands to show extreme deviation when price moves in one direction too quickly. The decimal numbers are a representation of the price away from the 20SMA relative to the value of the ticker "(close - sma20) / close". This reduces extremes of nominal value as the price of the ticker gets higher.
Enhanced Volume w/ Pocket Pivots, Milestones & LiquiditySure! Here’s a professional and clear **description** you can use when saving or publishing the script on TradingView:
---
## 📄 Script Description: *Enhanced Volume w/ Pocket Pivots, Milestones & Liquidity*
This custom volume indicator enhances the default volume view by combining key institutional-level insights into a single tool. It highlights meaningful volume activity, liquidity conditions, and milestone events to help traders better understand accumulation/distribution and smart money participation.
### 🔍 Features:
* **Color-coded volume bars**:
* 🔵 **Pocket Pivot Volume (PPV)**: Up-day with volume > highest down-day volume of last 10 bars.
* 🟢 **Up Volume**: Up-day with volume > 50-day average.
* 🔴 **Down Volume**: Down-day with volume > 50-day average.
* 🟠 **Dry Volume**: Low-volume bars < 20% of 50-day average.
* ⚫ **Neutral/Other bars**: No significant signal.
* **Volume Milestones**:
* **HVE**: Highest volume ever (20 years lookback).
* **HVY**: Highest volume in the past 1 year (252 bars).
* **HVQ**: Highest volume in the past quarter (63 bars).
* **Projected Volume**:
* Real-time estimate of end-of-day volume based on elapsed session time.
* **Liquidity Metrics**:
* Displays current and 50-day average dollar volume.
* Estimates 1-minute liquidity for large-position feasibility.
* **Relative Volume Label**:
* Displays how today’s volume compares to the 50-day average.
* **Alerts Included**:
* Set alerts for HVE, HVY, and HVQ to catch key breakout or climactic volume events.
---
### 🧠 Ideal For:
* Growth stock traders
* Volume/price analysts
* Intraday & swing traders
* Institutions or prop traders needing liquidity benchmarks
---
Let me know if you'd like a short or promotional version (for sharing with others).
Moving Average Candles**Moving Average Candles — MA-Based Smoothed Candlestick Overlay**
This script replaces traditional price candles with smoothed versions calculated using various types of moving averages. Instead of plotting raw price data, each OHLC component (Open, High, Low, Close) is independently smoothed using your selected moving average method.
---
### 📌 Features:
- Choose from 13 MA types: `SMA`, `EMA`, `RMA`, `WMA`, `VWMA`, `HMA`, `T3`, `DEMA`, `TEMA`, `KAMA`, `ZLEMA`, `McGinley`, `EPMA`
- Fully configurable moving average length (1–1000)
- Color-coded candles based on smoothed Open vs Close
- Works directly on price charts as an overlay
---
### 🎯 Use Cases:
- Visualize smoothed market structure more clearly
- Reduce noise in price action for better trend analysis
- Combine with other indicators or strategies for confluence
---
> ⚠️ **Note:** Since all OHLC values are based on moving averages, these candles do **not** represent actual market trades. Use them for trend and structure analysis, not trade entries based on precise levels.
---
*Created to support traders seeking a cleaner visual representation of price dynamics.*
Complete Horizontal Pivot Lines with Color Controlpivot max min (numberbar=?) select the number of candles you want to follow and focus on the max and min, the control points of the impulses, and see better what is happening by giving you the key levels
(Decode) Moving Average Toolkit(Decode) Moving Average Toolkit: Your All-in-One MA Analysis Powerhouse
The Decode MAT is a comprehensive TradingView indicator designed to give you deep insights into market trends and potential trading signals using a versatile set of moving averages (MAs) and related tools. It's built for traders who want flexibility and a clear visual representation of MA-based strategies.
Here’s a breakdown of its key features and how you might use them in your trading:
1. Extensive Moving Average Options (5 EMAs & 5 SMAs)
What it is: The toolkit provides you with ten moving averages in total:
- Five Exponential Moving Averages (EMAs)
- Five Simple Moving Averages (SMAs)
Customization: You can set the length (period) for each of these ten MAs independently. This means you can track very short-term price action, long-term trends, and anything in between, all on one chart.
Visibility Control: Each MA line can be individually turned on or off directly from the "Inputs" tab using its "Show EMA X" or "Show SMA X" checkbox. This keeps your chart clean and focused. The color and line width for each MA are pre-defined in the script (EMAs are blueish with transparency, SMAs are solid with corresponding colors) but can be further customized in the "Style" tab of the indicator settings.
Defaults: EMA 1 (10-period) and EMA 2 (20-period) are visible by default. SMA 3 (50-period) and SMA 5 (200-period) are also visible by default. Other MAs are off by default.
Trading Ideas:
Trend Identification: Use longer-term MAs (e.g., 50, 100, 200-period SMA or EMA) to identify the overall market direction. Price above these MAs generally suggests an uptrend; price below suggests a downtrend.
Dynamic Support & Resistance: MAs can act as dynamic levels of support in an uptrend or resistance in a downtrend. Watch for price bouncing off these MAs.
Multi-Timeframe Feel: By plotting MAs of different lengths (e.g., a 20-period for short-term and a 200-period for long-term), you can get a sense of how different market participants might be viewing the trend.
2. EMA/SMA Ribbons (5 Hardcoded Pairs)
What it is: The indicator can display up to five "ribbons." Each ribbon is hardcoded to visually fill the space between a specific EMA and its numerically corresponding SMA:
- Ribbon 1: EMA 1 / SMA 1
- Ribbon 2: EMA 2 / SMA 2
- Ribbon 3: EMA 3 / SMA 3
- Ribbon 4: EMA 4 / SMA 4
- Ribbon 5: EMA 5 / SMA 5
Enable/Disable: Each of these five ribbons can be individually turned on or off from the "Inputs" tab using its "Show Ribbon EMAX/SMAX" checkbox. A ribbon will appear if its toggle is checked, regardless of whether its constituent MA lines are currently visible (the fill uses the underlying plot data).
Defaults: Ribbon 3 (EMA3/SMA3) is visible by default. Other ribbons are off by default.
Color-Coded Insights:
Green Ribbon: Appears when the EMA is above its corresponding SMA, often indicating bullish momentum or an uptrend for that pair.
Red Ribbon: Appears when the EMA is below its corresponding SMA, often indicating bearish momentum or a downtrend for that pair.
Trading Ideas:
Trend Strength & Confirmation: A widening ribbon can suggest increasing trend strength. A ribbon consistently staying one color (e.g., green) reinforces the current trend.
Entry/Exit Signals: Some traders look for the ribbon to change color as a potential signal. For example, a change from red to green might be a bullish entry signal, while green to red might be bearish.
Visualizing Momentum: The ribbons provide an immediate visual cue of the relationship between the faster-reacting EMA and the smoother SMA for standard MA pairings.
3. Configurable Crossover Alerts & On-Chart Symbols (Up to 5 Alerts)
What it is: This is a powerful feature for signal generation. You can set up to five independent crossover alert conditions.
Flexible MA Selection for Alerts: For each of the five alerts, you can choose any two moving averages from the ten available (5 EMAs, 5 SMAs) to act as your "Fast MA" and "Slow MA."
On-Chart Visual Symbols:
When a configured "Fast MA" crosses above the "Slow MA" (a bullish crossover), a green upward triangle (▲) can be plotted below the price bar.
When a configured "Fast MA" crosses below the "Slow MA" (a bearish crossover), a red downward triangle (▼) can be plotted above the price bar.
A symbol will only appear if: 1) The main "Enable Alert X" checkbox is active, 2) The crossover condition is met, AND 3) The "Show Symbols for Alert X" checkbox is active.
Defaults: Alert 1 (EMA 1 / EMA 2 cross) is enabled with symbols on. Alert 5 (SMA 3 / SMA 5 cross) is enabled with symbols on. Alerts 2, 3, and 4 are disabled by default.
TradingView Alert Integration: The script defines these crossover conditions. You can then go into TradingView's alert manager, select this indicator, and choose a specific condition (e.g., "Alert 1 Bullish Cross") to receive notifications.
Trading Ideas:
Classic & Custom Crossover Signals: Set up alerts for well-known patterns like the Golden/Death Cross, or create alerts for crossovers between any MAs relevant to your strategy.
Entry/Exit Triggers: Use crossover alerts as potential entry or exit signals.
Multi-Condition Confirmation: Combine alert signals with the visual information from the ribbons and overall MA structure.
4. General Customization
Price Source: You can choose what price data the moving averages are calculated from (e.g., Close, Open, High, Low, (H+L)/2, etc.).
Overall Trading Strategies & Benefits
The (Decode) Moving Average Toolkit is designed for versatility:
Trend Following: Use long-term MAs for trend direction, and shorter-term MA crossovers (with alerts) or ribbon changes for entries in the direction of that trend.
Swing Trading: Identify swings using medium-term MAs and look for pullbacks or crossovers as entry points, confirmed by ribbon behavior.
Momentum Confirmation: Gauge trend strength using the relationship between multiple MAs, visualized through the ribbons.
Focused Charting: Toggle the visibility of individual MAs and ribbons to keep your chart relevant to your current analysis.
Automated Scanning (via Alerts): Set up alerts for your preferred crossover conditions across multiple instruments and let TradingView notify you.
Períodos Macros com Ajuste de Horárioindicator in TradingView that marks the macro periods on the chart with colored background bands, at the following times:
09:45 – 10:15
10:45 – 11:15
11:45 – 12:15
12:45 – 13:15
13:45 – 14:15
14:45 – 15:15
Ehlers Ultimate Bands (UBANDS)UBANDS: ULTIMATE BANDS
🔍 OVERVIEW AND PURPOSE
Ultimate Bands, developed by John F. Ehlers, are a volatility-based channel indicator designed to provide a responsive and smooth representation of price boundaries with significantly reduced lag compared to traditional Bollinger Bands. Bollinger Bands typically use a Simple Moving Average for the centerline and standard deviations from it to establish the bands, both of which can increase lag. Ultimate Bands address this by employing Ehlers' Ultrasmooth Filter for the central moving average. The bands are then plotted based on the volatility of price around this ultrasmooth centerline.
The primary purpose of Ultimate Bands is to offer traders a clearer view of potential support and resistance levels that react quickly to price changes while filtering out excessive noise, aiming for nearly zero lag in the indicator band.
🧩 CORE CONCEPTS
Ultrasmooth Centerline: Employs the Ehlers Ultrasmooth Filter as the basis (centerline) for the bands, aiming for minimal lag and enhanced smoothing.
Volatility-Adaptive Width: The distance between the upper and lower bands is determined by a measure of price deviation from the ultrasmooth centerline. This causes the bands to widen during volatile periods and contract during calm periods.
Dynamic Support/Resistance: The bands serve as dynamic levels of potential support (lower band) and resistance (upper band).
🧮 CALCULATION AND MATHEMATICAL FOUNDATION
Ehlers' Original Concept for Deviation:
John Ehlers describes the deviation calculation as: "The deviation at each data sample is the difference between Smooth and the Close at that data point. The Standard Deviation (SD) is computed as the square root of the average of the squares of the individual deviations."
This describes calculating the Root Mean Square (RMS) of the residuals:
Smooth = UltrasmoothFilter(Source, Length)
Residuals = Source - Smooth
SumOfSquaredResiduals = Sum(Residuals ^2) for i over Length
MeanOfSquaredResiduals = SumOfSquaredResiduals / Length
SD_Ehlers = SquareRoot(MeanOfSquaredResiduals) (This is the RMS of residuals)
Pine Script Implementation's Deviation:
The provided Pine Script implementation calculates the statistical standard deviation of the residuals:
Smooth = UltrasmoothFilter(Source, Length) (referred to as _ehusf in the script)
Residuals = Source - Smooth
Mean_Residuals = Average(Residuals, Length)
Variance_Residuals = Average((Residuals - Mean_Residuals)^2, Length)
SD_Pine = SquareRoot(Variance_Residuals) (This is the statistical standard deviation of residuals)
Band Calculation (Common to both approaches, using their respective SD):
UpperBand = Smooth + (NumSDs × SD)
LowerBand = Smooth - (NumSDs × SD)
🔍 Technical Note: The Pine Script implementation uses a statistical standard deviation of the residuals (differences between price and the smooth average). Ehlers' original text implies an RMS of these residuals. While both measure dispersion, they will yield slightly different values. The Ultrasmooth Filter itself is a key component, designed for responsiveness.
📈 INTERPRETATION DETAILS
Reduced Lag: The primary advantage is the significant reduction in lag compared to standard Bollinger Bands, allowing for quicker reaction to price changes.
Volatility Indication: Widening bands indicate increasing market volatility, while narrowing bands suggest decreasing volatility.
Overbought/Oversold Conditions (Use with caution):
• Price touching or exceeding the Upper Band may suggest overbought conditions.
• Price touching or falling below the Lower Band may suggest oversold conditions.
Trend Identification:
• Price consistently "walking the band" (moving along the upper or lower band) can indicate a strong trend.
• The Middle Band (Ultrasmooth Filter) acts as a dynamic support/resistance level and indicates the short-term trend direction.
Comparison to Ultimate Channel: Ehlers notes that the Ultimate Band indicator does not differ from the Ultimate Channel indicator in any major fashion.
🛠️ USE AND APPLICATION
Ultimate Bands can be used similarly to how Keltner Channels or Bollinger Bands are used for interpreting price action, with the main difference being the reduced lag.
Example Trading Strategy (from John F. Ehlers):
Hold a position in the direction of the Ultimate Smoother (the centerline).
Exit that position when the price "pops" outside the channel or band in the opposite direction of the trade.
This is described as a trend-following strategy with an automatic following stop.
⚠️ LIMITATIONS AND CONSIDERATIONS
Lag (Minimized but Present): While significantly reduced, some minimal lag inherent to averaging processes will still exist. Increasing the Length parameter for smoother bands will moderately increase this lag.
Parameter Sensitivity: The Length and StdDev Multiplier settings are key to tuning the indicator for different assets and timeframes.
False Signals: As with any band indicator, false signals can occur, particularly in choppy or non-trending markets.
Not a Standalone System: Best used in conjunction with other forms of analysis for confirmation.
Deviation Calculation Nuance: Be aware of the difference in deviation calculation (statistical standard deviation vs. RMS of residuals) if comparing directly to Ehlers' original concept as described.
📚 REFERENCES
Ehlers, J. F. (2024). Article/Publication where "Code Listing 2" for Ultimate Bands is featured. (Specific source to be identified if known, e.g., "Stocks & Commodities Magazine, Vol. XX, No. YY").
Ehlers, J. F. (General). Various publications on advanced filtering and cycle analysis. (e.g., "Rocket Science for Traders", "Cycle Analytics for Traders").