My script1// This Pine Script® code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org
2// © Lkkahar99
3
4//@version=6
5indicator("My script")
6plot(close)
7
Indicateurs et stratégies
Anilk_3X_Trend_Pulse🧠 What is it trying to do?
It shows whether the price of a stock (or crypto, etc.) is bullish, bearish, or neutral based on how prices are moving over different time periods.
Based on this, it gives a strength score:
+100 means strong bullish momentum (upward)
-100 means strong bearish momentum (downward)
0 means no clear direction (Neutral)
🎨 What does it show on the chart?
It draws 3 colored lines (Blue, Green, Red) below your price chart (in a separate panel):
Blue = Short-term strength
Green = Medium-term strength
Red = Long-term strength
You also see 3 reference lines:
+100 = Bullish line
0 = Neutral line
-100 = Bearish line
🧰 Why is this useful for a trader?
It helps you visually judge momentum across different timeframes.
You can see if all timeframes are pointing in the same direction, which can signal a strong trend.
Great for deciding:
Whether to enter a trade
Whether to stay in or exit
Whether the market is confused or trending clearly
📌 In simple terms:
"This script acts like a trend strength meter across short, medium, and long periods — helping traders see if the market is going up, down, or just stuck."
Would you like a visual example or want this added to your TradingView chart?
// Disclaimer: Please backtest this indicator across different timeframes before using it for live trading to ensure it performs as expected.
Session Candle ColorsColors candles based on market session.
Asia = Green Candlestick
NY = Red Candlestick
London = Blue Candlestick
London x NY = Purple Candlestick
📊 Smart Money Trend Scanner ComboThis script combines EMA price direction with smart money concepts and gives you trading sessions as well with volumetric arrows
🔺 Smart Money Candle HighlightThis highlights SMC Candles red which helps in identifying retracements zones
4 EMA + MTF Trend TableCreates a table on top right of chart that shows if the 4ma is bullish or bearish on different timeframes
Auto Step Horizontal LinesAuto Step Horizontal lines by custom range
Create automatic horizontal lines by specifying the price range for each line, with each line serving as an observation point for support and resistance levels.
donchain channel with EMAsDonchain channel with labels of price tops and bottom changes.
based on wyckoff method, price start changing its directions with slower and slower speed of increasing price. with closer tops started to appears. same for bottoms.
by using donchain and labels of different price change of top and bottom. we can track and notice where price started to slowing down before the direction changed.
🟨 Major Shift Order Block HighlightHighlights order block candles on the market that banks use to shift price direction
Exponential Regression Log ResidualThis custom indicator measures the logarithmic residual between the current price and an exponential regression line, offering insights into relative overbought and oversold conditions on a logarithmic scale. It can be especially useful when analyzing assets that move exponentially over time, such as growth stocks or cryptocurrencies.
Nifty/BankNifty Scanner - RSI, MACD, BB, VWAP1. RSI (Relative Strength Index)
Purpose: Measures market momentum and identifies overbought (>70) or oversold (<30) conditions.
Benefit: Helps catch potential reversal zones or trend exhaustion points.
📈 2. MACD (Moving Average Convergence Divergence)
Purpose: Detects changes in trend direction via crossovers of the MACD line and signal line.
Benefit: Flags bullish and bearish momentum shifts, useful for confirming trade entries/exits.
📉 3. Bollinger Bands
Purpose: Shows volatility using a moving average with upper/lower bands.
Benefit: When price touches the upper/lower bands, it may indicate overextended conditions—potential reversal or breakout areas.
🟠 4. VWAP (Volume Weighted Average Price)
Purpose: Tracks the average price traded based on both volume and price.
Benefit: Acts as a dynamic support/resistance level, especially useful for intraday trading in Nifty/Bank Nifty. Crossing VWAP often signals institutional buying/selling zones.
✅ Overall Benefits
Combines momentum, trend, volatility, and volume-based signals
Helps in multi-angle analysis—confirming trades with multiple indicators
Useful for intraday and swing trading on Nifty/Bank Nifty
Clean visuals and alerts make decision-making faster
🌕Worldclassedge [Patrick nill]//@version=5
indicator("🌕Worldclassedge ", overlay=true)
// =
source = input(close, "Source")
quickEMA = ta.ema(close, 9)
plot(quickEMA, color=color.green, linewidth=1)
per1 = input.int(27, minval=1, title="Fast period")
mult1 = input.float(1.6, minval=0.1, title="Fast range")
per2 = input.int(55, minval=1, title="Slow period")
mult2 = input.float(2.0, minval=0.1, title="Slow range")
smoothrng(x, t, m) =>
wper = t * 2 - 1
avrng = ta.ema(math.abs(x - x ), t)
ta.ema(avrng, wper) * m
smrng1 = smoothrng(source, per1, mult1)
smrng2 = smoothrng(source, per2, mult2)
smrng = (smrng1 + smrng2) / 2
rngfilt(x, r) =>
var float filt = na
filt := x > nz(filt ) ? (x - r < nz(filt ) ? nz(filt ) : x - r) : (x + r > nz(filt ) ? nz(filt ) : x + r)
filt = rngfilt(source, smrng)
var float upward = 0
var float downward = 0
upward := filt > filt ? nz(upward ) + 1 : filt < filt ? 0 : nz(upward )
downward := filt < filt ? nz(downward ) + 1 : filt > filt ? 0 : nz(downward )
hband = filt + smrng
lband = filt - smrng
longCond = source > filt and upward > 0
shortCond = source < filt and downward > 0
var CondIni = 0
CondIni := longCond ? 1 : shortCond ? -1 : CondIni
long = longCond and CondIni == -1
short = shortCond and CondIni == 1
plotshape(long, title="BUY", text="Long▲", style=shape.labelup, textcolor=color.white, size=size.auto, location=location.belowbar, color=color.green)
plotshape(short, title="SELL", text="Short▼", style=shape.labeldown, textcolor=color.white, size=size.auto, location=location.abovebar, color=color.red)
alertcondition(long, title="BUY", message="Long▲")
alertcondition(short, title="SELL", message="Short▼")
// VWAP
anchor = input.string("Session", title="Anchor Period")
MILLIS_IN_DAY = 86400000
dwmBarTime = timeframe.isdwm ? time : request.security(syminfo.tickerid, "D", time)
dwmBarTime := na(dwmBarTime) ? nz(dwmBarTime ) : dwmBarTime
var periodStart = time - time
makeMondayZero(dayOfWeek) => (dayOfWeek + 5) % 7
isMidnight(t) => hour(t) == 0 and minute(t) == 0
isSameDay(t1, t2) => dayofmonth(t1) == dayofmonth(t2) and month(t1) == month(t2) and year(t1) == year(t2)
isOvernight() => not (isMidnight(dwmBarTime) or request.security(syminfo.tickerid, "D", isSameDay(time, time_close), lookahead=barmerge.lookahead_on))
tradingDayStart(t) => timestamp(year(t), month(t), dayofmonth(t), 0, 0)
numDaysBetween(t1, t2) =>
diff = math.abs(tradingDayStart(t1) - tradingDayStart(t2))
diff / MILLIS_IN_DAY
tradingDay = isOvernight() ? tradingDayStart(dwmBarTime + MILLIS_IN_DAY) : tradingDayStart(dwmBarTime)
isNewPeriod() =>
var isNew = false
if tradingDay != nz(tradingDay )
isNew := switch anchor
"Session" => na(tradingDay ) or tradingDay > tradingDay
"Week" => makeMondayZero(dayofweek(periodStart)) + numDaysBetween(periodStart, tradingDay) >= 7
"Month" => month(periodStart) != month(tradingDay) or year(periodStart) != year(tradingDay)
"Year" => year(periodStart) != year(tradingDay)
=> false
isNew
srcVWAP = hlc3
var float sumSrc = 0
var float sumVol = 0
if isNewPeriod()
periodStart := tradingDay
sumSrc := 0
sumVol := 0
if not na(srcVWAP) and not na(volume)
sumSrc += srcVWAP * volume
sumVol += volume
vwapValue = sumSrc / sumVol
plot(vwapValue, title="VWAP", color=color.red, linewidth=3)
// =
enableCloud = input.bool(false, "Enable Cloud")
lenn = input.int(20, "Period")
mult = input.float(2.5, "StdDev Multiplier")
tc = input.int(25, "Gauge Size", minval=3)
upColor = input.color(#00ffbb, "Up Color")
downColor = input.color(#ff1100, "Down Color")
basis = ta.sma(close, lenn)
upper1 = basis + ta.stdev(close, lenn) * mult
lower1 = basis - ta.stdev(close, lenn) * mult
// TP
var int position = 0
if long
position := 1
else if short
position := -1
if ta.crossover(close, lower1) and position == -1
label.new(bar_index, low, text="TP", style=label.style_none, textcolor=color.red, yloc=yloc.belowbar)
if ta.crossunder(close, upper1) and position == 1
label.new(bar_index, high, text="TP", style=label.style_none, textcolor=color.green, yloc=yloc.abovebar)
alertcondition(ta.crossover(close, lower1), title="Short TP", message="Short TP")
alertcondition(ta.crossunder(close, upper1), title="Long TP", message="Long TP")
📈 Volume Surge with EMA Trend ConfirmationVolume Surge Indicator arrows populate - uses 200 ema and 20
market relative strengthOverview
market relative strength is a custom indicator that visualizes how strong or weak a given asset is compared to a selected market benchmark — such as KOSPI, NASDAQ100, BTC dominance, or total crypto market cap.
How It Works
The indicator calculates the relative return between the current asset and the selected benchmark over a user-defined period. It then normalizes the difference into a 0–100 score:
Above 50 = outperforming the market
Below 50 = underperforming the market
Above 70 / Below 30 = strong divergence from market trend
Use Case
This is ideal for identifying assets with strong relative performance, detecting trend leaders or laggards, and rotating positions between sectors or assets based on strength.
Customization
Choose from a list of market indexes or crypto metrics
Set the comparison period and normalization range
Visual cues with background shading for strong/weak zones
Note
This is not the same as RSI. This indicator is based on relative performance to a benchmark, not price momentum.
Top & Bottom Search🧩 ~ Experimental🔧📌 Top & Bottom Search🧩 ~ Experimental🔧
This script is designed to identify potential market reversal zones using a combination of classic candlestick patterns (Piercing Line & Dark Cloud Cover) and trend confirmation tools like EMA positioning and optional RSI filters.
🔍 Core Features:
✅ Detects Piercing Line and Dark Cloud Cover patterns.
✅ Optional EMA filter to confirm bullish or bearish alignment.
✅ Optional RSI filter to confirm oversold or overbought conditions.
✅ Visual plot of the selected EMA (customizable thickness & color).
✅ Clean and toggleable inputs for user flexibility.
⚙️ Customizable Settings:
Enable/disable EMA confirmation.
Enable/disable RSI confirmation.
Choose whether to display the EMA on the chart.
Adjust EMA period, RSI thresholds, and candle visuals.
🧪 Note:
This is an experimental tool, best used as a supplement to your existing analysis. Not every signal is a guaranteed reversal—this script aims to highlight potential turning points that deserve closer attention.
I HIGHLY recommend using this in coherence with many other indicators in a robust system of indicators that meet your desired time frames and signal periods.
NOTES*
1.) An alternative way to view this indicator is as a "Piercing & Dark Cloud Candle Indicator/Strategy w/ EMA & RSI Logic - Either EMA or RSI Logics are Optional."
2.) When toggling between the RSI and EMA Filters, the default is set to EMA filter applied, however you cannot have both RSI signals and EMA filters on the chart at the same time, it can only be one or the other. So be aware that if you have EMA filter ON and select RSI filter, it will only be displaying the RSI filtered outputs. The ONLY WAY to see the EMA filtered outputs is to only have the EMA filter box checked and NOT the RIS filter box.
Volume Indicator - Separate Pane//@version=5
indicator("Volume Indicator - Separate Pane", overlay=false)
// Volume Configuration
var int maLength = input.int(10, "MA Period", minval=5, maxval=50)
var color volumeColor = input.color(#2962FF, "Volume Color")
var color maColor = input.color(#FF6D00, "MA Color")
// Calculations
volumeMA = ta.sma(volume, maLength)
// Plots
plot(volume, "Volume", volumeColor, style=plot.style_columns)
plot(volumeMA, "Volume MA", maColor, 2)