RSIOMA IndicatorI trust the RSIOMA by itself when I am at work, on the road, at play, and using only my cell phone.
When I find the long, high plateau or the bottom river bed, my attention perks up.
I examine the nearby timeframes to see if there are any similar patterns.
Please don't use any of the middle crosses; they don't have the power out of the gate that the flat ones do.
I wait and wait for the smaller timeframe to make its cross and add one position.
At every pullback, I start adding positions. Each of you needs to become comfortable with this indicator and start trusting it first.
I am guilty of fading this flat top or bottom, but they can go forever, it seems.
But then that 200-point bar drops, and all the pain goes away with a considerable profit.
I reset and start scanning other charts for the same.
Indicatori di ampiezza
ETH Smart Buy/Sell System (With Zones, Labels & Cooldown)ETH SMART BUY AND SELL SYSTEM WITH ZONES , LABELS & COOLDOWN
Created by Gamal Asela
HMA 200 + EMA 20 Crossover StrategyThis strategy combines a long-term trend filter using the Hull Moving Average (HMA 200) with a short-term entry trigger using the Exponential Moving Average (EMA 20).
📈 Entry Logic:
Buy Entry: When price is above the HMA 200 and crosses above the EMA 20.
Sell Entry: When price is below the HMA 200 and crosses below the EMA 20.
The strategy closes the current position and reverses on the opposite signal.
⚙️ Strategy Settings (Backtest Configuration):
Position size: 10% of equity per trade
Commission: 0.1% per trade (to simulate broker fees)
Slippage: 2 ticks (to reflect realistic fill conditions)
✅ Purpose:
This script is designed to identify high-probability trades in the direction of the overall trend, avoiding whipsaw conditions. It is useful for traders looking for a dynamic crossover-based system that filters trades based on longer-term momentum.
🔎 Make sure to test across multiple assets and timeframes. For best results, apply this strategy to liquid trending markets like major FX pairs, indices, or high-cap stocks.
ETH Smart Buy/Sell System (With Price Labels)ETH SMART BUY AND SELL with price labels
Created By gamal Asela
OBV by readCrypto
-------------------------------------
OBV is used as a leading indicator to predict stock price movements by measuring changes in trading volume.
Reflecting the cumulative value of trading volume,
- When the price rises, if the trading volume increases, OBV rises,
- When the price falls, if the trading volume decreases, OBV falls.
Therefore, the movement of the OBV indicator must be checked along with the price movement, and it has the disadvantage of being unreliable for coins (tokens) with low trading volume.
---------------------------------------
(First interpretation method)
By adding a signal line for the OBV indicator,
- If the OBV indicator moves above the signal line, it is likely to show an upward trend,
- If the OBV indicator moves beyond the signal line, it is likely to show a downward trend.
This interpretation method is difficult to use in actual trading strategies because the OBV indicator often moves up and down repeatedly based on the signal line.
Therefore, it is recommended to use this interpretation method as reference when analyzing charts.
-------------------------------
(Second interpretation method)
Draw support and resistance lines based on the high and low points of the OBV indicator
- If the OBV indicator breaks through the previous high point, it is likely to show an upward trend,
- If the OBV indicator breaks through the previous low point, it is likely to show a downward trend.
This interpretation method is a bit more reliable than the first interpretation method, but it has the disadvantage of having to consider support and resistance lines separately based on the high and low points.
-
To compensate for this, a High line for the high point and a Low line for the low point were added.
- If the OBV indicator shows an upward breakout of each line (Low, HL2, High), the price is likely to rise,
- If the OBV indicator shows a downward breakout of each line (Low, HL2, High), the price is likely to fall.
-
Also, the Low and High lines can be interpreted like Bollinger Bands.
That is, if the Low and High lines show a contraction, the price is likely to move sideways, and if they show an expansion, the price is likely to show a trend.
Therefore, if the High line breaks upward in a contracted state,
- It is likely to show an upward trend,
- If the Low line breaks downward, it is likely to show a downward trend.
In an expanded state, you should focus on finding the point to realize profits rather than conducting new transactions.
--------------------------------
It is not easy to interpret the change in actual transaction volume and use it to create a trading strategy.
In particular, it is more difficult in the coin market where multiple exchanges are linked to show movements for one coin (token).
Therefore, the coin market is actively conducting transactions without referring to trading volume at all by following trends.
However, I think that if you interpret the change in trading volume and use it to find a trading point, it can help you find a more accurate trading point.
In that sense, I think that an indicator that adds the High and Low lines of the OBV indicator can be used as meaningful reference material.
-----------------------------------------------------------------
-------------------------------------
OBV는 거래량의 변화를 측정하여 주가 움직임을 예측하는 선행 지표로 활용됩니다.
거래량의 누적값을 반영하여
- 가격이 상승할 때 거래량이 증가면 OBV가 상승하고,
- 가격이 하락할 때 거래량이 줄면 OBV가 하락하게 됩니다.
따라서, 가격의 움직임과 함께 OBV 지표의 움직임을 확인하여야 하고 거래량이 적은 코인(토큰)에서는 신뢰성이 떨어지는 단점도 가지고 있습니다.
---------------------------------------
(첫번째 해석 방법)
OBV 지표에 대한 Signal선을 추가하여
- OBV 지표가 Signal선 이상에서 이동하게 되면 상승세를 보일 가능성이 높고,
- OBV 지표가 Signal선 이항에서 이동하게 되면 하락세를 보일 가능성이 높습니다.
이러한 해석 방법은 Signal선을 기준으로 OBV 지표가 반복적으로 위아래로 움직임을 보이는 경우가 많기 때문에 실제 거래 전략에 활용되기가 어려운 면이 있습니다.
따라서, 이러한 해설 방법은 차트 분석을 할 때 참고 자료로 활용하는 것이 좋습니다.
-------------------------------
(두번째 해석 방법)
OBV 지표의 고점과 저점을 기준하여 지지와 저항선을 그려
- OBV 지표가 이전 고점을 상향 돌파하면 상승세를 보일 가능성이 높고,
- OBV 지표가 이전 저점을 하향 돌파하면 하락세를 보일 가능성이 높습니다.
이러한 해석 방법은 첫번째 해석 방법보다 좀 더 신뢰성이 있는 방법이지만, 고점과 저점을 기준으로 지지와 저항선을 나누어 생각해야 하는 단점이 있습니다.
-
이를 보완하고자 고점에 대한 High선과 저점에 대한 Low선을 추가하였습니다.
- OBV 지표가 각 선(Low, HL2, High)을 상향 돌파하는 모습을 보이면 가격이 상승할 가능성이 높고,
- OBV 지표가 각 선(Low, HL2, High)을 하향 돌파하는 모습을 보이면 가격이 하락할 가능성이 높습니다.
-
또한, Low선과 High선을 볼린저밴드와 같이 해석할 수 있습니다.
즉, Low선과 High선이 수축하는 모습을 보이면 가격은 횡보할 가능성이 높고, 확장하는 모습을 보이면 가격은 추세를 나타낼 가능성이 높습니다.
따라서, 수축한 상태에서
- High선을 상향 돌파하게 되면 상승세를 나타낼 가능성이 높고,
- Low선을 하향 돌파하게 되면 하락세를 나타낼 가능성이 높습니다.
확장된 상태에서는 신규 거래를 진행하기 보다 수익 실현할 시점을 찾는데 집중해야 합니다.
--------------------------------
실제 거래량의 변화를 해석하여 거래 전략을 만드는데 활용하기가 쉽지 않습니다.
특히, 하나의 코인(토큰)에 대해서 여러 개의 거래소가 연동되어 움직임을 나타내는 코인 시장에서는 더욱 어려움이 있습니다.
따라서, 코인 시장은 추세 추종으로 아예 거래량을 참고하지 않고 거래를 진행하는 방법이 활성화되어 있기도 합니다.
하지만, 거래량의 변화를 해석하여 거래 시점을 찾는데 활용한다면 보다 정확한 거래 시점을 찾는데 도움을 받을 수 있다고 생각합니다.
그러한 의미에서 OBV 지표의 High선과 Low선을 추가한 지표가 의미 있는 참고 자료로 활용될 수 있다고 생각합니다.
-------------------------------------------------------------------
5 in 1 Colored SMA or EMA (w/ Custom Source)This custom Pine Script indicator plots five moving averages (MAs) — each of which can be configured as:
EMA, SMA, or a shaded zone between EMA & SMA
With individual lengths, line widths, and custom sources (like close, open, hl2, etc.)
It includes:
Dynamic coloring: MAs change color based on trend direction (up/down)
Shaded Zones: Optional visual bands between EMA and SMA of same length
Crossover dots: Marks crossover points between any pair of MAs (when enabled)
💡 Strategy Ideas Using This Indicator (High Probability Concepts)
Here are a few strategy foundations you can build on:
1. Trend-Following Cross Strategy
Entry: Buy when fast MA (e.g., MA1 - 5 EMA) crosses above slower MA (e.g., MA2 - 20 EMA)
Confirm: Only take trade if both are green (uptrend)
Exit: Sell on cross below or when MAs turn red (downtrend)
✅ Works best in trending markets
❌ Avoid in sideways/choppy conditions
2. EMA/SMA Zone Pullback Entry
Zone Type: Use “Shaded EMA/SMA Zone” mode on MAs
Entry: Enter long when price dips into the zone of an up-trending MA (color is green) and shows a bullish candle
Stop Loss: Below the zone
Target: Next MA level or fixed risk/reward ratio (e.g., 1:2)
✅ Great for buying dips in strong uptrends
3. Multiple MA Confluence
Setup: Align 3 or more MAs upward (e.g., MA1 > MA2 > MA3)
Entry: When price pulls back to MA1 or MA2 and bounces
Exit: When structure breaks or MAs lose alignment
✅ Filters out weak trends
❌ Can be late to reverse
4. Cross + Zone Confirmation
Combo: Wait for a bullish MA crossover (e.g., MA1 > MA2)
Confirm: Price is above at least one shaded zone (e.g., MA3 in zone mode)
Entry: On breakout candle or retest of the crossover point
✅ Provides strong confirmation before entry
Entry Buy/Sell + Support/Resistance Zones//@version=5
indicator("Entry Buy/Sell + Support/Resistance Zones", overlay=true)
// === Tham số ===
length = input.int(5, title="Pivot Length")
maxZones = input.int(10, title="Số lượng vùng tối đa")
zoneWidth = input.int(20, title="Độ rộng vùng (số nến)")
showEntry = input.bool(true, title="Hiển thị Entry Buy/Sell?")
// === Phát hiện pivot ===
pivotHigh = ta.pivothigh(high, length, length)
pivotLow = ta.pivotlow(low, length, length)
// === Mảng vùng hỗ trợ/kháng cự ===
var supportLevels = array.new_float()
var resistanceLevels = array.new_float()
// === Cập nhật vùng hỗ trợ ===
if pivotLow
sLevel = low
if not array.includes(supportLevels, sLevel)
array.unshift(supportLevels, sLevel)
if array.size(supportLevels) > maxZones
array.pop(supportLevels)
// === Cập nhật vùng kháng cự ===
if pivotHigh
rLevel = high
if not array.includes(resistanceLevels, rLevel)
array.unshift(resistanceLevels, rLevel)
if array.size(resistanceLevels) > maxZones
array.pop(resistanceLevels)
// === Vẽ vùng hỗ trợ ===
for i = 0 to array.size(supportLevels) - 1
sl = array.get(supportLevels, i)
box.new(bar_index - zoneWidth, sl, bar_index, sl, border_color=color.green, bgcolor=color.new(color.green, 85))
// === Vẽ vùng kháng cự ===
for i = 0 to array.size(resistanceLevels) - 1
rl = array.get(resistanceLevels, i)
box.new(bar_index - zoneWidth, rl, bar_index, rl, border_color=color.red, bgcolor=color.new(color.red, 85))
// === Entry logic ===
entryLong = showEntry and close > array.get(resistanceLevels, 0)
entryShort = showEntry and close < array.get(supportLevels, 0)
// === Vẽ tín hiệu Entry ===
plotshape(entryLong, title="Entry Buy", location=location.belowbar, color=color.green, style=shape.labelup, text="BUY")
plotshape(entryShort, title="Entry Sell", location=location.abovebar, color=color.red, style=shape.labeldown, text="SELL")
// Đảm bảo script hợp lệ
plot(na)
Market Sentiment Index US Top 40 [Pt]▮Overview
Market Sentiment Index US Top 40 [Pt} shows how the largest US stocks behave together. You pick one simple measure—High Low breakouts, Above Below moving average, or RSI overbought/oversold—and see how many of your chosen top 10/20/30/40 NYSE or NASDAQ names are bullish, neutral, or bearish.
This tool gives you a quick view of broad-market strength or weakness so you can time trades, confirm trends, and spot hidden shifts in market sentiment.
▮Key Features
► Three Simple Modes
High Low Index: counts stocks making new highs or lows over your lookback period
Above Below MA: flags stocks trading above or below their moving average
RSI Sentiment: marks overbought or oversold stocks and plots a small histogram
► Universe Selection
Top 10, 20, 30, or 40 symbols from NYSE or NASDAQ
Option to weight by market cap or treat all symbols equally
► Timeframe Choice
Use your chart’s timeframe or any intraday, daily, weekly, or monthly resolution
► Histogram Smoothing
Two optional moving averages on the sentiment bars
Markers show when the faster average crosses above or below the slower one
► Ticker Table
Optional on-chart table showing each ticker’s state in color
Grid or single-row layout with adjustable text size and color settings
▮Inputs
► Mode and Lookback
Pick High Low, Above Below MA, or RSI Sentiment
Set lookback length (for example 10 bars)
If using Above Below MA, choose the moving average type (EMA, SMA, etc.)
► Universe Setup
Market: NYSE or NASDAQ
Number of symbols: 10, 20, 30, or 40
Weights: on or off
Timeframe: blank to match chart or pick any other
► Moving Averages on Histogram
Enable fast and slow averages
Set their lengths and types
Choose colors for averages and markers
► Table Options
Show or hide the symbol table
Select text size: tiny, small, or normal
Choose layout: grid or one-row
Pick colors for bullish, neutral, and bearish cells
Show or hide exchange prefixes
▮How to Read It
► Sentiment Bars
Green means bullish
Red means bearish
Near zero means neutral
► Zero Line
Separates bullish from bearish readings
► High Low Line (High Low mode only)
Smooth ratio of highs versus lows over your lookback
► MA Crosses
Fast MA above slow MA hints rising breadth
Fast MA below slow MA hints falling breadth
► Ticker Table
Each cell colored green, gray, or red for bull, neutral, or bear
▮Use Cases
► Confirm Market Trends
Early warning when price makes highs but breadth is weak
Catch rallies when breadth turns strong while price is flat
► Spot Sector Rotation
Switch between NYSE and NASDAQ to see which group leads
Watch tech versus industrial breadth to track money flow
► Filter Trade Signals
Enter longs only when breadth is bullish
Consider shorts when breadth turns negative
► Combine with Other Indicators
Use RSI Sentiment with trend tools to spot overextended moves
Add volume indicators in High Low mode for breakout confirmation
► Timeframe Analysis
Daily for big-picture bias
Intraday (15-min) for precise entries and exits
Williams %R Multi-Timeframe Signal SystemThe Trend Top and Bottom indicator is used to determine peaks and troughs.
MarketSmith-Style RS Rank (vs SPX)Description:
This indicator calculates a MarketSmith-style Relative Strength (RS) Rank by comparing the stock’s performance to the S&P 500 (SPX) over a customizable lookback period. The result is normalized to a 0–99 scale using an adjustable multiplier, making it easier to identify strong outperformers and weak underperformers.
The RS Rank is plotted as a step line for clarity, with reference lines at 70 (Strong) and 30 (Weak) to highlight key zones of strength and weakness. This tool is ideal for traders looking to quickly assess relative performance within a broader market context.
Golden Cross Max Rise % (Near GC)This indicator identifies Golden Cross events (when the 100-period SMA crosses above the 200-period SMA) and tracks the subsequent price action until a Death Cross occurs (100-period SMA crosses below the 200-period SMA).
Upon the completion of a Golden Cross to Death Cross cycle, the script calculates the maximum percentage rise achieved from the closing price at the Golden Cross to the highest high recorded during that cycle.
This maximum percentage rise is then displayed as a text label on the chart. The label is strategically placed near the bar where the Golden Cross originally occurred, providing a historical performance insight for that specific cycle. The label includes the max rise percentage, the price at the Golden Cross, and the highest high reached.
Additionally, the indicator plots the 100-period and 200-period SMAs and visually marks Golden Cross events on the chart with an upward-pointing triangle. Users can customize the lengths of the SMAs and the price source used for calculations.
Key Features:
Calculates the maximum percentage rise between a Golden Cross and the subsequent Death Cross.
Displays the result as a label positioned near the original Golden Cross bar.
Plots SMA 100 and SMA 200.
Marks Golden Cross events with a shape.
Configurable SMA lengths and price source.
Angel Signal proAngel Signal Pro is a comprehensive technical analysis tool that integrates multiple indicators for a structured market assessment.
RSI, MACD, and ADX — evaluate trend strength and identify potential entry and exit points.
Momentum and ATR — measure price acceleration and volatility, assisting in risk management.
Stochastic Oscillator — detects overbought and oversold conditions.
SMA (50, 100, 200) — tracks key moving averages with the option to enable all at once.
Cryptocurrency price display — select and monitor real-time prices of any cryptocurrency available on the BINANCE exchange.
Automatic trend detection— classifies trends as bullish, bearish, or neutral based on RSI and MACD signals.
Customizable table — presents key indicator values in a structured and convenient format. The table also provides automatic trend detection across different timeframes (TF), allowing you to assess the current market situation more accurately on various levels.
Automatic gap detection — identifies market gaps, helping to spot potential trading opportunities.
Buy and sell signals — the system generates buy and sell signals based on the analysis of five key indicator values, allowing traders to respond quickly to market changes.
Bollinger Bands — helps assess market volatility and identify support and resistance levels, as well as potential reversal points, by detecting when prices move outside of normal volatility ranges.
Customization settings — in Angel Signal Pro, you can select which indicators and features you want to display. All elements can be turned on or off according to your preferences. There is also the ability to change colors and the appearance of each element, allowing you to tailor the interface to your personal preferences and make the tool more convenient to use.
Angel Signal Pro is suitable for traders of all experience levels and helps navigate market conditions with confidence.
29 мар.
Информация о релизе
Added Super Trend, improved the quality of buy and sell signals, and enhanced settings. Now, all toggle buttons for enabling and disabling indicators follow one another.
30 мар.
Информация о релизе
Fixed several errors in the settings and improved gap search.
MA Dispersion+MA Dispersion+ — read the “breathing space” between your moving-averages
Get instant feedback on trend strength, volatility expansion and mean-reversion — across any timeframe.
MA Dispersion+ turns the humble moving-average stack into a single, easy-to-read oscillator that tells you at a glance whether price is coiling or fanning out.
🧩 What it does
Plugs into your favourite MA setup
• Pick the classic 5 / 20 / 50 / 200 lengths or disable any combination with one click.
• Choose the MA engine you trust — SMA, EMA, RMA, VWMA or WMA.
• Works on any timeframe thanks to TradingView’s security() engine.
Measures “spread”
For every bar it calculates the absolute distance of each selected MA from their average.
The tighter the stack, the lower the value; the wider the fan, the higher the value.
Adds professional-grade controls
• Weighting — let short-term MAs dominate (Inverse Length), keep everything equal, or dial in your own custom weights.
• Normalisation — convert the raw distance into a percentage of price, ATR multiples, or scale by the MAs’ own mean so you can compare symbols of any price or volatility.
🔍 How traders use it
Trend confirmation – rising dispersion while price breaks out = momentum is genuine.
Volatility squeeze – dispersion parking near zero warns that a big move is loading.
Multi-TF outlook – drop one pane per timeframe (e.g. 5 m, 1 h, 1 D) and see which layer of the market is driving.
Mean-reversion plays – spikes that fade quickly often coincide with exhaustion and snap-backs.
⚙️ Quick-start
Add MA Dispersion+ to your chart.
Set the pane’s timeframe in the first input.
Tick the MA lengths you actually use.
(Optional) Pick a weighting scheme and a normaliser.
Repeat the indicator for as many timeframes as you like — each instance keeps its own settings.
✨ Why you’ll love it
Zero clutter – one orange line tells you what four separate MAs whisper.
Configurable yet bullet-proof – all lengths are hard-coded constants, so Pine never complains.
Context aware – normalisation lets you compare BTC’s $60 000 chaos with EURUSD’s four--decimals calm.
Lightweight – no labels, no drawings, no background processing — perfect for mobile and multi-pane layouts.
Give MA Dispersion+ a try and let your charts breathe — you’ll never look at moving-average ribbons the same way again.
Happy trading!
RSI Ichimoku Cloud + SignalsIndicator Name: RSI Ichimoku Cloud with SMA200 Filter
Description:
This custom indicator combines the Relative Strength Index (RSI) with Ichimoku Cloud logic and a 200-period Simple Moving Average (SMA) applied to RSI, providing enhanced signal filtering and trend validation.
How It Works:
RSI Calculation
Standard RSI is calculated (default period: 14).
Ichimoku Cloud on RSI
Traditional Ichimoku components (Tenkan-sen, Kijun-sen, Senkou Span A & B) are applied directly to the RSI instead of price.
The future cloud (Senkou Span A/B) helps anticipate RSI momentum shifts.
SMA 200 on RSI
A 200-period SMA is calculated on the RSI line, acting as a trend filter.
Only long (buy) signals are allowed when RSI > SMA200.
Only short (sell) signals are allowed when RSI < SMA200.
Entry Signals
Buy Signal: RSI crosses above the Ichimoku cloud + cloud is bullish + Tenkan > Kijun + RSI above SMA200.
Sell Signal: RSI crosses below the cloud + cloud is bearish + Tenkan < Kijun + RSI below SMA200.
Visual Output
Buy and Sell signals are plotted as labels on the main price chart.
The indicator does not draw the RSI or SMA visually, but uses them internally for signal generation.
Smart Trend Lines [The_lurker]
Smart Trend Lines
A multi-level trend classifier that detects bullish and bearish conditions using a methodology based on drawing trend lines—main, intermediate, and short-term—by identifying peaks and troughs. The tool highlights trend strength by applying filters such as the Average Directional Index (ADX) (A), Relative Strength Index (RSI) (R), and Volume (V), making it easier to interpret trend strength. The filter markers (V, A, R) in the Smart Trend Lines indicator are powerful tools for assessing the reliability of breakouts. Breakouts containing are the most reliable, as they indicate strong volume support, trend strength, and favorable momentum. Breakouts with partial filters (such as or ) require additional confirmation, while breakouts without filters ( ) should be avoided unless supported by other strong signals. By understanding the meaning of each filter and the market context.
Core Functionality
1. Trend Line Types
The indicator generates three distinct trend line categories, each serving a specific analytical purpose:
Main Trend Lines: These are long-term trend lines designed to capture significant market trends. They are calculated based on pivot points over a user-defined period (default: 50 bars). Main trend lines are ideal for identifying macro-level support and resistance zones.
Mid Trend Lines: These are medium-term trend lines (default: 21 bars) that focus on intermediate price movements. They provide a balance between short-term fluctuations and long-term trends, suitable for swing trading strategies.
Short Trend Lines: These are short-term trend lines (default: 9 bars) that track rapid price changes. They are particularly useful for scalping or day trading, highlighting immediate support and resistance levels.
Each trend line type can be independently enabled or disabled, allowing traders to tailor the indicator to their preferred timeframes.
2. Breakout Detection
The indicator employs a robust breakout detection system that identifies when the price crosses a trend line, signaling a potential trend reversal or continuation. Breakouts are validated using the following filters:
ADX Filter: The Average Directional Index (ADX) measures trend strength. A user-defined threshold (default: 20) ensures that breakouts occur during strong trends, reducing false signals in range-bound markets.
RSI Filter: The Relative Strength Index (RSI) identifies overbought or oversold conditions. Breakouts are filtered based on RSI thresholds (default: 65 for overbought, 35 for oversold) to avoid signals in extreme market conditions.
Volume Filter: Breakouts are confirmed only when trading volume exceeds a moving average (default: 20 bars) and aligns with the breakout direction (e.g., higher volume on bullish breakouts when the candle closes higher).
Breakout events are marked with labels on the chart, indicating the type of trend line broken (Main, Mid, or Short) and the filters satisfied (Volume, ADX, RSI). Alerts are triggered for each breakout, providing real-time notifications.
3. Customization Options
The indicator offers extensive customization through input settings, organized into logical groups for ease of use:
Main Trend Line Settings
Length: Defines the number of bars used to calculate pivot points (default: 50).
Bullish Color: Color for upward-sloping (bullish) main trend lines (default: green).
Bearish Color: Color for downward-sloping (bearish) main trend lines (default: red).
Style: Line style options include solid, dashed, or dotted (default: solid).
Mid Trend Line Settings
Length: Number of bars for mid-term pivot points (default: 21).
Show/Hide: Toggle visibility of mid trend lines (default: enabled).
Bullish Color: Color for bullish mid trend lines (default: lime).
Bearish Color: Color for bearish mid trend lines (default: maroon).
Style: Line style (default: dashed).
Short Trend Line Settings
Length: Number of bars for short-term pivot points (default: 9).
Show/Hide: Toggle visibility of short trend lines (default: enabled).
Bullish Color: Color for bullish short trend lines (default: teal).
Bearish Color: Color for bearish short trend lines (default: purple).
Style: Line style (default: dotted).
General Display Settings
Break Check Price: Selects the price type for breakout detection (Close, High, or Low; default: Close).
Show Previous Trendlines: Option to display historical main trend lines (default: disabled).
Label Size: Size of breakout labels (Tiny, Small, Normal, Large, Huge; default: Small).
Filter Settings
ADX Threshold: Minimum ADX value for trend strength confirmation (default: 25).
Volume MA Period: Period for the volume moving average (default: 20).
RSI Filter: Enable/disable RSI filtering (default: enabled).
RSI Upper Threshold: Upper RSI limit for overbought conditions (default: 65).
RSI Lower Threshold: Lower RSI limit for oversold conditions (default: 35).
4. Technical Calculations
The indicator relies on several technical calculations to ensure accuracy:
Pivot Points: Pivot highs and lows are detected using the ta.pivothigh and ta.pivotlow functions, with separate lengths for Main, Mid, and Short trend lines.
Slope Calculation: The slope of each trend line is calculated as the change in price divided by the change in bar index between two pivot points.
ADX Calculation: ADX is computed using a 14-period Directional Movement Index (DMI), with smoothing over 14 bars.
RSI Calculation: RSI is calculated over a 14-period lookback using the ta.rsi function.
Volume Moving Average: A simple moving average (SMA) of volume is used to determine if current volume exceeds the average.
5. Strict Mode Validation
To ensure the reliability of trend lines, the indicator employs a strict mode check:
For bearish trend lines, all prices between pivot points must remain below the projected trend line.
For bullish trend lines, all prices must remain above the projected trend line.
Post-pivot break checks ensure that no breakouts occur between pivot points, enhancing the validity of the trend line.
6. Trend Line Extension
Trend lines are dynamically extended forward until a breakout occurs. The extension logic:
Projects the trend line using the calculated slope.
Continuously validates the extension using strict mode checks.
Stops extension upon a breakout, fixing the trend line at the breakout point.
7. Alerts and Labels
Labels: Breakout labels are placed above (for bearish breakouts) or below (for bullish breakouts) the price bar. Labels include:
A prefix indicating the trend line type (B for Main, M for Mid, S for Short).
A suffix showing satisfied filters (e.g., for Volume, ADX, and RSI).
Alerts: Each breakout triggers a one-time alert per bar close, with a descriptive message indicating the trend line type and filters met.
Detailed Code Breakdown
1. Initialization and Inputs
The script begins by defining the indicator with indicator('Smart Trend Lines ', overlay = true), ensuring it overlays on the price chart. Input settings are grouped into categories (Main, Mid, Short, General Display, Filters) for user convenience. Each input includes a tooltip in both English and Arabic, enhancing accessibility.
2. Technical Indicator Calculations
Volume MA: Calculated using ta.sma(volume, volPeriod) to compare current volume against the average.
ADX: Computed using custom dirmov and adx functions, which calculate the Directional Movement Index and smooth it over 14 periods.
RSI: Calculated with ta.rsi(close, rsiPeriod) over 14 periods.
Price Selection: The priceToCheck function selects the price type (Close, High, or Low) for breakout detection.
3. Pivot Detection
Pivot points are detected using ta.pivothigh and ta.pivotlow for each trend line type. The lookback period is set to the respective trend line length (e.g., 50 for Main, 21 for Mid, 9 for Short).
4. Trend Line Logic
For each trend line type (Main, Mid, Short):
Bearish Trend Lines: Identified when two consecutive pivot highs form a downward slope. The script validates the trend line using strict mode and post-pivot break checks.
Bullish Trend Lines: Identified when two consecutive pivot lows form an upward slope, with similar validation.
Trend lines are drawn using line.new, with separate lines for the initial segment (between pivots) and the extended segment (from the second pivot forward).
5. Breakout Detection and Labeling
Breakouts are detected when the selected price crosses the trend line level. The script checks:
Volume conditions (above average and aligned with candle direction).
ADX condition (above threshold).
RSI condition (within thresholds if enabled). Labels are created with label.new, and alerts are triggered with alert.
6. Trend Line Extension
The extendTrendline function dynamically updates the trend line’s endpoint unless a breakout occurs. It uses strict mode checks to ensure the trend line remains valid.
7. Previous Trend Lines
If enabled, previous main trend lines are stored in arrays (previousBearishStartLines, previousBullishTrendLines, etc.) and displayed on the chart, providing historical context.
Disclaimer:
The information and publications are not intended to be, nor do they constitute, financial, investment, trading, or other types of advice or recommendations provided or endorsed by TradingView.
Current Fractal High/Low (Dynamic)
This indicator dynamically tracks the most recent confirmed Fractal High and Fractal Low across any timeframe using custom left/right bar configurations.
🔍 Key Features:
Detects Fractal Highs and Lows based on user-defined pivot settings.
Draws a green line and label ("FH") at the most recent Fractal High.
Draws a red line and label ("FL") at the most recent Fractal Low.
All lines extend from the confirmation bar to the current candle.
Automatically removes old lines and labels for a clean, uncluttered chart.
🛠️ Customizable Inputs:
Left & Right bars for pivot sensitivity
Line width for visibility
📌 Use Cases:
Identifying structure shifts
Recognizing key swing points
Supporting liquidity and breakout strategies
💡 Fractals are confirmed only after the full formation of the pattern (left and right bars). This ensures reliability over reactivity.
This script is designed for intraday to swing traders who want a reliable way to visualize market turning points with minimal noise.
Pivot ATR Zones [v6]🟩 Pivot ATR Zones
Overview:
The Pivot ATR Zones indicator plots dynamic support and resistance zones based on pivot highs and lows, combined with ATR (Average True Range) volatility levels. It helps traders visually identify potential long and short trade areas, along with realistic target and stop loss zones based on market conditions.
Features:
Automatically detects pivot highs and lows
Draws ATR-based entry zones on the chart
Plots dynamic take-profit and stop-loss levels using ATR multipliers
Color-coded long (green) and short (red) zones
Entry arrow markers for clearer trade visualization
Real-time alerts when new zones form
Best For:
Scalpers, intraday traders, and swing traders who want a visual, volatility-aware way to mark potential trade areas based on key pivot structures.
How to Use:
Look for newly formed green zones for long opportunities and red zones for short setups.
Use the dashed lines as dynamic take-profit and stop levels, tuned to the current ATR value.
Combine with other confirmation tools or indicators for optimal results.
On Balance Volume W DivergenceOBV With Divergence Indicator
A comprehensive On Balance Volume (OBV) indicator enhanced with divergence detection capabilities.
Core Features:
Classic OBV calculation with volume-based price movement tracking
Advanced divergence detection system
Multiple smoothing options for OBV
Bollinger Bands integration
Technical Components:
Volume-based price movement analysis
Pivot point detection for divergence
Customizable lookback periods
Adjustable divergence range parameters
Customization Options:
Multiple Moving Average types (SMA, EMA, SMMA, WMA, VWMA)
Bollinger Bands with adjustable standard deviation
Divergence sensitivity settings
Visual customization for signals and alerts
The indicator combines traditional OBV analysis with modern divergence detection, offering traders a powerful tool for identifying potential trend reversals and market momentum shifts.
Key Parameters:
- Pivot Lookback Right/Left: 5 (default)
- Divergence Range: 5-60 bars
- MA Length: 14 (default)
- BB StdDev: 2.0 (default)
Alert System:
- Bullish divergence alerts
- Bearish divergence alerts
- Customizable alert messages
Note: The indicator requires volume data to function properly and will display an error if volume data is not available.
Perfect Daily Markers FINALsalamtak legamrey yessssssssss. very good indicator that helps you identefy the high and low of all days and mark the time: between 15:30 and 19:00