Lọc nhiễu MACD [VNFlow]Contact and discuss to use advanced tools to support your trading strategy
Email: hasobin@outlook.com
Phone: 0373885338
See you,
指標和策略
RSI of RSI Deviation (RoRD)RSI of RSI Deviation (RoRD) - Advanced Momentum Acceleration Analysis
What is RSI of RSI Deviation (RoRD)?
RSI of RSI Deviation (RoRD) is a insightful momentum indicator that transcends traditional oscillator analysis by measuring the acceleration of momentum through sophisticated mathematical layering. By calculating RSI on RSI itself (RSI²) and applying advanced statistical deviation analysis with T3 smoothing, RoRD reveals hidden market dynamics that single-layer indicators miss entirely.
This isn't just another RSI variant—it's a complete reimagining of how we measure and visualize momentum dynamics. Where traditional RSI shows momentum, RoRD shows momentum's rate of change . Where others show static overbought/oversold levels, RoRD reveals statistically significant deviations unique to each market's character.
Theoretical Foundation - The Mathematics of Momentum Acceleration
1. RSI² (RSI of RSI) - The Core Innovation
Traditional RSI measures price momentum. RoRD goes deeper:
Primary RSI (RSI₁) : Standard RSI calculation on price
Secondary RSI (RSI²) : RSI calculated on RSI₁ values
This creates a "momentum of momentum" indicator that leads price action
Mathematical Expression:
RSI₁ = 100 - (100 / (1 + RS₁))
RSI² = 100 - (100 / (1 + RS₂))
Where RS₂ = Average Gain of RSI₁ / Average Loss of RSI₁
2. T3 Smoothing - Lag-Free Response
The T3 Moving Average, developed by Tim Tillson, provides:
Superior smoothing with minimal lag
Adaptive response through volume factor (vFactor)
Noise reduction while preserving signal integrity
T3 Formula:
T3 = c1×e6 + c2×e5 + c3×e4 + c4×e3
Where e1...e6 are cascaded EMAs and c1...c4 are volume-factor-based coefficients
3. Statistical Z-Score Deviation
RoRD employs dual-layer Z-score normalization :
Initial Z-Score : (RSI² - SMA) / StDev
Final Z-Score : Z-score of the Z-score for refined extremity detection
This identifies statistically rare events relative to recent market behavior
4. Multi-Timeframe Confluence
Compares current timeframe Z-score with higher timeframe (HTF)
Provides directional confirmation across time horizons
Filters false signals through timeframe alignment
Why RoRD is Different & More Sophisticated
Beyond Traditional Indicators:
Acceleration vs. Velocity : While RSI measures momentum (velocity), RoRD measures momentum's rate of change (acceleration)
Adaptive Thresholds : Z-score analysis adapts to market conditions rather than using fixed 70/30 levels
Statistical Significance : Signals are based on mathematical rarity, not arbitrary levels
Leading Indicator : RSI² often turns before price, providing earlier signals
Reduced Whipsaws : T3 smoothing eliminates noise while maintaining responsiveness
Unique Signal Generation:
Quantum Orbs : Multi-layered visual signals for statistically extreme events
Divergence Detection : Automated identification of price/momentum divergences
Regime Backgrounds : Visual market state classification (Bullish/Bearish/Neutral)
Particle Effects : Dynamic visualization of momentum energy
Visual Design & Interpretation Guide
Color Coding System:
Yellow (#e1ff00) : Neutral/balanced momentum state
Red (#ff0000) : Overbought/extreme bullish acceleration
Green (#2fff00) : Oversold/extreme bearish acceleration
Orange : Z-score visualization
Blue : HTF Z-score comparison
Main Visual Elements:
RSI² Line with Glow Effect
Multi-layer glow creates depth and emphasis
Color dynamically shifts based on momentum state
Line thickness indicates signal strength
Quantum Signal Orbs
Green Orbs Below : Statistically rare oversold conditions
Red Orbs Above : Statistically rare overbought conditions
Multiple layers indicate signal strength
Only appear at Z-score extremes for high-conviction signals
Divergence Markers
Green Circles : Bullish divergence detected
Red Circles : Bearish divergence detected
Plotted at pivot points for precision
Background Regimes
Green Background : Bullish momentum regime
Grey Background : Bearish momentum regime
Blue Background : Neutral/transitioning regime
Particle Effects
Density indicates momentum energy
Color matches current RSI² state
Provides dynamic market "feel"
Dashboard Metrics - Deep Dive
RSI² ANALYSIS Section:
RSI² Value (0-100)
Current smoothed RSI of RSI reading
>70 : Strong bullish acceleration
<30 : Strong bearish acceleration
~50 : Neutral momentum state
RSI¹ Value
Traditional RSI for reference
Compare with RSI² for acceleration/deceleration insights
Z-Score Status
🔥 EXTREME HIGH : Z > threshold, statistically rare bullish
❄️ EXTREME LOW : Z < threshold, statistically rare bearish
📈 HIGH/📉 LOW : Elevated but not extreme
➡️ NEUTRAL : Normal statistical range
MOMENTUM Section:
Velocity Indicator
▲▲▲ : Strong positive acceleration
▼▼▼ : Strong negative acceleration
Shows rate of change in RSI²
Strength Bar
██████░░░░ : Visual power gauge
Filled bars indicate momentum strength
Based on deviation from center line
SIGNALS Section:
Divergence Status
🟢 BULLISH DIV : Price making lows, RSI² making highs
🔴 BEARISH DIV : Price making highs, RSI² making lows
⚪ NO DIVERGENCE : No divergence detected
HTF Comparison
🔥 HTF EXTREME : Higher timeframe confirms extremity
📊 HTF NORMAL : Higher timeframe is neutral
Critical for multi-timeframe confirmation
Trading Application & Strategy
Signal Hierarchy (Highest to Lowest Priority):
Quantum Orb + HTF Alignment + Divergence
Highest conviction reversal signal
Z-score extreme + timeframe confluence + divergence
Quantum Orb + HTF Alignment
Strong reversal signal
Wait for price confirmation
Divergence + Regime Change
Medium-term reversal signal
Monitor for orb confirmation
Threshold Crosses
Traditional overbought/oversold
Use as alert, not entry
Entry Strategies:
For Reversals:
Wait for Quantum Orb signal
Confirm with HTF Z-score direction
Enter on price structure break
Stop beyond recent extreme
For Continuations:
Trade with regime background color
Use RSI² pullbacks to center line
Avoid signals against HTF trend
For Scalping:
Focus on Z-score extremes
Quick entries on orb signals
Exit at center line cross
Risk Management:
Reduce position size when signals conflict with HTF
Avoid trades during regime transitions (blue background)
Tighten stops after divergence completion
Scale out at statistical mean reversion
Development & Uniqueness
RoRD represents months of research into momentum dynamics and statistical analysis. Unlike indicators that simply combine existing tools, RoRD introduces several genuine innovations :
True RSI² Implementation : Not a smoothed RSI, but actual RSI calculated on RSI values
Dual Z-Score Normalization : Unique approach to finding statistical extremes
T3 Integration : First RSI² implementation with T3 smoothing for optimal lag reduction
Quantum Orb Visualization : Revolutionary signal display method
Dynamic Regime Detection : Automatic market state classification
Statistical Adaptability : Thresholds adapt to market volatility
This indicator was built from first principles, with each component carefully selected for its mathematical properties and practical trading utility. The result is a professional-grade tool that provides insights unavailable through traditional momentum analysis.
Best Practices & Tips
Start with default settings - they're optimized for most markets
Always check HTF alignment before taking signals
Use divergences as early warning , orbs as confirmation
Respect regime backgrounds - trade with them, not against
Combine with price action - RoRD shows when, price shows where
Adjust Z-score thresholds based on market volatility
Monitor dashboard metrics for complete market context
Conclusion
RoRD isn't just another indicator—it's a complete momentum analysis system that reveals market dynamics invisible to traditional tools. By combining momentum acceleration, statistical analysis, and multi-timeframe confluence with intuitive visualization, RoRD provides traders with a sophisticated edge in any market condition.
Whether you're scalping rapid reversals or positioning for major trend changes, RoRD's unique approach to momentum analysis will transform how you see and trade market dynamics.
See momentum's future. Trade with statistical edge.
Trade with insight. Trade with anticipation.
— Dskyz, for DAFE Trading Systems
Crypto Swing Trading Strategy (1-5 Day)Crypto Swing Trading Strategy Overview
This Pine Script implements a comprehensive 1-5 day swing trading strategy designed specifically for cryptocurrencies like BITSTAMP:BTCUSD (BTC), COINBASE:ETHUSD (ETH), and COINBASE:XRPUSD (XRP).
Here's what makes this strategy effective:
Core Philosophy: "Trade With The Trend"
The strategy follows the fundamental principle of trend-following - only taking trades in the direction of the prevailing market trend to maximize probability of success.
Key Components:
🔍 Trend Identification
Uses 50-day and 200-day EMAs to determine market direction
Only goes long when 50 EMA > 200 EMA (uptrend)
Only goes short when 50 EMA < 200 EMA (downtrend)
⚡ Smart Entry Timing
Waits for pullbacks within the trend (price near 50 EMA)
Uses RSI to identify oversold conditions in uptrends (RSI < 45) or overbought conditions in downtrends (RSI > 70)
Enters when momentum confirms trend resumption (RSI crosses back)
🛡️ Advanced Risk Management
ATR-based stop losses that adapt to market volatility
Position sizing ensures consistent 1% risk per trade
Wider stops in volatile markets, tighter stops in calm markets
💰 Profit Optimization
Takes 50% profit at 2:1 reward-to-risk ratio
Trails remaining position with ATR-based stops
Lets winners run while protecting gains
Why It Works:
High Probability Setups: Only trades with the trend during pullbacks
Volatility Adaptive: ATR ensures stops aren't too tight or too wide
Emotion-Free: All rules are clearly defined for automated execution
Capital Preservation: Strong risk management prevents large losses
Best Used For:
4-hour timeframes on major cryptocurrencies - Such as BTC - ETH - XRP
Trending markets (avoid during sideways consolidation)
Traders who want systematic, rule-based approach
This strategy combines the reliability of trend-following with the precision of momentum indicators, creating a robust system for capturing crypto market swings while managing downside risk effectively.
Trend TraderDescription and Usage of the "Trend Trader" Indicator
The "Trend Trader" indicator, created by Gerardo Mercado as a legacy project, is a versatile trading tool designed to identify potential buy and sell signals across various instruments. While it provides predefined settings for popular instruments like US30, NDX100, GER40, and GOLD, it can be seamlessly adapted to any market, including forex pairs like EUR/USD. The indicator combines moving averages, time-based filters, and MACD confirmation to enhance decision-making for traders.
How It Works
Custom Moving Averages (MAs):
The indicator uses two moving averages:
Short MA: A faster-moving average (default: 10 periods).
Long MA: A slower-moving average (default: 100 periods).
Buy signals are generated when the Short MA crosses above the Long MA.
Sell signals are triggered when the Short MA crosses below the Long MA.
Time-Based Signals:
The user can define specific trading session times (start and end in UTC) to focus on high-activity periods for their chosen market.
Signals and background coloring are only active during the allowed session times.
MACD Confirmation:
A MACD (Moving Average Convergence Divergence) calculation on a 15-minute timeframe ensures stronger confirmation for signals.
Buy signals require the MACD line to be above the signal line.
Sell signals require the MACD line to be at or below the signal line.
Target Levels:
Predefined profit targets are dynamically set based on the selected trading instrument.
While it includes settings for US30, NDX100, GER40, and GOLD, the target levels can be adjusted to fit the volatility and structure of any asset, including forex pairs like EUR/USD.
Target 1 and Target 2 levels display when these thresholds are met after an entry signal.
Adaptability to Any Market:
Although predefined options are included for specific instruments, the indicator's moving averages, time settings, and MACD logic are applicable to any tradable asset, making it suitable for forex, commodities, indices, and more.
Visual Alerts:
Labels appear on the chart to highlight "BUY" and "SELL" signals at crossover points.
Additional labels indicate when price movements reach the predefined target levels.
Bar and background coloring visually represent active signals and MACD alignment.
Purpose
The indicator aims to simplify trend-following and momentum-based trading strategies. By integrating moving averages, MACD, customizable time sessions, and dynamic targets, it offers clear entry and exit points while being adaptable to the needs of individual traders across diverse markets.
How to Use
Setup:
Add the indicator to your TradingView chart.
Configure the moving average periods, trading session times, and target levels according to your preferences.
Select the instrument for predefined target settings or customize them to fit the asset you’re trading (e.g., EUR/USD or other forex pairs).
Interpreting Signals:
Buy Signal: The Short MA crosses above the Long MA, MACD confirms the upward trend, and the session is active.
Sell Signal: The Short MA crosses below the Long MA, MACD confirms the downward trend, and the session is active.
Adapt for Any Instrument:
Adjust the predefined target levels to match the volatility and trading style for your chosen asset.
For forex pairs like EUR/USD, consider typical pip movements to set appropriate profit targets.
Targets:
Use the provided target labels (e.g., 50 or 100 points) or customize them to reflect realistic profit goals based on the asset’s volatility.
Visual Aids:
Pay attention to the background color:
Greenish: Indicates a bullish trend during the allowed session.
Redish: Indicates a bearish trend during the allowed session.
Use the "BUY" and "SELL" labels for actionable insights.
This indicator is a flexible and powerful tool, suitable for traders across all markets. Its adaptability ensures that it can enhance your strategy, whether you’re trading forex, commodities, indices, or other assets. By offering actionable alerts and customizable settings, the "Trend Trader" serves as a valuable addition to any trader’s toolkit. FX:EURUSD
log regression forex and altcoin dom (caN)(0-100 Range)NO REPAİNTİNG
Stablecoin Dominance Indicator
The Stablecoin Dominance Indicator is a powerful tool designed to analyze the relative dominance of stablecoins within the cryptocurrency market. It utilizes a combination of regression analysis and standard deviation to provide valuable insights into market sentiment and potential turning points. This indicator is particularly useful for traders and investors looking to make informed decisions in the dynamic world of cryptocurrencies.
How to Read the Indicator:
The Stablecoin Dominance Indicator comprises three key lines, each serving a specific purpose:
Middle Line (Regression Line):
The middle line represents the Regression Line of stablecoin dominance, acting as a baseline showing the average or mean dominance of stablecoins in the market.
When the stablecoin dominance hovers around this middle line, it suggests a relatively stable market sentiment with no extreme overbought or oversold conditions.
Upper Line (2 Standard Deviations Above Mean):
The upper line, positioned 2 standard deviations above the Regression Line, indicates a significant deviation from the mean.
When stablecoin dominance approaches or surpasses this upper line, it may imply that the cryptocurrency market is experiencing oversold conditions, potentially signaling a market bottom. This is an opportune time for traders to consider increasing their exposure to cryptocurrencies.
Lower Line (2 Standard Deviations Below Mean):
The lower line, positioned 2 standard deviations below the Regression Line, shows a significant deviation in the opposite direction, indicating overbought conditions.
When stablecoin dominance approaches or falls below this lower line, it suggests overbought conditions in the market, possibly indicating a market top. Traders may consider reducing their cryptocurrency holdings or taking profits during this phase.
It's important to note that the Stablecoin Dominance Indicator should be used in conjunction with other analysis tools and strategies.
By understanding and applying the insights provided by this indicator, traders and investors can make more informed decisions in the ever-changing cryptocurrency landscape, potentially enhancing their trading strategies and risk management practices.
Smart Reversal Signal (Stoch + RSI + EQH/EQL) - TF + Lookback📌 Smart Reversal Signal (Stoch + RSI + EQH/EQL)
This custom TradingView indicator identifies potential trend reversal signals using a combination of Stochastic Oscillator, Relative Strength Index (RSI), and Equal Highs/Lows (EQH/EQL) based on a higher timeframe.
✅ Key Features:
Stochastic %K and %D Cross
Detects bullish reversal when %K crosses above %D in oversold zone (< 20)
Detects bearish reversal when %K crosses below %D in overbought zone (> 80)
RSI Signal Confirmation
Bullish when RSI crosses above the oversold level (e.g., 30)
Bearish when RSI crosses below the overbought level (e.g., 70)
Equal High / Low Zones (EQH/EQL)
Confirms price is reversing near previous unbroken highs/lows (within % tolerance)
Uses customizable higher timeframe (e.g., 1H) and user-defined lookback period
Buy Signal:
RSI crosses up from oversold
Stochastic %K crosses above %D
Price near an Equal Low (EQL)
Sell Signal:
RSI crosses down from overbought
Stochastic %K crosses below %D
Price near an Equal High (EQH)
Visual Aids:
Background highlights (green for Buy, red for Sell)
RSI and Stochastic plots with overbought/oversold levels
Alert conditions for Buy and Sell triggers
⚙️ Customizable Inputs:
Stochastic and RSI lengths
Overbought/Oversold levels
Tolerance for EQH/EQL zones (%)
Timeframe for EQH/EQL detection
Lookback bars to define EQ zones
📈 Use Case:
This indicator helps traders detect high-probability reversal zones by aligning:
Momentum shifts (via RSI & Stochastic)
Price structure zones (EQH/EQL)
Ideal for swing trading, mean reversion strategies, or trend reversal confirmations.
Flow & Analytics (Normalized)Flow & Analytics (Normalized)
A multi‐metric lower‐pane indicator that condenses volume imbalances and flow dynamics into four normalized measures—Δ %, Ratio, Z-Score, and Cumulative Δ—plus optional buy/sell “flow” bars. All series are scaled to –1…+1 for direct comparison.
How to Add & Configure
Add the script to your chart (overlay = false).
In Settings → Inputs, toggle on/off the four metrics and the background flow bars.
Adjust look-back windows:
Flow Lookback controls how much history the bars normalize over.
Z Window sets the period for the Z-Score’s mean/standard deviation.
Cum Δ Lookback determines how reactive the cumulative Δ line is.
Choose colors, line widths, and opacity to match your style.
Reading the Metrics
Flow Bars (teal/green & red overlay):
Plotted as vertical columns from –1…+1, they show buy vs. sell pressure each bar.
The taller bar is drawn behind, the shorter in front—so you always see both sides of the fight.
Use: Quickly spot bars where one side dominates (e.g. an all-green or all-red bar).
Δ % (orange line, thick):
(
B
u
y
s
−
S
e
l
l
s
)
/
(
B
u
y
s
+
S
e
l
l
s
)
(Buys−Sells)/(Buys+Sells).
Measures net imbalance as a percentage of total flow.
Crosses of 0 indicate a shift from selling to buying pressure (or vice versa).
Values near ±1 reveal nearly pure one-sided flow.
Ratio (purple dashed):
Defined as
(
B
/
S
−
1
)
/
(
B
/
S
+
1
)
(B/S−1)/(B/S+1), which algebraically equals Δ %.
Plotted separately so you can style or overlay it for confirmation.
Note: It will track exactly on top of Δ %, so if you need a distinct signal consider replacing it with a “raw” B/S ratio or a different transform.
Z-Score (yellow):
Standardizes the bar’s raw Δ (
B
−
S
B−S) versus its recent mean/σ over Z Window.
Caps at ±Z Cap Threshold, then scales back to ±1.
Highlights bars that are unusually imbalanced compared to recent history.
Bar-coloring marks extreme |Z| > 1 in solid yellow.
Cumulative Δ (teal):
A running sum of bar-by-bar Δ, normalized to its peak absolute over Cum Δ Lookback.
Tracks whether buying or selling has been dominant over the last N bars.
Values above zero show net buying accumulation; values below, net selling.
Putting It All Together
Trend Entry/Exit
A sustained positive Cum Δ plus repeated high-Z bars confirms institutional buying.
Conversely, negative Cum Δ with extreme Z down-bars signals strong selling.
Divergence
When price makes new highs but Δ % or Cum Δ fails to follow, suspect weakening momentum.
A Z-Score peak without corresponding price movement often precedes reversals.
Micro-structure
Single-bar Flow Bars show quick supply/demand switches.
Use the opacity controls to “ghost” the losing side behind the winner—ideal for scalping or order-flow analysis.
Pro Tips
Align Look-back Windows with your chart timeframe (e.g. 20–50 bars on a 1 min chart).
Combine with price support/resistance zones: an extreme Z-Score at a pivot often marks a high-probability turn.
Customize the Ratio plot to raw buy/sell ratio if you need a different sensitivity curve.
Use this tool as a real-time “flow compass”—it blends volume, imbalance, and statistical context into one clean pane, helping you spot when buying or selling truly takes over.
Pivot Points StandardThis is an indicator that has multiple EMAs and pivot points and RSI table. It will help to trade better. ShubhTrades
Log Regression Oscillator (caN)fi(ki)=>'ra'
// This Pine Script™ code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org
// © fikira
//@version=6
indicator('Log Regression Oscillator', max_bars_back=5000, max_labels_count=500, max_lines_count=500, overlay=false)
________________________________________________________________________________________________________________________ ='
⎞ Settings ⎛
(__--------__) '
cGREEN = #089981, cRED = #F23645, cGRAY = #757a79
threshold = input.int (300 , minval=150)
proactive = input.bool (false )
GRE = input.color(cGREEN , 'Bull' , group='Style' )
RED = input.color(cRED , 'Bear' , group='Style' )
GRY = input.color(cGRAY , 'Unconfirmed Bull/Bear' , group='Style' )
showDsh = input.bool ( true , 'Show Dashboard' , group='Dashboard' )
dshLoc = str.replace(str.lower(input.string('Top Right', 'Location', group='Dashboard', options= )), ' ', '_')
txtSize = str.lower(input.string('Normal' , 'Size' , group='Dashboard', options= ) )
________________________________________________________________________________________________________________________ :='
⎞ Constants and general variables ⎛
(__-------------------------------__) '
INV = color(na)
n = bar_index
________________________________________________________________________________________________________________________ :='
⎞ Functions ⎛
(__---------__) '
dot(x, y)=>
if x.size() > 1 and y.size() > 1
m1 = matrix.new()
m2 = matrix.new()
m1.add_col(m1.columns(), y)
m2.add_row(m2.rows (), x)
m1.mult (m2)
.eigenvalues()
.sum()
//Closed form solution to best fit log function
log_reg(log_x, log_x2, log_y) =>
sum_log_x = log_x . sum()
sum_y = log_y . sum()
sum_log_x_y = dot(log_x ,log_y)
sum_log_x_sq = log_x2 . sum()
n_ = log_x .size()
//Closed-form solutions for a and b
a = (n_ * sum_log_x_y - sum_log_x * sum_y)
/ (n_ * sum_log_x_sq - math.pow(sum_log_x , 2))
b = ( sum_y - a * sum_log_x ) / n_
//Variables declared for draw()
var arrayarr = array.new(4, na)
proActH = false, proActL = false
var lastHi = 0., var lastLi = 0.
draw(aTop_x, aTop_x2, aTop_y, aBot_x, aBot_x2, aBot_y, top_points, prc_points, btm_points, refit) =>
var label labH = na, var label labL = na
vTop = 0.
vBtm = 0.
if refit
top_points.clear(), prc_points.clear(), btm_points.clear()
= log_reg(aTop_x, aTop_x2, aTop_y), arr.set(0, a_top), arr.set(1, b_top)
= log_reg(aBot_x, aBot_x2, aBot_y), arr.set(2, a_btm), arr.set(3, b_btm)
for i = 0 to n
top = math.exp(a_top * math.log(i) + b_top)
btm = math.exp(a_btm * math.log(i) + b_btm)
avg = math.avg(top, btm)
if i == n
vTop := top
vBtm := btm
ix = n - i
if ix < 4999
hi = high
lo = low
cl = close
getC = hi > avg ? hi : lo < avg ? lo : cl
prc_points.push(chart.point.from_index(i, 100 * math.max(-1.5, math.min(1.5, (getC - btm) / (top - btm)))))
for lab in label.all
lab.delete()
firstH = proactive ? true : false
firstL = proactive ? true : false
color colH = na, color colL = na
sz = prc_points.size()
if aTop_x.size() > 0
for i = aTop_x.size() -1 to 0
idx = int(math.exp(aTop_x.get(i)))
if idx < sz and idx > n - 5000 and idx >= 0
if firstH
if aTop_x.last() != lastHi
colH := GRY
firstH := false
else
colH := RED
else
colH := RED
top = math.exp(a_top * math.log(idx) + b_top)
btm = math.exp(a_btm * math.log(idx) + b_btm)
label.new(idx , 100 *
math.max(-1.5, math.min(1.5, (high - btm)
/ (top - btm)
) ), '●', textcolor = colH, color=INV, size=8)
if aBot_x.size() > 0
for i = aBot_x.size() -1 to 0
idx = int(math.exp(aBot_x.get(i)))
if idx < sz and idx > n - 5000 and idx >= 0
if firstL
if aBot_x.last() != lastLi
colL := GRY
firstL := false
else
colL := GRE
else
colL := GRE
top = math.exp(a_top * math.log(idx) + b_top)
btm = math.exp(a_btm * math.log(idx) + b_btm)
label.new(idx , 100 *
math.max(-1.5, math.min(1.5, (low - btm)
/ (top - btm)
) ), '●', textcolor = colL, color=INV, size=8
, style = label.style_label_up)
else
top = math.exp(arr.get(0) * math.log(n) + arr.get(1))
btm = math.exp(arr.get(2) * math.log(n) + arr.get(3))
avg = math.avg(top, btm)
vTop := top
vBtm := btm
hi = high, lo = low, cl = close
getC = hi > avg ? hi : lo < avg ? lo : cl
prc_points.push(chart.point.from_index(n, 100 * math.max(-1.5, math.min(1.5, (getC - btm) / (top - btm)))))
for poly in polyline.all
poly.delete()
if barstate.islast
labH.delete(), labH := label.new(n, 100, str.tostring(vTop, format.mintick), color=color.new(chart.fg_color, 85), textcolor=RED, style=label.style_label_lower_left, size=12)
labL.delete(), labL := label.new(n, 0, str.tostring(vBtm, format.mintick), color=color.new(chart.fg_color, 85), textcolor=GRE, style=label.style_label_upper_left, size=12)
polyline.new(prc_points.size() >= 5000 ? prc_points.slice(prc_points.size()-4999, prc_points.size()-1) : prc_points, line_color=chart.fg_color)
________________________________________________________________________________________________________________________ :='
⎞ Variables ⎛
(__---------__) '
//bool trigerring fit
refit = false
var top_points = array.new(0)
var prc_points = array.new(0)
var btm_points = array.new(0)
//Variables arrays
var peaks_y = array.new(0)
var peaks_x = array.new(0)
var peaks_x2 = array.new(0)
var btms_y = array.new(0)
var btms_x = array.new(0)
var btms_x2 = array.new(0)
var tb = table.new(dshLoc, 4, 8
, bgcolor = #1e222d
, border_color = #373a46
, border_width = 1
, frame_color = #373a46
, frame_width = 1)
________________________________________________________________________________________________________________________ :='
⎞ Exec ⎛
(__----__) '
//Top Bottom detection
max = ta.max(high)
var min = low
min := max == high ? low
: math.min(low , min)
barsmax = ta.barssince(high == max)
barsmin = ta.barssince(low == min)
if barsmax == threshold
nmax = n-barsmax
if peaks_x .size() > 0 and peaks_x.last() != lastHi
peaks_y .set(-1, math.log( max) )
peaks_x .set(-1, math.log(nmax) )
peaks_x2.set(-1, math.pow(math.log(nmax), 2))
else
peaks_y .push( math.log(max) )
peaks_x .push( math.log(nmax) )
peaks_x2.push( math.pow(math.log(nmax), 2))
lastHi := math.log(nmax)
refit := true
else
min := math.min(low , min)
if barsmin == threshold
nmin = n-barsmin
if btms_x .size() > 0 and btms_x.last() != lastLi
btms_y .set(-1, math.log(min) )
btms_x .set(-1, math.log(nmin) )
btms_x2 .set(-1, math.pow(math.log(nmin), 2))
else
btms_y .push( math.log( min) )
btms_x .push( math.log(nmin) )
btms_x2.push( math.pow(math.log(nmin), 2))
lastLi := math.log(nmin)
refit := true
chMax = ta.change(max) , chMin = ta.change(min)
if (chMax != 0 or chMin != 0) and proactive and not refit and n > threshold
= log_reg(peaks_x, peaks_x2, peaks_y)
= log_reg( btms_x, btms_x2, btms_y)
top = math.exp(a_top * math.log(n) + b_top)
btm = math.exp(a_btm * math.log(n) + b_btm)
if 100 * ((high - btm) / (top - btm)) > 90
if peaks_x.last() == lastHi
peaks_y .push(math.log(max))
peaks_x .push(math.log(n))
peaks_x2.push(math.log(n)
*math.log(n))
else
peaks_y .set(-1, math.log(max))
peaks_x .set(-1, math.log(n))
peaks_x2.set(-1, math.log(n)
* math.log(n))
arr.set(0, a_top), arr.set(1, b_top)
arr.set(2, a_btm), arr.set(3, b_btm)
refit := true
proActH := true
if 100 * ((low - btm) / (top - btm)) < 10
if btms_x.last() == lastLi
btms_y .push(math.log(min))
btms_x .push(math.log(n))
btms_x2.push(math.log(n)
*math.log(n))
else
btms_y .set(-1, math.log(min))
btms_x .set(-1, math.log(n))
btms_x2.set(-1, math.log(n)
* math.log(n))
arr.set(0, a_top), arr.set(1, b_top)
arr.set(2, a_btm), arr.set(3, b_btm)
refit := true
proActL := true
enough = peaks_x.size() > 1 and btms_x.size() > 1
if enough
draw(peaks_x, peaks_x2, peaks_y, btms_x, btms_x2, btms_y, top_points, prc_points, btm_points, refit)
else
if barstate.islast
txt = ''
if peaks_x.size() < 2
txt += str.format('{0} Top Swing', peaks_x.size())
if btms_x .size() < 2
if txt != ''
txt += ', '
txt += str.format('{0} Bottom Swing', btms_x .size())
txt += ' Change "Threshold" or timeframe for more Swings'
tb.cell(0, 0, txt, text_color=chart.fg_color, text_size=txtSize)
________________________________________________________________________________________________________________________ :='
⎞ Plot ⎛
(__----__) '
plot(n%2==0? 30 : na,'30' , color=color.new(chart.fg_color, 50), style=plot.style_linebr, display=display.pane)
plot(n%2==0? 70 : na,'70' , color=color.new(chart.fg_color, 50), style=plot.style_linebr, display=display.pane)
_100 = plot(100, 'na(100)', display=display.none)
_70 = plot( 70, 'na(70)' , display=display.none)
_60 = plot( 60, 'na(60)' , display=display.none)
_50 = plot( 50, 'na(50)' , display=display.none)
_40 = plot( 40, 'na(40)' , display=display.none)
_30 = plot( 30, 'na(30)' , display=display.none)
_00 = plot( 0, 'na(0)' , display=display.none)
fill(_100, _70, 100, 70, color.new(RED, 50), INV)
fill( _60, _50, 60, 50, INV, color.new(chart.fg_color, 85))
fill( _50, _40, 50, 40, color.new(chart.fg_color, 85), INV)
fill( _30, _00, 30, 0, INV, color.new(GRE, 75))
________________________________________________________________________________________________________________________ :='
⎞ End ⎛
(__---__) '
RSX OBV & VWAP Weighted+This indicator combines RSX (Relative Strength eXtra), OBV (On-Balance Volume), and VWAP (Volume-Weighted Average Price) into a powerful momentum oscillator. It helps traders identify overbought/oversold conditions, accumulation/distribution zones, and trend strength with volume confirmation.
Key Features:
RSX Fast & Slow Lines: Smoothed momentum oscillator with adjustable lengths.
Volume Weighting: Option to weight price action using OBV or VWAP for better trend confirmation.
Custom Moving Average: Choose between SMA, EMA, WMA, or DEMA applied to RSX values.
Accumulation/Distribution Zones: Visual thresholds for extreme momentum conditions.
Volume Histogram: Displays OBV/VWAP impact on momentum (optional).
How to Use It?
Trend Identification:
Fast RSX > Slow RSX → Bullish momentum.
Fast RSX < Slow RSX → Bearish momentum.
Overbought/Oversold Levels:
Above 71 (Upper Level) → Overbought (potential reversal/sell signal).
Below 29 (Lower Level) → Oversold (potential reversal/buy signal).
Volume Confirmation:
OBV/VWAP Histogram shows if volume supports the trend.
Custom MA:
Use the moving average as a dynamic support/resistance level.
Best Settings:
Intraday Trading: Fast RSX (7), Slow RSX (14).
Swing Trading: Fast RSX (14), Slow RSX (21).
Volume Weighting: Enable for stronger trend confirmation.
Что такое индикатор RSX OBV & VWAP Weighted+?
Этот индикатор объединяет RSX (Relative Strength eXtra), OBV (On-Balance Volume) и VWAP (Volume-Weighted Average Price) в мощный осциллятор. Он помогает определять перекупленность/перепроданность, зоны накопления/распределения и силу тренда с учетом объема.
Основные функции:
RSX Fast & Slow Lines: Сглаженный осциллятор с настраиваемыми периодами.
Взвешивание по объему: Возможность учитывать OBV или VWAP для усиления сигналов.
Скользящая средняя: На выбор SMA, EMA, WMA или DEMA, применяемая к значениям RSX.
Зоны накопления/распределения: Визуальные уровни для экстремальных состояний.
Гистограмма объема: Показывает влияние OBV/VWAP на импульс (опционально).
Как использовать?
Определение тренда:
Fast RSX > Slow RSX → Бычий импульс.
Fast RSX < Slow RSX → Медвежий импульс.
Уровни перекупленности/перепроданности:
Выше 71 (верхний уровень) → Перекупленность (сигнал к продаже).
Ниже 29 (нижний уровень) → Перепроданность (сигнал к покупке).
Подтверждение объемом:
Гистограмма OBV/VWAP показывает, поддерживает ли объем движение.
Скользящая средняя:
Используйте как динамический уровень поддержки/сопротивления.
Рекомендуемые настройки:
Внутридневная торговля: Fast RSX (7), Slow RSX (14).
Свинг-трейдинг: Fast RSX (14), Slow RSX (21).
Взвешивание по объему: Включите для более сильных сигналов.
ORB Breakout Indicator - NQ1!The purpose of this indicator is to assist traders in rapidly identifying high-probability Opening Range Breakout (ORB) setups on the NQ1! 1-minute time frame (Nasdaq Futures)
Key Features:
Opening Range: Automatically plots the high and low of the 1st 15min of the (NYSE session) (09:30–09:45 EST)
Breakout Signals : Illustrates the first candle that breaks upward or downward and:
Green arrow for a bullish breakout
Red arrow for a bearish breakout
Clean Visuals: Dynamic lines show the high and low of the ORB window for easy reference.
(DON'T USE THIS ONLY FOR ENTRY SIGNALS, PAIR THIS WITH OTHER INFLUENCES TO GET HIGH PROBABILITY BREAKOUTS)
Luma DCA Tracker (BTC)Luma DCA Tracker (BTC) – User Guide
Function
This indicator simulates a regular Bitcoin investment strategy (Dollar Cost Averaging). It calculates and visualizes:
Accumulated BTC amount
Average entry price
Total amount invested
Current portfolio value
Profit/loss in absolute and percentage terms
Settings
Investment per interval
Fixed amount to be invested at each interval (e.g., 100 USD)
Start date
The date when DCA simulation begins
Investment interval
Choose between:
daily, weekly, every 14 days, or monthly
Show investment data
Displays additional chart lines (total invested, value, profit, etc.)
Chart Elements
Orange line: Average DCA entry price
Grey dots: Entry points based on selected interval
Info box (bottom left): Live summary of all key values
Notes
Purchases are simulated at the closing price of each interval
No fees, slippage, or taxes are included
The indicator is a simulation only and not linked to an actual portfolio
Dual HalfTrend Enhanced"Hello friends, this is a trend indicator,
I created this indicator inspired by HalfTrend.
"It's a very simple logic on how to trade in this. There are two types of trend periods in this, one small and one large. Whichever is the larger trend, that is our pro-trend. Now, we enter that trend when the pro-trend comes in the smaller trend. For example...
if the bigger trend is showing an uptrend, we will only look for buy signals. When the smaller trend also turns into an uptrend, we enter a buy trade.
the sell scenarios are the same.
Trading in The Day 1h Ver1 [VNFlow]Trading in the Day 1h Ver1 :
This TradingView script combines multiple professional tools into one for short-term trend-following and intraday trade planning. It includes:
Auto-anchored AVWAPs for 1-day, 2-day, Week-to-Date (WTD), and Month-to-Date (MTD) levels.
A 5-day Moving Average (EMA or SMA) automatically adjusted based on timeframe and exchange hours.
Optional Pivot Points (support/resistance) with classic floor trader formulas.
High/Low of current and previous day as potential S/R zones.
Buy/Sell signal labels based on MA and AVWAP alignment (shows only the first of consecutive signals).
Clean visuals with toggle options to customize which elements are shown.
Perfect for traders using multi-timeframe confirmation, anchored VWAP, and classic support/resistance techniques.
180 Phase ChangerThis is a Trend Tracker.
The Idea is to Identify Phase Changer or Reversal/Pullbacks in the trend based on 8 and 20 EMA.
Initial Balance (London Session) - UTC+1 (Box Only)Initial balance for the new day
first two hours of the London session for UTC+1
Last 2 Days Key LevelsLast 2 Days Key Levels
Overview
This indicator is designed for intraday traders who leverage key historical price levels to identify potential support and resistance zones. It cleanly plots the most important levels from the previous two trading days, giving you a clear map of the price action and helping you anticipate potential turning points in the market.
The core principle is that the market has memory. The highs, lows, and calculated pivot points from previous sessions often remain significant and can act as powerful magnets or barriers for price in the current session. This script gives you a configurable and visually clean way to track these critical zones.
Key Features
Multi-Day Level Plotting: Display key levels not just from the prior day (PD), but also from two days ago (PD2), allowing you to track a deeper level of market structure.
Comprehensive Key Levels: For each historical day, the indicator plots:
High
Low
Mid-Point (the direct halfway point of the day's range)
Central Pivot Point (the average of the high, low, and close)
Premarket High/Low: Includes the high and low from the current day's premarket session, which are critical levels for morning trading.
Full Customization: Every level is fully configurable. Through a cleanly organized input menu, you can:
Toggle the visibility of each individual line (e.g., show only the highs and lows).
Customize the color, line style (solid, dotted, dashed), and thickness for each group of levels (Prior Day, 2-Day Prior, Premarket).
The Strategic Advantage: Why Track 2-Day Prior Levels?
While many traders focus exclusively on the previous day's levels, tracking the levels from two days ago provides a distinct strategic edge, especially in the early morning session.
In the opening minutes of trading, or even in the premarket, price action is often volatile and searching for direction. The market will frequently test not just yesterday's levels, but also the key zones from the day before. These "older" levels are often overlooked by other market participants, making them powerful hidden support and resistance zones.
By having the 2-day prior levels on your chart, you can:
Anticipate early session turning points that others might not see.
Identify stronger confirmation when a 2-day level aligns with a prior-day or premarket level.
Avoid being caught off guard by reactions to seemingly "random" price points that are, in fact, significant historical levels.
How to Use
Support & Resistance: Use the plotted lines as potential areas where price may bounce or reverse. Look for price to respect these levels for potential entry or exit signals.
Breakout & Breakdown Zones: A clean break and hold above a resistance level (or below a support level) can signal the start of a new directional move.
Targeting: The levels can serve as logical price targets for your trades.
All settings are organized into clear groups in the "Inputs" tab, allowing you to easily configure the indicator to your exact preferences.
This script is based on the foundational concepts of the 'Daily Levels Suite' by FourC. It was generated and optimized with Gemini, by Mercadero.AI.
Copper to Gold Ratioratio = copper / gold: Calculates the ratio by dividing copper price by gold price.
plot(ratio): Plots the ratio as a blue line.
ma = ta.sma(ratio, 20): Adds a 20-period simple moving average (optional) to smooth the ratio, plotted as a red line.
A rising Copper/Gold ratio often signals economic expansion (strong copper demand relative to gold), while a falling ratio may indicate economic uncertainty or recession fears, as gold outperforms copper.
The ratio is also used as a leading indicator for 10-year U.S. Treasury yields, with a rising ratio often correlating with higher yields.
EMA Hierarchy Alternating Alert MarkersThis script allows you to set EMA 5, 13 & 26 in a single indicator
// It allows you to set an alert when PCO or NCO happens where 5>13>26 (PCO) or 5<13<26 (NCO)
// It has been deisgned in such a way that the alert will only be sounded on the first PCO or NCO
// Once a PCO has happened then the next PCO alert will only come after the NCO has happened
// This feature helps you to avoid getting multiple alerts specially if you are using a lower timeframe
// EMA crossover strategy has been one of the favorite strategy which helps traders understand the trend in various timeframes and accordingly ride the wave - both upside and downside. This indicator helps to time your trade once you get an alert on crossover happening and eliminates the need for constant monitoring of the screen
// Scripts: Equities, F&O, Commodity, Crypto, Currency
// Time Frame: All
// By TrustingOwl83470
🧘 Daily Mindset Reminder🧘 Daily Trading Mindset Reminder – Stay Calm, Stay Disciplined
📌 Description:
This simple yet powerful indicator is designed to help intraday and options traders start their trading day with clarity, discipline, and purpose. At exactly 9:15 AM, it displays a calming checklist label on your chart to reinforce essential trading principles and avoid emotional decision-making.
✅ Use it as a daily anchor to:
Stay emotionally centered and focused
Avoid overtrading or impulsive reactions
Remember your pre-trade plan and stop-loss rules
Trade with purpose – not prediction
📋 Checklist Included:
✅ Calm Mind
✅ No Predictions – Just Reactions
✅ Trade Setup Ready
✅ Risk Defined
✅ Journal On
✅ Goal: Trade Well, Not Just Profit
🛠️ Works on any timeframe and chart. Non-intrusive and customizable.
🌟 Who Is It For?
Intraday Traders
Options Buyers (Bank Nifty, Nifty, Fin Nifty)
Discretionary Traders who want mental clarity and discipline
🧭 Why You Need It
Most traders lose not because of lack of strategy, but due to lack of mindset control. This simple tool keeps you grounded and reminds you of what matters before you place that first trade.
✨ “Mindset is the real edge. Let this script be your daily compass.”
SHYY TFC Candles_Confirmation X 4TF)SHYY Real-Time FTC Confirmation is a multi-timeframe trend alignment tool designed to provide real-time confirmation of market direction across up to four configurable timeframes. Unlike traditional tools that rely on closed candles, this version uses in-progress bars to detect live momentum, allowing traders to respond as trends are forming rather than after they are confirmed.
This script checks the current price direction on each selected timeframe by comparing the current close to the open of the same candle. A timeframe is considered bullish if the close is above the open, bearish if below, and neutral if equal. If all enabled timeframes are aligned in the same direction, the current chart candle is colored accordingly.
White candles indicate that all selected timeframes are currently bullish. Yellow candles indicate that all selected timeframes are currently bearish. If the timeframes are not fully aligned, the candle remains uncolored.
Each of the four timeframes can be configured individually in the settings panel. Users can also enable or disable each timeframe independently using checkboxes, allowing flexibility in how the confirmation logic is applied.
The script uses a single request.security() call per timeframe with lookahead enabled, so that the information shown reflects the live status of each timeframe’s bar, not just completed ones. This makes it suitable for real-time decision-making and strategy filtering.
This tool can assist scalpers, trend followers, and breakout traders in aligning trades with broader market direction. It can be used as a standalone trend filter or in conjunction with other indicators and strategies.
No external dependencies or overlays are required.
This is an original script, built to provide real-time, multi-timeframe confirmation using a clean and efficient approach.