Futures Momentum Scanner – jyoti//@version=5
indicator("Futures Momentum Scanner – Avvu Edition", overlay=false, max_lines_count=500)
//------------------------------
// USER INPUTS
//------------------------------
rsiLen = input.int(14, "RSI Length")
macdFast = input.int(12, "MACD Fast")
macdSlow = input.int(26, "MACD Slow")
macdSignal = input.int(9, "MACD Signal")
stLength = input.int(10, "Supertrend Length")
stMult = input.float(3.0, "Supertrend Multiplier")
//------------------------------
// SUPER TREND
//------------------------------
= ta.supertrend(stMult, stLength)
trendUp = stDirection == 1
//------------------------------
// RSI
//------------------------------
rsi = ta.rsi(close, rsiLen)
rsiBull = rsi > 50 and rsi < 65
//------------------------------
// MACD
//------------------------------
= ta.macd(close, macdFast, macdSlow, macdSignal)
macdBull = macd > signal and macd > 0
//------------------------------
// MOVING AVERAGE TREND
//------------------------------
ema20 = ta.ema(close, 20)
ema50 = ta.ema(close, 50)
ema200 = ta.ema(close, 200)
trendStack = ema20 > ema50 and ema50 > ema200
//------------------------------
// BREAKOUT LOGIC
//------------------------------
prevHigh = ta.highest(high, 20)
breakout = close > prevHigh
//------------------------------
// FINAL SCANNER LOGIC
//------------------------------
bullishCandidate = trendUp and rsiBull and macdBull and trendStack and breakout
//------------------------------
// TABLE OUTPUT FOR SCANNER FEEL
//------------------------------
var table t = table.new(position.top_right, 1, 1)
if barstate.islast
msg = bullishCandidate ? "✔ BUY Candidate" : "– Not a Setup"
table.cell(t, 0, 0, msg, bgcolor=bullishCandidate ? color.new(color.green, 0) : color.new(color.red, 70))
//------------------------------
// ALERT
//------------------------------
alertcondition(bullishCandidate, title="Scanner Trigger", message="This stock meets Avvu's futures scanner criteria!")
Penunjuk dan strategi
EMA 7/21 + SuperTrend INDICADOR CREADO PARA MI ESTRATEGIA That sounds like a complex and multi-layered trading indicator you've developed! Combining an Exponential Moving Average (EMA) crossover with an Average Directional Index (ADX) filter, a Volume filter, and a Supertrend for overall trend confirmation can certainly help to filter out false signals and potentially increase the reliability of your entry and exit points.Here's a breakdown of the components you're using and why this combination can be powerful:📊 Indicator Components and Their Roles1. 7/21 EMA Crossover (Signal Generator)The $7$-period EMA and $21$-period EMA crossover is a common strategy used to generate initial buy or sell signals.Buy Signal: The short-term EMA (7) crosses above the long-term EMA (21).Sell Signal: The short-term EMA (7) crosses below the long-term EMA (21).2. ADX DI Filter (Momentum and Direction)The Average Directional Index (ADX) and its directional indicators ($+DI$ and $-DI$) are key to confirming the strength and direction of the move.Directional Confirmation: The EMA crossover must be confirmed by the appropriate directional index. For a buy, the $+DI$ should be above the $-DI$. For a sell, the $-DI$ should be above the $+DI$.Trend Strength ( NYSE:ADX $): A rising NYSE:ADX $ (typically above 20 or 25) suggests the current trend has sufficient momentum, making the signal more reliable.3. Volume Filter (Conviction)Adding a Volume filter ensures that the price movement accompanying the EMA crossover is supported by significant trading activity.Confirmation: A strong signal (buy or sell) is often accompanied by above-average volume. This suggests that market participants are actively supporting the move, adding conviction to the trade.4. Supertrend (Overall Trend Confirmation)The Supertrend indicator is based on the Average True Range (ATR) and is excellent for identifying the dominant market trend.Trend Alignment: The EMA crossover signal should align with the Supertrend's current signal. For a buy signal, the price should be above the Supertrend line (green). For a sell signal, the price should be below the Supertrend line (red). This helps ensure you are trading with the prevailing trend.📈 Why This is a Powerful CombinationYour indicator is essentially a multi-stage confirmation system:Speed (7/21 EMA): Generates a fast, responsive signal.Momentum (ADX DI): Confirms the direction and strength of the signal.Conviction (Volume): Validates the signal with market participation.Safety/Trend (Supertrend): Ensures the trade is in the direction of the long-term trend.The Informative Panel is a great feature, as it simplifies the decision-making process by summarizing the findings of all these components—e.g., "BUY: EMA Crossover $\checkmark$, +DI > -DI $\checkmark$, High Volume $\checkmark$, Supertrend Green $\checkmark$."💡 Next Steps for RefinementTo finalize and test this indicator, you may want to consider:Parameter Optimization: The best settings for the ADX level (e.g., 20 vs. 25) and the Supertrend ATR parameters may need to be optimized for the specific asset (e.g., stocks, forex) and timeframe you are using.Exit Strategy: Since this primarily focuses on entries, define clear Stop-Loss (perhaps based on the Supertrend line or a recent swing low/high) and Take-Profit (e.g., a fixed Risk/Reward ratio or previous resistance/support levels) rules.Would you like to explore specific parameters for any of these components or look into ways to backtest your strategy?
Meu scriptPricemap CONTROL (2, 1, 1, 5, 15, 60, 3, 50, 200, 14, 12, 26, 9, bottom_right, 21, 14, 14, 1, 1,5)
Session High/LowSession High Low
Trading Sessions
Forex Sessions (oder Futures Sessions, je nachdem, was du handelst)
Pine Script Indicator
Intraday Levels
Market Sessions
High Low Lines
Day Trading Tools
ATR Risk Manager v5.2 [Auto-Extrapolate]If you ever had problems knowing how much contracts to use for a particular timeframe to keep your risk within acceptable levels, then this indicator should help. You just have to define your accepted risk based on ATR and also percetage of your drawdown, then the indicator will tell you how many contracts you should use. If the risk is too high, it will also tell you not to trade. This is only for futures NQ MNQ ES MES GC MGC CL MCL MYM and M2K.
NIFTY Futures Premium %WEALTHCON inspired NIFTY FAD % indicator . Please use Nifty spot chart in overlaying chart
Daily Gap Highlighter (Partial Gaps + Age Filter)Daily Gap Highlighter – 部分的な窓の未埋めエリアを自動描画
このインジケーターは、日足チャートにおける窓(ギャップ)を自動で検出し、
その後の値動きで一部だけ埋まった場合も、埋め残し部分だけを正確に描画するツールです。
🔍 主な特徴
日足ベースで窓を検出
上窓:当日の安値 > 前日の高値
下窓:当日の高値 < 前日の安値
部分的な窓埋めにも対応
例:窓の90%が埋まった → 残り10%だけ窓として残す
完全に埋まった窓は自動的に削除
窓の“鮮度フィルター”を搭載
指定した日数(デフォルト90日)を経過した古い窓は自動で非表示にできます。
トレンド転換ポイントの可視化に最適
未埋めギャップは多くのトレーダーが注目する価格帯であり、
サポート/レジスタンスとして高い機能を持ちます。
📈 活用例
スイングトレードでのターゲット設定
窓埋めの完了・未完了の判定
重要水平ラインとしての分析
長期的な価格メモリーの可視化
日足チャートを使うトレーダーの方にとって、
“本当に意味のある未埋め窓だけ”が残る実用的なインジケーターです。
🇺🇸 English Description (for TradingView Community)
Daily Gap Highlighter – Precise Partial Gap Visualization
This indicator automatically detects daily price gaps and visualizes them on the chart —
but with one powerful upgrade:
It keeps only the unfilled portion of the gap.
🔍 Key Features
Daily-based gap detection
Up Gap: Today’s Low > Previous High
Down Gap: Today’s High < Previous Low
Partial gap filling supported
Example: If 90% of the gap has been filled,
→ Only the remaining 10% is still shown as an active gap.
Fully filled gaps are automatically removed
Gap “age filter” included
Automatically hide gaps older than a chosen number of days (default: 90).
Great for identifying key market levels
Unfilled gaps often act as strong support/resistance zones
and are widely watched by professional traders.
📈 Use Cases
Setting targets for swing trades
Determining whether a gap is filled or partially filled
Highlighting significant horizontal price levels
Visualizing long-term market memory zones
This tool is ideal for traders who want
a clean and accurate view of meaningful unfilled gaps only.
Daily Backtest Pivots Problem with the built-in Pivot Points Standard indicator in backtesting/replay mode:
The default "Pivot Points Standard" indicator is excellent on live charts, but it becomes completely unusable for proper backtesting or bar-replay because it always calculates and displays the current day’s pivot points (P, R1, R2, S1, S2, etc.) using the high/low/close of the still-forming current day — even when you're replaying historical bars.
Example:
When replaying or backtesting September 8 at 08:00 (Asian session), the indicator already shows the final R1, R2, S1, S2 for the entire September 8 daily candle, even though in real trading at that moment you would have no idea where the day will close or what the final daily range will be. This creates massive look-ahead bias and makes any strategy that uses daily pivots impossible to test realistically.
Desired behavior (historical accuracy):
During backtesting or bar replay, the indicator should only plot:
The previous day’s completed pivot levels (which were actually known at the start of the current day)
NO current-day pivot levels at all (or only plot them after the daily candle is closed)
Many custom pivot scripts already do exactly this (they only show the prior day’s levels throughout the current day), which is why people abandon the built-in indicator for backtesting.
LiquidityPulse RSI Candle Strength MomentumLiquidity-Pulse RSI Candle Strength Momentum is a multifunctional and original candle-analysis tool designed to highlight the potential internal strength of each candle using a combination of body size and volume.
To view the candle-strength scores clearly: right-click on the chart, go to Settings, and in the Symbol tab untick Body, Borders and Wicks.
Candle Strength Scores
The indicator calculates the average body size and average volume over a user-defined lookback period. Each candle is then compared to these averages, and the indicator combines relative body expansion and relative volume expansion with a square-root calculation to create a (normalised) candle-strength score from 1 to 10.
10 – exceptionally strong compared to the lookback average (large body size and volume)
1 – very weak compared to the lookback average (small body size and volume)
Bullish and bearish candles are evaluated independently, producing separate bull-strength and bear-strength scores.
Optional ATR and volume floors can be enabled to restrict strength scoring to candles that exceed a minimum volatility or participation threshold. This helps users who prefer to filter out low-impact candles during quiet market periods. This option can be enabled or adjusted in the settings but is turned off by default.
Candle Colours
This tool also shows candles coloured based on the candle-strength scores (10 colours in each theme), which makes it easier to visualise the scores and see whether the candle score was high or not. There are several options in the 'colour theme' dropdown menu in the settings. Users can also customise all colours manually.
RSI Candle Strength Arrows
The Relative Strength Index is a long-established momentum tool that calculates the ratio of average upward moves to average downward moves over a defined period, allowing traders to identify potential overbought and oversold market conditions where momentum may be stretched. As well as this, strong early momentum and participation are often associated with more sustained moves.
This indicator combines this methodology and provides optional arrows that appear only when candle strength and RSI conditions align:
– A candle meets or exceeds a chosen strength threshold
– RSI has recently reached an overbought or oversold level
– The candle direction matches the expected momentum shift
For example, if price has reached an oversold RSI level and a strong bullish candle forms (high candle-strength number), an upside arrow may plot.
Users can customise the RSI oversold and overbought thresholds, the minimum candle-strength threshold, and how many bars back the RSI condition must have occurred in the settings.
These arrows are not buy or sell signals but instead highlight rare moments where strong candle behaviour aligns with meaningful RSI extremes. This is useful to users because it allows the candle-strength logic to be applied only when momentum is genuinely stretched, filtering out noise and focusing attention on the most statistically significant market moves.
This indicator brings together a quantitative candle-strength model and a momentum-based RSI filter to give users a clearer view of how individual candles behave relative to their recent environment, while also highlighting when those movements occur during meaningful shifts in market momentum. By combining both forms of analysis, the tool helps traders distinguish ordinary price changes from potentially significant structural behaviour.
How traders can use this indicator
– Stronger candle scores in the trend direction can confirm continuation pressure.
– Powerful opposing candles appearing at RSI extremes may signal potential reversals or exhaustion points.
– If breakouts occur with high candle scores, price may be more likely to follow through.
– Weak candles with low scores help traders avoid false signals or low-quality setups.
– Candle-strength scoring helps users quickly interpret both volume and candle-body behaviour without manual analysis.
Open source, if anyone has any ideas on how to make the script better or have any questions please let me know :)
Disclaimer
This indicator is provided for educational and analytical purposes only and should not be interpreted as financial advice or a recommendation to buy or sell any asset. The candle-strength values displayed by this tool are not literal or definitive measures of market strength; they are derived from a custom mathematical model designed to highlight relative differences in candle behaviour. These values should be viewed as a simplified representation of candle dynamics, not as an objective or universal measure of strength.
Users should be aware that this calculation does not replace the importance of analysing real traded volume, order flow, liquidity conditions, or broader market context. As with any technical tool, results should be considered alongside other forms of analysis, and past performance does not guarantee future outcomes. Use at your own discretion and risk.
Daily 12/21 EMA OverlayDaily 12/21 EMA Overlay
This indicator projects the daily 12 and 21 EMAs onto any timeframe as a soft, semi-transparent band. It is designed to give a constant higher-timeframe bias and dynamic support/resistance reference while you execute your systems on lower timeframes (4H, 1H, 15m, etc.).
The script uses request.security() to calculate the 12/21 EMAs on the daily chart only, then overlays those values on your current timeframe without recalculating them locally. This means the band always represents the true daily 12/21 EMAs, regardless of the chart you are viewing.
Key Features:
Fixed daily 12/21 EMA band, visible on all timeframes
Faded lines and fill to keep focus on your active intraday tools
Simple, minimal inputs (fast length, slow length, colors, band visibility)
Ideal as a higher-timeframe “backdrop” for systems built around EMA trend, rejections, or liquidity sweeps
How to Use
Add the indicator on any symbol and timeframe
Keep your normal intraday EMAs (e.g., EMA 12/21) for execution
Note: You can change the bands to not just be 12 or 21, you can change them if needed for your own systems or emas that you use.
This tool is intentionally lightweight: it does one job—showing the true daily EMA structure across all timeframes—and leaves trade execution logic to your primary system.
FPT - Key Levels with VWAP🔶 FPT – Key Levels with VWAP
This indicator combines multi-session VWAP, higher-timeframe key levels, market structure (HH/HL/LH/LL), and liquidity zones into one clean intraday tool.
Designed for scalping, day-trading, and session-based strategies such as Asia → London → New York flows.
🔵 Features
1. Multi-Session VWAP
Asia VWAP
London VWAP
New York VWAP
Daily reset
Optional deviations & clean mode
2. Key Levels (HTF SR Zones)
Automatically detects:
Previous Day High / Low
4H / 1H Key Levels
Session High / Low
Midpoints
Equal Highs & Equal Lows (liquidity lines)
3. Market Structure Engine
Swing points (HH, HL, LH, LL)
Break of Structure (BOS)
Market Structure Shift (MSS)
Optional minimal mode showing only breaks
4. Liquidity Tools
Buyside & sellside liquidity zones
Range high / low liquidity
Optional void / imbalance zones
5. Clean Visualization Mode
Removes unnecessary text
Shows only the essential levels
Perfect for chart posting or backtesting
🟩 Use Cases
Intraday key level mapping
VWAP deviation → mean reversion setups
Liquidity sweep → BOS/MSS setups
Session volatility filtering
Scalping and fast execution planning
⚠️ Disclaimer
This script does not provide financial advice.
It is for educational and analytical purposes only.
All trading decisions are solely your responsibility.
Khmer Tamleung Gold Price# Khmer Tamleung Gold Price Converter (ឧបករណ៍បំប្លែងតម្លៃមាសជាតម្លឹង)
នេះគឺជាឧបករណ៍ជំនួយដ៏ពិសេសសម្រាប់អ្នកវិនិយោគមាសនៅក្នុងប្រទេសកម្ពុជា។ Indicator នេះនឹងជួយលោកអ្នកក្នុងការគណនាតម្លៃមាសពីទីផ្សារអន្តរជាតិ (XAUUSD) មកជាតម្លៃ **"តម្លឹង"** និងគិតជាប្រាក់ **"រៀល"** ដោយស្វ័យប្រវត្តិ និងបង្ហាញនៅលើតារាងរបស់លោកអ្នកផ្ទាល់។
លោកអ្នកមិនចាំបាច់ចំណាយពេលគណនាដោយដៃទៀតទេ!
### លក្ខណៈពិសេស (Features):
1. **បំប្លែងខ្នាតមាស**: គណនាតម្លៃពី 1 Troy Ounce (31.1035g) ទៅជា 1 តម្លឹង (37.5g) ដោយស្វ័យប្រវត្តិ។
2. **គណនាតម្លៃប្រាក់រៀល**: បង្ហាញតម្លៃមាសជាប្រាក់រៀល (KHR) ដោយផ្អែកលើអត្រាប្តូរប្រាក់ជាក់ស្តែង។
3. **អត្រាប្តូរប្រាក់ស្វ័យប្រវត្តិ (Auto Exchange Rate)**:
* អាចទាញយកអត្រាប្តូរប្រាក់ USD/KHR ពីទីផ្សារផ្ទាល់ (FX_IDC:USDKHR) ដើម្បីភាពសុក្រិត។
* ឬអាចកំណត់អត្រាប្តូរប្រាក់ដោយខ្លួនឯងបាន (ឧទាហរណ៍: 4100)។
4. **ការបង្ហាញ (Display)**: បង្ហាញស្លាកតម្លៃ (Label) នៅជាប់នឹងតម្លៃបច្ចុប្បន្ន ដើម្បីងាយស្រួលមើល។
5. **ការកំណត់ (Customization)**:
* អាចប្តូរពណ៌ផ្ទៃខាងក្រោយ និងពណ៌អក្សរ។
* អាចកំណត់ទីតាំងស្លាក (Offset) ឲ្យនៅឆ្ងាយ ឬជិត។
* អាចជ្រើសរើសបង្ហាញតែតម្លៃរៀល ឬដុល្លារ ឬទាំងពីរ។
### របៀបប្រើប្រាស់:
1. បើកតារាង **XAUUSD** (Gold Spot)។
2. ដាក់ Indicator នេះចូល។
3. លោកអ្នកនឹងឃើញតម្លៃមាសគិតជា **តម្លឹង** នៅខាងស្តាំដៃ។
### រូបមន្តគណនា:
* 1 តម្លឹង = 37.5 ក្រាម
* 1 Troy Ounce = 31.1035 ក្រាម
* តម្លៃតម្លឹង (USD) = (តម្លៃ XAUUSD / 31.1035) * 37.5
* តម្លៃតម្លឹង (KHR) = តម្លៃតម្លឹង (USD) * អត្រាប្តូរប្រាក់
---
**English Summary:**
This indicator converts the international Gold price (XAUUSD) into the traditional Cambodian unit "Tamleung" (37.5g) and displays the price in both USD and KHR (Cambodian Riel). It features automatic USD/KHR exchange rate fetching and fully customizable display settings. Perfect for Cambodian gold traders.
ProCrypto OI Candles — by ruben_procryptoThis indicator visualizes aggregated Open Interest (OI) from multiple futures exchanges (Binance, Bybit, OKX).
It plots OI as colored candles (blue for increasing OI, orange for decreasing OI), combined with a smoothed OI line for clearer trend reading.
Key Features:
Multiple exchange support (Binance / Bybit / OKX)
Aggregated OI calculation
OI candlesticks with custom opacity
Smoothed OI trend line
Optional OI Delta bars
Adjustable smoothing length, range offset, and lookback settings
Works on all timeframes
What it helps with:
Spotting liquidity traps
Identifying fake pumps / fake dumps
Detecting aggressive long/short positioning
Reading funding cycles and OI expansions
Tracking market strength/weakness behind price movements
OI is one of the most powerful tools for understanding leverage behavior and true market intent.
This script gives a clear, clean, real-time view of OI so traders can see where momentum is actually coming from.
Built for traders who use liquidity, leverage, OI shifts, and momentum to understand price movement more accurately.
Created by @ruben_procrypto.
PIVOT AND ICHIMOKU BACKGROUND BY PRANOJIT DEYIt shows pivot bias in relation to day open line and it also shows ichimoku bullish trend background. good for option buyers to understand market bias.
Multi-Timeframe EMA & SMA Scanner - Price Level LabelsOverview
A powerful multi-timeframe moving average scanner that displays EMA and SMA levels from up to 8 different timeframes simultaneously on your chart. Perfect for identifying key support/resistance levels, confluence zones, and multi-timeframe trend analysis.
Key Features
📊 Multi-Timeframe Analysis
Monitor up to 8 different timeframes simultaneously (5m, 10m, 15m, 30m, 1H, 4H, 1D, 1W)
Each timeframe can be independently enabled/disabled
Fully customizable timeframe selection
📈 Comprehensive Moving Averages
5 configurable EMA periods (default: 8, 21, 50, 100, 200)
2 configurable SMA periods (default: 200, 400)
All periods are fully customizable to match your trading strategy
🎯 Smart Price Level Labels
Labels positioned at actual price levels (not in a list)
Color-coded labels for easy identification
Dynamic text color: Green when price is above, Red when below
Compact notation: E8-5m means EMA 8 on 5-minute timeframe
Adjustable label offset from current price
📉 Optional Horizontal Lines
Dotted reference lines at each MA level
Color-matched to corresponding MA type
Can be toggled on/off independently
📋 Comprehensive Data Table
Shows all MA values organized by timeframe
Displays percentage distance from current price
Trend indicator (Strong Up/Up/Neutral/Down/Strong Down)
EMA alignment status (Bullish/Bearish/Mixed)
Color-coded cells for quick visual analysis
🎨 Full Customization
Individual color settings for each MA type
Adjustable table size (Tiny/Small/Normal/Large)
Choose table position (Left/Right)
Toggle any MA or timeframe on/off
🔔 Built-in Alerts
Golden Cross detection (EMA 50 crosses above EMA 200)
Death Cross detection (EMA 50 crosses below EMA 200)
Price crossing major EMAs
Available for multiple timeframes
How to Use
For Day Traders:
Enable lower timeframes (5m, 10m, 15m, 30m)
Focus on faster EMAs (8, 21, 50)
Watch for confluence zones where multiple timeframe MAs cluster
For Swing Traders:
Enable higher timeframes (1H, 4H, 1D)
Use all EMAs plus SMAs for broader perspective
Look for alignment across timeframes for high-probability setups
For Position Traders:
Focus on daily and weekly timeframes
Emphasize 100, 200 EMAs and 200, 400 SMAs
Use for long-term trend confirmation
Understanding the Labels
Label Format: E8-5m 45250.50
E8 = EMA with period 8
5m = 5-minute timeframe
45250.50 = Current price level
Green text = Price is currently above this level (potential support)
Red text = Price is currently below this level (potential resistance)
For SMAs: S200-1D 44500.00
S200 = SMA with period 200
1D = Daily timeframe
Trading Applications
Support/Resistance Identification
MAs act as dynamic support and resistance levels
Multiple timeframe MAs create stronger zones
Confluence Trading
When multiple MAs from different timeframes cluster together, it creates high-probability zones
These areas often result in strong reactions
Trend Analysis
Check the Alignment column: Bullish alignment = all EMAs in ascending order
Trend column shows overall price position relative to all MAs
Entry/Exit Timing
Use lower timeframe MAs for precise entries
Use higher timeframe MAs for trend direction and exits
Settings Guide
Timeframes Section:
Select and enable/disable up to 8 timeframes
Default: 5m, 10m, 15m, 30m, 1H, 4H, 1D, 1W
MA Periods Section:
Customize all EMA and SMA periods
Default EMAs: 8, 21, 50, 100, 200
Default SMAs: 200, 400
Display Section:
Toggle price labels and horizontal lines
Adjust label offset (distance from right edge)
Show/hide data table
Choose table position and size
Colors Section:
Customize colors for each MA type
Each MA has independent color control
Pro Tips
✅ Start with default settings and adjust based on your trading style
✅ Disable timeframes/MAs you don't use to reduce chart clutter
✅ Use the data table for quick overview, labels for precise levels
✅ Look for "confluence clusters" where multiple MAs from different timeframes align
✅ Green labels = potential support, Red labels = potential resistance
✅ Set alerts on key crossovers for automated notifications
Technical Specifications
Pine Script v6
Overlay indicator (displays on main chart)
Maximum 500 labels supported
Real-time updates on each bar close
Compatible with all instruments and timeframes
Perfect For:
Day traders seeking multi-timeframe confirmation
Swing traders looking for high-probability setups
Position traders monitoring long-term trends
Anyone using moving averages as part of their strategy
Note: This indicator does not provide buy/sell signals. It's a tool for analysis and should be used in conjunction with your trading strategy and risk management rules.
RSI HTF Hardcoded (A/B Presets) + Regimes [CHE]RSI HTF Hardcoded (A/B Presets) + Regimes — Higher-timeframe RSI emulation with acceptance-based regime filter and on-chart diagnostics
Summary
This indicator emulates a higher-timeframe RSI on the current chart by resolving hardcoded “HTF-like” lengths from a time-bucket mapping, avoiding cross-timeframe requests. It computes RSI on a resolved length, smooths it with a resolved moving average, and derives a histogram-style difference (RSI minus its smoother). A four-state regime classifier is gated by a dead-band and an acceptance filter requiring consecutive bars before a regime is considered valid. An on-chart table reports the active preset, resolved mapping tag, resolved lengths, and the current filtered regime.
Pine version: v6
Overlay: false
Primary outputs: RSI line, SMA(RSI) line, RSI–SMA histogram columns, reference levels (30/50/70), regime-change alert, info table
Motivation
Cross-timeframe RSI implementations often rely on `request.security`, which can introduce repaint pathways and additional update latency. This design uses deterministic, on-series computation: it infers a coarse target bucket (or uses a forced bucket) and resolves lengths accordingly. The dead-band reduces noise at the decision boundaries (around RSI 50 and around the RSI–SMA difference), while the acceptance filter suppresses rapid flip-flops by requiring sustained agreement across bars.
Differences
Baseline: Standard RSI with a user-selected length on the same timeframe, or HTF RSI via cross-timeframe requests.
Key differences:
Hardcoded preset families and a bucket-based mapping to resolve “HTF-like” lengths on the current chart.
No `request.security`; all calculations run on the chart’s own series.
Regime classification uses two independent signals (RSI relative to 50 and RSI–SMA difference), gated by a configurable dead-band and an acceptance counter.
Always-on diagnostics via a persistent table (optional), showing preset, mapping tag, resolved lengths, and filtered regime.
Practical effect: The oscillator behaves like a slower, higher-timeframe variant with more stable regime transitions, at the cost of delayed recognition around sharp turns (by design).
How it works
1. Bucket selection: The script derives a coarse “target bucket” from the chart timeframe (Auto) or uses a user-forced bucket.
2. Length resolution: A chosen preset defines base lengths (RSI length and smoothing length). A bucket/timeframe mapping resolves a multiplier, producing final lengths used for RSI and smoothing.
3. Oscillator construction: RSI is computed on the resolved RSI length. A moving average of RSI is computed on the resolved smoothing length. The difference (RSI minus its smoother) is used as the histogram series.
4. Regime classification: Four regimes are defined from:
RSI relative to 50 (bullish above, bearish below), with a dead-band around 50
Difference relative to 0 (positive/negative), with a dead-band around 0
These two axes produce strong/weak bull and bear states, plus a neutral state when inside the dead-band(s).
5. Acceptance filter: The raw regime must persist for `n` consecutive bars before it becomes the filtered regime. The alert triggers when the filtered regime changes.
6. Diagnostics and visualization: Histogram columns change shade based on sign and whether the difference is rising/falling. The table displays preset, mapping tag, resolved lengths, and the filtered regime description.
Parameter Guide
Source — Input series for RSI — Default: Close — Smoother sources reduce noise but add lag.
Preset — Base lengths family — Default: A(14/14) — Switch presets to change RSI and smoothing responsiveness.
Target Bucket — Auto or forced bucket — Default: Auto — Force a bucket to lock behavior across chart timeframe changes.
Table X / Table Y — Table anchor — Default: right / top — Move to avoid covering content.
Table Size — Table text size — Default: normal — Increase for presentations, decrease for dense layouts.
Dark Mode — Table theme — Default: enabled — Match chart background for readability.
Show Table — Toggle diagnostics table — Default: enabled — Disable for a cleaner pane.
Epsilon (dead-band) — Noise gate for decisions — Default: 1.0 — Raise to reduce flips near boundaries; lower to react faster.
Acceptance bars (n) — Bars required to confirm a regime — Default: 3 — Higher reduces whipsaw; lower increases reactivity.
Reading
Histogram (RSI–SMA):
Above zero indicates RSI is above its smoother (positive momentum bias).
Below zero indicates RSI is below its smoother (negative momentum bias).
Darker/lighter shading indicates whether the difference is increasing or decreasing versus the previous bar.
RSI vs SMA(RSI):
RSI’s position relative to 50 provides broad directional bias.
RSI’s position relative to its smoother provides momentum confirmation/contra-signal.
Regimes:
Strong bull: RSI meaningfully above 50 and difference meaningfully above 0.
Weak bull: RSI above 50 but difference below 0 (pullback/transition).
Strong bear: RSI meaningfully below 50 and difference meaningfully below 0.
Weak bear: RSI below 50 but difference above 0 (pullback/transition).
Neutral: inside the dead-band(s).
Table:
Use it to validate the active preset, the mapping tag, the resolved lengths, and the filtered regime output.
Workflows
Trend confirmation:
Favor long bias when strong bull is active; favor short bias when strong bear is active.
Treat weak regimes as pullback/transition context rather than immediate reversals, especially with higher acceptance.
Structure + oscillator:
Combine regimes with swing structure, breakouts, or a baseline trend filter to avoid trading against dominant structure.
Use regime change alerts as a “state change” notification, not as a standalone entry.
Multi-asset consistency:
The bucket mapping helps keep a consistent “feel” across different chart timeframes without relying on external timeframe series.
Behavior/Constraints
Intrabar behavior:
No cross-timeframe requests are used; values can still evolve on the live bar and settle at close depending on your chart/update timing.
Warm-up requirements:
Large resolved lengths require sufficient history to seed RSI and smoothing. Expect a warm-up period after loading or switching symbols/timeframes.
Latency by design:
Dead-band and acceptance filtering reduce noise but can delay regime changes during sharp reversals.
Chart types:
Intended for standard time-based charts. Non-time-based or synthetic chart types (e.g., Heikin-Ashi, Renko, Kagi, Point-and-Figure, Range) can distort oscillator behavior and regime stability.
Tuning
Too many flips near decision boundaries:
Increase Epsilon and/or increase Acceptance bars.
Too sluggish in clean trends:
Reduce Acceptance bars by one, or choose a faster preset (shorter base lengths).
Too sensitive on lower timeframes:
Choose a slower preset (longer base lengths) or force a higher Target Bucket.
Want less clutter:
Disable the table and keep only the alert + plots you need.
What it is/isn’t
This indicator is a regime and visualization layer for RSI using higher-timeframe emulation and stability gates. It is not a complete trading system and does not provide position sizing, risk management, or execution rules. Use it alongside structure, liquidity/volatility context, and protective risk controls.
Disclaimer
The content provided, including all code and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.
Best regards and happy trading
Chervolino.
PRO Triple+ Confirmation Overlay SignalsThis script uses the 200 SMA + RSI + MACD confirmations as buy and sell signals. It only give a signal if all three line up. works well for general market direction signals. It also has a higher time frame filter that will filter out 70%-90% of traps and counter trend signals. MACD momentum trigger times entries with momentum shifts. RSI confirmation as well as volume confirmation to remove entries in low volume dead markets.
Pin Bar Highlighter//@version=5
indicator("Pin Bar Highlighter", overlay=true)
body = math.abs(close - open)
upperWick = high - math.max(open, close)
lowerWick = math.min(open, close) - low
bullPin = (lowerWick >= body * 2) and (close > open)
bearPin = (upperWick >= body * 2) and (close < open)
bullColor = color.rgb(10, 20, 80)
bearColor = color.rgb(255, 20, 150)
barcolor(bullPin ? bullColor : bearPin ? bearColor : na)
Chart Info & Signature## Overview
Chart Info & Signature displays customizable information tables on your TradingView chart. It consists of two independent tables that can be positioned anywhere on the chart and fully customized to match your branding and preferences.
---
## Table 1: Market Info Table
### What It Displays
The Market Info Table shows essential trading information:
1. **Exchange** - The exchange name (e.g., "BINANCE", "NASDAQ")
2. **Trading Pair** - The symbol pair (e.g., "BTC/USD", "EUR/USD") with optional timeframe
3. **Date** - Current date in DD/MM/YYYY format
4. **Signature** (optional) - Custom text that appears below the date
### Positioning
- **Vertical Position**: Top, Middle, or Bottom of the chart
- **Horizontal Position**: Left, Center, or Right of the chart
- **Exchange Position**: Can be placed at the top or bottom of the table
### Customization Options
#### Exchange Settings
- Show/Hide exchange name
- Text size (tiny, small, normal, large, huge, auto)
- Text color
- Background color
- Position (top or bottom of table)
#### Pair Settings
- Pair delimiter (default: "/")
- Text size
- Text color
- Background color
#### Timeframe Settings
- Show/Hide timeframe (displays current chart timeframe like "1h", "15m", "1D")
#### Date Settings
- Show/Hide date
- Text size
- Text color
- Background color
#### Signature Settings (Below Date)
- Show/Hide signature
- Custom text
- Text size
- Text color
- Background color
- Spacing before signature (with adjustable size)
---
## Table 2: Signature Table
### What It Displays
The Signature Table displays up to 3 customizable text lines, perfect for contact information or any custom text you want to display.
### Positioning
- **Vertical Position**: Top, Middle, or Bottom of the chart
- **Horizontal Position**: Left, Center, or Right of the chart
### Customization Options
#### Line 1 (Top Line)
- Show/Hide line
- Custom text
- Text size
- Text color
- Background color
- Spacing after line (with adjustable size)
#### Line 2 (Middle Line)
- Show/Hide line
- Custom text
- Text size
- Text color
- Background color
- Spacing after line (with adjustable size)
#### Line 3 (Bottom Line)
- Show/Hide line
- Custom text
- Text size
- Text color
- Background color
### Smart Positioning
The table automatically adjusts the spacing between lines based on which lines are visible, ensuring proper alignment regardless of which lines you choose to display.
---
## Key Features
### ✅ Fully Customizable
- Every element can be shown or hidden
- Individual text sizes for each element
- Custom colors for text and backgrounds
- Adjustable spacing between elements
### ✅ Flexible Positioning
- Each table can be positioned independently
- 9 possible positions per table (3 vertical × 3 horizontal)
- Tables can overlap or be placed separately
### ✅ Organized Settings
- Settings are organized into logical groups and subgroups
- Easy to find and modify specific elements
- Clean, intuitive settings panel
### ✅ Dynamic Content
- Trading pair automatically updates based on chart symbol
- Timeframe automatically matches current chart timeframe
- Date updates in real-time
- Exchange name pulled from symbol information
---
## Text Size Options
All text size settings support the following options:
- **tiny** - Smallest fixed size
- **small** - Small fixed size
- **normal** - Standard fixed size
- **large** - Large fixed size
- **huge** - Largest fixed size
- **auto** - Automatically adjusts based on chart zoom and screen size
---
## Default Configuration
- **Market Info Table**: Positioned at top-right, showing exchange, pair with timeframe, and date. Signature row in Market Info Table is hidden by default.
- **Signature Table**: Positioned at bottom-right, showing 3 signature lines with added spacing between line 1 and line 2
- All text uses semi-transparent white (#ffffff77) by default
- All backgrounds are transparent by default
---
## Tips
1. Use **auto** text size for elements that need to scale with chart zoom
2. Use transparent backgrounds for a clean, minimal look
3. Position tables in corners to avoid interfering with price action
4. Customize colors to match your chart theme
5. Hide elements you don't need to keep the display clean
Triple Moving Averages Daily on Timeframe (10/20/50 with LabelsUnlike other MA's this give me on daily time frame irrespective of chart time
Modello Espansione 1 – Monday Range + ClustersONLY M1 to M30. Don't work on H1 or more. Don't know how i'm watching 😳






















