Pullback Trading Tool R5-65 by JustUncleLBy request this is an updated version of the "PullBack Trading Tool": removes experimental "OCC" channel, added option to display ribbons or just single moving average lines, added alert arrows for "PB" exits, added alertcondition for TV alarm subsystem, added some extract options for Pivot points and general cleanup of code.
Description:
This project incorporates the majority of the indicators needed to analyse and trade Trends for Pullbacks, swings and reversals.
Incorporated within this tool are the following indicators:
1. Major industry (Banks) recognised important EMAs in an EMA Ribbon:
Lime = EMA5 (Optional Display)
DodgerBlue = EMA12 (Optional Display)
Red = EMA36 (Optional display)
Green = EMA89
Blue = EMA200
Black = EMA633
2. The 5 EMA (default) High/Low/Close Price Action Channel (PAC), the PAC channel display is disabled by default.
3. Optionally display Fractals and optional Fractal levels
4. Optional HH, LH, LL, HL finder.
5. Optional Buy/Sell "PB" exit Alerts with Optional 200EMA filter.
6. Coloured coded Bar high lighting based on the PAC:
blue = bar closed above PAC
red = bar closed below PAC
gray = bar closed inside PAC
7. Alert condition sent to TradingView's Alarm subsystem for PB exits.
8. Pivot points with optional labels.
9. EMA5-12 Ribbon is displayed by default.
10.EMA12-36 Ribbon is displayed by default
Set up and hints:
I am unable to provide a full description here, as Pullback Trading incorporates a full trading Methodology, there are a number of articles and books written on the subject.
Set the chart to Heikin Ashi Candles (optional).
I also add a "Sweetspot Gold R3" indicator to the chart as well to help with support and resistance finding and shows where the important "00" lines are.
First on a weekly basis say Sunday night or Monday morning, analyse the Daily and Weekly charts to establish overall trends, and support/resistant levels. Draw significant mini trend lines (2/3 TL), vertical trend lines (VTL) and S/R levels. Can use the Pivots points to guide VTL drawing and Fractals to help guide 2/3 TL drawing.
Once the trend direction and any potential major reversals highlighted, drop down to lower timeframe chart and draw appropriate mini Trend line (2/3 TL) matching the established momentum direction. Take note of potential pull backs from and of the EMAs, in particular the EMA5-12 ribbon, EMA12-36 Ribbon and the 200EMA. Can use the Pivots and/or Fractals points to guide your 2/3 TL drawing.
Set a TradingView alarm on the "PBTOOL alert", with the default settings this normally occurs before or during the Break of the manually drawn TL lines.
Once alerted check to see if the TL is broken and is returning to trend away from the EMA lines, this is indicated by bar colour change to trend directional colour.
You can trade that alert or drop down to even lower time frames and perform the same TL analysis there to find trades at the lower TF. Trading at lower TF you will allow tighter Stop loss settings.
Other than the "SweetSpot Gold R3" indicator, you should not need any other indicator to successfully trade trends for Pullbacks and reversals. If you really want another indicator I suggest a momentum one for example: AO ( Awesome Oscillator ), MACD or Squeeze Momentum.
Cerca negli script per "weekly"
KK_Average Directional Index (ADX) Higher TFHey guys,
sometimes you just want to plot an Indicator value from a higher Timeframe on your Chart. For most Indicators this is pretty straightforward however there is one Indicator that has been giving me quite a headache while trying to do this: The Average Directional Index . Anyway after going through almost 200 versions of this script I finally found a solution that works and thought I would share this with you, since I'm sure some of you have encountered the same problem.
How it works
Go to your desired Instrument/Timeframe and add the Script
Under Settings in the field for "Higher ADX TF" put the Timeframe-code you want to pull the ADX Values from.
- Codes: Monthly - M, Weekly W, Daily - D
- Codes Intraday: The amount of hours in minutes, e.g. if you want to pull values from the 4h-Chart the code is 240 (60 for 1h, 15 for 15m ...)
In some cases (see below) the calculation might not be correct. So make sure the values are correct:
a) Write down the latest ADX of the higher TF while you are on the lower TF
b) Switch the Resolution to the higher TF
c) Compare the value you have just written down to the next to last value. They should be the same.
d) Switch back the Resolution to the lower TF and you're good to go.
Limitations
You can only pull values from higher Timeframes, e.g. you're on a 4h Chart, so you can only pull values from the Daily, Weekly and Monthly Chart. You can't pull values from the 1h Chart.
You can only pull values from Timeframes, where the higher Timeframe Close always has a corresponding Close on the lower Timeframe, e.g. you can't pull values from the 3h Chart when you are on a 2h Chart. This should be pretty rare.
The Script needs a certain amount of Data from the Higher TF before the calculated values are correct. I have tested this on several Instruments and the Script usually needs approximately 100 Bars on the higher Timeframe (often less) for the values to be correct (error < 1%).
So when the difference between your lower Timeframe and you higher Timeframe is large, e.g. you want to pull the Daily ADX value on a 15m-Chart, the calculation can be wrong. This can lead to errors in 2 Cases:
a) Backtesting: When you go over old data and get close to the last available Bar the Data will be wrong. This will limit the amount of data you can backtest.
b) Live values: When the difference between the two Timeframes is too large, it is possible that even live values are wrong, e.g. this will be the case when you are trying to pull the Daily ADX value on a 5 minute Chart. Always check if the calculation works with your desired combination of Timeframes before using it (see above).
I hope this is useful for you and whish all of you successful trading!
Best regards
Kurbelklaus
Range Delta Heiken Ashi Bollinger|Buy/Sell |OB & OS CandlesPurpose: Mathematically represent buying and selling zones for Daily/ Weekly Traders
Indicator: Calculates moving average of the candle's body with respect to the daily trading range
Buy and Sell Signals: Calculates Bollinger Range with Max/Min and Buy/Sell Bollinger signals
Overbought and Oversold Signals: Candlesticks show overbought and oversold conditions
Level of Difficulty: This indicator was written to make life easier. Follow the Rules and anyone can use it.
Rule 1: Buy when candlestick is below "purple" line
Rule 2: Sell when candlestick is above "blue" line
Rule 3: Add bollinger bands to your currency chart
Rule 4: Confirm indicator bollinger bands with currency chart's bollinger bands
Rule 5: Trade in direction of trend
Rule 6: As with all trading; no indicators are fool proof. Please trade responsibly.
****Full Customization for you****
Suggestion 1: Add bollinger bands to currency chart to improve probability
Suggestion 2: Trade the direction of Trend
Suggestion 3: This indicator works very well with Ranged Markets (or use Suggestion 2)
Disclaimer 1: This Indicator words best on Daily and Weekly time frames
Disclaimer 2: Enjoy the Indicator and feel free to ADD COMMENTS; I worked very hard for you and me :)
Auto Pivots with S/R LevelsPlots out the pivot point with corresponding Support / Resistance levels.
It will automatically determine the time frame to calculate pivots based on the current view resolution.
Monthly resolution will pull a yearly pivot
Weekly resolution will pull a monthly pivot
Daily view will pull a weekly pivot
Intraday view will pull a daily pivot.
You have the choice of using Standard pivots or Fibonacci pivots
You can choose to only display the most recent pivot or all pivots
You can chose to extend the most recent pivot across the whole chart as a price line
TODO:
- Add in the ability to choose how far back historically to display pivots
- Add in calculations for smaller resolutions to calculate off lower time frames. EX: minute resolution should pull hour time frame to calculate pivots.
Herrick Payoff Index for Quandl DataUpdate to my previous Herrick Payoff Index script. This script pulls Quandl futures data with daily open interest. The prior version only used the weekly Commitment of Traders open interest data so could only be used on weekly bars. Note: Must use Quandl Symbol methodology in chart (i.e. enter symbol as QUANDL:CHRIS/CME_FC2, QUANDL:CME/FCX2016, ect.). Unfortunately, I haven't been able to program this to pull from the embedded futures data.
UCS_S_Stochastic Pop and Drop StrategyMy Contribution to Jake Bernstein Educational Series, Initiated by Chris Moody.
The Stochastic Pop was developed by Jake Bernstein and modified by David Steckler. Bernstein's original Stochastic Pop is a trading strategy that identifies price pops when the Stochastic Oscillator surges above 80. Steckler modified this strategy by adding conditional filters using the Average Directional Index (ADX) and the weekly Stochastic Oscillator.
Modifications
1. Weekly Stochastic Oscillator for Trading Bias = 5* Daily Stochastic
2. Optional Volume Confirmation, Custom Average Volume Length
Future Plans
1. Adding Triggers for Entry, Stops and Target. - This will be release when we have ability to code the complete Strategy. Although it can be done with the current pinescript options, it would be far more easier if we have strategy ability.
Link for Educational Purpose
stockcharts.com
-
Good Luck Trading
UCSgears
Week days colorsThe “Week Days Colors” indicator highlights each day of the week with a custom background color on the chart. You can assign a different color to each weekday (Monday to Sunday) using the input settings. This makes it easy to visually distinguish days on the chart, helping with pattern recognition, trading strategy timing, or simply improving chart readability.
Features:
• Custom background color for each day of the week
• Fully customizable through color inputs
• Works on any timeframe
• Helps visualize weekly patterns and cycles
VEP - Volume Explosion Predictor💥 VEP - Volume Explosion Predictor
General Overview
The Volume Explosion Predictor (VEP) is an advanced indicator that analyzes volume peaks to predict when the next volume explosion might occur. Using statistical analysis on historical patterns, it provides accurate probabilities on moments of greater trading activity.
MAIN FEATURES
🎯 Intelligent volume peak detection
Automatically identifies significant volume peaks
Anti-consecutive filter to avoid redundant signals
Customizable threshold for detection sensitivity
📊 Advanced statistical analysis
Calculates the average distance between volume peaks
Monitors the number of sessions without peaks
Tracks the maximum historical range without activity
🔮 Predictive system
Dynamic probability: Calculates the probability of an imminent peak
Visual indicators: Background colors that change based on probability
Time forecasts: Estimates remaining sessions to the next peak
📈 Visual signals
Colored arrows: Green for bullish peaks, red for bearish peaks
Statistics table: Complete real-time overview
ALERT SYSTEM
🚨 Three Alert Levels
New Valid Volume Peak: New peak detected
Approaching Prediction: Increasing probability
High Peak Probability: High probability of explosion
HOW TO USE IT
📋 Recommended setup
Timeframe : Works on all timeframes but daily, weekly or monthly timeframe usage is recommended. In any case, it should always be used consistently with your time horizon
Markets : Stocks, crypto, forex, commodities
Threshold for volume peak realization : It's recommended to start with 2.0x (i.e., twice the volume average) for normal markets, 1.5x for more volatile markets. This parameter can be set in the settings as desired
🎨 Visual interpretation
Green Arrows : Peak during bullish candle
Red Arrows : Peak during bearish candle
Red Background : High probability (>90%) of new peak
Yellow Background : Medium probability (50-70%)
📊 STATISTICS TABLE
The table shows:
Total peaks analyzed
Average distance between peaks
Current sessions without peaks
Forecast remaining sessions
Percentage probability
Volume threshold needed for peak realization
STRATEGIC ADVANTAGES
🎯 For Day Traders
Anticipates moments of greater volatility for analysis, supporting the evaluation of trading setups and providing context on low volume periods
📈 For Swing Traders
Identifies high-probability volume patterns, supporting breakout analysis with volume and improving understanding of market timing
🔍 For Technical Analysts
Understands the stock's volume patterns.
Helps evaluate the historical market interest and supports quantitative research and analysis
OTHER THINGS TO KNOW...
A) Anti-Consecutive Algorithm : allows to avoid multiple and consecutive volume signals and peaks at close range
B) Statistical Validation : Uses standard deviation for accuracy
C) Memory Management : Limits historical data for optimal performance
D) Compatibility : Works with all TradingView chart types
⚠️ IMPORTANT DISCLAIMER
This indicator is exclusively a technical analysis tool for studying volume patterns. It does not provide investment advice, trading signals or entry/exit points. All trading decisions are at the complete discretion and responsibility of the user. Always use in combination with other technical and fundamental analysis and proper risk management.
DESCRIZIONE IN ITALIANO
💥 VEP - Volume Explosion Predictor
Panoramica Generale
Il Volume Explosion Predictor (VEP) è un indicatore avanzato che analizza i picchi di volume per prevedere quando potrebbe verificarsi la prossima esplosione di volume. Utilizzando analisi statistiche sui pattern storici, fornisce probabilità accurate sui momenti di maggiore attività di trading.
CARATTERISTICHE PRINCIPALI
🎯 Rilevamento intelligente dei picchi di volume
- Identifica automaticamente i picchi di volume significativi
- Filtro anti-consecutivo per evitare segnali ridondanti
- Soglia personalizzabile per la sensibilità del rilevamento
📊 Analisi statistica avanzata
Calcola la distanza media tra i picchi di volume
Monitora il numero di sessioni senza picchi
Traccia il range massimo storico senza attività
🔮 Sistema predittivo
Probabilità dinamica: Calcola la probabilità di un imminente picco
Indicatori visivi: Colori di sfondo che cambiano in base alla probabilità
Previsioni temporali: Stima delle sessioni rimanenti al prossimo picco
📈 Segnali visivi
1) Frecce colorate: Verdi per picchi rialzisti, rosse per ribassisti
2) Tabella statistiche: Panoramica completa in tempo reale
SISTEMA DI ALERT
🚨 Tre Livelli di Alert
1) New Valid Volume Peak: Nuovo picco rilevato
2) Approaching Prediction: Probabilità in aumento
3) High Peak Probability: Alta probabilità di esplosione
COME UTILIZZARLO
📋 Setup consigliato
- Timeframe : Funziona su tutti i timeframe ma è consigliabile un utilizzo su timeframe giornaliero, settimanale o mensile. In ogni caso va sempre utilizzato coerentemente con il proprio orizzonte temporale
- Mercati : Azioni, crypto, forex, commodities
- Limite affinché si realizzi il picco di volumi : Si consiglia di iniziare con 2.0x (ovvero due volte la media dei volumi) per mercati normali, 1.5x per mercati più volatili. Questo parametro può essere settato nelle impostazioni a proprio piacimento
🎨 Interpretazione visuale
Frecce Verdi : Picco durante candela rialzista
Frecce Rosse : Picco durante candela ribassista
Sfondo Rosso : Alta probabilità (>90%) di nuovo picco
Sfondo Giallo : Probabilità media (50-70%)
📊 TABELLA STATISTICHE
La tabella mostra:
1. Totale picchi analizzati
2. Distanza media tra picchi
3. Sessioni attuali senza picchi
4. Previsione sessioni rimanenti
5. Probabilità percentuale
6. Soglia volume necessaria affinché si realizzi il picco di volumi
VANTAGGI STRATEGICI
🎯 Per Day Traders
Anticipa i momenti di maggiore volatilità per analisi, supportando la valutazione dei setup di trading e fornendo al contempo un contesto sui periodi di basso volume
📈 Per Swing Traders
1. Identifica pattern di volume ad alta probabilità, supportando l'analisi dei breakout con volume e migliorando la comprensione dei tempi di mercato
🔍 Per Analisti Tecnici
Comprende i pattern di volume del titolo.
Aiuta a fare una valutazione dell'interesse storico del mercato ed è di supporto alla ricerca e analisi quantitativa
ALTRE COSE DA SAPERE...
A) Algoritmo Anti-Consecutivo : permette di evitare segnali e picchi di volume multipli e consecutivi multipli a distanza ravvicinata
B) Validazione Statistica : Utilizza deviazione standard per l'accuratezza
C) Gestione Memoria : Limita i dati storici per performance ottimali
D) Compatibilità : Funziona con tutti i tipi di grafico TradingView
⚠️ DISCLAIMER IMPORTANTE
Questo indicatore è esclusivamente uno strumento di analisi tecnica per lo studio dei pattern di volume. Non fornisce consigli di investimento, segnali di trading o punti di ingresso/uscita. Tutte le decisioni di trading sono a completa discrezione e responsabilità dell'utente. Utilizzare sempre in combinazione con altre analisi tecniche, fondamentali e una adeguata gestione del rischio.
Logarithmic Moving Average (LMA) [QuantAlgo]🟢 Overview
The Logarithmic Moving Average (LMA) uses advanced logarithmic weighting to create a dynamic trend-following indicator that prioritizes recent price action while maintaining statistical significance. Unlike traditional moving averages that use linear or exponential weights, this indicator employs logarithmic decay functions to create a more sophisticated price averaging system that adapts to market volatility and momentum conditions.
The indicator displays a smoothed signal line that oscillates around zero, with positive values indicating bullish momentum and negative values indicating bearish momentum. The signal incorporates trend quality assessment, momentum confirmation, and multiple filtering mechanisms to help traders and investors identify trend continuation and reversal opportunities across different timeframes and asset classes.
🟢 How It Works
The indicator's core innovation lies in its logarithmic weighting system, where weights are calculated using the formula: w = 1.0 / math.pow(math.log(i + steepness), 2) The steepness parameter controls how aggressively recent data is prioritized over historical data, creating a dynamic weight decay that can be fine-tuned for different trading styles. This logarithmic approach provides more nuanced weight distribution compared to exponential moving averages, offering better responsiveness while maintaining stability.
The LMA calculation combines multiple sophisticated components. First, it calculates the logarithmic weighted average of closing prices. Then it measures the slope of this average over a 10-period lookback: lmaSlope = (lma - lma ) / lma * 100 The system also incorporates trend quality assessment using R-squared correlation analysis of log-transformed prices, measuring how well the price data fits a linear trend model over the specified period.
The final signal generation uses the formula: signal = lmaSlope * (0.5 + rSquared * 0.5) which combines the LMA slope with trend quality weighting. When momentum confirmation is enabled, the indicator calculates annualized log-return momentum and applies a multiplier when the momentum direction aligns with the signal direction, strengthening confirmed signals while filtering out weak or counter-trend movements.
🟢 How to Use
1. Signal Interpretation and Threshold Zones
Positive Values (Above Zero): LMA slope indicating bullish momentum with upward price trajectory relative to logarithmic baseline
Negative Values (Below Zero): LMA slope indicating bearish momentum with downward price trajectory relative to logarithmic baseline
Zero Line Crosses: Signal transitions between bullish and bearish regimes, indicating potential trend changes
Long Entry Threshold Zone: Area above positive threshold (default 0.5) indicating confirmed bullish signals suitable for long positions
Short Entry Threshold Zone: Area below negative threshold (default -0.5) indicating confirmed bearish signals suitable for short positions
Extreme Values: Signals exceeding ±1.0 represent strong momentum conditions with higher probability of continuation
2. Momentum Confirmation and Visual Analysis
Signal Color Intensity: Gradient coloring shows signal strength, with brighter colors indicating stronger momentum
Bar Coloring: Optional price bar coloring matches signal direction for quick visual trend identification
Position Labels: Real-time position classification (Bullish/Bearish/Neutral) displayed on the latest bar
Momentum Weight Factor: When short-term log-return momentum aligns with LMA signal direction, the signal receives additional weight confirmation
Trend Quality Component: R-squared values weight the signal strength, with higher correlation indicating more reliable trend conditions
3. Examples: Preconfigured Settings
Default: Universally applicable configuration balanced for medium-term investing and general trading across multiple timeframes and asset classes.
Scalping: Highly responsive setup with shorter period and higher steepness for ultra-short-term trades on 1-15 minute charts, optimized for quick momentum shifts.
Swing Trading: Extended period with moderate steepness and increased smoothing for multi-day positions, designed to filter noise while capturing larger price swings on 1-4 hour and daily charts.
Trend Following: Maximum smoothing with lower steepness for established trend identification, generating fewer but more reliable signals optimal for daily and weekly timeframes.
Mean Reversion: Shorter period with high steepness for counter-trend strategies, more sensitive to extreme moves and reversal opportunities in ranging market conditions.
Monday's Range by Fortis80This TradingView indicator displays the Monday’s high and low range clearly across all timeframes, making it easy for traders to identify weekly key levels.
Exclusive for Fortis80 Members.
Squeeze Breakout Pro🔥 What This Script Does
This is a Breakout Strength Scanner with Squeeze + Pattern Range + Volume Confirmation + Risk Management + Take Profits.
✅ Core Functions:
Squeeze Detector:
Finds low volatility zones using Bollinger Band width compression.
Marks them with a “Squeeze” label — this signals that a big move is likely coming soon.
Pattern Range Detection:
Automatically identifies recent pivot highs (resistance) and pivot lows (support) using the pivotLen.
Draws the current consolidation range visually with horizontal lines.
Breakout Confirmation:
Requires:
✅ A break above resistance or below support.
✅ Confirmed with above-average volume.
✅ Must occur while in a volatility squeeze.
Plots arrows:
🔼 Green Up Arrow = Confirmed Bullish Breakout.
🔽 Red Down Arrow = Confirmed Bearish Breakout.
Trade Management Built-In:
Stop Loss: Just beyond the opposite side of the pattern range.
Take Profits:
✅ TP1 = 1.5x risk.
✅ TP2 = 2x risk.
Position Size Calculator:
Based on your input account size (accountBal) and risk percentage (riskPct).
Shows how many contracts, shares, or units to buy/sell to risk exactly that % of your account.
Higher Timeframe Trend Filter:
Default is 4-hour trend filter (can be changed).
✅ Only shows if the higher timeframe trend is Bullish (EMA50 > EMA200) or Bearish.
Displayed on the dashboard.
📊 How to Use It Step-By-Step
🟧 1. Look for a Squeeze:
A “Squeeze” label will appear.
This means price is coiled tight — a breakout is likely.
🟩 2. Wait for a Breakout Arrow:
🔼 Green Arrow: Bullish breakout (price breaks resistance + volume confirms + squeeze active).
🔽 Red Arrow: Bearish breakout (price breaks support + volume confirms + squeeze active).
🟥 3. Check the Dashboard:
✅ Trend Bias: Should ideally match your breakout.
If the higher timeframe is Bullish, long breakouts have better odds.
If Bearish, short breakouts are higher probability.
✅ Vol Confirm: Will say “Yes” if the volume condition is met.
🏹 4. Manage the Trade (Auto Levels):
The script draws:
🔴 Stop Loss Line (below range for longs, above for shorts).
🟢 Take Profit 1 (1.5x risk).
🟢 Take Profit 2 (2x risk).
Use these as guidelines for exits.
💰 5. Use Position Size Display:
Check the TP and SL distances and the suggested position size based on your account balance and risk percentage.
🚀 Pro Tips for Maximum Success
✅ Use Trend Confluence:
Only trade long breakouts when the higher timeframe trend is Bullish (EMA50 > EMA200).
Only trade short breakouts when the higher timeframe trend is Bearish.
✅ Avoid Fakeouts:
If a breakout arrow forms but the candle closes far away from the pattern breakout — wait for a retest or confirmation.
Higher volume + clean breakout works better than low-volume squeezes.
✅ Best Timeframes:
4H to Daily: For swing trades.
15m to 1H: For intraday trades (adjust htf to "240" for 4H trend confirmation even on lower charts).
✅ Increase Win Rate:
Use this script with key support/resistance zones, weekly ranges, or fib retracements.
Breakouts that happen near macro key levels have the highest follow-through.
✅ Set Alerts:
Right-click the breakout arrow or use alertcondition() events in the script.
Set alerts for:
📈 Breakout UP
📉 Breakout DOWN
🏹 Squeeze Active (prep for breakout)
✅ Walk Away Once In:
Let TP1 or TP2 hit.
Or move stop to breakeven after TP1 hits for free runners.
🔥 What Makes This Script Powerful:
Combines price action (pattern range) + volatility squeeze + volume confirmation + trend bias + risk management.
Most traders use these individually. This does it all in one clean tool.
💎 Professional Edge:
This is the type of script that turns reactive trading into systematic trading. No guessing. Clean rules. Repeatable.
Multi-Timeframe EMA Alignment + Listing InfoEnhanced EMA Alignment Checks
Original 4-EMA rows: Check 10EMA ≥ 20EMA ≥ 50EMA ≥ 200EMA for all timeframes
New 3-EMA rows: Check 10EMA ≥ 20EMA ≥ 50EMA (without 200EMA requirement) for weekly and monthly timeframes
Visual Distinction
White background: 4-EMA alignment rows (standard check)
Yellow background: 3-EMA alignment rows (less restrictive check)
Asterisk notation: "1W*" and "1M*" indicate the 3-EMA version
Complete Table Layout
1H: 4-EMA alignment (10≥20≥50≥200)
1D: 4-EMA alignment (10≥20≥50≥200)
1W: 4-EMA alignment (10≥20≥50≥200)
1M: 4-EMA alignment (10≥20≥50≥200)
1W* : 3-EMA alignment (10≥20≥50) - NEW
1M* : 3-EMA alignment (10≥20≥50) - NEW
Separator line
Since List: Weeks/months since listing
Benefits of This Setup:
Comprehensive Analysis: You can now see both strict (4-EMA) and relaxed (3-EMA) trend conditions
Better Entry Signals: The 3-EMA alignment might trigger earlier than 4-EMA, providing potential early entry signals
Trend Strength Assessment: When both 3-EMA and 4-EMA are aligned, it indicates very strong trend conditions
Flexible Strategy: You can use 3-EMA for trend following and 4-EMA for confirmation
The table now provides a complete multi-timeframe trend analysis with both conservative and aggressive alignment criteria, giving you more flexibility in your trading decisions.
IDKFAIDKFA - Advanced Order Blocks & Volume Profile with Market Structure Analysis
Why IDKFA?
Named after the legendary DOOM cheat code that gives players "all weapons and full ammo," IDKFA provides traders with a comprehensive arsenal of market analysis tools. Just as the cheat code arms players with everything needed for combat, this indicator equips traders with essential market structure tools: Order Blocks, Volume Profile, LVN/HVN areas, Fibonacci retracements, and intelligent buy/sell signals - all in one unified system.
Core Features
Order Blocks Detection
Automatically identifies institutional order blocks using pivot high/low analysis
Extends blocks dynamically until price interaction occurs
Bullish blocks (demand zones) and bearish blocks (supply zones)
Customizable opacity and extend functionality
Advanced Volume Profile
Real-time volume profile calculation for multiple session types
Point of Control (POC), Value Area High (VAH), and Value Area Low (VAL)
Mode 1: Side-by-side bull/bear volume display
Mode 2: Overlapped volume display with percentage analysis
Shows buying vs selling pressure at each price level
LVN/HVN Area Detection
Low Volume Nodes (LVN): Areas below VAL where price moves quickly
High Volume Nodes (HVN): Areas above VAH with strong resistance
NPOC (Naked Point of Control): Single print areas within Value Area
Volume-based gradient coloring shows relative activity levels
Smart Fibonacci Retracements
Auto-detects trend direction for proper fibonacci orientation
Dynamic color coding: Red levels in uptrends, Gold in downtrends
Special 88.6% level turns lime green in downtrends
Key levels: 23.6%, 38.2%, 50%, 61.8%, 65%, 78.6%, 88.6%
Intelligent Signal System
Works best on higher timeframes
Identifies high-probability reversal setups at key levels
Buy signals: Large bearish rejection followed by bullish reclaim
Sell signals: Large bullish rejection followed by bearish breakdown
Signals only trigger near significant support/resistance areas
Signal Analysis & Usage Guidelines
Buy Signal Mechanics
The buy signal triggers when:
Previous candle shows significant bearish movement (minimum ATR multiplier)
Current candle reclaims a configurable percentage of the previous candle's range
Price is near a key support level (order blocks, fibonacci, volume levels)
Sell Signal Mechanics
The sell signal triggers when:
Previous candle shows significant bullish movement (minimum ATR multiplier)
Current candle rejects below a configurable percentage of the previous candle's range
Price is near a key resistance level (order blocks, fibonacci, volume levels)
When to TAKE Signals
High Probability Buy Signals:
Signal appears AT or BELOW the VAL (Value Area Low)
Signal occurs at bullish order block confluence
Price is in LVN area below VAL (momentum acceleration zone)
Signal aligns with fibonacci 61.8% or 78.6% support
Multiple session POC levels provide support confluence
Previous session's VAL acting as current support
High Probability Sell Signals:
Signal appears AT or ABOVE the VAH (Value Area High)
Signal occurs at bearish order block confluence
Price is in HVN area above VAH (heavy resistance zone)
Signal aligns with fibonacci 61.8% or 78.6% resistance
Multiple session POC levels provide resistance confluence
Previous session's VAH acting as current resistance
When to AVOID Signals
Avoid Buy Signals When:
Signal appears ABOVE the VAH (buying into resistance)
Price is in HVN red zones (high volume resistance areas)
No clear support structure below current price
Volume profile shows heavy selling pressure (high bear percentages)
Signal occurs during low-volume periods between major sessions
Multiple bearish order blocks exist below current price
Avoid Sell Signals When:
Signal appears BELOW the VAL (selling into support)
Price is in LVN green zones (momentum could continue)
No clear resistance structure above current price
Volume profile shows heavy buying pressure (high bull percentages)
Signal occurs during Asian session ranges without clear direction
Multiple bullish order blocks exist above current price
Volume Profile Context for Signals
Understanding Bull/Bear Percentages:
70%+ Bull dominance at a level = Strong support expected
70%+ Bear dominance at a level = Strong resistance expected
50/50 Split = Neutral zone, less predictable
Use percentages to gauge conviction behind moves
POC (Point of Control) Interactions:
Signals above POC in uptrend = Higher probability
Signals below POC in downtrend = Higher probability
Signals against POC bias require extra confirmation
POC often acts as magnetic level for price return
Trading Strategies
Strategy 1: VAL/VAH Bounce Strategy
Wait for price to approach VAL (support) or VAH (resistance)
Look for signal confirmation at these critical levels
Enter with tight stops beyond the Value Area
Target opposite boundary or next session's levels
Strategy 2: Order Block + Volume Confluence
Identify order block alignment with VAL/VAH
Wait for signal within the confluence zone
Enter on signal with stop beyond order block
Use LVN areas as acceleration zones for targets
Strategy 3: LVN/HVN Strategy
LVN (Green) Areas: "Go Zones" - expect quick price movement through low volume
HVN (Red) Areas: "Stop Zones" - expect resistance and potential reversals
NPOC Areas: "Fill Zones" - price often returns to fill single print gaps
Strategy 4: Multi-Session Analysis
Use Daily/Weekly for major structure context
Use 4H for intermediate levels
Use 1H for precise entry timing
Ensure all timeframes align before taking signals
Strategy 5: Fibonacci + Volume Profile
Buy signals at 61.8% or 78.6% fibonacci near VAL
Sell signals at 61.8% or 78.6% fibonacci near VAH
Use 88.6% level as final support/resistance before major moves
50% level often aligns with POC for confluence
Signal Quality Assessment
Grade A Signals (Highest Probability):
Signal at VAL/VAH with order block confluence
Fibonacci level alignment (61.8%, 78.6%)
Volume profile shows 70%+ dominance in signal direction
Multiple timeframe structure alignment
Signal occurs during high-volume sessions (London/NY)
Grade B Signals (Moderate Probability):
Signal near POC with some confluence
Fibonacci 50% or 38.2% alignment
Mixed volume profile readings (50-70% dominance)
Some timeframe alignment present
Signal during overlap sessions
Grade C Signals (Lower Probability):
Signal with minimal confluence
Weak fibonacci alignment or none
Volume profile neutral or against signal
Conflicting timeframe signals
Signal during low-volume periods
Risk Management Guidelines
Position Sizing Based on Signal Quality:
Grade A: Standard position size
Grade B: Reduced position size (50-75%)
Grade C: Minimal position size (25%) or skip entirely
Stop Loss Placement:
Beyond order block boundaries
Outside Value Area (VAL/VAH)
Below/above fibonacci confluence levels
Account for session volatility ranges
Profit Targets:
First target: Opposite VAL/VAH boundary
Second target: Next session's key levels
Final target: Major order blocks or fibonacci extensions
Credits & Attribution
Original components derived from:
Market Sessions & Volume Profile by © Leviathan (Mozilla Public License 2.0)
Volume Profile elements inspired by @LonesomeTheBlue's volume profile script
Pivot Order Blocks by TradingWolf / © MensaTrader (Mozilla Public License 2.0)
Auto Fibonacci Retracement code (public domain)
Significant enhancements and modifications include:
Advanced LVN/HVN detection and visualization
Bull/Bear percentage analysis for Mode 2/3
Comprehensive alert system with market context
Integrated buy/sell signals at key levels
Performance optimizations and extended session support
Enhanced Mode 2/3 with percentage pressure analysis
Important Disclaimers
This indicator is a technical analysis tool designed for educational purposes. It does not provide financial advice, investment recommendations, or trading signals that guarantee profits. All trading involves substantial risk of loss, and past performance does not guarantee future results. Users should conduct their own research, understand the risks involved, and consider consulting with qualified financial advisors before making trading decisions. The signals and analysis provided are based on historical price patterns and volume data, which may not predict future market movements accurately.
Best Practices
Never trade signals blindly - always consider volume profile context
Wait for confluence between multiple tools before entering
Respect the Value Area - avoid buying above VAH or selling below VAL
Use session context - Asian ranges vs London/NY breakouts
Practice proper risk management - position size based on signal quality
Understand the bigger picture - use multiple timeframes for context
Remember: Like the IDKFA cheat code, having all the tools doesn't guarantee success. The key is learning to use them together effectively and understanding when NOT to take a signal is often more important than knowing when to take one.
X HL QA market structure tool designed to frame price action within a defined context of prior session dynamics. It accomplishes this by anchoring a set of reference levels to the high, low, and open prices of a user-specified higher timeframe (e.g., 4H, 1D, etc.) and projecting those levels onto the current chart for ongoing analysis.
At its core, the indicator establishes a reference range—derived from the previous completed instance of the selected timeframe—and overlays this on the current timeframe. This range serves as a foundational structure for price interpretation in the current session.
Building upon this framework, the script constructs a set of symmetrical quadrants (or deviation zones) both inside and outside of the prior range. These include:
The midpoint (EQ) of the prior range
Levels at ±0.25x, ±0.75x, ±1.0x, ±1.5x, and ±2.0x the range height
These levels act as contextual zones that traders can use to interpret price behavior—whether it's consolidating within the prior range, approaching fair value (EQ), or expanding into directional continuation or reversal zones beyond the range.
The script operates in both real-time and historical contexts. On live bars, it dynamically updates the key levels to provide an evolving view of current price positioning. Simultaneously, it supports the display of historical levels for past sessions, enabling robust backtesting and comparative analysis of price behavior relative to previous quadrant structures.
Ultimately, this tool serves as a positional map, helping traders assess where price is trading relative to significant levels from the prior session, offering insights into potential support/resistance, overextension, or mean reversion scenarios.
Key Technical Features
Multi-Timeframe Support:
request.security() is used to pull data from a user-defined higher timeframe regardless of the current chart interval.
Visual Flexibility:
Toggle between "line" and "channel" mode.
Line color, width, and visibility are all user-controlled.
Anchoring Options:
Deviation levels can be calculated from either the previous period's open or its EQ (midpoint), giving flexibility depending on analytical preference.
Efficient Labeling:
Labels are only rendered on the last bar and are automatically cleared and redrawn to prevent duplication.
Label style, size, text color, and background color are all user-configurable.
Trading Application
This indicator is especially suited for:
1. Mean Reversion Strategies
When price moves beyond +1.0 or +1.5 deviations from the EQ or open, it may signal overextension and a potential snap back to the midpoint or range.
2. Breakout Confirmation
Sustained price action beyond ±1.0 levels may indicate trend strength or continuation beyond historical balance zones.
3. Contextual Range Awareness
EQ and Open provide structure from which traders can judge whether price is in a state of balance or imbalance.
Labels offer at-a-glance interpretation of key levels across any chosen timeframe.
4. Fractal and Multi-Session Analysis
Analysts can layer daily, weekly, and monthly versions of this indicator to observe confluence or divergence of higher timeframe structure.
MACD Triple divergence signalsThis script is a basic combination of several scripts that I found very useful. It's a MACD divergence on steroids. Instead of using only one plot as a source for detecting divergence, I use all of the plots.
The idea is that if more divergence signals appear—especially after a prolonged downtrend or uptrend—they can be interpreted as a strong divergence signal.
The third divergence signal is taken from the MACD signal line. It has a longer-term lookback range, which could provide a more reliable divergence signal.
The default minimum lookback range is 15, much greater than the usual value of 5. This makes it more suitable for long-term trading or for lower timeframes (lower than 4H) to reduce noise from excessive signals. For timeframes higher than 4H, the setting can be reduced to around 10 or even 5.
For the 1W (weekly) timeframe, try using a value of 3.
I also added a band to give a clear visual of overbought and oversold areas. It works similarly to Bollinger Bands (BB). You can spot when the price is ranging or when a stop-loss hunt occurs (i.e., the price breaks the band).
Please do your homework—backtest it yourself to find which timeframe suits you best. You can also tweak the settings if you find the default values too aggressive or too mild.
I’ve found that MACD is more reliable on timeframes greater than 1H. Personally, I use it on the 4H and 1D timeframes.
in bahasa:
MACD dengan 3 sinyal divergence, kalau muncul lebih banyak, bisa jadi sinyal lebih menyakinkan.
Minimum lookback range default-nya 15 agar tidak muncul terlalu banyak sinyal. 15 lebih panjang, lebih ok. Kalau main di higher timeframe seperti 1D, bisa 5-10, kalau weeky timeframe = 3.
Untuk band, cek ketika plot-nya keluar dari band, itu bisa jadi jackpot, apalagi kalau plot-nya membentuk double bottom.
Backtest sendiri, siapa tahu kalian bisa dapet setting sendiri.
MACD with upper and lower band will give you a clear visual of price movements
More divergence signals are generated and when the price breaks out of the oversold band = jackpot.
Step 1: Draw Thursday HighScript Description: Thursday High Marker
This is an automated charting tool designed to identify the high of each Thursday and display it as a key reference level for future trading sessions.
Core Functionality:
The script's logic is simple and precise. It waits for the trading session on Thursday to complete. At the very beginning of Friday, it looks back, finds the highest price from Thursday, and draws a clean, white horizontal line at that level.
Key Features:
Automatic: You don't need to do anything. The script finds and draws the level on its own every week.
Forward-Looking: The line extends to the right indefinitely, allowing you to see how future price action interacts with this key level.
Self-Cleaning: To keep your chart uncluttered, the script automatically deletes the previous week's line when it draws the new one.
Lightweight: It performs a single, simple task, so it doesn't slow down your chart.
Purpose in Trading:
Traders use this kind of indicator to track significant weekly price points. The high of a late-week session like Thursday is often considered an important liquidity level. A break above this line can signal bullish strength or a "liquidity sweep," making it a valuable point of interest for making trading decisions on Friday and into the following week.
StratNinjaTableStratNinjaTable – Multi-Timeframe The Strat Candle Pattern Table
This Pine Script indicator provides traders with a dynamic table overlay on the chart that displays The Strat candle patterns across multiple selectable timeframes. The table includes:
The candle pattern according to The Strat method (1, 2UP, 2DOWN, 3) for each chosen timeframe
Direction arrows showing bullish (▲), bearish (▼), or neutral (■) candle direction
Real-time countdown timer showing remaining time until the current candle closes, adapting automatically to daily, weekly, monthly, and longer timeframes
User inputs for selecting which timeframes to display and positioning of the table on the chart
The current ticker symbol and chart timeframe displayed prominently
The script is developed using Pine Script version 6 and is inspired by the work of shayy110, who contributed foundational code for The Strat methodology in TradingView.
Naked DWM LevelsThis indicator shows naked Daily, Weekly, Monthly levels
The indicator will automatically delete levels where the same time frame candle close has crossed one of these levels, when it is no longer naked or tapped by a wick.
These are HTF S/R levels that are highly respected for reversals, or even break and retests.
Enjoy!
Accurate Weekly Liquidity Zones + Daily LinesDraws vertical lines for each day of the week
Monday in a unique color
Other days in gray
Marks Buy-Side Liquidity (BSL) — highest high of the last completed week
Marks Sell-Side Liquidity (SSL) — lowest low of the last completed week
Extends BSL/SSL as horizontal lines into the current week
Volatility Index Percentile Risk STOCK StrategyVolatility-Index Percentile Risk STOCK Strategy
──────────────────────────────────────────────
PURPOSE
• Go long equities only when implied volatility (from any VIX-style index) is in its quietest percentile band.
• Scale stop-loss distance automatically with live volatility so risk stays proportional across timeframes and market regimes.
HOW IT WORKS
1. Pull the closing price of a user-selected volatility index (default: CBOE VIX, Nasdaq VXN, etc.).
2. Compute its 1-year (252-bar) percentile.
– If percentile < “Enter” threshold → open / maintain long.
– If percentile > “Exit” threshold → flatten.
3. Set the stop-loss every bar at:
SL % = (current VIX value) ÷ Risk Divisor
(e.g., VIX = 20 and divisor = 57 → 0.35 % SL below entry).
This keeps risk tighter when volatility is high and looser when it’s calm.
USER INPUTS
• VIX-style Index — symbol of any volatility index
• Look-back — length for percentile (default 252)
• Enter Long < Percentile — calm-market trigger (default 15 %)
• Exit Long > Percentile — fear trigger (default 60 %)
• Risk Divisor (SL) — higher number = tighter stop; start with 57 on 30-min charts
• Show Debug Plots — optional visibility of percentile & SL%
RECOMMENDED BACK-TEST SETTINGS
• Timeframe: 30 min – Daily on liquid stocks/ETFs highly correlated to the chosen VIX.
• Initial capital: 100 000 | Order size: 10 % of equity
• Commission: 0.03 % | Slippage: 5 ticks
• Enable *Bar Magnifier* and *Fill on bar close* for realistic execution.
ADDITIONAL INFORMATION
• **Self-calibrating risk** – no static ATR or fixed %, adapts instantly to changing volatility.
• **Percentile filter** – regime-aware entry logic that avoids false calm periods signalled by raw VIX levels.
• **Timeframe-agnostic** – works from intraday to weekly; √T-style divisor lets you fine-tune stops quickly ,together with the percentiles and days length.
• Zero look-ahead.
CAVEATS
• Long-only; no built-in profit target. Add one if your plan requires fixed R:R exits.
• Works best on indices/stocks that move with the selected vol index.
• Back-test results are educational; past performance never guarantees future returns.
LICENSE & CREDITS
Released under the Mozilla Public License 2.0.
Inspired by academic research on volatility risk premia and mean-reversion.
DISCLAIMER
This script is for informational and educational purposes only. It is **not** financial advice. Use at your own risk.
Moving Average StrategyMoving Average Strategy Indicator
A comprehensive EMA strategy tool to identify market trends with the following setup parameters:
1. Display EMA for current chart time period with graphical overlay showing fill colors for positive/negative correlation (defaulted to 50 for Fast EMA/200 for Slow EMA)
2. Overlay background time frame to show correlation with EMA on different time frame than chart value (defaulted to hourly).
3. Display BB bands with customization as well as a BB Band Cross Up and Cross down test (shows unusual and fast moving market activity by marking BB band intercept with symbol).
4. Display VWAP.
I use this tool primarily with the following configuration:
Daily charts
Fast EMA - 50
Slow EMA - 200
BG Time Frame - Weekly
BG Fast EMA - 3
BG Slow EMA - 9
BB Length - 20
BB Deviation - 4
BG Fast/Slow Crossover enabled
BG Fast/Slow Crossunder enabled
BB Dev Cross Up Test enabled
BB Dev Cross Down Test enabled
Configuration issues:
For some reason there are plot values that cannot be set to absolute. I need to dig deeper into that and will plan to post it out when I resolve the issue. I just set the values to above and below to mitigate for that.
Multi-Timeframe Market Regime (Ehlers)This Pine Script indicator provides an Ehlers-inspired multi-timeframe market regime analysis directly on your TradingView chart. It aims to identify whether the market is currently "Trending Up" (green), "Trending Down" (red), or "Ranging" (yellow) across Weekly, Daily, 4-Hour, and 1-Hour timeframes.
It uses custom implementations of:
Ehlers' Fisher Transform to highlight market extremes and potential turning points.
An Adaptive Moving Average (inspired by MAMA/FAMA) that adjusts its speed based on volatility to reduce lag in trends and provide stability in ranges.
The indicator displays a dashboard as a label on your chart, showing the detected regime for each of these timeframes, and optionally colors the background of your current chart timeframe to reflect its dominant regime.
EPS and Sales Magic Indicator V2EPS and Sales Magic Indicator V2
EPS and Sales Magic Indicator V2
Short Title: EPS V2
Author: Trading_Tomm
Platform: TradingView (Pine Script v6)
License: Free for public use under fair usage guidelines
Overview
The EPS and Sales Magic Indicator V2 is a powerful stock fundamental visualization tool built specifically for TradingView users who wish to incorporate earnings intelligence directly onto their price chart. Designed and developed by Trading_Tomm, this upgraded version of the original 'EPS and Sales Magic Indicator' includes an enriched and more insightful presentation of company performance metrics — now with TTM EPS support, advanced color-coding, label sizing, and refined control options.
This indicator is tailored for retail traders, swing investors, and long-term fundamental analysts who need to view Quarter-over-Quarter (QoQ) earnings and revenue changes directly on the price chart without switching tabs or breaking focus.
What Does It Display?
The EPS and Sales Magic Indicator V2 intelligently detects quarterly financial updates and displays the following data points via labels:
1. EPS (Earnings Per Share) – Current Quarterly Value
This is the most recent Diluted EPS published by the company, fetched using TradingView’s request.financial() function.
Displayed in the format: EPS: ₹20.45
2. EPS QoQ Percentage Change
Shows the percentage change in EPS compared to the previous quarter.
Highlights improvement or decline using arrows (up for improvement, down for decline).
Displayed in the format: EPS: ₹20.45 (up 15.3 percent)
3. Sales (Revenue) – Current Quarterly Value
Fetches and displays Total Revenue of the company in ₹Crores for easier Indian-market readability.
Displayed in the format: Sales: ₹460Cr
4. Sales QoQ Percentage Change
Measures and presents the quarter-over-quarter percentage change in total revenue.
Uses arrows to indicate growth or contraction.
Displayed in the format: Sales: ₹460Cr (down 3.8 percent)
5. EPS TTM (Trailing Twelve Months)
You now get the TTM EPS — the sum of the last four quarterly EPS values.
This value provides a better long-term earnings snapshot compared to a single quarter.
Displayed in the format: TTM EPS: ₹78.12
All of these values are automatically calculated and displayed only on the bars where a new financial report is detected, keeping your chart clean and insightful.
Customization Features
This indicator is built with user control in mind, allowing you to personalize how and what you want to see:
Show EPS in Label: Enable or disable the display of EPS and EPS QoQ values.
Show Sales in Label: Toggle the visibility of revenue and sales change percentage.
Color Options for Label Themes: The label background color is automatically determined based on performance.
Green: Both EPS and Sales increased QoQ.
Red: Both decreased.
Orange: One increased and the other decreased.
Gray: Default color (if values are unavailable or mixed).
Label Text Size: Choose from Tiny, Small (default), or Normal.
Visual Design
Placement: The labels are positioned just below the candlesticks using yloc.belowbar, so they do not obstruct price action or interfere with technical indicators.
Anchor: Aligned precisely with the financial reporting bars to maintain clarity in historical comparisons.
Background Style: Clean, semi-transparent styling with soft text colors for comfortable viewing.
How It Works
The indicator relies on TradingView’s powerful request.financial() function to extract fiscal quarterly financials (FQ). Internally, it uses detection logic to identify fresh data updates by comparing current vs. previous values, arithmetic to compute QoQ percentage changes in EPS and Sales, logic to build formatted labels dynamically based on user selections, and conditional color and sizing logic to enhance interpretability.
Use Cases
For Long-Term Investors: Quickly identify if a company’s profitability and revenue are improving over time.
For Swing Traders: Combine recent earnings trends with price action to evaluate if post-result momentum has real backing.
For Technical and Fundamental Traders: Layer it with moving averages, RSI, or volume to create a hybrid analysis environment.
Limitations and Notes
Financial data is provided by TradingView’s financial API, and occasional missing values may occur for less-covered stocks.
This tool does not repaint but depends on the timing of the official financial updates.
All values are rounded and formatted to prioritize readability.
Works best on Daily or higher timeframes (weekly or monthly also supported).
License and Fair Use
This script is free to use and share under TradingView’s open-use guidelines. You may copy, fork, and build upon this indicator for personal or educational purposes, but commercial usage requires attribution to the author: Trading_Tomm.
Future Enhancements (Planned)
Addition of Net Profit (QoQ and TTM)
Inclusion of Operating Margin, Profit Margin, and Book Value
Option to switch between numeric and graphical display (table mode)
Alerts on extreme earnings deviation or sales slumps
Final Thoughts
The EPS and Sales Magic Indicator V2 represents a clean, visual, and smart way to monitor a company’s core performance from your chart screen. It helps you align fundamental strength with technical strategies and provides instant financial clarity, which is especially vital in today’s fast-moving markets.
Whether you’re preparing for an earnings season or scanning past performance to pick your next investment, this indicator saves time, enhances insights, and sharpens decisions.