Strong Trend Bars (ATR-based)This is a ChatGPT pinescript meant as an indicator for detecting strength in the market. The primary function I use it for is to decide which bars to trail a stop loss beneath.
💥 Explanation of adjustable inputs:
Bull Close Threshold (default 0.6):
If set to 0.6, bull bars must close above 60% of bar height → low + 0.6 * barHeight
Bear Close Threshold (default 0.6):
If set to 0.6, bear bars must close below 40% of bar height → high - 0.6 * barHeight
This lets you experiment with tighter or looser filters. For example:
0.7 → only bars closing near the extremes will light up
0.5 → about midpoint
0.8 → very demanding, “almost full body” bars
Indicators and strategies
Liquidity DeltaThis indicator estimates market pressure by calculating the difference between bid and ask volume based on candle structure and volume without access to an order book.
Methodology
Normalized delta by volume for consistency across assets, smoothed for reduced noise
The threshold channel highlights potential imbalances
Settings
Normalization Length: window size for averaging volume and delta
Smoothing Length: noise reduction for the normalized data
MA types for averaging delta, its normalization and final smoothing
Market Correlation Monitor v6 simpleIf gold and VIXM (medium term volatility) are up, we're in a risk-off regime where defensive investments do best. Likely at that time, SPY and the Nasdaq (QQQ or XLK) are down, and vice versa.
But typical asset relationships can change in volatile times like this. Using Claude and pinescript, I created a market correlation view indicator that can show you whether we're risk on or risk off, and what the relationships between oil, gold, SPY, and bitcoin are right now. It tells you when relationships decouple. Fascinating stuff, for me, as I was learning these things even exist for the first time.
DMI Percentile MTF📈 DMI Percentile MTF – Custom Technical Indicator
This indicator is an enhanced version of the classic Directional Movement Index (DMI), converting +DI, -DI, and ADX values into dynamic percentiles ranging from 0% to 100%, making it easier to interpret the strength and direction of a trend.
⚙️ Key Features:
Percentile Normalization: Calculates where current values stand within a historical range (default: 100 bars), providing clearer overbought/oversold context.
+DI (green): Indicates bullish directional strength.
-DI (orange): Indicates bearish directional strength.
ADX (fuchsia): Measures overall trend strength (rising = strong trend, falling = flat market).
20% / 80% reference lines: Help identify weak or strong conditions.
Multi-Timeframe (MTF) Support: Analyze a higher timeframe trend (e.g., daily) while viewing a lower timeframe chart (e.g., 1h).
📊 How to Read It:
+DI > -DI → bullish trend dominance.
-DI > +DI → bearish trend dominance.
ADX rising → strengthening trend (regardless of direction).
ADX falling → sideways or consolidating market.
Values above 80% → historically high / strong conditions.
Values below 20% → historically low / weak conditions or potential breakout setup.
Market Correlation Monitor v6 simpleIf gold and VIXM (medium term volatility) are up, we're in a risk-off regime where defensive investments do best. Likely at that time, SPY and the Nasdaq (QQQ or XLK) are down, and vice versa.
But typical asset relationships can change in volatile times like this. Using Claude and pinescript, I created a market correlation view indicator that can show you whether we're risk on or risk off, and what the relationships between oil, gold, SPY, and bitcoin are right now. It tells you when relationships decouple. Fascinating stuff, for me, as I was learning these things even exist for the first time.
FVG Alerts (Vortus)Fair Value Gaps (FVGs) represent price inefficiencies where buying and selling volumes are imbalanced, creating gaps between the wicks of consecutive candles. These gaps often act as magnets for price, as markets tend to "fill" these gaps before resuming their trend.
Hourly FVG/iFVG ZoneMacros Price Delivery
Note: Determine short time bias and enter for a 30 40 handles runs to the minor liquidity or FVG
Golden & Death CrossThis indicator highlights Golden Cross and Death Cross signals based on customizable moving averages. It is ideal for swing traders and trend-following strategies across various timeframes.
🔍 Features:
Customizable moving average types: Choose between Simple Moving Average (SMA) and Exponential Moving Average (EMA)
Flexible MA lengths: Default 50/200, but can be adjusted to any short/long period (e.g., 9/21 for crypto)
Clear visual markers: Plots labels directly on the chart where crossovers occur
Alert support: Built-in alerts for Golden and Death Cross events
Overlay-enabled: MAs and signals display directly over price action
📈 Signal Logic:
Golden Cross = Short MA crosses above Long MA → bullish signal
Death Cross = Short MA crosses below Long MA → bearish signal
Common configurations:
50/200 EMA → Long-term trend shifts
9/21 EMA → Short-term momentum
🔔 Alerts:
You can create alerts using:
Golden Cross Alert: Triggers on bullish crossover
Death Cross Alert: Triggers on bearish crossover
✅ Use Cases:
Spot major trend shifts
Confirm entry/exit points with moving average dynamics
Combine with volume, RSI, or other filters for advanced strategies
Notes:
This is a basic yet powerful crossover tool. For more advanced filtering, trend confirmation, or backtesting logic, feel free to clone and expand it.
Questions or suggestions? Leave a comment or fork the script for your own use.
Market Cipher B Multi-TF Momentum FilteredMy new script signals when alignment in momentum is achieved at the same time in 4hr, 1hr and 12min only... I have seen that when momentum waves are deep in overbought or oversold territory (+- 53) and we have divergences many of time have explosion moves as LTF and HTF's are aligned...
Hope you enjoy it and let me know any thoughs...
MinhPhan MA Crossover Strategy RSIThis Pine Script implements a trend-following strategy using a Moving Average Crossover combined with RSI-based exit conditions for optimal trade timing. Designed for short- to medium-term trading, the strategy enters a long position when the short-term EMA crosses above the long-term EMA, and a short position when it crosses below — a classic momentum signal. The default settings use a 9-period and 21-period EMA, but you can customize these values in the input panel.
To enhance risk management and trade timing, the script exits long positions when RSI exceeds 70 (indicating overbought conditions) and exits short positions when RSI drops below 30 (oversold), with fixed profit and loss targets of 200 and 100 points, respectively. This creates a balanced approach combining technical momentum with RSI reversal detection.
Additionally, the script includes commission modeling (0.1% default) to simulate real trading conditions more accurately. Visual aids like EMA9 and EMA21 overlays help traders validate signals visually.
Ideal for cryptocurrencies like BTC and SUI on any timeframe, this script allows for easy backtesting and optimization. It's a great starting point for traders looking to automate and refine a clean crossover-based strategy with proper risk control.
EMA Trend Dashboardthis just shows what position the user defined EMAs are on 4 different TFs. also the TF are user defined. and the TXT size is user defined. if you have trouble with bias maybe this is the script you need.
seekho roj kamao v 2 "Our Supply and Demand Zone Indicator is a powerful tool designed to pinpoint key institutional price levels with accuracy. It automatically detects and highlights significant supply (resistance) and demand (support) zones based on historical price action, helping traders identify potential reversal and breakout areas. The zones adapt dynamically to market structure, providing real-time visual cues for strategic entries, exits, and risk management. Whether you're trading forex, stocks, or crypto, this indicator helps you stay ahead of the market by revealing hidden price imbalances and enhancing your ability to make informed, confident trading decisions."
Reintegration OPR zone 9h30📝 Indicator Description (for TradingView):
Name: Reintegration OPR Zone – 9:30 AM EST (UTC-4)
Purpose:
This indicator is designed for US indices like NAS100, US30, or SPX500. It helps identify potential false breakouts or retests by tracking when the price re-enters the Opening Price Range (OPR) after an initial breakout.
🔍 How it works:
At 9:30 AM New York time (UTC-4), the script captures the high and low of the first 15-minute candle (which is key for the US session open).
It then draws a horizontal box (rectangle) from the high to the low of that candle.
The box extends horizontally for 7 hours (28 candles on a 15-minute chart).
The script tracks if price:
Breaks above or below the OPR zone
Then re-enters the zone (a potential "fakeout" or "retest" signal)
No label or text is displayed on the chart (you requested it to be hidden).
🕒 Timeframe:
Designed for the 15-minute chart (M15)
Assumes New York session open at 9:30 AM EST (UTC-4)
ORB 15 min w/ PDHL + bands = $$$This indicator was created for the 15 min Opening Range Breakout Strategy. The goal was to incorporate Previous Day High and Low levels (PDHL).
For visual ease, the bands can be filled in and you can easily fill in an overlay color when the ORB intersects the PDHL.
Macro Time Block (15m przed i po)Indicator zeigt die Macrozeit 15 Minuten vor und 15 minuten nach voller Stunde.
Buy/Sell Signal Indicatorrength Calculation: The script checks how often the price has interacted with each support or resistance level within a certain look-back period (loopback). The more interactions, the stronger the support or resistance is considered.
RSI Gold Strategy - Risk-Based Lot//@version=5
strategy("RSI Gold Strategy - Risk-Based Lot", overlay=true)
// === User Inputs ===
startHour = input.int(2, "Trade Start Hour")
endHour = input.int(23, "Trade End Hour")
sl_pips = input.float(9.0, "Stop Loss in Gold Units")
tp_pips = input.float(16.5, "Take Profit in Gold Units")
riskPercent = input.float(1.0, "Risk Percent per Trade")
rsiOverbought = input.int(75, "RSI Overbought Level")
rsiOversold = input.int(43, "RSI Oversold Level")
rsiPeriod = input.int(14, "RSI Period")
// === RSI Calculation ===
rsi = ta.rsi(close, rsiPeriod)
// === Time Filter ===
currentHour = hour(time, "Etc/UTC")
withinTime = (currentHour >= startHour and currentHour < endHour)
// === Entry Conditions ===
buySignal = ta.crossover(rsi, rsiOversold) and withinTime
sellSignal = ta.crossunder(rsi, rsiOverbought) and withinTime
// === Risk-Based Position Sizing ===
capital = strategy.equity
riskAmount = capital * (riskPercent / 100)
slPoints = sl_pips / syminfo.mintick
// Tick value estimation (for Gold, assume 0.01 = $1)
tickValue = 1.0
contractSize = 1.0
positionSize = riskAmount / (sl_pips * tickValue)
// === Price Setup ===
long_sl = close - sl_pips
long_tp = close + tp_pips
short_sl = close + sl_pips
short_tp = close - tp_pips
// === Execute Trades ===
if (buySignal)
strategy.entry("Buy", strategy.long, qty=positionSize)
strategy.exit("Exit Buy", from_entry="Buy", stop=long_sl, limit=long_tp)
if (sellSignal)
strategy.entry("Sell", strategy.short, qty=positionSize)
strategy.exit("Exit Sell", from_entry="Sell", stop=short_sl, limit=short_tp)
// === Plot RSI ===
plot(rsi, title="RSI", color=color.orange)
hline(rsiOverbought, "Overbought", color=color.red)
hline(rsiOversold, "Oversold", color=color.green)
Color Coded Volume IndicatorColor Coded Volume Indicator
Overview
Splits each bar’s total volume into estimated buy-side vs. sell-side components and displays them as stacked two-tone columns (red = sell, green = buy). Axis labels and tooltips use “K”/“M” formatting.
Features
Stacked Two-Tone Columns
Red Base : estimated sell volume (50% opacity)
Green Top : remaining buy volume (50% opacity)
Automatic K/M Formatting via format=format.volume
Zero Baseline for clean reference at zero
Positive-Only Bars (no negatives)
How It Works
True-Range Guard
Skips bars where high == low to avoid divide-by-zero.
Volume Split
BuyVol = Volume × (Close − Low) / (High − Low)
SellVol = Volume × (High − Close) / (High − Low)
Both series clamped ≥ 0.
Layered Plot
Draw semi-transparent green at full height, then overlay red sell portion.
Usage
Open TradingView’s Pine Editor
Paste in the full script
Click “Save & Add to Chart”
In the Publish dialog, title it “Color Coded Volume Indicator” and paste this description.
Interpretation
Green-dominant bars → strong buying pressure
Red-dominant bars → strong selling pressure
Equal halves → balanced activity
RedAndBlue M2 Global Liquidity Index (Lag in Days)This indicator shows M2 with a lag in days.
This lag feature is used to analyze the correlation with BTC, as it is currently believed that BTC follows the M2 chart with a lag of several weeks.
Credit to @Mik3Christ3ns3n for original M2 indicator (without lag in days feature)
trend_magicTrend Magic Library
This script defines a custom Pine Script library named "trend_magic" that implements a Trend Magic indicator, a hybrid technical tool combining CCI (Commodity Channel Index) and ATR (Average True Range) to dynamically track trend direction and strength.
🔧 Key Components:
🔹 Function: trend_magic(...)
This function takes four parameters:
src: The source price (e.g., close)
cci_periode: Period for the CCI calculation
atr_coeff: Multiplier for the ATR to define bands
atr_periode: Period used to calculate the ATR (via SMA of true range)
📈 Logic Inside the Function:
ATR Calculation:
ATR = ta.sma(ta.tr, atr_periode): Calculates the ATR using a simple moving average of the True Range.
Band Levels:
upT = low - ATR * atr_coeff: Lower boundary (support-like)
downT = high + ATR * atr_coeff: Upper boundary (resistance-like)
Trend Calculation:
If CCI is positive, the trend is calculated as the maximum of the previous trend or the current lower band (upT).
If CCI is negative, the trend is the minimum of the previous trend or the current upper band (downT).
This logic makes the trend "stick" in one direction until a reversal condition is met.
Trend Direction (dir):
Set to 1 (bullish) if trend is rising, -1 (bearish) if falling, or remains unchanged otherwise.