EMAZoner+ 0.5EMAZoner – Your new perspective on trends!
Want to always know where a trend starts and ends? Looking for a simple yet visually powerful tool to help you instantly spot key moments for entries and exits? EMAZoner is here for you!
This indicator is designed for anyone who wants to:
- Instantly see where a trend begins and ends (whether you trade short or long term)
- Have clear BUY/SELL signals and trend peaks marked directly on the chart
- Quickly distinguish strong and weak trends thanks to colored backgrounds and a clear info table
- Track current trends not only on your timeframe, but also on higher ones (M15, M30, H1) – perfect for multi-timeframe analysis
- Keep your chart clean with minimalist labels and dotted lines that guide you straight to the right candle
- Get market and trend strength stats without complicated setup
EMAZoner is suitable for everyone – from beginners to experienced traders. It helps you avoid unnecessary noise, quickly find key zones, and make decisions with more confidence.
Try EMAZoner and take your analysis to the next level!
Bands and Channels
VWAP Multi-Timeframe VWAP Multi-Timeframe - Complete Professional Indicator
🚀 WHAT IS IT?
The VWAP Multi-Timeframe is an advanced indicator that combines 5 different VWAP periods in a single tool, providing a complete view of market fair value levels across multiple time scales.
⭐ KEY FEATURES
📊 5 Configurable VWAPs:
🟡 Daily VWAP - Ideal for day trading and intraday operations
🟠 Weekly VWAP - Perfect for swing trading
🔵 Monthly VWAP - Excellent for medium-term analysis
🔴 Quarterly VWAP - Essential for quarterly strategies
🟢 Yearly VWAP - Fundamental for long-term investments
🎯 Multiple Price Sources:
Choose the source that best fits your strategy:
Close - Closing price (most common)
OHLC4 - Complete average (smoother)
HLC3 - Typical price (default)
HL2 - Period midpoint
Open/High/Low - Specific prices
💡 HOW TO USE
For Day Traders:
Use Daily VWAP as main fair value reference
Prices above = buying pressure / Prices below = selling pressure
For Swing Traders:
Combine Weekly and Monthly VWAP to identify trends
Look for confluences between different timeframes
For Investors:
Quarterly and Yearly VWAP show long-term value levels
Excellent for identifying entry points in investments
🔧 TECHNICAL FEATURES
✅ Pine Script v6 - Latest and optimized version
✅ Clean Interface - User-friendly design
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 ⎛
(__---__) '
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.
RSI Confluence - 3 Timeframes V1.1RSI Confluence – 3 Timeframes V1.1
RSI Confluence – 3 Timeframes v1.1 is a powerful multi-timeframe momentum indicator that detects RSI alignment across three timeframes. It helps traders identify high-probability reversal or continuation zones where momentum direction is synchronized, offering more reliable entry signals.
✅ Key Features:
📊 3-Timeframe RSI Analysis: Compare RSI values from current, higher, and highest timeframes.
🔁 Customizable Timeframes: Select any combination of timeframes for precision across scalping, swing, or positional trading.
🎯 Overbought/Oversold Zones: Highlights when all RSI values align in extreme zones (e.g., <30 or >70).
🔄 Confluence Filter: Confirms trend reversals or continuations only when all RSIs agree in direction.
📈 Visual Signals: Displays visual cues (such as background color or labels) when multi-timeframe confluence is met.
⚙️ Inputs:
RSI Length: Define the calculation length for RSI.
Timeframe 1 (TF1): Lower timeframe (e.g., current chart)
Timeframe 2 (TF2): Medium timeframe (e.g., 1H or 4H)
Timeframe 3 (TF3): Higher timeframe (e.g., 1D or 1W)
OB/OS Levels: Customizable RSI overbought/oversold thresholds (default: 70/30)
Show Visuals: Toggle for background color or signal markers when confluence conditions are met
📈 Use Cases:
Identify trend continuation when all RSIs support the same direction
Spot strong reversal zones with RSI agreement across TFs
Improve entry accuracy by avoiding false signals on a single timeframe
Suitable for multi-timeframe strategy confirmation
Smart Reversal Signal (Stoch + RSI + EQH/EQL) v1.1📘 Smart Reversal Signal (Stoch + RSI + EQH/EQL)
The Smart Reversal Signal v1.1 is a multi-confirmation reversal indicator that combines momentum and price action signals across timeframes. It is designed to help traders detect high-probability reversal zones based on confluence between stochastic, RSI, and key price structures.
✅ Key Features:
📊 Stochastic Crossover: Detects K and D line crossovers to identify potential overbought/oversold reversal points.
📈 RSI Signal: Confirms momentum exhaustion by checking RSI crossing above/below overbought/oversold levels.
🏛️ EQH/EQL Detection: Identifies Equal Highs (EQH) and Equal Lows (EQL) from higher timeframes as strong reversal zones.
⏱ Multi-Timeframe Lookback: Uses selected timeframe and historical depth to improve signal quality and reduce noise.
🎯 Reversal Alerts: Highlights confluence zones where multiple conditions align for a potential trend reversal.
🌐 Custom Timeframe Support: Analyze signals using data from different timeframes, regardless of current chart.
⚙️ Inputs:
Stochastic Parameters: %K, %D length and smoothing
RSI Parameters: Length, Overbought/Oversold levels
EQH/EQL Settings: Timeframe, Lookback bars
Signal Conditions: Enable/disable RSI and Stoch filter logic
📈 Use Cases:
Catch trend reversals at exhaustion points
Identify smart entry zones near EQH/EQL levels
Combine momentum + structure for higher accuracy
Adaptable for both scalping and swing trading
Auto TrendlinesAuto Trendline – Indicator Description
The Auto Trendline indicator automatically draws trendlines based on recent swing highs and lows using pivot analysis. It helps traders quickly identify short-term and long-term market trends without manual drawing.
✅ Features:
Automatic drawing of trendlines based on pivot points (highs and lows)
Custom timeframe support: Use higher timeframe pivot data while working on lower charts
Trendlines update dynamically as new pivots are formed
Lines extend only to the current bar, keeping the chart clean
⚙️ How It Works:
The indicator detects recent swing highs and lows using pivot strength
Two most recent pivot points are connected to form each trendline:
Uptrend line from two higher lows
Downtrend line from two lower highs
Trendlines are redrawn as new pivots appear
Strong Candle ReversalStrong Candle Reversal helps you identify strong candlestick reversal points based on:
✅ Key criteria for strong candle reversals:
Powerful candlestick patterns:
Engulfing
Hammer / Shooting Star
Unusually high volume
Optional confirmation using RSI reversal
Perfect Overextension ReversalHow It Works
Bollinger Band Overextension- We calculate a standard 20‑period Bollinger Band (SMA +/– 2 SD). When price tears past the upper or lower band, we mark it as overbought or oversold—a classic sign that momentum may have gone too far.
Volume Confirmation- We track a 20‑period volume average. A reversal candle only counts if it’s sizable (body ≥ ATR), and its volume is at least 1.5× the average. Big move, big volume—more reliable reversal setup.
Reversal Candle Entry• Long after an oversold condition and a bullish candle that meets the size + volume tests.• Short after overbought and a bearish candle with the same criteria.
How to Trade the Signal
My advice is don’t rush in immediately. Take the signals to mean more that price is slowing down from the crazy action, when it is volatile at the beginning price can whipsaw. Wait for initial volatility to calm down and then look for a confirmation entry. For example, wait for a fast MA to cross a slower MA before entering. Manage risk well and place your stop just beyond the recent swing high/low. Target a 1.5×–2× reward: risk or trail your profit once the market gives you a second confirmation or cover your stop loss once price is clear of your entry and let the trade run.
Timeframes & Markets- This works on any chart however as the signals are a rare occurrence so you will get more entries on the lower timeframes.
happy trading :)
MACD-VWAP-BB Oscillator with DivergenceHow to Use the Indicator for Trading
Here’s how to interpret and use the indicator’s signals as a beginner:
Look for Buy Signals:
Green Triangle Up (“BUY”):
Appears when MACD, VWAP, and Bollinger Bands all signal a strong bullish trend.
The ribbon turns green, and the background fill is green.
Action: Consider buying the asset, as this is a strong signal the price may rise.
Example: If you see a green triangle on a 1-hour chart for BTC/USD, it suggests a potential upward move.
Green Circle (“Div Buy”):
Indicates a bullish divergence, where the price is dropping, but the indicator suggests the downtrend may weaken or reverse.
This is a weaker signal than the triangle but can be an early warning of a trend change.
Action: Watch closely or consider a smaller buy position, especially if followed by a triangle signal.
Look for Sell Signals:
Red Triangle Down (“SELL”):
Appears when all three indicators signal a strong bearish trend.
The ribbon turns red, and the background fill is red.
Action: Consider selling or shorting the asset, as the price may fall.
Example: A red triangle on a stock chart suggests it’s time to exit a long position or go short.
Red Circle (“Div Sell”):
Indicates a bearish divergence, where the price is rising, but the indicator suggests the uptrend may weaken or reverse.
Action: Be cautious with long positions or consider preparing to sell, especially if a triangle signal follows.
Check the Ribbon and Background:
Green Ribbon and Fill: Confirms a bullish trend. Feel more confident in buy signals.
Red Ribbon and Fill: Confirms a bearish trend. Feel more confident in sell signals.
The ribbon’s spread (how far apart the lines are) shows trend strength: wider = stronger trend, tighter = weaker trend.
Use Divergence Signals for Early Warnings:
Divergence signals (circles) often appear before triangle signals, hinting at potential reversals.
Example: A green circle (“Div Buy”) on a downtrending chart suggests the price might stop falling soon. Wait for a green triangle to confirm before acting.
Choose a Timeframe:
Short-term traders (day trading): Use shorter timeframes like 5-minute, 15-minute, or 1-hour charts.
Swing traders: Use 4-hour or daily charts for signals that last days or weeks.
Long-term investors: Use daily or weekly charts for bigger trends.
Example: On a 4-hour chart, a green triangle might signal a trend lasting hours to days.
Combine with Price Action:
Don’t rely on the indicator alone. Look at the candlesticks:
Are there support/resistance levels nearby?
Is the price near a key level (e.g., a moving average or trendline)?
Use the indicator to confirm what you see in the price chart.
Risk Management:
Set Stop-Losses: Place a stop-loss below recent lows for buys or above recent highs for sells to limit losses.
Position Sizing: Only risk a small portion of your account (e.g., 1-2%) per trade.
Wait for Confirmation: Triangle signals are stronger than divergence signals. Consider waiting for a triangle before entering a trade, especially as a beginner.
Example Trading Scenario
Let’s say you’re trading EUR/USD on a 1-hour chart:
You see a green circle (“Div Buy”) at the bottom of the indicator panel, and the price is near a support level (a price where it stopped falling before).
This suggests a potential reversal, but it’s not confirmed yet.
Action: Watch closely but don’t enter a trade yet.
A few candles later, a green triangle (“BUY”) appears, the ribbon turns green, and the background fill is green.
This confirms a strong bullish signal (MACD, VWAP, and Bollinger Bands all agree).
Action: Enter a buy trade, set a stop-loss below the recent low, and aim for a target near a resistance level or a 1:2 risk-reward ratio.
Later, you see a red circle (“Div Sell”) while the price is still rising.
This warns that the uptrend might weaken.
Action: Tighten your stop-loss or prepare to exit if a red triangle appears.
A red triangle (“SELL”) appears, with the ribbon and fill turning red.
Action: Exit the buy trade or consider a short position.
Tips for Beginners
Start with a Demo Account: Practice using the indicator on a TradingView paper trading account or a broker’s demo account to avoid risking real money.
Test on Different Assets: Try the indicator on stocks, forex, or crypto to see where it performs best.
Avoid Overtrading: Wait for clear triangle signals for stronger trades. Divergence signals (circles) are less reliable, so use them as warnings.
Learn Basic Chart Patterns: Combine the indicator with simple patterns like support/resistance or candlestick patterns (e.g., pin bars) for better results.
Adjust Settings Carefully: The default settings (e.g., MACD 12,26,9; ribbon 8,13,21,34) are balanced, but you can tweak them in the indicator settings to match your trading style.
Common Questions
What timeframe should I use?
It depends on your trading style. Day traders might use 5-minute or 1-hour charts; swing traders might use 4-hour or daily charts. Test different timeframes to find what suits you.
Are divergence signals reliable?
Divergence signals (green/red circles) are early warnings and less reliable than triangle signals. Use them to prepare for a trade but wait for triangles for confirmation.
Can I use this on any asset?
Yes! It works on stocks, forex, crypto, or commodities. Adjust settings like pivotLookback or smoothWavy for volatile assets like crypto.
What if I see conflicting signals?
If a green circle appears but no green triangle, the trend isn’t confirmed yet. Wait for alignment of all indicators (triangle signal) for stronger trades.
How to Customize (Optional)
If you want to tweak the indicator:
Open the indicator settings (double-click its name on the chart).
Adjust Pivot Lookback for Divergence (default 5) to make divergence signals more frequent (smaller number) or less frequent (larger number).
Change Signal Line Smoothing Period (default 9) for a smoother or wavier signal line.
Modify EMA Ribbon Periods (default 8,13,21,34) for a tighter or wider ribbon.
Adaptive Quadratic Kernel EnvelopeThis study draws a fair-value curve from a quadratic-weighted (Nadaraya-Watson) regression. Alpha sets how sharply weights decay inside the look-back window, so you trade lag against smoothness with one slider. Band half-width is ATRslow times a bounded fast/slow ATR ratio, giving an instant response to regime shifts without overshooting on spikes. Work in log space when an instrument grows exponentially, equal percentage moves then map to equal vertical steps. NearBase and FarBase define a progression of adaptive thresholds, useful for sizing exits or calibrating mean-reversion logic. Non-repaint mode keeps one-bar delay for clean back-tests, predictive mode shows the zero-lag curve for live decisions.
Key points
- Quadratic weights cut phase error versus Gaussian or SMA-based envelopes.
- Dual-ATR scaling updates width on the next bar, no residual lag.
- Log option preserves envelope symmetry across multi-decade data.
- Alpha provides direct control of curvature versus noise.
- Built-in alerts trigger on the first adaptive threshold, ready for automation.
Typical uses
Trend bias from the slope of the curve.
Entry timing when price pierces an inner threshold and momentum stalls.
Breakout confirmation when closes hold beyond outer thresholds while volatility expands.
Stops and targets anchored to chosen thresholds, automatically matching current noise.
MACD+RSI Divergence Pro v2//@version=5
indicator("MACD+RSI Divergence Pro v2", overlay=true)
// 1. إعداد MACD
= ta.macd(close, 12, 26, 9)
macdBullish = ta.crossover(macdLine, signalLine)
macdBearish = ta.crossunder(macdLine, signalLine)
// 2. إعداد RSI
rsiValue = ta.rsi(close, 14)
rsiOverbought = rsiValue >= 70
rsiOversold = rsiValue <= 30
// 3. كشف الاختلافات المصحح
// → استخدمنا الدالة `ta.valuewhen()` لتحديد القمم/القيعان بدقة
swingLow = ta.lowest(low, 5)
swingHigh = ta.highest(high, 5)
rsiAtSwingLow = ta.valuewhen(swingLow == low, rsiValue, 0)
rsiAtSwingHigh = ta.valuewhen(swingHigh == high, rsiValue, 0)
bullishDiv = low < low and rsiAtSwingLow > rsiAtSwingLow and rsiOversold
bearishDiv = high > high and rsiAtSwingHigh < rsiAtSwingHigh and rsiOverbought
// 4. مرشح الاتجاه (EMA 200)
marketTrend = ta.ema(close, 200)
isUptrend = close > marketTrend
// 5. الإشارات النهائية
buySignal = bullishDiv and macdBullish and isUptrend
sellSignal = bearishDiv and macdBearish and not isUptrend
// 6. العرض على الرسم
plotshape(buySignal, title="شراء", text="▲", style=shape.labelup, location=location.belowbar, color=color.new(#00FF00, 0), textcolor=color.white)
plotshape(sellSignal, title="بيع", text="▼", style=shape.labeldown, location=location.abovebar, color=color.new(#FF0000, 0), textcolor=color.white)
// 7. تنبيهات
alertcondition(buySignal, "إشارة شراء", "Bullish Divergence + MACD Crossover")
alertcondition(sellSignal, "إشارة بيع", "Bearish Divergence + MACD Crossunder")
AO + Stoch RSI Combined Key Features:
Fixing hline Errors:
Replaced hline(band_upper, ...) and hline(band_lower, ...) with plot(band_upper, ...) and plot(band_lower, ...) to support dynamic series float values, as hline requires constant input float.
The middle band is plotted at 0 (matching AO’s zero line) using plot(0, ...) for consistency.
Updated the fill function to use plot_upper and plot_lower instead of hline objects.
Preserving AO’s Original Appearance:
The AO histogram uses raw values (ao = ta.sma(hl2, 5) - ta.sma(hl2, 34)), centered around zero, with green (#009688) for rising bars and red (#F44336) for falling bars, matching the standard AO.
Transparency (color.new(..., 50)) ensures K/D lines are visible when overlapping.
A zero line is plotted at 0 for the classic AO look.
Stoch RSI K/D Overlay:
K/D lines are scaled to the AO’s range: k_scaled = (k - 50) * (ao_max / 50), centering them around zero and matching the AO histogram’s amplitude.
Plotted with linewidth=3 for visibility, directly overlaying the histogram bars, “sitting” on them like MACD lines over the MACD histogram.
MACD-Like Design:
AO histogram is the base layer (plot.style_histogram), like the MACD histogram.
Scaled K (blue, #2962FF) and D (orange, #FF6D00) lines overlap the histogram, resembling MACD’s line overlay.
Stoch RSI bands are scaled (band_upper, band_lower) to the AO’s range and plotted dynamically, with a background fill between them.
Same Plot Pane:
AO histogram (raw), scaled K/D lines, scaled Stoch RSI bands, and zero line are plotted in the same pane, with K/D lines directly overlaid on the histogram.
Awesome Oscillator (AO):
Calculates AO as the difference between 5-period and 34-period SMAs of hl2.
Plots raw histogram, colored based on ao_diff.
Alerts for color changes and histogram state changes.
Stochastic RSI:
Calculates RSI (default length 14), Stochastic formula (default length 14), and smooths K (default 3) and D (default 3) with SMAs.
Plots scaled K/D lines and dynamic bands (upper, lower).
Alerts use original K/D values (0-100) for standard thresholds (20/80).
Shorttitle:
AO+StoRSI (9 characters), within the 10-character limit.
Plots:
All elements in a single pane, using color.new for Pine Script version 6 compatibility.
Alerts:
AO: Color changes and histogram state changes.
Stochastic RSI: K crossing D, K exiting oversold (above 20), K entering overbought (below 80).
Usage Instructions:
Copy the script into TradingView’s Pine Script editor.
Customize inputs (e.g., RSI length, Stochastic length, K/D smoothing) as needed.
The AO histogram (original scale, centered at zero) and scaled Stoch RSI K/D lines will appear in the same plot pane, with K/D lines overlaid on the histogram bars in a MACD-like layout.
Histogram transparency (50) and thicker K/D lines (linewidth=3) ensure readability. If the overlap is too cluttered, you can:
Increase transparency (e.g., color.new(..., 70)).
Adjust the K/D scaling factor (e.g., change ao_max / 50 to ao_max / 25).
Set up alerts in TradingView for AO or Stoch RSI conditions.
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.
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
AO + MACD CombinedAwesome Oscillator (AO):
Calculates AO as the difference between 5-period and 34-period SMAs of the hl2 price.
Plots the AO histogram with colors: green (#009688) when increasing, red (#F44336) when decreasing.
Includes alerts for color changes (green/red).
MACD:
Calculates MACD using user-defined fast (12) and slow (26) SMA lengths, with a signal line smoothed over 9 periods.
Plots the MACD line (blue, #2962FF) and Signal line (orange, #FF6D00).
The MACD histogram is replaced by the AO histogram, but alerts for histogram state changes (rising to falling, falling to rising) are based on AO.
Shorttitle:
Set to AO+MACD (7 characters), within the 10-character limit.
Plots:
AO histogram, MACD line, Signal line, and a zero line are plotted in a single pane.
Uses color.new for version 6 compatibility.
Alerts:
AO color change alerts (green/red).
AO histogram state change alerts (rising to falling, falling to rising).
Usage Instructions:
Copy the script into TradingView’s Pine Script editor.
Customize inputs (e.g., MACD fast/slow lengths, signal smoothing) as needed.
Set up alerts in TradingView for AO color changes or histogram state changes.
The indicator displays in one pane, with the AO histogram replacing the MACD histogram, alongside the MACD and Signal lines.
8 EMA Ribbon# 📈 8 EMA Ribbon - Dynamic Color Trend Indicator
**Professional EMA ribbon with intelligent color-changing technology that instantly reveals market trend direction and strength.**
## 🎯 Key Features
### 🌈 **Dynamic Color System**
- **Green EMAs**: Price is above the EMA (bullish)
- **Red EMAs**: Price is below the EMA (bearish)
- **Real-time updates**: Colors change instantly as price moves through each level
### 📊 **Fibonacci-Based Ribbon**
- **Perfect Spacing**: 8, 13, 21, 34, 55, 89, 144, 233 periods
- **Optimal Coverage**: Short-term to long-term trend analysis
- **Natural Flow**: Creates smooth ribbon effect for trend visualization
### ⚙️ **Ultra-Clean Interface**
- **Single-Line Settings**: Each EMA configured on one compact row
- **Quick Toggles**: Enable/disable any EMA instantly
- **Custom Colors**: Set your preferred bullish/bearish colors
- **Adjustable Width**: 1-4 line thickness for each EMA
- **50% Transparency**: Default semi-transparent design doesn't obstruct price action
## 💡 Trading Applications
### 📈 **Trend Identification**
- **All Green**: Strong uptrend - look for long opportunities
- **All Red**: Strong downtrend - consider short positions
- **Mixed Colors**: Consolidation or trend transition zones
### 🎯 **Support & Resistance**
- EMAs act as dynamic support/resistance levels
- Color changes highlight when key levels are broken
- Multiple timeframes create robust trading zones
### ⚡ **Entry Signals**
- Price breaking through ribbon indicates trend changes
- Color transitions provide early trend reversal warnings
- Use with other indicators for confirmation
## 🔧 Perfect Setup
### **Default Configuration:**
- All 8 EMAs enabled for complete ribbon effect
- Fibonacci periods for optimal market coverage
- Green (bullish) and red (bearish) color scheme
- 50% transparency for clear price visibility
### **Customizable Options:**
- Toggle any EMA on/off
- Adjust periods to match your strategy
- Change colors to suit your chart theme
- Modify line thickness for emphasis
## 🚀 Who It's For
- **Day Traders**: Quick trend identification across timeframes
- **Swing Traders**: Multi-period trend analysis
- **Scalpers**: Fast visual confirmation of trend direction
- **Position Traders**: Long-term trend assessment
## 💎 Why Choose This Ribbon?
- **Visual Clarity**: Instant trend recognition at a glance
- **Professional Design**: Clean, uncluttered interface
- **Proven Math**: Fibonacci-based periods for natural market flow
- **Performance Optimized**: Lightweight code, smooth operation
- **Fully Customizable**: Adapt to any trading style or timeframe
**Transform your charts with intelligent trend visualization. Install now and see the market like never before!**
---
*Compatible with all timeframes and instruments | No repainting | Pine Script v6*
BB Hit + Stoch RSI Conditions (15m TF)Create a visual alert everytime the lower bolinger bands is hit while stoch rsi below 15 and everytime upper bolinger bands is hit while stoch rsi above 85.
SlopeDirectionLine_TWSlopeDirectionLine_TW
___________________________
Tried to copy a MT4 indicator
Smart Reversal Signal (Stoch + RSI + EQH/EQL)Smart Reversal Signal combines Stochastic oscillator, RSI levels, and Equal High/Low detection to identify potential price reversal zones. It highlights buy signals when Stochastic crosses up in oversold conditions with RSI confirmation and Equal Low (EQL), and sell signals when Stochastic crosses down in overbought areas with Equal High (EQH), shown via background color alerts.
Dual Donchian Channels Simple expansion of the Donchian Channels indicator to support two different timeframes. This can be useful when using different channel breakout methods for entry vs close. Defaults are 20 days / 52 days.
Bollinger Bands with Buy/Sell SignalsWhen price crosses above the upper band → green “BUY” label appears below the bar
When price crosses below the lower band → red “SELL” label appears above the bar