My script/@version=5
indicator("50 EMA - Green Up / Red Down", overlay=true)
// Calculate the 50 EMA
ema50 = ta.ema(close, 50)
// Determine if the EMA is rising or falling
color_ema = ema50 > ema50 ? color.green : color.red
// Plot the 50 EMA with dynamic color
plot(ema50, title="50 EMA", color=color_ema, linewidth=2)
在腳本中搜尋"Candlestick"
Dynamic Candle Strength Color + SL Zones (Clean)Shows Sl levels and candles that are larger than your SL
Sweep + BOS (Lines + First Confirmed Only)🔍 Indicator: Sweep + BOS (Break of Structure with Visual Lines)
🧠 Overview
This indicator combines Swing detection, Liquidity Sweeps, and Break of Structure (BOS) logic, with:
Customizable swing length,
BOS signals only after confirmed sweeps,
BOS shown only once per sweep,
Visual labels and connecting lines to highlight structure breaks clearly.
⚙️ Inputs
Swing Length:
Defines how many candles to use to identify a swing high/low. Must be an odd number (e.g., 3, 5, 7...).
Sweep Lookback Window:
Sets how far back the script checks for a sweep (false breakout over a swing).
BOS Validity After Sweep:
Number of bars within which a BOS can be considered valid after a sweep.
Toggle Options:
Show/hide:
Swing Labels
Sweep Labels
BOS Labels
BOS Connecting Lines
📌 Logic Breakdown
✅ Swings
Swing High: A candle’s high is greater than the highs of all N candles on both sides.
Swing Low: A candle’s low is lower than the lows of all N candles on both sides.
💧 Liquidity Sweeps
Sweep High:
Price spikes above a previous Swing High,
Then closes back below it (false breakout).
Sweep Low:
Price drops below a previous Swing Low,
Then closes back above it.
🔁 Break of Structure (BOS)
A BOS is only shown if:
It occurs after a valid sweep (within X bars),
It hasn’t been already plotted for that sweep,
BOS ↑ is only possible after Sweep Low,
BOS ↓ is only possible after Sweep High,
Opposite BOS type resets the last BOS state.
BOS ↑ (Bullish):
Confirmed when price closes above previous Swing High after Sweep Low.
Label appears at the candle low.
A line is drawn from the Swing Low to the BOS candle.
BOS ↓ (Bearish):
Confirmed when price closes below previous Swing Low after Sweep High.
Label appears at the candle high.
A line is drawn from the Swing High to the BOS candle.
Swing High/Low with Liquidity Sweeps🧠 Overview
This indicator identifies swing highs and swing lows based on user-defined candle lengths and checks for liquidity sweeps—situations where the price breaks a previous swing level but then closes back inside, indicating a potential false breakout or stop hunt. It also supports visual labeling and alerts for these events.
⚙️ Inputs
Swing Length (must be odd number ≥ 3):
Determines how many candles are used to identify swing highs/lows. The central candle must be higher or lower than all neighbors within the range.
Example: If swingLength = 5, the central candle must be higher/lower than the 2 candles on both sides.
Sweep Lookback (bars):
Defines how many bars to look back for possible liquidity sweeps.
Show Swing Labels (checkbox):
Optionally display labels on the chart when a swing high or low is detected.
Show Sweep Labels (checkbox):
Optionally display labels on the chart when a liquidity sweep occurs.
🕯️ Swing Detection Logic
A Swing High is detected when the high of the central candle is greater than the highs of all candles around it (as per the defined length).
A Swing Low is detected when the low of the central candle is lower than the lows of surrounding candles.
Swing labels are placed slightly above (for highs) or below (for lows) the candle.
💧 Liquidity Sweep Logic
A Sweep High is triggered if:
The current high breaks above a previously detected swing high,
And then the candle closes below that swing high,
Within the configured lookback window.
A Sweep Low is triggered if:
The current low breaks below a previous swing low,
And then closes above it,
Within the lookback window.
These are often seen as stop hunts or fake breakouts.
🔔 Alerts
Sweep High Alert: Triggered when a sweep above a swing high occurs.
Sweep Low Alert: Triggered when a sweep below a swing low occurs.
You can use these to set up TradingView alerts to notify you of potential liquidity grabs.
📊 Use Cases
Identifying market structure shifts.
Spotting fake breakouts and potential reversals.
Assisting in smart money concepts and liquidity-based trading.
Supporting entry timing in trend continuation or reversal strategies.
MaxEvolved v2 - UT BotA powerful aggregate of indicators. Uses UT Bot, EMA, RSI, MACD & Hull MA to determine a potential position.
Drawing X means UT Bot and RSI crossing conditions are met.
Drawing big BUY or SELL signal means all conditions are met.
Un puissant agrégat d'indicateurs. Utilise UT Bot, EMA, RSI, MACD& Hull MA pour déterminer une position potentielle.
Structure Break + Confirmation (First Signal Only)Swing Detection:
A Swing High is detected when the high of the central candle (based on a lookback period) is greater than the highs of the candles before and after.
A Swing Low is detected when the low of the central candle is lower than the lows of the candles before and after.
Break of Structure (BOS):
A BOS Up is confirmed when a candle closes above the most recent swing high (with a body close).
A BOS Down is confirmed when a candle closes below the most recent swing low.
Confirmation (CONF):
A CONF Up is triggered when price makes a new high after a BOS Up.
A CONF Down is triggered when price makes a new low after a BOS Down.
Only the first confirmation after a BOS is plotted.
Visuals:
Cross marks (×) are plotted at swing points.
BOS signals are shown with green (up) and red (down) labels.
CONF signals are shown with lime (up) and orange (down) triangle markers.
Dotted lines are drawn at the levels of broken swing highs/lows.
Opening Candle Indicator FinalAll previous versions were subject to bugs after review, so this final version has been released with the same features as previous versions and is error-free.
Note for those trading outside the Saudi and US markets: You can track any market with a specific trading session start and end time by selecting "Custom" from the settings menu and then setting the start and end times for the trading session.
جميع الاصدارات الماضية كانت بعد الفحص تصدر بعض الأخطاء البرمجية لذلك تم إصدار هذا الاصدار النهائي بنفس المميزات للإصدارات الماضية ولا يوجد بها أخطاء.
ملاحظة لكل من يتدوال خارج السوق السعودي والأمريكي : يمكن متابعة أي سوق له وقت بداية ونهاية جلسة تدوال وذلك عن طريق إختيار مخصص من قائمة الاعدادت ثم وضع وقت بداية ونهاية جلسة التدوال
WaveTrend Strategy It is the wave trend indicator transformed into a strategy with Zapay intelligence. Buys on yellow candles and sells on turquoise candles. Opens both long and short trades. All parameters can be adjusted. Set the parameter according to the chart minute and test.
Williams Fractals with Buy/Sell Signals🧠 Concept:
This indicator is based on the concept of fractal swing highs and lows, commonly used in Bill Williams’ trading methods. A fractal forms when a candle’s high or low is higher/lower than a set number of candles on both sides. This structure helps identify local market turning points.
⚙️ Inputs:
Fractal Sensitivity (swingSensitivity):
Number of candles required on each side of the central bar to validate a fractal.
For example, if set to 2, a swing high is detected when a bar’s high is higher than the previous 2 bars and the next 2 bars.
✅ Features:
Fractal Detection:
Plots white triangles above swing highs (down fractals).
Plots white triangles below swing lows (up fractals).
Buy/Sell Signals:
Buy Signal: Triggered when the candle closes above the most recent down fractal.
Sell Signal: Triggered when the candle closes below the most recent up fractal.
Signals alternate — a Buy must follow a Sell and vice versa to reduce noise.
Signal Labels:
"BUY" label appears below the candle in green.
"SELL" label appears above the candle in red.
Alerts:
Real-time alerts are available for both Buy and Sell signals via alertcondition().
📌 Use Case:
This indicator can help you:
Detect short-term reversals.
Confirm breakouts or structure shifts.
Time entries with clear logic based on price action.
Perfect MA Touch – Full Setup 1,3,5,7,8,9 v2This indicator helps you track a precise candle countdown from a moving average touch, labeling key bars (1, 3, 5, 7, 8, 9) for timing entries and momentum setups — with optional coloring, alerts, and full customization.
What It Detects
1. MA Touch Trigger
The sequence starts when any selected moving average (up to 6 MAs, customizable) is touched by the candle's high/low range.
This "perfect touch" initiates the count and labels that candle as "1".
2. Candle Number Labels
After a perfect MA touch:
Candle 1 = the bar that touches the MA
Candle 3 = two bars after Candle 1
Candle 5 = the fifth bar after the touch
Candle 7 = third bar after Candle 5
Candle 8 = fourth bar after Candle 5
Candle 9 = fifth bar after Candle 5
It creates a time-based sequence you can use to anticipate reactions or momentum shifts.
3. Customization
You can:
Choose between EMA or SMA for each MA (6 total)
Set custom lengths for each MA (9, 20, 50, 100, 150, 200)
Choose which candle numbers (1, 3, 5, 7, 8, 9) to highlight
Pick font size and label color
4. Highlighting and Alerts
Highlight candles (with color) when certain bars (like 3, 5, 7) print
Alerts are available for all tracked bars (1, 3, 5, 7, 8, 9)
Use Case Example
Let’s say you want to enter trades on the 3rd candle after a perfect MA touch:
You set the script to highlight candle 3.
When a candle hits your chosen MA (say EMA 9), it’s labeled “1”.
Two bars later, bar 3 appears — giving you a timed signal to enter if price behavior aligns.
This method is especially useful when paired with:
Volume confirmation
Breakout or reversal patterns
Support/resistance or order block zones
RSI with Native Alerts//@version=5
indicator("RSI with Native Alerts", shorttitle="RSI Alerts", overlay=false)
// — INPUT
len = input.int(14, title="RSI Length")
// — CÁLCULO RSI
r = ta.rsi(close, len)
// — PLOT RSI y BANDAS
plot(r, title="RSI", color=#7E57C2)
hline(80, title="Overbought", color=color.red, linestyle=hline.style_dashed)
hline(50, title="Middle", color=color.gray, linestyle=hline.style_solid)
hline(20, title="Oversold", color=color.green, linestyle=hline.style_dashed)
// — ALERTAS INTERNAS (usa UNA sola ranura de alerta)
if ta.crossover(r, 80)
alert("🔔 RSI crossed above 80: " + str.tostring(r, format.mintick), alert.freq_once_per_bar)
if ta.crossunder(r, 20)
alert("🔔 RSI crossed below 20: " + str.tostring(r, format.mintick), alert.freq_once_per_bar)
RSI Alerts//@version=5
indicator("RSI Alerts", shorttitle="RSI Alerts", overlay=false)
// — INPUT
len = input.int(14, "RSI Length")
// — CÁLCULO
r = ta.rsi(close, len)
// — PLOT RSI Y BANDAS
plot(r, "RSI", color=#7E57C2)
hline(80, "Overbought", color=color.red, linestyle=hline.style_dashed)
hline(50, "Middle", color=color.gray, linestyle=hline.style_solid)
hline(20, "Oversold", color=color.green, linestyle=hline.style_dashed)
// — ALERTAS INTERNAS (usa UNA sola ranura de alerta)
if ta.crossover(r, 80)
alert("🔔 RSI cruzó por encima de 80: " + str.tostring(r, format.mintick), alert.freq_once_per_bar)
if ta.crossunder(r, 20)
alert("🔔 RSI cruzó por debajo de 20: " + str.tostring(r, format.mintick), alert.freq_once_per_bar)
Impulsive Candle Bar Coloring✅ Detects impulsive candles
✅ Colors the candle bars (green for bullish, red for bearish).
🔍 What You'll See:
Candles with large body above ATR and above average volume:
🟢 Green candles = bullish impulsive
🔴 Red candles = bearish impulsive
Accurate Weekly Liquidity Zones + Daily LinesDraws vertical lines for each day of the week
Monday in a unique color
Other days in gray
Marks Buy-Side Liquidity (BSL) — highest high of the last completed week
Marks Sell-Side Liquidity (SSL) — lowest low of the last completed week
Extends BSL/SSL as horizontal lines into the current week
30% Away from 200 SMA AlertWhen stock price is overly extended. This alert is meant to let you know when a reversal is on the way
London Open MarkerThis indicator draws a box on the candle of the London Open (it's designed to account for European time change, so it draws the box at 7am UTC in summer and 8am UTC in winter)
Useful for London session opening drive strategies
Fair Value Gap (FVG) Detector — ICT SMC BasedThis is an open-source Fair Value Gap (FVG) indicator, based on the principles taught in ICT (Inner Circle Trader) and Smart Money Concepts (SMC). It identifies imbalances or inefficiencies in price action where the body/wick of the middle candle in a three-candle formation does not overlap with the first and third candles.
🔹 What is an FVG?
An FVG is formed when there is a price imbalance, typically between three consecutive candles:
A bullish FVG forms when the low of candle 1 is above the high of candle 3.
A bearish FVG forms when the high of candle 1 is below the low of candle 3.
These gaps are believed to represent areas of institutional activity and are often used as potential entries, targets, or reaction zones.
🔹 Features:
Detects both bullish and bearish FVGs
Clean chart visuals using colored boxes
Adjustable box opacity and text alignment
Option to show or hide filled FVGs
Optional filter to only display gaps above a minimum size (e.g., 100 points)
Multi-timeframe support (if enabled in script settings)
Box label customization (text alignment: center/left/right)
🔹 How to Use:
Use the indicator on any timeframe or instrument
Larger gaps may indicate stronger price inefficiencies
Combine with market structure, liquidity zones, or order blocks for confirmation
This version is open-source, so traders can view and adapt the logic as needed.
The indicator is designed for transparency, education, and clarity of Smart Money Concepts.
Custom EMA Inputs (20, 40, 100, 200)This script plots four customizable Exponential Moving Averages (EMAs) on the chart—specifically the 20, 40, 100, and 200-period EMAs. Each EMA length and color can be adjusted by the user, allowing for greater flexibility in trend analysis and multi-timeframe confirmation. The script supports offsetting plots, enabling visual tweaks for alignment with other indicators or price action setups.
Ideal for traders seeking dynamic control over their moving average strategies, this tool provides a clean, adaptable foundation for both trend following and crossover systems.
Previous Day/Week/Month - High/Lows + Open/Close (RC) 1.0it is an indicator for Previous Day, Week, Month's, Open-High-Low-Close
Engulfing CandlesDetects Engulfing Candles with tha addition of an extra condition so that the volume of the engulfing candle is greater than the volume of the last four candles
Previous Day/Week/Month - High/Lows + Open/Close (RC)Its an indicator for previous day, week, month's OPEN HIGH LOW CLOSE