Indikatoren und Strategien
MACD / AO Alineación (V21) PublicA long or short indicator for any timeframe. It's important to consider volatility and ADX to find the most appropriate momentum. There are also other details to consider.
Episodic Pivot -AparnaEpisodic pivot when volume are 5x of SMA 14 and price is 10% higher than previous close
MACD-V+ (ATR Normalized MACD)MACD-V+ is an ATR-normalized MACD tool that focuses on true turning points inside Overbought/Oversold zones. It marks a signal only when the MACD’s slope changes direction and shows real progress back toward the zero line, with an optional dwell (depth & time) filter so you don’t get faked out by shallow pokes into a zone. Clean visuals, “first-in-zone” gating, and configurable labeling make it practical for discretionary and systematic traders alike.
For best results, adjust Overbought and Oversold levels based on stock volatility. The default settings of 150 and -150 are for highly volatile tickers. Reduce for less volatile tickers.
Please help me improve the code for everyone.
Bollinger Breakout Candle ShadingSubtle shading behind the bars when the price trades outside of the Bollinger bands.
Manipolazione Luca C H1Osservando le candele h1 neglio orari ( di apertura sessione london e ny) possiamo cogliere molto piu' facilmente le manipolazioni per poter aprire le operazioni o scendere di time frame aspettando un altri trigger di entrata.
By observing the h1 candles during the opening hours (London and New York session) we can much more easily detect manipulations in order to open trades or move down the time frame waiting for other entry triggers.
Manipolazione Luca C.(H1)Osservando le candele su H1 se notiamo una manipolazione evidente entriamo a mercato.
Tristan's Three Line Strike PatternThree Line Strike Indicator (5-Minute Timeframe)
This indicator highlights Three Line Strike candlestick patterns on a 5-minute chart . The Three Line Strike is a rare four-candle formation that often signals trend continuation rather than reversal.
Bullish Three Line Strike (green “3LS long” above the candle):
Three strong bullish candles in a row are followed by a large bearish candle that completely engulfs the prior three. Despite looking bearish, this setup often indicates strength in the uptrend.
Bearish Three Line Strike (red “3LS sell” below the candle):
Three consecutive bearish candles are followed by a large bullish engulfing candle. Although it looks like a reversal, the downtrend commonly resumes.
How to use on the 5-min chart:
Watch for the labels marking the pattern.
A bullish signal suggests that the upward move is likely to continue after the engulfing candle.
A bearish signal suggests that the downtrend is likely to continue after the engulfing candle.
These signals are not entry/exit triggers on their own—I suggest you combine them with trend confirmation (e.g., moving averages, momentum indicators, or volume analysis) before acting.
Use good risk management, and don't buy / sell based on these indicators alone.
Level Marking - Day Levels, Fib, Swing high Low)Plots key day levels: previous day PH/PL/PC and live current CH/CL, each as extend-right lines with optional dashed style and right-side zig-zag price labels.
Adds “Golden Fib” 0.5 & 0.618 from the prior day’s High–Low (you can flip Low→High or High→Low to match TV’s Fib tool).
Marks fast swings (3-bar) with blue boxes that trail the latest price—great for quick scalps.
Marks slow swings (7-bar) with red horizontal lines extended to the right; price labels sit at the line ends.
Everything updates in real time each bar and respects TradingView’s future-object limits.
VWAP Deviation Oscillator [BackQuant]VWAP Deviation Oscillator
Introduction
The VWAP Deviation Oscillator turns VWAP context into a clean, tradeable oscillator that works across assets and sessions. It adapts to your workflow with four VWAP regimes plus two rolling modes, and three deviation metrics: Percent, Absolute, and Z-Score. Colored zones, optional standard deviation rails, and flexible plot styles make it fast to read for both trend following and mean reversion.
What it does
This tool measures how far price is from a chosen VWAP and expresses that gap as an oscillator. You can view the deviation as raw price units, percent, or standardized Z-Score. The plot can be a histogram or a line with optional fills and sigma bands, so you can quickly spot polarity shifts, overbought and oversold conditions, and strength of extension.
VWAP modes track a session VWAP that resets (4H, Daily, Weekly) or a rolling VWAP that updates continuously over a fixed number of bars or days.
Deviation modes let you choose the lens: Percent, Absolute, or Z-Score. Each highlights different aspects of stretch and mean pressure.
Visual encoding uses a 10-zone color palette to grade the magnitude of deviation on both sides of zero.
Volatility guards compute mode-specific sigma so thresholds are stable even when volatility compresses.
Why this works
VWAP is a high signal anchor used by institutions to gauge fair participation. Deviations around VWAP cluster in regimes: mild oscillations within a band, decisive pushes that signal imbalance, and standardized extremes that often precede either continuation or snapback. Expressing that distance as a single time series adds clarity: bias is the oscillator’s sign, risk context is its magnitude, and regime is the way it behaves around sigma lines.
How to use it
Trend following
Favor the side of the zero line. Bullish when the oscillator is above zero and making higher swing highs. Bearish when below zero and making lower swing lows. Use +1 sigma and +2 sigma in your mode as strength tiers. Pullbacks that hold above zero in uptrends, or below zero in downtrends, are often continuation entries.
Mean reversion
Fade stretched readings when structure supports it. Look for tests of +2 sigma to +3 sigma that fail to progress and roll back toward zero, or the mirror on the downside. Z-Score mode is best when you want standardized gates across assets. Percent mode is intuitive for intraday scalps where a given percent stretch tends to mean revert.
Session playbook
Use Daily or Weekly VWAP for intraday or swing context. Rolling modes help when the asset lacks clean session boundaries or when you want a continuous anchor that adapts to liquidity shifts.
Key settings
VWAP computation
VWAP Mode = 4 Hours, Daily, Weekly, Rolling (Bars), Rolling (Days). Session modes reset the VWAP when a new session begins. Rolling modes compute VWAP over a fixed trailing window.
Rolling (Lookback: Bars) controls the trailing bar count when using Rolling (Bars).
Rolling (Lookback: Days) converts days to bars at runtime and uses that trailing span.
Use Close instead of HLC3 switches the price reference. HLC3 is smoother. Close makes the anchor track settlement more tightly.
Deviation measurement
Deviation Mode
Percent : 100 * (Price / VWAP - 1). Good for uniform scaling across instruments.
Absolute : Price - VWAP. Good when price units themselves matter.
Z-Score : Standardizes the absolute residual by its own mean and standard deviation over Z/Std Window . Ideal for cross-asset comparability and regime studies.
Z/Std Window sets the mean and standard deviation window for Z-Score mode.
Volatility controls
Percent Mode Volatility Lookback estimates sigma for percent deviations.
Absolute Mode Volatility Lookback estimates sigma for absolute deviations.
Minimum Sigma Guard (pct pts) prevents the percent sigma from collapsing to near zero in extremely quiet markets.
Visualization
Plot Type = Histogram or Line. Histogram emphasizes impulse and polarity changes. Line emphasizes trend waves and divergences.
Positive Color / Negative Color define the palette for line mode. Histogram uses a 10-bucket gradient automatically.
Show Standard Deviations plots symmetric rails at ±1, ±2, ±3 sigma in the current mode’s units.
Fill Line Oscillator and Fill Opacity add a soft bias band around zero for line mode.
Line Width affects both the oscillator and the sigma rails.
Reading the zones
The oscillator’s color and height map deviation to nine graded buckets on each side of zero, with deeper greens above and deeper reds below. In Percent and Absolute modes, those buckets are scaled by their mode-specific sigma. In Z-Score mode the bucket edges are fixed at 0.5, 1.0, 2.0, and 2.8.
0 to +1 sigma weak positive bias, usually rotational.
+1 to +2 sigma constructive impulse. Pullbacks that hold above zero often continue.
+2 to +3 sigma strong expansion. Watch for either trend continuation or exhaustion tells.
Beyond +3 sigma statistical extreme. Requires structure to avoid fading too soon.
Mirror logic applies on the negative side.
Suggested workflows
Trend continuation checklist
Pick a session VWAP that matches your timeframe, for example Daily for intraday or Weekly for position trades.
Wait for the oscillator to hold the correct side of zero and for a sequence of higher swing lows in the oscillator (uptrend) or lower swing highs (downtrend).
Buy pullbacks that stabilize between zero and +1 sigma in an uptrend. Sell rallies that stabilize between zero and -1 sigma in a downtrend.
Use the next sigma band or a prior price swing as your target reference.
Mean reversion checklist
Switch to Z-Score mode for standardized thresholds.
Identify tests of ±2 sigma to ±3 sigma that fail to extend while price meets support or resistance.
Enter on a polarity change through the prior histogram bar or a small hook in line mode.
Fade back to zero or to the opposite inner band, then reassess.
Notes on the three modes
Percent is easy to reason about when you care about proportional stretch. It is well suited to intraday and multi-asset dashboards.
Absolute tracks cash distance from VWAP. This is useful when instruments have tight ticks and you plan risk in price units.
Z-Score standardizes the residual and is best for quant studies, cross-asset comparisons, and threshold research that must be scale invariant.
What the alerts can tell you
Polarity changes at zero can mark the start or end of a leg.
Crosses of ±1 sigma identify overbought or oversold in the current mode’s units.
Zone changes signal an upgrade or downgrade in deviation strength.
Troubleshooting and edge cases
If your instrument has long flat periods, keep Minimum Sigma Guard above zero in Percent mode so the rails do not vanish.
In Rolling modes, very short windows will respond quickly but can whip around. Session modes smooth this by resetting at well known boundaries.
If Z-Score looks erratic, increase Z/Std Window to stabilize the estimate of mean and sigma for the residual.
Final thoughts
VWAP is the anchor. The deviation oscillator is the narrative. By separating bias, magnitude, and regime into a simple stream you can execute faster and review cleaner. Pick the VWAP mode that matches your horizon, choose the deviation lens that matches your risk framework, and let the color graded zones guide your decisions.
Performance-based Asset Weighting(MTF)**Performance-Based Asset Weighting (MTF/Symbol Free Setting)**
#### Overview
This indicator is a tool that visualizes the relative strength of performance (price change rate) as “weight (allocation ratio)” for **four user-defined stocks**.
By setting any specified past point in time as the baseline (where all symbols are equally weighted at 25%), it aims to provide an intuitive understanding of which symbols outperformed others and attracted capital, or underperformed and saw capital outflows.
**【Default Settings and Application Scenario: Pension Fund Rebalancing Analysis】**
The default settings reference the basic portfolio of Japan's Government Pension Investment Fund (GPIF), configuring four major asset classes: domestic equities, foreign equities, domestic bonds, and foreign bonds. It is known that when market fluctuations cause deviations from this equal-weighted ratio, rebalancing occurs to restore the original ratio (selling assets whose weight has increased and buying assets whose weight has decreased).
Analyzing using this default setting can serve as a reference point for considering **“whether rebalancing sales (or purchases) by pension funds and similar entities are likely to occur in the future.”**
**【Important: Usage Notes】**
The weights shown by this indicator are **theoretical reference values** calculated solely based on performance from the specified start date. Even if large investors conduct significant rebalancing (asset buying/selling) during the period, those transactions themselves are not reflected in this chart's calculations.
Therefore, please understand that the actual portfolio ratios may differ. **Use this solely as a rough guideline. **
#### Key Features
* **Freely configure the 4 assets for analysis:** You can freely set any 4 assets (stocks, indices, currencies, cryptocurrencies, etc.) you wish to compare via the settings screen.
* **Performance-based weight calculation:** Rather than simple price composition ratios, it calculates each asset's price change since the specified start date as a “performance index” and displays each asset's proportion of the total sum.
* **Freely set analysis start date:** You can set any desired starting point for analysis, such as “after the XX shock” or “after earnings announcements,” using the calendar.
* **Multi-Timeframe (MTF) Support:** Independently of the timeframe displayed on the chart, you can freely select the timeframe (e.g., 1-hour, 4-hour, daily) used by the indicator for calculations.
#### Calculation Principle
This indicator calculates weights in the following three steps:
1. **Obtaining the Base Price**
Obtain the closing price for each of the four stocks on the user-set “Start Date for Weight Calculation.” This becomes the **base price** for analysis.
2. **Calculating the Performance Index**
Divide the current price of each stock by the **base price** obtained in Step 1 to calculate the “Performance Index”.
`Performance Index = Current Price ÷ Base Date Price`
This quantifies how many times the current performance has increased compared to the base date performance, which is set to “1”.
3. **Calculating Weights**
Sum the “Performance Indexes” of the four stocks. Then, calculate the percentage contribution of each stock's Performance Index to this total sum and plot it on the chart.
`Weight (%) = (Individual Performance Index ÷ Total Performance Index of 4 Stocks) × 100`
Using this logic, on the analysis start date, all stocks' performance indices are set to “1”, so the weights start equally at 25%.
#### Usage
* **Application Example 1: Market Sentiment Analysis (Using Default Settings)**
Analyze using the default asset classes. By observing the relative strength between “Equities” and “Bonds”, you can assess whether the market is risk-on or risk-off.
* **Application Example 2: Sector/Theme Strength Analysis**
Configure settings for groups like “Top 4 semiconductor stocks” or “4 GAFAM stocks.” Setting the start date to the beginning of the year or earnings season allows you to instantly compare which stocks within the same sector are performing best.
* **Application Example 3: Cryptocurrency Power Map Analysis**
By setting major cryptocurrencies like “BTC, ETH, SOL, ADA,” you can analyze which currencies are attracting market capital.
**【About Legend Display】**
Due to Pine Script specification constraints, the legend on the chart will display fixed names: **“Stock 1” to “Stock 4”. **
Please note that the symbol you entered for “Symbol 1” in the settings corresponds to the “Symbol 1” line on the chart.
#### Settings
* **Symbol 1 to Symbol 4:** Set the four symbols you wish to analyze.
* **Timeframe for Calculation:** Select the timeframe the indicator references when calculating weights.
* **Start Date for Weight Calculation:** This serves as the base date for comparing performance.
#### Disclaimer
This script is solely a tool to assist with market analysis and does not recommend buying or selling any specific financial instruments. Please make all final investment decisions at your own discretion.
-------------------------------------------------------------------------------------------------------------------
**Performance-based Asset Weighting(MTF・シンボル自由設定)**
#### 概要
このインジケーターは、**ユーザーが自由に設定した4つの銘柄**について、パフォーマンス(騰落率)の相対的な強さを「ウェイト(構成比率)」として可視化するツールです。
指定した過去の任意の時点を基準(全銘柄が均等な25%)として、そこからどの銘柄のパフォーマンスが他の銘柄を上回り、資金が向かっているのか、あるいは下回っているのかを直感的に把握することを目的としています。
**【デフォルト設定と活用シナリオ:年金基金のリバランス考察】**
デフォルト設定では、日本の年金積立金管理運用独立行政法人(GPIF)の基本ポートフォリオを参考に、主要4資産クラス(国内株式, 外国株式, 国内債券, 外国債券)が設定されています。市場の変動によってこの均等な比率に乖離が生じると、元の比率に戻すためのリバランス(比率が増えた資産を売り、減った資産を買う)が行われることが知られています。
このデフォルト設定で分析することで、**「今後、年金基金などによるリバランスの売り(買い)が発生する可能性があるか」を考察するための、一つの目安として利用できます。**
**【重要:利用上の注意点】**
このインジケーターが示すウェイトは、あくまで指定した開始日からのパフォーマンスのみを基に算出した**理論上の参考値**です。実際に大口投資家などが途中で大規模なリバランス(資産の売買)を行ったとしても、その取引自体はこのチャートの計算には反映されません。
そのため、実際のポートフォリオ比率とは異なる可能性があることをご理解の上、**あくまで大まかな目安としてご活用ください。**
#### 主な特徴
* **分析対象の4銘柄を自由に設定可能:** 設定画面から、比較したい4つの銘柄(株式、指数、為替、仮想通貨など)を自由に設定できます。
* **パフォーマンス基準のウェイト計算:** 単純な価格の構成比ではなく、指定した開始日からの各銘柄の騰落を「パフォーマンス指数」として算出し、その合計に占める各銘柄の割合を表示します。
* **分析開始日の自由な設定:** 「〇〇ショック後」「決算発表後」など、分析したい任意の時点をカレンダーから設定できます。
* **マルチタイムフレーム(MTF)対応:** チャートに表示している時間足とは別に、インジケーターが計算に使う時間足(1時間足、4時間足、日足など)を自由に選択できます。
#### 計算の原理
このインジケーターは、以下の3ステップでウェイトを算出しています。
1. **基準価格の取得**
ユーザーが設定した「ウェイト計算の開始日」における、4つの各銘柄の終値を取得し、これを分析の**基準価格**とします。
2. **パフォーマンス指数の算出**
現在の各銘柄の価格を、ステップ1で取得した**基準価格**で割ることで、「パフォーマンス指数」を算出します。
`パフォーマンス指数 = 現在の価格 ÷ 基準日の価格`
これにより、基準日のパフォーマンスを「1」とした場合、現在のパフォーマンスが何倍になっているかが数値化されます。
3. **ウェイトの算出**
4つの銘柄の「パフォーマンス指数」の合計値を算出します。そして、合計値に占める各銘柄のパフォーマンス指数の割合(%)を計算し、チャートに描画します。
`ウェイト (%) = (個別のパフォーマンス指数 ÷ 4銘柄のパフォーマンス指数の合計) × 100`
このロジックにより、分析開始日には全銘柄のパフォーマンス指数が「1」となるため、ウェイトは均等に25%からスタートします。
#### 使用方法
* **応用例1:市場のセンチメント分析(デフォルト設定利用)**
デフォルト設定の資産クラスで分析し、「株式」と「債券」の力関係を見ることで、市場がリスクオンなのかリスクオフなのかを判断する材料になります。
* **応用例2:セクター・テーマ別の強弱分析**
設定画面で、例えば「半導体関連の主要4銘柄」や「GAFAMの4銘柄」などを設定します。開始日を年初や決算時期に設定することで、同セクター内でどの銘柄が最もパフォーマンスが良いかを一目で比較できます。
* **応用例3:仮想通貨の勢力図分析**
「BTC, ETH, SOL, ADA」など、主要な仮想通貨を設定することで、市場の資金がどの通貨に向かっているのかを分析できます。
**【凡例の表示について】**
Pine Scriptの仕様上の制約により、チャート上の凡例は**「銘柄1」〜「銘柄4」という固定名で表示されます。**
お手数ですが、設定画面でご自身が「銘柄1」に入力したシンボルが、チャート上の「銘柄1」のラインに対応する、という形でご覧ください。
#### 設定項目
* **銘柄1〜銘柄4:** 分析したい4つのシンボルをそれぞれ設定します。
* **計算に使う時間足:** インジケーターがウェイトを計算する際に参照する時間足を選択します。
* **ウェイト計算の開始日:** パフォーマンスを比較する上での基準日となります。
#### 免責事項
このスクリプトはあくまで市場分析を補助するためのツールであり、特定の金融商品の売買を推奨するものではありません。投資の最終的な判断は、ご自身の責任において行ってください。
BFM Yen Carry to Risk Ratio (Dynamic Rates)Shows risk of yen carry trade unwinding. Based on cost to borrow from Japan to buy us stocks compared to interest rate in USA.
Position Size CalculatorPosition Size CalculatorRisk Management Made Simple – Size Your Trades Like a Pro!Tired of guessing position sizes and blowing up your account on oversized trades? This Pine Script indicator automates position sizing based on your risk tolerance, ensuring every trade risks only what you've predefined. Perfect for stocks, forex, crypto, or futures—works for long or short setups. Overlay it on your candlestick chart and watch the math do the work.Key Features:Smart Risk Control: Input your account size (e.g., $70k) and risk % (e.g., 1%). It caps your max loss per trade automatically.
Dynamic Entry & Stop: Use live chart close as entry, or click to set a manual entry level (green solid line). For stops, toggle manual placement (red broken line) or use a % distance—auto-calculates the effective % for precision.
Visual Markers: Green line for entry price, red dashed line for stop loss—spans your chart for easy spotting.
Customizable Table: Floating info panel shows Account Size, Risk Amount, Stop Distance %, and Position Size (shares/lots). Drag its position via settings (top-right default).
No More Guesswork: Formula: Position Size = (Account × Risk %) ÷ Stop Distance. Handles edge cases like tiny distances to avoid div-by-zero.
How to Use:Add to your chart via Pine Editor.
In settings: Set account size/risk %. Toggle "Use Manual Entry Price" and click chart to place green line. Do the same for stop (red line) or use % input.
Table updates live—grab the position size and execute!
Pro Tip: For shorts/longs, the abs distance keeps risk symmetric. Test on demo first.
Built for v6—clean, lightweight, and 100% customizable. Share your tweaks in comments! Remember, this is a tool, not advice—trade responsibly. (Inspired by classic Kelly Criterion vibes, but simplified for daily grinders.)
TGFA Flexible Alerts Multi-MA CrossoversTGFA Flexible Alerts, Multi-MA Crossovers
Description
Flexible MA crossovers with BUY/SELL alerts, customizable candle colors, and an info box for ATR/volatility insights. Supports EMA/SMA/HMA/VWAP on any chart.
Overview
TGFA Flexible Alerts is a versatile Pine Script indicator for traders seeking customizable moving average (MA) crossovers, visual signals, and quick-reference metrics. It overlays crossover lines (e.g., fast EMA over slow SMA), generates BUY/SELL labels and alerts, colors candles based on themes, and includes an optional info box with ATR bands, support/resistance, and trend projections. Built for any symbol and timeframe (optimized for 1H intraday), it auto-detects Heikin Ashi charts and handles mixed MA types like responsive HMA with lagging EMAs. All logic uses built-in TA functions for reliability—no repainting on confirmed bars.
Key Features
MA Crossover Engine: Configurable lines (EMA, SMA, HMA, VWAP) with dynamic colors (HMA tints green/red based on slope). Enable/disable via inputs.
Invert Signals Toggle: Flips BUY/SELL logic for mixed MA setups (e.g., HMA as fast line over EMA).
Reasoning: Traditional crossovers assume a fast line (low lag) crossing above a slow line (high lag) for buys. HMA's hull design makes it ultra-responsive, so it may "lead" too aggressively—causing premature signals. Inverting aligns it with user intuition (e.g., HMA dipping below then recovering signals strength), reducing false positives in trending markets. Test on your pairs!
Visual Alerts: BUY/SELL labels at crossover price (with optional price display and offset adjustment).
Single MA Overlays: Independent plots for EMA/SMA/HMA/VWAP (length 0 to hide).
Info Box: Real-time table with current price, ±1/2 ATR bands, median price (over lookback), trend (SMA50 slope), volatility % (ATR normalized), support/resistance (recent highs/lows), and reversal projections (tied to SMA50 pivot for up/down bias).
Candle Coloring: 20+ themes (dark/light canvases) for bull/bear/reversal/low-volume bars—e.g., Emerald Blaze greens uptrends, dims on low vol. Toggle off for no changes.
Chart Source Flexibility: Auto-switches to Heikin Ashi if detected; manual override for Regular/HA.
Alerts fire on crossovers/crossunders (custom messages with ticker/interval). Open-source for forking.
How to Use
Add to Chart: Search in TradingView's public library, apply to any symbol (e.g., stocks, forex). Best on 1H for intraday, but works on daily/weekly too.
Setup Crossovers: Choose Line 1/2 types/lengths (e.g., HMA 9 over SMA 20). Enable "Invert Signals" if using HMA—prevents lag mismatches in volatile assets.
Alerts & Labels: Toggle labels for visuals; set TradingView alerts on "Buy"/"Sell" conditions. Use offset for crowded charts.
Info Box Insights: Enable for quick scans—e.g., enter long near support if trend is bullish and price > median. Adjust ATR length (default 14) for sensitivity.
Candle Themes: Pick a scheme (e.g., Neon Pulse for dark mode); it overrides bar colors without altering data.
Customization Tip: For HMA-heavy setups, invert + short lengths (5-9) catch turns early; pair with volume filter in alerts.
Limitations & Disclaimers - Designed for overlay on price charts; may overlap in tight ranges—adjust transparency via styles.
HMA can repaint intra-bar; signals confirm on close. Not back tested for all assets—validate with strategy tester.
Info box projections use SMA(50) as a trend pivot (same for up/down as reference); customize via code for advanced calcs. Candle colors are cosmetic only.
This is an analysis tool, not advice. Trading involves risk; combine with fundamentals/news. Past performance isn't indicative of future results. No liability for losses.
I'm still a newbie, so feedback encouraged!
Thank you!!
ThisGirl
ATR Horizontal Lines from EMA and SMA with TableHow it works:
The script calculates ATR levels (of your choosing)
Instead of plotting curves, it creates horizontal lines
The lines are deleted and recreated on each bar to show current levels
Lines extend to the right or can be limited to a certain width
Customization options:
Line width (1-10 pixels)
Individual colors for each of the 4 lines
All the original parameters (EMA/SMA lengths, ATR length, multipliers)
The horizontal lines will now show the current ATR-based support/resistance levels and move dynamically as the EMAs, SMA, and ATR values change with new price data.
ORB 5 Minute w/FVG and Retracement Breakout strategy creates five minute breakout lines on the 1 minute chart. Highlights any fair value gaps created within ORB and creates an arrow showing when a candle retraces into the fvg.
Vol-Pace Projected-ATR-ADX-Alert-MAThe VolSC indicator analyzes stock volume trends with a focus on the Pace metric, which projects today's volume as a percentage of the 30-day average, highlighting unusual activity (e.g., over 200% turns bright green with alerts). The phantom projection bar, a wide green histogram to the right of the last bar, visually represents this projected volume on daily charts only, aiding quick identification of potential volume surges without cluttering intraday or weekly views. Additional features include ADX strength, ATR averages, and customizable table display for comprehensive insights.
Key Features:
* Primary Indicator: Volume with ADX (Average Directional Index) text.
* Pacing and Alerts: Calculates the volume pace for the day. Features an unusual volume alert with an adjustable threshold (e.g., 200%).
* Volume Projection: Projects a visual "Phantom Volume" for the day, offset to the right of the actual volume bar.
* ATR Indicator: Displays the 2x ATR (Average True Range) value as text.
* Volume Average: Displays the ADV (Average Daily Volume) Moving Average as text.
* Customization: Most settings are adjustable.
LBR Oscillator with Signals & AlertsLinda Bradford Raschke MacD indicator. Has alerts and can be used in the pine screener on different timeframes.
☸HH/LL & Support/Resistance Strategy [NHP]🔶This script finds pivot highs and pivot lows then calculates higher highs & lower lows. And also it calculates support/resistance by using HH-HL-LL-LH points.
🔶Generally HH and HL shows up-trend, LL and LH shows down-trend.
🔶If price breaks resistance levels it means the trend is up or if price breaks support level it means the trend is down, so the script changes bar color blue or black. if there is up-trend then bar color is blue, or if down-trend then bar color is black. also as you can see support and resistance levels change dynamically.
🔶If you use smaller numbers for left/right bars then it will be more sensitive.
🔶All content provided is for informational & educational purposes only. Past performance does not guarantee future results.
Volume Aggregated Spot & Futures -- Crypto (by plyst & more)📊 Volume Aggregated Spot & Futures - Enhanced Edition
🎯 Overview
Advanced volume aggregation indicator that combines spot and perpetual futures volume across the top 10 cryptocurrency exchanges. This enhanced version builds upon the original work by @HALDRO Project with optimized calculations and expanded functionality.
✨ Key Features
- 📈 Real-time aggregated volume from 10 major exchanges (Binance, Bybit, OKX, Coinbase, Bitget, KuCoin, Kraken, MEXC, Gate.io, HTX)
- 🔄 Multiple visualization modes: Volume, Delta, Cumulative Delta, Spot vs Perp analysis, Liquidations, OBV, and MFI
- 💱 Multi-currency support: Display volume in COIN, USD, or EUR
- 🎨 Clean, single-color bar chart showing total cumulative volume
- 📊 Multiple calculation methods: SUM, AVG, MEDIAN, VARIANCE
- 🎯 Separate spot (USDT, USD, USDC, etc.) and perpetual futures (.P contracts) tracking
🔧 Technical Improvements
✓ Corrected MFI formula for accurate money flow calculations
✓ Optimized volume aggregation logic with proper NA handling
✓ Support for 10 exchanges (up from 9)
✓ Streamlined codebase for better performance
✓ Updated perpetual contract naming conventions (.P format)
📖 Usage
Perfect for analyzing total market volume, identifying liquidation events, tracking buyer/seller pressure through delta analysis, and understanding the spot vs futures market dynamics.
🙏 Credits
Original concept and framework by @HALDRO Project. This version includes mathematical corrections, code optimizations, and expanded exchange support.
⚠️ Note
Aggregated volume is calculated from external exchange data using request.security(). Ensure your plan supports the necessary security calls for optimal performance.
Luxy Flexible Moving AveragesUltra-lightweight moving average suite supporting six calculation methods (EMA, SMA, WMA, VWMA, RMA, HMA).
Overview
Luxy Flexible Moving Averages is a performance-optimized indicator designed for traders who need clean, reliable moving average lines without the overhead of complex calculations or unnecessary features. This indicator prioritizes speed and visual clarity, making it ideal for traders who run multiple indicators simultaneously or work on lower-powered devices.
Unlike traditional moving average indicators that calculate all lines regardless of whether they are enabled, Luxy only processes the moving averages you actually need, resulting in near-instantaneous chart loading times.
What Makes This Different
The primary design philosophy behind Luxy Flexible Moving Averages is efficiency without compromise. The indicator includes four independently configurable moving average lines, each supporting six different calculation methods. Every calculation is conditionally executed, meaning that disabled lines consume zero processing power. This approach delivers exceptional performance even when paired with resource-intensive indicators like volume profiles, market structure tools, or custom scanners.
Features
The indicator provides four distinct moving average lines, each fully customizable:
Fast MA is typically used for short-term momentum and quick directional changes. Traders often configure this as an EMA with lengths between 5 and 20 bars, depending on their trading timeframe.
Medium MA serves as a middle-ground reference, often used to identify the intermediate trend or as a dynamic support and resistance level. This line commonly uses EMA or SMA calculations with lengths between 10 and 50bars.
Medium-Long MA acts as a visual bridge between short-term noise and long-term structure. Many traders disable this line entirely if they prefer a cleaner chart, but it can be useful for identifying larger trend phases. Typical configurations use SMA or RMA with lengths between 50 and one 150 bars.
Long MA represents the dominant trend or bias. This is often configured as a 200 period SMA, which is a widely-watched level across most markets and timeframes. Alternatively, traders may use RMA for a smoother visual appearance.
Each line supports six calculation methods:
EMA (Exponential Moving Average) applies exponentially decreasing weights to older prices, making it highly responsive to recent price action. This is the preferred method for momentum-based strategies and short-term trading.
SMA (Simple Moving Average ) treats all prices equally within the lookback period, resulting in a smoother line that is less reactive to sudden price spikes. This is commonly used for identifying long-term trends.
WMA (Weighted Moving Average) applies linearly decreasing weights, offering a middle ground between EMA and SMA. It responds faster than SMA but with less sensitivity than EMA.
VWMA (Volume-Weighted Moving Average) incorporates volume data into the calculation, giving more weight to bars with higher trading activity. This method is particularly useful in liquid markets where volume represents genuine participation.
RMA (Relative Moving Average, also known as Wilder's Smoothing) is a variant of EMA with a slower response curve. It is commonly used in oscillators like RSI and ADX, and provides very smooth trend lines on charts.
HMA (Hull Moving Average) is designed to reduce lag while maintaining smoothness. It is the most responsive option available in this indicator but can produce more false signals during choppy or sideways markets.
How It Works
The indicator operates on a conditional calculation model. When you load the indicator, it checks which moving average lines are enabled via the input settings. Only the enabled lines are calculated on each bar, and disabled lines are assigned a not-applicable value, preventing any processing overhead.
Each moving average is calculated using native TradingView functions, ensuring maximum compatibility and reliability across all asset classes and timeframes. The indicator does not use any security calls, loops, or external data requests, which are common sources of performance degradation in more complex indicators.
Recommended Configurations
The optimal moving average configuration depends on your trading style and timeframe. Below are general guidelines based on common trading approaches.
Scalping (1 minute to 5 minute charts)
Scalpers require fast-reacting moving averages that can identify micro-trends and momentum shifts within seconds. The recommended configuration prioritizes EMA or HMA for all lines, with very short lengths to capture quick moves.
For the Fast MA, use EMA with a length between 5 and 8. This line should react almost immediately to price changes and helps confirm entry timing during breakouts or pullbacks.
For the Medium MA , use EMA with a length between 10 and 15. This serves as your primary directional filter. When price is above this line, you look for long opportunities. When below, you look for shorts.
The Medium-Long MA is often disabled in scalping setups to reduce visual noise. If used, configure it as SMA between 40 and 80 to provide context on the broader 5-minute or 15-minute trend.
The Long MA can be set to SMA with a length between 100 and 150, or simply disabled. On very short timeframes, this line often provides more historical context than real-time utility.
Day Trading (5 minute to 1 hour charts)
Day traders benefit from a balanced approach that filters out noise while remaining responsive to intraday volatility. A common configuration combines EMA for short-term lines and SMA for long-term structure.
For the Fast MA , use EMA with a length between 8 and 12. This captures momentum without overreacting to every minor price swing.
For the Medium MA , use EMA with a length between 12 and 21. This is often used as a dynamic support or resistance level during trending sessions.
For the Medium-Long MA , configure SMA or RMA between 60 and one 120. This line helps identify whether the intraday trend aligns with the broader daily bias.
The Long MA is typically set to SMA with a length of 200. This is a critical level that many institutional traders watch, and price reactions around this line are often significant.
Swing Trading (4 hour to daily charts)
Swing traders operate on longer timeframes and need moving averages that filter out daily noise while highlighting multi-day or multi-week trends. SMA and RMA are commonly preferred for their smoothness, though EMA can be used for faster momentum entries.
For the Fast MA , use EMA or SMA with a length between 10 and 20. This line helps time entries during pullbacks within the larger trend.
For the Medium MA , use EMA or SMA with a length between 20 and 34. This often serves as a key decision point for whether a pullback is likely to reverse or continue.
For the Medium-Long MA , configure SMA between 100 and 180. This provides visual context on the broader weekly trend and can act as a significant support or resistance zone.
The Long MA should be SMA with a length of 200 or higher. On daily charts, the two-hundred-day moving average is one of the most widely-referenced indicators in global markets, and price behavior around this level is often predictable.
Using Moving Averages for Trend Identification
Moving averages are primarily used to determine trend direction and strength. The relationship between price and the moving average lines provides insight into market structure.
When price is trading above a moving average, the trend is generally considered bullish on that timeframe. When price is below, the trend is bearish. The steeper the slope of the moving average, the stronger the trend. A flat moving average indicates consolidation or a potential trend change.
Crossovers between moving averages are commonly used as trend confirmation signals. When a faster moving average crosses above a slower moving average, this suggests increasing bullish momentum. When the faster line crosses below, it suggests increasing bearish momentum. However, crossovers should not be used in isolation, as they can produce false signals during sideways markets.
Many traders use moving averages as dynamic support and resistance levels. During uptrends, price often pulls back to a key moving average before resuming higher. During downtrends, price often rallies to a moving average before resuming lower. These levels can be used to plan entries, exits, or stop-loss placement.
Multi-Time Frame Momentum PredictorFifteen-minute candle forming:
- Minute 1-15: Analyze one-minute candles
- Minute 14:30: Evaluate conditions
- Minute 14:45: Make decision
- Minute 14:59: Execute order if criteria are met