FinMetrics_Table_LVThis is a First Cut Quantitative Fundamental Analysis script for any company, whose data is available on TradingView.
The script presents information in the currency of the Exchange / symbol. For Example, data for
* Apple Inc. (NASDAQ:AAPL) in USD;
* British American Tobacco (LSE: BATS) in GBP
* Reliance Industries (NSE: RELIANCE) in INR
For Indian companies, the information is presented in Rupees Lakhs, Crores, Arabs and Kharabs.
Display is divided in three segments
- Left is quarterly data
- Middle is snapshot, valuations & a bit of Technical Analysis
- Right is annual data
Script covers for:
1. Quality
- Quantum of Other Income compared to PBT
- FCF
- Percentage of Goodwill on Balance Sheet to Asset (and Equity)
- Number of Days of Inventory and Receivables
- Debt / Equity
- Impairment, if any
- Interest Capitalized
- Number of Employees
- Altman Z Score
2. Returns drivers
- R&D / Sales
- Dupont Analysis
- Margins (EBITDA / OPM / NPM / FCF Margin)
3. Long term past performance
- Annual Time Series of
- Sales / EPS (and their YoY / QoQ change )
- Gross Block
- Total Assets
- Some of the items mentioned in the points above
4. Relative Valuations
- P / E ( TTM / Annualized / Forward - if available )
- PEG
- P / B
- P / S
- P / FCF
5. Snippets of Technical Information
- Sector / Industry
- Total Number of Shares Outstanding
- Free Float Number of Shares Outstanding
- Market Capitalization (MCap)
- Free Float MCap
- 52 Week High / Low
- Distance from 52 Week High / Low
- Volume ( Daily / Average / Relative )
Future triggers
- Next Earnings Data
H/T - Numerous Pine Scrip coders who have gone before me. It is dedicated to them.
Trend Analizi
YAS V1This advanced "All-in-One" indicator combines the most powerful smart money concepts (SMC), order blocks (OB), fair value gaps (FVG), support & resistance (SR), and liquidity voids, along with entry signals based on EMA and RSI filters.
💡 Key Features:
✅ Order Blocks (OB):
Highlights potential bullish and bearish order blocks to identify strong institutional zones where price might reverse.
✅ Fair Value Gaps (FVG):
Marks price gaps that indicate imbalance and possible zones for retracement or continuation.
✅ Support & Resistance (SR):
Automatically plots dynamic support and resistance levels using pivots, helping you to spot key reaction areas.
✅ Liquidity Voids:
Visualizes potential liquidity gaps or low-volume areas that can act as price magnets.
✅ Buy & Sell Signals:
Generates dynamic BUY and SELL signals based on a combination of EMA trend filters and RSI overbought/oversold levels.
✅ Fully Configurable:
Choose which features to display (OB, FVG, SR, Liquidity Voids, signals).
Adjust EMA and RSI settings to match your strategy.
Control the number of signals (reduce or increase) using a signal sensitivity filter.
⚙️ How it Works:
Trend Filter (EMA):
Price above EMA confirms a bullish environment, below EMA confirms bearish.
RSI Filter:
Signals are validated with RSI to avoid overtrading in ranging markets.
Zones & Gaps:
Institutional concepts (order blocks, gaps) help traders understand supply/demand and price inefficiencies.
🎯 Usage:
Perfect for:
Scalpers looking for intraday turning points.
Swing traders spotting high-probability levels.
Anyone interested in smart money concepts.
🚨 Alerts:
Includes built-in alerts for both BUY and SELL signals so you can react instantly without watching the screen all the time.
💬 Note:
This is a beta version designed to be improved with community feedback. Use it as a guide, and always confirm signals with your own analysis and risk management.
🔥 Ready to take your trading to the next level? Add this indicator to your chart, customize the settings, and start seeing the market like smart money!
YAS V1This advanced "All-in-One" indicator combines the most powerful smart money concepts (SMC), order blocks (OB), fair value gaps (FVG), support & resistance (SR), and liquidity voids, along with entry signals based on EMA and RSI filters.
💡 Key Features:
✅ Order Blocks (OB):
Highlights potential bullish and bearish order blocks to identify strong institutional zones where price might reverse.
✅ Fair Value Gaps (FVG):
Marks price gaps that indicate imbalance and possible zones for retracement or continuation.
✅ Support & Resistance (SR):
Automatically plots dynamic support and resistance levels using pivots, helping you to spot key reaction areas.
✅ Liquidity Voids:
Visualizes potential liquidity gaps or low-volume areas that can act as price magnets.
✅ Buy & Sell Signals:
Generates dynamic BUY and SELL signals based on a combination of EMA trend filters and RSI overbought/oversold levels.
✅ Fully Configurable:
Choose which features to display (OB, FVG, SR, Liquidity Voids, signals).
Adjust EMA and RSI settings to match your strategy.
Control the number of signals (reduce or increase) using a signal sensitivity filter.
⚙️ How it Works:
Trend Filter (EMA):
Price above EMA confirms a bullish environment, below EMA confirms bearish.
RSI Filter:
Signals are validated with RSI to avoid overtrading in ranging markets.
Zones & Gaps:
Institutional concepts (order blocks, gaps) help traders understand supply/demand and price inefficiencies.
🎯 Usage:
Perfect for:
Scalpers looking for intraday turning points.
Swing traders spotting high-probability levels.
Anyone interested in smart money concepts.
🚨 Alerts:
Includes built-in alerts for both BUY and SELL signals so you can react instantly without watching the screen all the time.
💬 Note:
This is a beta version designed to be improved with community feedback. Use it as a guide, and always confirm signals with your own analysis and risk management.
🔥 Ready to take your trading to the next level? Add this indicator to your chart, customize the settings, and start seeing the market like smart money!
[Top] BoS Fibonacci Scalping BoS Fibonacci Retracement Scalping Tool
This indicator is an advanced market structure analysis and scalping toolkit that combines Break of Structure (BoS), Change of Character (ChoCh) detection, dynamic Fibonacci retracement levels, and a Zig Zag visualization to help traders identify actionable trading opportunities.
How It Works
1. Market Structure Detection (BoS & ChoCh)
Pivots and Order Blocks:
The script automatically detects major and minor swing highs and lows (pivot points) using configurable pivot periods.
Break of Structure (BoS):
When price crosses a key structural level in the prevailing trend direction, a BoS event is marked.
Change of Character (ChoCh):
When price crosses a key level in the opposite direction of the previous trend, a ChoCh event is flagged, signaling a possible trend reversal.
Each event draws labeled horizontal lines and optional labels on the chart.
2. Fibonacci Retracement Engine
After a BoS, the indicator waits for a retracement (configurable by number of bars or conditions).
It then plots Fibonacci retracement levels (0.0, 0.5, 0.618, 1.0) between the last significant swing and the breakout level.
A colored "Golden Zone" (50–61.8%) is highlighted to assist in identifying potential pullback entries.
3. Zig Zag Visual
An optional Zig Zag line shows the evolving swing structure and helps clarify major and minor highs and lows.
4. Potential BoS Levels
When no retracement is active, the indicator can display dotted "Potential BoS" lines above/below price to alert you to possible upcoming breakouts.
Inputs and Customization
You can configure:
Pivot Periods: Separate lengths for order block and Fibonacci detection.
Retracement Settings: Number of bars defining a retracement and how long to wait for it.
Drawing Extensions: How many bars to extend lines forward.
Labels and Colors: Toggle labels, adjust colors and line styles for each structural level.
Major and Minor BoS/ChoCh Levels: Show or hide specific types of structure lines (bullish/bearish, major/minor).
How to Use
Identify Trend & Structure:
Watch for BoS or ChoCh lines and labels to confirm trend continuation or reversal.
Plan Pullbacks:
After a BoS, wait for a retracement into the Fibonacci Golden Zone.
Use the zone and retracement lines as reference for entries and risk management.
Combine with Other Confirmation:
This script works best when combined with volume, momentum, or price action signals.
Scalping and Swing Use:
Short-term traders can use it on intraday timeframes, while swing traders can apply it to higher timeframes for structural analysis.
What Makes It Unique
Unlike simpler BoS indicators, this script:
Distinguishes between major and minor structural breaks.
Automatically manages retracement logic and invalidation.
Visualizes structure dynamically in real time.
Includes extensive customization of visual elements to suit different trading styles.
BTC Breakout Bot (TP/SL + Alerts)📈 BTC Breakout Bot (TP/SL + Alerts)
This strategy is designed for Bitcoin (BTC/USDT) on breakout trades. It detects price breakouts using recent highs and lows, and automatically handles:
✅ Long and short entries
✅ Take Profit and Stop Loss levels
✅ Built-in alert system (compatible with Telegram/webhook)
✅ Customizable lookback, TP, and SL settings
Strategy logic:
Enters a long position when price breaks above the highest high of the last N candles.
Enters a short position when price breaks below the lowest low of the last N candles.
Each trade includes a dynamic Take Profit and Stop Loss based on a % of entry price.
Alerts are triggered for every breakout trade (long or short).
Parameters:
Breakout Lookback: Number of candles to check for breakouts (default: 20)
Take Profit (%): TP level based on percentage from entry (default: 5%)
Stop Loss (%): SL level based on percentage from entry (default: 2%)
[Top] 🦙 LHAMA-MACD🦙 LHAMA-MACD — Low-High Adaptive MACD Oscillator
This indicator is a custom MACD-style oscillator that uses LHAMA (Low-High Adaptive Moving Average) smoothing instead of conventional EMAs. LHAMA dynamically adapts its responsiveness based on recent high/low price activity, aiming to reduce lag and improve sensitivity to trend shifts compared to standard MACD.
How It Works
LHAMA Calculation:
For both fast and slow components, the indicator evaluates whether the highest high or lowest low over the lookback length is changing. When new extremes are detected, an adaptive tracking coefficient increases, making the moving average respond faster. This results in a moving average that adapts more quickly during volatility and smooths out during consolidation.
MACD Line:
The difference between the fast LHAMA and slow LHAMA.
Signal Line:
An EMA of the MACD line over a user-defined period.
Histogram:
The difference between the MACD Line and the Signal Line.
Crossover Labels:
Green star ✳️ appears below price when the MACD crosses above the Signal Line (potential bullish momentum).
Orange star ✴️ appears above price when the MACD crosses below the Signal Line (potential bearish momentum).
Inputs
Price Source: The price data to analyze (default: close).
Fast LHAMA Length: Period for the faster adaptive average.
Slow LHAMA Length: Period for the slower adaptive average.
Signal EMA Length: Smoothing period for the Signal Line.
Show Histogram: Toggle histogram display.
Show Oscillator Lines: Toggle MACD and Signal Lines display.
How to Use
Trend Confirmation: Use histogram and line crossovers to gauge trend strength and potential reversals.
Momentum Shifts: Bullish crossovers may indicate increasing upside momentum, while bearish crossovers can signal weakening price action.
Subpane Visualization: The oscillator plots in a separate pane below your chart.
Price Markers: Labels appear directly on the price chart for clearer visual signals.
This tool can complement price action strategies by providing early warnings of trend changes and momentum shifts, thanks to its adaptive smoothing approach.
Min Forrige Daily CandleBruges til at se forrige daily candle. Daily high, low og close. Kan bruges til teknisk analyse.
Elliott Wave - Complex Correction Pattern DetectorThis indicator is for Elliott Wave corrective patterns. It’s highly lagging, so just like with the impulse and terminal indicators, it’s intended purely for study and practice. I’m about a third of the way through the book right now, and my brain feels like it’s about to explode—😱but I have to say, this theory is incredibly fascinating.
As with the impulse and terminal indicators, this one is also pivot-based, so there are some obvious limitations in the results. Still, I believe that comparing my own manual counts with the rules programmed into the macro will be even more helpful for learning.
I hope that by sharing this, it can help students or beginners who are currently studying Elliott Wave theory. 😁
Support Resistance with Order BlocksIndicator Description
Professional Price Level Detection for Smart Trading. Master the Markets with Precision Support/Resistance and Order Block Analysis . It provides traders with clear visual cues for potential reversal and breakout areas, combining both retail and institutional trading concepts into one powerful tool.
The Support & Resistance with Order Blocks indicator is a versatile Pine Script tool designed to empower traders with clear, actionable insights into key market levels. By combining advanced pivot-based support and resistance (S/R) detection with order block (OB) filtering, this indicator delivers clean, high-probability zones for entries, exits, and reversals. With customizable display options (boxes or lines) and intuitive settings, it’s perfect for traders of all styles—whether you’re scalping, swing trading, or investing long-term. Overlay it on your TradingView chart and elevate your trading strategy today!
________________________________________
Key Features
✅ Dynamic Support/Resistance - Auto-adjusting levels based on price action
✅ Smart Order Block Detection - Identifies institutional buying/selling zones
✅ Dual Display Modes - Choose between Boxes or Clean Lines for different chart styles
✅ Customizable Sensitivity - Adjust detection parameters for different markets
✅ Broken Level Markers - Clearly shows when key levels are breached
✅ Timeframe-Adaptive - Automatically adjusts for daily/weekly charts
1. Dynamic Support & Resistance Detection
Identifies critical S/R zones using pivot high/low calculations with adjustable look back periods.
Visualizes active S/R zones with distinct colors and labels ("Support" or "Resistance" for boxes, lines for cleaner charts).
Marks broken S/R levels as "Br S" (broken support) or "Br R" (broken resistance) when historical display is enabled, aiding in breakout and reversal analysis.
2. Smart Order Block Identification
Detects bullish and bearish order blocks based on significant price movements (default: ±0.3% over 5 candles).
Highlights institutional buying/selling zones with customizable colors, displayed as boxes or lines.
Filters out overlapping OB zones to keep your chart clutter-free.
3. Dual Display Options
Boxes or Lines: Choose to display S/R and OB as boxes for detailed zones or lines for a minimalist view.
Line Width Customization: Adjust line widths for S/R and OB (1–5 pixels) for optimal visibility.
Color Customization: Tailor colors for active/broken S/R and bullish/bearish OB zones.
4. Advanced Overlap Filtering
Ensures S/R zones don’t overlap with OB zones or other S/R levels, providing only the most relevant levels.
Limits the number of active zones (default: 10) to maintain chart clarity.
5. Historical S/R Visualization
Optionally display broken S/R levels with distinct colors and labels ("Br S" or "Br R") to track historical price reactions.
Broken levels are dynamically updated and removed (or retained) based on user settings.
6. Timeframe Adaptability
Automatically adjusts pivot detection for daily/weekly timeframes (40-candle look back) versus shorter timeframes (20-candle look back).
Works seamlessly across all asset classes (stocks, forex, crypto, etc.) and timeframes.
________________________________________
How It Works
• Support & Resistance:
Uses ta.pivothigh and ta.pivotlow to detect significant price pivots, with a user-defined look back (default: 5 candles post-pivot).
Plots S/R as boxes (with labels "Support" or "Resistance") or lines, extending to the current bar for real-time relevance.
Broken S/R levels are marked with adjusted colors and labels ("S" or "R" for boxes, "Br S" or "Br R" for lines when historical display is enabled).
• Order Blocks:
Identifies OB based on strong price movements over 4 candles, plotted as boxes or lines at the candle’s midpoint.
Validates OB to prevent overlap, ensuring only significant zones are displayed.
Removes OB zones when price breaks through, keeping the chart focused on active levels.
• Customization:
Toggle S/R and OB visibility, adjust detection sensitivity, and set maximum active zones (4–50).
Fine-tune line widths and colors for a personalized chart experience.
________________________________________
Why Use This Indicator?
• Precision Trading: Pinpoint high-probability entry/exit zones with filtered S/R and OB levels.
• Clean Charts: Overlap filtering and zone limits reduce clutter, focusing on key levels.
• Versatile Display: Switch between boxes for detailed zones or lines for simplicity, with adjustable line widths.
• Institutional Edge: Leverage OB detection to align with institutional activity for smarter trades.
• User-Friendly: Intuitive settings and clear visuals make it accessible for beginners and pros alike.
________________________________________
Settings Overview________________________________________
⚙ Input Parameters
Settings Overview
Display Options:
Display Type: Choose "Boxes" or "Lines" for S/R and OB visualization.
S/R Line Width: Set line thickness for S/R lines (1–5 pixels, default: 2).
OB Line Width: Set line thickness for OB lines (1–5 pixels, default: 2).
Order Block Options:
Show Order Block: Enable/disable OB display.
Bull/Bear OB Colors: Customise border and fill colors for bullish and bearish OB zones.
Support/Resistance Options:
Show S/R: Toggle active S/R zones.
Show Historical S/R: Display broken S/R levels, marked as "Br S" or "Br R" for lines.
Detection Period: Set candle lookback for pivot detection (4–50, default: 5).
Max Active Zones: Limit active S/R and OB zones (4–50, default: 10).
Colors: Customise active and broken S/R colors for clear differentiation.
________________________________________
How to Use
1. Add to Chart: Apply the indicator to your TradingView chart.
2. Customize Settings:
o Select "Boxes" or "Lines" for your preferred display style.
o Adjust line widths, colors, and detection parameters to suit your trading style.
o Enable "Show Historical S/R" to track broken levels with "Br S" and "Br R" labels.
3. Analyze Levels:
o Use support zones (green) for buy entries and resistance zones (red) for sell entries.
o Monitor OB zones for institutional activity, signaling potential reversals or continuations.
o Watch for "Br S" or "Br R" labels to identify breakout opportunities.
4. Combine with Other Tools: Pair with trend indicators, volume analysis, or price action for a robust strategy.
5. Monitor Breakouts: Trade breakouts when price breaches S/R or OB zones, with historical labels providing context.
________________________________________
Example Use Cases
• Swing Trading: Use S/R and OB zones to identify entry/exit points, with historical broken levels for context.
• Breakout Trading: Trade price breaks through S/R or OB, using "Br S" and "Br R" labels to confirm reversals.
• Scalping: Adjust detection period for faster S/R and OB identification on lower timeframes.
________________________________________
• Performance: Optimized for all timeframes, with best results on 5M, 15M, 30M, 1H, 4H, or daily charts for swing trading.
• Compatibility: Works with any asset class and TradingView chart.
________________________________________
Get Started
Transform your trading with Support & Resistance with Order Blocks! Add it to your chart, customize it to your style, and trade with confidence. For questions or feedback, drop a comment on TradingView or message the author. Happy trading! 🚀
________________________________________
Disclaimer: This indicator is for educational and informational purposes only. Always conduct your own analysis and practice proper risk management before trading.
[CRTT] Dragon TrendModified Sonic R system based on Wyckoff logic to indicate current trend phase and strength based on the Dragon (EMA34) color.
1. Red : downtrend but the trend strength is weak and can be consider as phase |B| or |D|. Open positions in this color is risk, we should wait more.
2. Green : uptrend but the trend strength is weak and can be consider as phase |B| or |D|. Open positions in this color is risk, we should wait more.
3. Purple : uptrend and the strength of trend is strongly bullish that can be considered as phase |D| or |E| in accumulation phase. This is where we place our Long positions because the trend is strongly bullish and price could continue to run upward.
4. Blue : downtrend and the strength of trend is strongly bearish that can be considered as phase |D| or |E| in distribution phase. This is where we place our Short positions because the trend is strongly bearish and price could continue to run downward.
Swing Wave Detection - AmitOverview
The Swing Wave Detection indicator is a technical analysis tool designed to identify and visualize swing highs and lows in price action. It operates on two distinct timeframes: major swings for longer-term trend analysis and minor swings for shorter-term price movements.
Purpose
This indicator serves multiple analytical purposes:
Trend Analysis: Identifies significant price turning points for trend direction assessment
Support/Resistance Levels: Swing points often act as future support or resistance zones
Entry/Exit Signals: Provides potential trade entry and exit points based on swing formations
Market Structure Analysis: Helps traders understand the underlying market structure through swing patterns
ATR-Based Adjustment
Uses Average True Range (ATR) with a 9-period calculation
Applies a 20% multiplier to ATR for swing level adjustment
Adds ATR to swing highs and subtracts from swing lows to account for volatility
Usage Guidelines
Optimal Timeframes
Major Swings: Best suited for daily, 4-hour, or 1-hour charts
Minor Swings: Effective on 15-minute, 5-minute, or 1-minute charts
Interpretation
Swing Highs: Potential resistance levels or short entry points
Swing Lows: Potential support levels or long entry points
Pattern Recognition: Connect swings to identify trend lines, channels, and chart patterns
Limitations
Lagging Nature: Swings are confirmed with a delay equal to the swing period
False Signals: May generate signals in ranging markets
Parameter Sensitivity: Results vary significantly with period adjustments
Conclusion
The Swing Wave Detection indicator provides a systematic approach to identifying price swing points across multiple timeframes. Its dual-period design allows for comprehensive market structure analysis while maintaining computational efficiency. The indicator is best used as part of a broader technical analysis framework rather than a standalone trading tool.
YAS GROUPThis script is a powerful combination of Order Blocks (OB), market structure, and liquidity levels. It helps traders easily identify high-probability areas for entries and exits, detect trend shifts (BOS & CHoCH), and highlight strong support/resistance zones. The script is designed for both scalping and swing trading, offering flexibility and precision. Users can adjust OB sensitivity, show or hide structure labels, and customize visual settings to match their style. Alerts are also included for key signals. Perfect for traders looking to read the market like smart money.
IU Engulfing Candlestick PatternDISCRIPTION
📈 The IU Engulfing Candlestick Pattern indicator spotlights both bullish and bearish engulfing formations in real‑time. It shades each pattern with a transparent box and drops a concise label so you can catch potential reversals at a glance—no clutter, no noise, just the candles that matter.
USER INPUTS :
1. Pattern Recognition Based on = “Both” | “Wicks” | “Body” ( Default Both )
• Both → only highlights candles that satisfy **both** wick‑and‑body engulfing rules
• Wicks → checks full candle range (high‑to‑low)
• Body → checks only the real bodies (open‑to‑close)
2. Show Labels ( Default true )
If ticked then it will show the text as "Bullish Engulfing" or "Bearish Engulfing".
3. Show The Box ( Default true)
if ticked then it will show the green or red boxes.
INDICATOR LOGIC:
🔹 Bullish Engulfing (green box)
– Current bar closes higher than it opens and fully “wraps” the prior bar per your chosen rule.
🔹 Bearish Engulfing (red box)
– Current bar closes lower than it opens and fully “wraps” the prior bar per your chosen rule.
🔸 When a pattern confirms:
1. The script records the local high/low range.
2. Draws a semi‑transparent box spanning the engulfing pair.
3. Prints a compact up/down label exactly at the reaction point.
4. Fires a once‑per‑bar alert (“Bullish Engulfing” / “Bearish Engulfing”) you can route to webhooks or notifications.
WHY IT IS UNIQUE:
✨ Combines classic body‑only engulfing with an optional wick filter, letting traders demand stricter confirmation when markets are noisy.
✨ Box overlays visually segment the engulfed range—clearer than single‑bar markers.
✨ Lightweight: one input, zero repaint, and capped at 500 boxes to keep charts responsive.
✨ Ready‑to‑use alerts—no extra code needed for automation.
HOW USER CAN BENIFIT FROM IT :
- Spot early reversal zones or continuation thrusts without scanning candle by candle.
- Pair the alerts with trading bots, TradingView strategy testers, or mobile push notifications.
- Adapt the strictness (Body vs. Wicks vs. Both) to suit different assets, timeframes, or volatility regimes.
- Use the colored range boxes as dynamic support/resistance references for entries, targets, and stop‑loss placement.
📌 Tip: Test on multiple instruments and timeframes to find the sweet spot that matches your risk profile. This script is for educational purposes—always combine with sound risk management and confirm signals with broader market context.
Disclaimer :
This Video is not financial advice, it's for educational purposes only highlighting the power of coding( pine script) in TradingView, I am not a SEBI-registered advisor. Trading and investing involve risk, and you should consult with a qualified financial advisor before making any trading decisions. I do not guarantee profits or take responsibility for any losses you may incur.
MOD_CM_MacD_Ult_MTF_V2.1Basato su “CM_MacD_Ult_MTF_V2.1” di @chadmaurice (CM)
Aggiunto timeframe 2g,3g,4g
Convergence [by Oberlunar]
The Convergence Indicator by Oberlunar is a multi-timeframe analysis tool that identifies and visualizes trend convergence across up to 10 configurable timeframes using advanced customizable moving averages, including Hull, OberX (a Hull mod), THMA, EMA, and SMA, with an optional pseudo-Hilbert Transform.
It provides a clear visual overlay through gradual fill areas that highlight bullish and bearish trends while offering a fully configurable dynamic table to monitor live trend states across all selected timeframes with user-defined colors and positioning.
This tool is designed for traders who seek to pinpoint multi-timeframe convergence points to enhance their decision-making process in trend-following and breakout strategies.
Oberlunar 👁️⭐
Adaptive Causal Wavelet Trend FilterThe Adaptive Causal Wavelet Trend Filter is a technical indicator implementing causal approximations of wavelet transform properties for better trend detection with adaptive volatility response.
The Adaptive Causal Wavelet Trend Filter (ACWTF) applies mathematical principles derived from wavelet analysis to financial time series, providing robust trend identification with minimal lag. Unlike conventional moving averages, it preserves significant price movements while filtering market noise through signal processing that i describe below.
I was inspired to build this indicator after reading " Wavelet-Based Trend Identification in Financial Time Series " by In, F., & Kim, S. 2013 and reading about Mexican Hat wavelet filters.
The ACWTF maintains optimal performance across varying market regimes without requiring parameter adjustments by adapting filter characteristics to current volatility conditions.
Mathematical Foundation
Inspired by the Mexican Hat wavelet (Ricker wavelet), this indicator implements causal approximations of wavelet filters optimized for real-time financial analysis. The multi-resolution approach identifies features at different scales and the adaptive component dynamically adjusts filtering characteristics based on local volatility measurements.
Key mathematical properties include:
Non-linear frequency response adaptation
Edge-preserving signal extraction
Scale-space analysis through dual filter implementation
Volatility-dependent coefficient adjustment, which I love
Filter Methods
Adaptive: Implements a volatility-weighted combination of multiple filter types to optimize the time-frequency resolution trade-off
Hull: Provides a causal approximation of wavelet edge detection properties with forward-projection characteristics
VWMA: Incorporates volume information into the filtering process for enhanced signal detection
EMA Cascade: Creates a multi-pole filter structure that approximates certain wavelet scaling properties
Suggestion: try all as they will provide slightly different signals. Try also different time-frames.
Practical Applications
Trend Direction Identification: Clear visual trend direction with reduced noise and lag
Regime Change Detection: Early identification of significant trend reversals
Market Condition Analysis: Integrated volatility metrics provide context for current market behavior
Multi-timeframe Confirmation: Alignment between primary and secondary filters offers additional confirmation
Entry/Exit Timing: Filter crossovers and trend changes provide potential trading signals
The comprehensive information panel provides:
Current filter method and trend state
Trend alignment between timeframes
Real-time volatility assessment
Price position relative to filter
Overall trading bias based on multiple factors
Implementation Notes
Log returns option provides improved statistical properties for financial time series
Primary and secondary filter lengths can be adjusted to optimize for specific instruments and timeframes
The indicator performs particularly well during trend transitions and regime changes
The indicator reduces the need for using additional indicators to check trend reversion
ATR Trend Color📌 ATR Trend Color — Visually clean trend-following tool based on adaptive ATR trailing stop
► Description
ATR Trend Color is a simple yet powerful indicator designed to visually identify and follow the market trend using an adaptive ATR-based trailing stop. Its main advantage lies in clarity — it uses just a single line that dynamically changes color based on trend direction:
✅ Blue line indicates price is above the trailing stop (bullish trend).
🔻 Black line indicates price is below the trailing stop (bearish trend).
This clean display allows for instant trend recognition and potential exit or reversal zones.
► How it works
The indicator uses the Average True Range (ATR) to calculate a dynamic trailing stop level. ATR measures volatility and adjusts the trailing line to match current market conditions:
When the price rises, the line moves up and acts as dynamic support.
When the price drops, the line moves down and acts as resistance.
This behavior makes it ideal for trend following and volatility-adjusted stop-loss placement.
► Key Features:
✅ Clean chart with just one ATR trailing line
✅ Dynamic color changes in real-time
✅ Great for trend confirmation and management
✅ Customizable ATR period and multiplier
✅ Step line with diamonds for high visual clarity
► How to use
Add the indicator to your chart.
Adjust ATR period and multiplier to your strategy (default: ATR 7 / multiplier 3.1).
Follow the line color:
Blue: Bullish trend — may signal to stay in long positions.
Black: Bearish trend — may suggest exit or short entries.
► Originality
Unlike typical ATR trailing stop indicators that display two lines or static colors, ATR Trend Color simplifies visualization by using a single smart line with real-time visual feedback on trend direction.
Additionally, it uses the “Step line with diamonds” display mode to enhance readability in fast or noisy markets.
Linearity IndexThe Linearity Index (LI) indicator helps traders identify trending and choppy markets by measuring price movement efficiency. It calculates LI using a user-defined lookback period (default: 61 days), dividing the net price change by the sum of absolute daily changes. LI ranges from -1 to 1:
Positive LI: Upward trend
Negative LI: Downward trend
Near 0: Choppy or flat market
Key FeaturesTable Display:
Summarizes data over three periods (1st Year, 2nd Year and 3rd Year)
Linear Days: LI > 0.2 (strong linearity)
Trend Days: Close > 50 SMA and LI > 0.05 (upward trend)
Linearity Index Ratio (LIR): Linear Days / Trend Days,
color-coded:Red (< 0.25)
Yellow (0.25–0.50)
Green (> 0.50)
Total LIR : average of every year's LIR and color coded based on overall LI color
View modes: Full (detailed), Compact (abbreviated), Mini (Yr & LIR only)
Visuals:Horizontal lines at 0.20 ("Linearity Level") and 0.05 ("Choppiness Level")
Background color: Green (LI > 0.2), Red (LI < 0.05)
LI plotted as a dark gray histogram
Customization:Adjustable lookback period
Selectable table view mode (Full, Compact, Mini)
Purpose : The LI indicator provides a quick way to assess market trends and linearity over time, with visual cues and a customizable table for deeper analysis. Ideal for traders seeking to gauge trend strength and market efficiency.
Took inspiration from @OmkarBanne 's Trend vs Chop Detector
Psychological Levels Indicator🧠 Psychological Levels Indicator
The Psychological Levels Indicator is a dynamic intraday trading tool that automatically identifies, adapts, and projects psychological price zones based on market structure and volatility. It integrates a layered calculation engine built around weekly price behavior to deliver actionable levels and trend bias.
🔍 Core Methodology
Weekly Foundation Logic:
The first psychological high and low of the current week form the initial range (spread). This spread becomes the anchor for the rest of the week’s levels.
Breakout-Based Scaling:
The indicator detects the largest directional breakout from the previous week's psychological high or low. This move determines how many dynamic levels are generated for the current week, scaled proportionally to the current spread.
Directional Bias Formation:
Typically, the tool respects levels mostly in one direction (based on the breakout bias) early in the week, while adjusting if a stronger directional move is established midweek.
✨ What Makes It Unique
Automatic Asset Detection:
Automatically adjusts calculations based on whether the chart is Forex, Crypto, Stocks, or Indices – with an optional manual override.
Dynamic Extra Levels:
Extra psychological levels are calculated using dynamic array logic, scaling with weekly volatility. This mirrors a manual process developed by trader Dave (HaighTech), now fully automated.
Live Weekly Tracking:
Users can choose to automatically track this week’s evolving high/low range or manually input fixed boundaries.
Midpoints & Multi-Tiered Zones:
Each main and extra level is optionally split into midpoints, providing granular insight and tighter control.
⚙️ Features & Usage
Custom Display Controls:
Independently toggle standard levels, extra breakout levels, labels, and historical data.
Smart Session Handling:
Correct timezone & DST awareness for NY, UK, and Sydney markets. Weekly/daily start logic adapts per asset type.
Advanced Volatility Mapping:
Includes weekly high, low, and average levels, as well as a rolling monthly average based on the prior breakout structure.
Alerts & Backtesting:
Alerts trigger on price interaction with key levels. Historical plots enable review and strategy refinement.
✅ Ideal For Traders Who Want To:
Trade using psychological zones and adaptive breakout logic
Project early-week levels and adapt to real-time market direction
Use auto-adjusting support/resistance levels tailored to volatility
Leverage manually inspired but automated zone mapping for faster decision-making
Siyonacci-powerWith this indicator:
Volume momentum volume line filters the trend.
ATR bands control volatility.
You get alerts for volume mismatch.
MSB peak-bottom breakouts are visible.
MACD momentum histogram in the bottom panel confirms the strength of the signal.
Smart Directional Fib Zone (Selectable Session)🎯 Overview
This indicator plots a dynamic Fibonacci zone between the 0.5 and 0.618 levels , calculated from the previous day’s price action , and is designed specifically for intraday traders.
It visually highlights key retracement or reaction areas where the market often pauses or reverses.
🔍 How it works
At the start of each day, the script automatically captures:
the previous day’s open (pdo),
high (pdh),
low (pdl),
and close (pdc).
It then determines if the previous day was bullish (Close > Open) or bearish (Close < Open).
Based on that:
If the previous day was bullish, it projects the Fibonacci levels down from the high (typical for expecting retracements).
If bearish, it projects them up from the low.
The two key levels are:
0.5 (50%) retracement / projection
0.618 (61.8%) retracement / projection
A colored zone is plotted between these levels to act as a leading guide for intraday setups.
⏰ Time filtering & session customization
A unique feature is the dynamic session filtering:
By default, the zone is only plotted during active market hours, keeping your chart clean outside trading hours.
The script provides a dropdown selector so you can quickly switch between:
India session (9:15 to 15:30)
Europe session (9:00 to 17:30)
US session (9:30 to 16:00)
Or even define your own custom session times.
This makes it ideal for intraday traders in any region.
🎨 Visual features
The fill zone changes color based on the previous day’s sentiment:
Green zone if the previous day was bullish
Red zone if the previous day was bearish
🚨 Alerts
The script includes an alert condition, so you can easily set up TradingView alerts to notify you when:
Price enters the Fibonacci zone.
This is extremely helpful for catching retracements or reversals without staring at the screen all day.
⚙️ How to use
✅ Works on any intraday timeframe (1 min, 5 min, 15 min, etc.).
✅ Simply add it to your chart, pick your session in the dropdown, and watch the Fibonacci zone automatically adjust to your selected market hours.
Use it as a confluence tool alongside other indicators like VWAP, EMAs, Bollinger Bands, or price action patterns to time entries and exits.
💪 Why this is powerful
This is more than a simple Fib retracement tool:
It dynamically adapts to the previous day’s sentiment, helping you trade in alignment with recent market psychology.
The session filtering ensures your charts are focused only on the periods
Golden & Death CrossHow it works:
This script plots the 50-day and 200-day SMAs, marks golden/death crosses with visual signals, and sets alerts for crossovers.
Customization: Adjust the MA lengths (e.g., 20/100 for faster signals) or switch to EMAs using ta.ema(). Add volume or RSI filters to reduce false signals.
Application: Apply this to BTC/USDT or XAU/USD charts. Combine with support/resistance levels or macroeconomic news for better accuracy.
DAX Setup ScreenerPine Script – Setup Screener
This code detects:
Range trading zone
Breakout long & breakdown short signals
With visual overlay
Use it like this:
Adjust rangeHigh, rangeLow, and breakoutBuffer
Enabled: Draws signals on the live chart