nineLivesUtilLibLibrary "nineLivesUtilLib"
isDateInRange(currentTime, useTimeFilter, startDate, endDate)
Checks if the current time is within the specified date range.
Parameters:
currentTime (int) : The current bar's time (time).
useTimeFilter (bool) : Bool 📅: Enable the date range filter.
startDate (int) : Timestamp 📅: The start date for the filter.
endDate (int) : Timestamp 📅: The end date for the filter.
Returns: True if the current time is within the range or filtering is disabled, false otherwise.
@example
inDateRange = nineLivesUtilLib.isDateInRange(time, useTimeFilter, startDate, endDate)
if inDateRange
// Execute trading logic
checkVolumeCondition(currentVolume, useVolumeFilter, volumeThresholdMultiplier, volumeLength)
Checks if the current volume meets the threshold condition.
Parameters:
currentVolume (float) : The current bar's volume (volume).
useVolumeFilter (bool) : Bool 📊: Enable the volume filter.
volumeThresholdMultiplier (float) : Float 📊: Volume threshold relative to average (e.g., 1.5 for 1.5x average).
volumeLength (int) : Int 📊: Lookback length for the volume average.
Returns: True if the volume condition is met or filtering is disabled, false otherwise.
@example
volumeOk = nineLivesUtilLib.checkVolumeCondition(volume, useVolumeFilter, volumeThreshold, volumeLength)
if volumeOk
// Proceed with trading logic
checkMultiTimeframeCondition(currentClose, currentOpen, htfClose, htfOpen, useMultiTimeframe, alignment)
Checks alignment with higher timeframe direction.
Parameters:
currentClose (float) : Float: The current bar's closing price (close).
currentOpen (float) : Float: The current bar's opening price (open).
htfClose (float) : Float: The closing price from the higher timeframe (must be fetched by the calling script using request.security).
htfOpen (float) : Float: The opening price from the higher timeframe (must be fetched by the calling script using request.security).
useMultiTimeframe (bool) : Bool ⏱️: Enable multi-timeframe analysis.
alignment (string) : String ⏱️: Desired alignment ("same", "opposite", "any").
Returns: True if the timeframe alignment condition is met or analysis is disabled, false otherwise.
@example
// In the calling script:
= request.security(syminfo.tickerid, higherTimeframe, )
tfOk = nineLivesUtilLib.checkMultiTimeframeCondition(close, open, htfClose, htfOpen, useMultiTimeframe, tfAlignment)
if tfOk
// Proceed with trading logic
checkMarketRegime(useMarketRegime, regimeIndicator, regimeThreshold, regimeLength, regimeMode)
Detects the market regime (trending or ranging) and checks if trading is allowed.
Parameters:
useMarketRegime (bool) : Bool 🔍: Enable market regime detection.
regimeIndicator (string) : String 🔍: Indicator to use ("ADX" or "Volatility").
regimeThreshold (int) : Int 🔍: Threshold for trend strength/volatility.
regimeLength (simple int) : Int 🔍: Lookback length for the indicator.
regimeMode (string) : String 🔍: Trading mode based on regime ("trend_only", "range_only", "adaptive").
Returns: A tuple containing:
: conditionMet (bool) - True if trading is allowed based on the regime mode and detection, false otherwise.
: inTrendingRegime (bool) - True if the current regime is trending based on the indicator and threshold.
@example
= nineLivesUtilLib.checkMarketRegime(useMarketRegime, regimeIndicator, regimeThreshold, regimeLength, regimeMode)
if regimeOk
// Proceed with trading logic
applyCooldown(buySignal, sellSignal, cooldownBars)
Applies a cooldown period after a signal.
Parameters:
buySignal (bool) : Bool: Buy signal (potentially after primary entry logic).
sellSignal (bool) : Bool: Sell signal (potentially after primary entry logic).
cooldownBars (int) : Int ⏳: The number of bars to wait after a signal before allowing another.
Returns: A tuple containing:
: cooldownFilteredBuy (bool) - Buy signal after cooldown filter.
: cooldownFilteredSell (bool) - Sell signal after cooldown filter.
@example
= nineLivesUtilLib.applyCooldown(rawBuySignal, rawSellSignal, iCool)
applyAllFilters(rawBuy, rawSell, inDateRange, tradeDirection, volumeOk, tfOk, regimeOk, drawdownOk, cooldownOkBuy, cooldownOkSell)
Applies all filtering conditions to the buy and sell signals.
Parameters:
rawBuy (bool) : Bool: The initial buy signal candidate (from primary entry logic, e.g., after cooldown).
rawSell (bool) : Bool: The initial sell signal candidate (from primary entry logic, e.g., after cooldown).
inDateRange (bool) : Bool 📅: Result from isDateInRange.
tradeDirection (string) : String 🔄: Overall trade direction preference ("longs_only", "shorts_only", "both").
volumeOk (bool) : Bool 📊: Result from checkVolumeCondition.
tfOk (bool) : Bool ⏱️: Result from checkMultiTimeframeCondition.
regimeOk (bool) : Bool 🔍: Result from checkMarketRegime.
drawdownOk (bool) : Bool 📉: Result from checkDrawdownExceeded (or equivalent).
cooldownOkBuy (bool) : Bool ⏳: Result from applyCooldown for buy.
cooldownOkSell (bool) : Bool ⏳: Result from applyCooldown for sell.
Returns: A tuple containing:
: finalBuySignal (bool) - The final buy signal after all filters.
: finalSellSignal (bool) - The final sell signal after all filters.
@example
= nineLivesUtilLib.applyAllFilters(cooldownBuy, cooldownSell, inDateRange, tradeDirection, volumeOk, tfOk, regimeOk, !drawdownExceeded, cooldownBuy, cooldownSell)
NOTE: This function filters signals generated by your primary entry logic (e.g., EMA crossover).
checkDrawdownExceeded(currentEquity, useMaxDrawdown, maxDrawdownPercent)
Tracks maximum equity and checks if current drawdown exceeds a threshold.
Parameters:
currentEquity (float) : Float: The strategy's current equity (strategy.equity).
useMaxDrawdown (bool) : Bool 📉: Enable max drawdown protection.
maxDrawdownPercent (float) : Float 📉: The maximum allowed drawdown as a percentage.
Returns: True if drawdown protection is enabled and the current drawdown exceeds the threshold, false otherwise.
@example
drawdownExceeded = nineLivesUtilLib.checkDrawdownExceeded(strategy.equity, useMaxDrawdown, maxDrawdownPercent)
if drawdownExceeded
// Consider stopping entries or exiting positions in the strategy script
calculateExitPrice(positionAvgPrice, percentage, isStop, isLong)
Calculates a stop loss or take profit price based on a percentage from the average entry price.
Parameters:
positionAvgPrice (float) : Float: The average price of the current position (strategy.position_avg_price).
percentage (float) : Float: The stop loss or take profit percentage (e.g., 2.0 for 2%).
isStop (bool) : Bool: True if calculating a stop loss price, false if calculating a take profit price.
isLong (bool) : Bool: True if the position is long, false if short.
Returns: The calculated stop price or take profit price, or na if no position or percentage is invalid.
@example
longSL = nineLivesUtilLib.calculateExitPrice(strategy.position_avg_price, stopLossPercent, true, true)
shortTP = nineLivesUtilLib.calculateExitPrice(strategy.position_avg_price, takeProfitPercent, false, false)
calculateTrailingStopLevel(positionAvgPrice, trailOffsetPercent, trailPercent, currentHigh, currentLow, isLong)
Calculates the current trailing stop level for a position.
Parameters:
positionAvgPrice (float) : Float: The average price of the current position (strategy.position_avg_price).
trailOffsetPercent (float) : Float 🔄: The percentage price movement to activate the trailing stop.
trailPercent (float) : Float 🔄: The percentage distance the stop trails behind the price.
currentHigh (float) : Float: The current bar's high (high).
currentLow (float) : Float: The current bar's low (low).
isLong (bool) : Bool: True if the position is long, false if short.
Returns: The calculated trailing stop price if active, otherwise na.
@example
longTrailStop = nineLivesUtilLib.calculateTrailingStopLevel(strategy.position_avg_price, trailOffset, trailPercent, high, low, true)
shortTrailStop = nineLivesUtilLib.calculateTrailingStopLevel(strategy.position_avg_price, trailOffset, trailPercent, high, low, false)
if not na(longTrailStop)
strategy.exit("Long Trail", from_entry="Long", stop=longTrailStop)
Indicators and strategies
Support/Resistance Breakout DetectorThis indicator automatically detects and plots dynamic support and resistance levels using pivot highs and lows.
✅ It draws red resistance lines and blue support lines,
✅ The lines extend forward but automatically stop when the price touches them,
✅ It monitors for breakouts with strong volume,
✅ When a breakout happens, it shows labels like “B” or “Bull Wick” / “Bear Wick” on the chart,
✅ It also triggers alerts when support or resistance breaks with high volume.
Main settings:
Pivot lookback period
Show/hide breakout labels
Minimum volume for breakout
Maximum extension length for lines
This tool helps traders easily spot key price levels and watch for meaningful breakouts.
[COW] Market DirectionA script that will plot a table on screen that shows your RSI and EMA directions for multiple timeframes. This will help determine your direction and bias for multiple timeframes. I have included some code that I have in a private library as well showing how I handle types with pine script and how they come in handy.
This indicator is useful to help determine chop, directional movement, and more!
ATR Strength Index~~~~~~~ATRRSI~~~~~~~~~
Understanding the ATR Strength IndexThe "ATR Strength Index" (ATR SI) is a custom technical indicator derived by applying the calculation methodology of the Relative Strength Index (RSI) to the values of the Average True Range (ATR).
While the standard RSI measures the momentum of price changes, the ATR SI measures the momentum of volatility itself, as represented by the ATR.It is important to note that this is not a standard, widely recognised indicator like the traditional RSI or ATR.
It's a custom construction designed to provide a different perspective on market dynamics – specifically, the speed and magnitude of changes in volatility.
How it is Calculated
The calculation of the ATR Strength Index follows the same steps as the standard RSI, but the input data is the ATR value for each period, rather than the price.Let ATRi be the Average True Range value for the current period i.Let ATRi−1 be the Average True Range value for the previous period i−1.Calculate the period-over-period change in ATR:ΔATRi=ATRi−ATRi−1Separate ATR Gains and ATR Losses:If ΔATRi>0, then ATR,Gaini=ΔATRi and ATR,Lossi=0.If ΔATRi<0, then ATR,Gaini=0 and ATR,Lossi=∣ΔATRi∣.If ΔATRi=0, then ATR,Gaini=0 and ATR,Lossi=0.Calculate the Smoothed Average ATR Gain and Average ATR Loss over a specified lookback period (let's call this the "RSI Length" or n).
This typically uses a smoothing method similar to Wilder's original RSI calculation (a modified moving average or exponential moving average).Average,ATR,Gainn=Smoothed Average of ATR,Gain over n periodsAverage,ATR,Lossn=Smoothed Average of ATR,Loss over n periodsCalculate the ATR Relative Strength (ATR RS):ATR,RSn=Average,ATR,LossnAverage,ATR,GainnCalculate the ATR Strength Index:ATR,SIn=100−1+ATR,RSn100The resulting index oscillates between 0 and 100, just like the standard RSI.
How to Use It
Interpreting the ATR Strength Index focuses on the momentum of volatility rather than price momentum:High Values (e.g., above 70): Indicate that volatility (as measured by ATR) has been increasing rapidly over the chosen period.
This could suggest a market transitioning from a period of low volatility to high volatility, potentially preceding or accompanying strong directional price moves or increased choppiness.Low Values (e.g., below 30): Indicate that volatility has been decreasing rapidly.
This could suggest a market transitioning from high volatility to low volatility, potentially entering a period of consolidation or ranging price action.Midline (50): Represents a balance between increasing and decreasing volatility momentum.Divergence: You could potentially look for divergence between the ATR value itself and the ATR Strength Index. For example, if ATR is making higher highs but the ATR SI is making lower highs, it might suggest that while volatility is still increasing, the speed of that increase is slowing down. The interpretation and reliability of such divergence would need careful testing.
This indicator is best used as a supplementary tool to gain insight into the underlying volatility dynamics of the market, rather than as a primary signal generator for price direction.
It can help in understanding the current market environment – whether volatility is picking up or dying down – which can inform the suitability of different trading strategies (e.g., trend-following strategies might be more effective when volatility momentum is high, while range-bound strategies might suit periods of low volatility momentum).
Uniqueness
The ATR Strength Index is unique because it applies a momentum oscillator's logic (RSI) to a volatility indicator's output (ATR).Standard RSI: Focuses on the directional force of price movements.Standard ATR: Measures the amount of volatility, regardless of direction.ATR Strength Index: Measures the speed and direction of change in volatility.
It provides a perspective that neither the standard RSI nor ATR offers on their own – a quantified measure of how quickly the market's choppiness or range is expanding or contracting. This can be valuable for traders who incorporate volatility analysis into their decision-making process.In summary, the ATR Strength Index is a custom indicator that adapts the RSI calculation to measure the momentum of volatility, offering a unique view on market dynamics by showing how rapidly volatility is increasing or decreasing.
ADX Full [Titans_Invest]ADX Full
This is, without a doubt, the most complete ADX indicator available on TradingView — and quite possibly the most advanced in the world. We took the classic ADX structure and fully optimized it, preserving its essence while elevating its functionality to a whole new level. Every aspect has been enhanced — from internal logic to full visual customization. Now you can see exactly what’s happening inside the indicator in real time, with tags, flags, and informative levels. This indicator includes over 22 long entry conditions and 22 short entry conditions , covering absolutely every possibility the ADX can offer. Everything is transparent, adjustable, and ready to fit seamlessly into any professional trading strategy. This isn’t just another ADX — it’s the definitive ADX, built for traders who take the market seriously.
⯁ WHAT IS THE ADX❓
The Average Directional Index (ADX) is a technical analysis indicator developed by J. Welles Wilder. It measures the strength of a trend in a market, regardless of whether the trend is up or down.
The ADX is an integral part of the Directional Movement System, which also includes the Plus Directional Indicator (+DI) and the Minus Directional Indicator (-DI). By combining these components, the ADX provides a comprehensive view of market trend strength.
⯁ HOW TO USE THE ADX❓
The ADX is calculated based on the moving average of the price range expansion over a specified period (usually 14 periods). It is plotted on a scale from 0 to 100 and has three main zones:
Strong Trend: When the ADX is above 25, indicating a strong trend.
Weak Trend: When the ADX is below 20, indicating a weak or non-existent trend.
Neutral Zone: Between 20 and 25, where the trend strength is unclear.
⯁ ENTRY CONDITIONS
The conditions below are fully flexible and allow for complete customization of the signal.
______________________________________________________
🔹 CONDITIONS TO BUY 📈
______________________________________________________
• Signal Validity: The signal will remain valid for X bars .
• Signal Sequence: Configurable as AND or OR .
🔹 +DI > -DI
🔹 +DI < -DI
🔹 +DI > ADX
🔹 +DI < ADX
🔹 -DI > ADX
🔹 -DI < ADX
🔹 ADX > Threshold
🔹 ADX < Threshold
🔹 +DI > Threshold
🔹 +DI < Threshold
🔹 -DI > Threshold
🔹 -DI < Threshold
🔹 +DI (Crossover) -DI
🔹 +DI (Crossunder) -DI
🔹 +DI (Crossover) ADX
🔹 +DI (Crossunder) ADX
🔹 +DI (Crossover) Threshold
🔹 +DI (Crossunder) Threshold
🔹 -DI (Crossover) ADX
🔹 -DI (Crossunder) ADX
🔹 -DI (Crossover) Threshold
🔹 -DI (Crossunder) Threshold
______________________________________________________
______________________________________________________
🔸 CONDITIONS TO SELL 📉
______________________________________________________
• Signal Validity: The signal will remain valid for X bars .
• Signal Sequence: Configurable as AND or OR .
🔸 +DI > -DI
🔸 +DI < -DI
🔸 +DI > ADX
🔸 +DI < ADX
🔸 -DI > ADX
🔸 -DI < ADX
🔸 ADX > Threshold
🔸 ADX < Threshold
🔸 +DI > Threshold
🔸 +DI < Threshold
🔸 -DI > Threshold
🔸 -DI < Threshold
🔸 +DI (Crossover) -DI
🔸 +DI (Crossunder) -DI
🔸 +DI (Crossover) ADX
🔸 +DI (Crossunder) ADX
🔸 +DI (Crossover) Threshold
🔸 +DI (Crossunder) Threshold
🔸 -DI (Crossover) ADX
🔸 -DI (Crossunder) ADX
🔸 -DI (Crossover) Threshold
🔸 -DI (Crossunder) Threshold
______________________________________________________
______________________________________________________
🤖 AUTOMATION 🤖
• You can automate the BUY and SELL signals of this indicator.
______________________________________________________
______________________________________________________
⯁ UNIQUE FEATURES
______________________________________________________
Signal Validity: The signal will remain valid for X bars
Signal Sequence: Configurable as AND/OR
Condition Table: BUY/SELL
Condition Labels: BUY/SELL
Plot Labels in the Graph Above: BUY/SELL
Automate and Monitor Signals/Alerts: BUY/SELL
Signal Validity: The signal will remain valid for X bars
Signal Sequence: Configurable as AND/OR
Table of Conditions: BUY/SELL
Conditions Label: BUY/SELL
Plot Labels in the graph above: BUY/SELL
Automate & Monitor Signals/Alerts: BUY/SELL
______________________________________________________
📜 SCRIPT : ADX Full
🎴 Art by : @Titans_Invest & @DiFlip
👨💻 Dev by : @Titans_Invest & @DiFlip
🎑 Titans Invest — The Wizards Without Gloves 🧤
✨ Enjoy!
______________________________________________________
o Mission 🗺
• Inspire Traders to manifest Magic in the Market.
o Vision 𐓏
• To elevate collective Energy 𐓷𐓏
BBands Channels with EMAs# **BBands Channels with EMAs Indicator Explanation**
---
## **📌 Feature Overview**
### **1. Bollinger Bands**
- **Basis Line**: 160-period SMA (adjustable)
- **Inner Bands**:
- **Upper**: Basis + 2× Standard Deviation
- **Lower**: Basis - 2× Standard Deviation
- **Outer Bands**:
- **Upper Top**: Basis + 3× Standard Deviation
- **Lower Low**: Basis - 3× Standard Deviation
- **Fill Effect**: Semi-transparent black fill between inner and outer bands
### **2. Exponential Moving Averages (EMAs)**
| Period | Purpose | Line Style |
|--------------|-----------------------------|------------------|
| **EMA 27** | Short-term trend | Thin line |
| **EMA 120** | Short-to-medium-term trend | Medium line |
| **EMA 200** | Medium-term trend | Medium line |
| **EMA 1120** | Ultra-long-term trend | Thick line |
---
## **⚙️ Parameter Settings**
### **Bollinger Bands**
| Parameter | Default | Description |
|---------------|---------|--------------------------------------|
| `length` | 160 | SMA calculation period |
| `mult` | 2.0 | Standard deviation multiplier (inner bands) |
| `multOuter` | 3.0 | Standard deviation multiplier (outer bands) |
| `offset` | 0 | Time offset for plots (±500 bars) |
### **Exponential Moving Averages (EMAs)**
| Parameter | Default | Description |
|-----------------|---------|---------------------------|
| `ema1Length` | 27 | EMA 1 period |
| `ema2Length` | 120 | EMA 2 period |
| `ema3Length` | 200 | EMA 3 period |
| `ema4Length` | 1120 | EMA 4 period |
---
## **📊 Use Cases**
### **1. Trend Confirmation**
- **Bullish Trend**: Price above EMA200 + Bollinger Band expansion
- **Bearish Trend**: Price below EMA200 + Bollinger Band expansion
### **2. Overbought/Oversold Signals**
- **Upper Band Touch**: Price reaches Upper Top → Potential overbought
- **Lower Band Touch**: Price reaches Lower Low → Potential oversold
### **3. Volatility Strategies**
- **Band Squeeze**: Narrowing gap between bands → Breakout warning
- **Band Expansion**: Price breaks outer band → Trend acceleration
---
**✅ Summary**
This indicator combines **Bollinger Bands + Multi-period EMAs** for:
- Trend tracking
- Volatility analysis
- Multi-timeframe strategies
---
# **BBands Channels with EMAs 指標說明**
---
## **📌 功能概述**
### **1. 布林通道 (Bollinger Bands)**
- **基礎線 (Basis Line)**: 160週期SMA(可調整)
- **內通道 (Inner Bands)**:
- 上軌 (Upper): 基礎線 + 2倍標準差
- 下軌 (Lower): 基礎線 - 2倍標準差
- **外通道 (Outer Bands)**:
- 上外軌 (Upper Top): 基礎線 + 3倍標準差
- 下外軌 (Lower Low): 基礎線 - 3倍標準差
- **填充效果**: 內外通道間半透明黑色填充
### **2. 指數移動平均線 (EMAs)**
| 週期 | 用途 | 線條樣式 |
|-------------|-------------------|-----------------|
| **EMA 27** | 短期趨勢 | 細線 |
| **EMA 120** | 中短期趨勢 | 中等線 |
| **EMA 200** | 中期趨勢 | 中等線 |
| **EMA 1120**| 超長期趨勢 | 粗線 |
---
## **⚙️ 參數設定**
### **布林通道 (Bollinger Bands)**
| 參數名 | 預設值 | 說明 |
|-------------|--------|---------------------------|
| `length` | 160 | SMA計算週期 |
| `mult` | 2.0 | 內通道標準差倍數 |
| `multOuter` | 3.0 | 外通道標準差倍數 |
| `offset` | 0 | 線圖時間偏移(±500根K棒) |
### **指數移動平均線 (EMAs)**
| 參數名 | 預設值 | 說明 |
|----------------|---------|-------------------|
| `ema1Length` | 27 | 第一條EMA週期 |
| `ema2Length` | 120 | 第二條EMA週期 |
| `ema3Length` | 200 | 第三條EMA週期 |
| `ema4Length` | 1120 | 第四條EMA週期 |
---
## **📊 應用場景**
### **1. 趨勢確認**
- **多頭趨勢**: 價格在EMA200上方 + 布林通道擴張
- **空頭趨勢**: 價格在EMA200下方 + 布林通道擴張
### **2. 超買超賣信號**
- **觸及外軌**: 價格觸碰Upper Top → 可能超買
- **觸及下軌**: 價格觸碰Lower Low → 可能超賣
### **3. 波動率策略**
- **通道收窄**: 內外通道間距縮小 → 突破預警
- **通道擴張**: 價格突破外軌 → 趨勢加速
---
**✅ 總結**
本指標透過**布林通道+多週期EMA**的組合,適用於:
- 趨勢跟蹤
- 波動率分析
- 多時間框架策略
Hull Trend Strong ConfirmationHull Trend original adapted: Added Strong Confirmation. Original code: jaggesoft
OHLC Candles Overlay [Multi TF]- 3 CandlesMulti timeframe overlay candles for higher timeframe analysis on lower timeframes and vice versa.
Midpoint Line on Last Candleit gives the midpoint of the recent strong candle. a break to this line may cause a trend reversal.
TJR's BOS strategyBreak of Structure (BOS) Indicator: TJR version
This Break of Structure (BOS) Indicator helps you identify key market shifts by highlighting breaks in market structure. It uses price action to spot significant swing highs and swing lows and draws horizontal lines that extend to the right whenever a BOS occurs.
Features:
Real-Time Updates: The indicator continuously updates in real time, marking BOS points as they occur.
BOS Lines:
Bullish Break of Structure (BOS): Occurs when the price closes above a previously established high.
Bearish Break of Structure (BOS): Occurs when the price closes below a previously established low.
Customizable: Easily change the color and line length of the BOS markers to suit your charting preferences.
Max Lines Control: Limit the number of BOS lines shown in both upward and downward directions to keep the chart clean.
Visual Clarity: Lines are drawn directly on the high or low levels, marking clear BOS zones on the chart for easy identification.
How to Use:
BOS Up: A bullish BOS is marked when the price closes above a previously marked high.
BOS Down: A bearish BOS is marked when the price closes below a previously marked low.
Trend Direction: This indicator can be particularly useful for traders following trend continuation or reversal strategies, as BOS points represent key areas where market sentiment shifts.
Custom Settings:
Change the color of BOS lines for better visibility.
Adjust the maximum number of BOS lines to display.
MACD-V with Volatility Normalisation [DCD]MACD-V with Volatility Normalisation
This indicator is a modified version of the traditional MACD, designed to account for market volatility by normalizing the MACD line using the Average True Range (ATR). It provides a more adaptive approach to identifying momentum shifts and potential trend reversals. This indicator was developed by Alex Spiroglou in this paper:
Spiroglou, Alex, MACD-V: Volatility Normalised Momentum (May 3, 2022).
Features:
Volatility Normalization: The MACD line is adjusted using ATR to standardize its values across different market conditions.
Customizable Parameters: Users can adjust the MACD fast length, slow length, signal line smoothing, and ATR length to suit their trading style.
Histogram Visualization: The histogram highlights the difference between the MACD and signal lines, with customizable colors for positive and negative momentum.
Crossover Signals: Green and red dots indicate bullish and bearish crossovers between the MACD and signal lines.
Background Highlighting: The chart background changes to green when the MACD is above 0 and red when it is below 0, providing a clear visual cue for bullish and bearish conditions.
Horizontal Levels: Dotted horizontal lines are plotted at key levels for better visualization of MACD values.
How to Use:
Look for crossovers between the MACD and signal lines to identify potential buy or sell signals.
Use the histogram to gauge the strength of momentum.
Pay attention to the background color for quick identification of bullish (green) or bearish (red) conditions.
This indicator is ideal for traders who want a more dynamic MACD that adapts to market volatility. Customize the settings to align with your trading strategy and timeframe.
Candlestick High/Low LabelsCandlestick High/Low Labels and OHLCV Dashboard with adjustable lookback period
Origin + Surge Zone (v2 fixed)test inventory surge
Searches for 2 or more consecutive doji candles → marks this as "origin" (grey box).
Waits for 2 strong candles (bullish or bearish) → surge → records its high as TP.
Strict Origin Zone Detectorinventory theory indicator test
Searches for 2 or more consecutive doji candles → marks this as "origin" (grey box).
Waits for 2 strong candles (bullish or bearish) → surge → records its high as TP.
Liquidity-Based Entry Zonestest of the inventory theory indicator
Searches for 2 or more consecutive doji candles → marks this as "origin" (grey box).
Waits for 2 strong candles (bullish or bearish) → surge → records its high as TP.
Calculates Fibonacci level of 0.79 (entry) and 1.03 (SL) → plots them.
Major Trading SessionsThis script displays the trading sessions of the 3 markets that are relevant in crypto. US, UK, and Tokyo.
Real Open/Close Ticks for Heiken Ashi CandlesJapanese candle open and close prices. Good if you're using a HeikenAshi chart and you want to see real opens and closes.
ICT Killzones & Pivots [TFO]shorten the date name
adjust to fit in JST time zone (fit for Japan based traders like me, who is early bird and can't trade at 10PM JST = NY open)
Multi-Symbol Trend DashboardMulti-Symbol Trend Dashboard - MA Cross Trend Monitor
Short Description
A customizable dashboard that displays trend direction across multiple symbols and timeframes using moving average crossovers.
Full Description
Overview
This Multi-Symbol Trend Dashboard allows you to monitor trend direction across 7 different symbols and 5 timeframes simultaneously in a single view. The dashboard uses moving average crossovers to determine trend direction, displaying bullish trends in green and bearish trends in red.
Key Features
Multi-Symbol Monitoring : Track up to 7 different trading instruments at once
Multi-Timeframe Analysis: View 5 different timeframes simultaneously for each instrument
Customizable Moving Averages: Choose between SMA, EMA, or WMA with adjustable periods
Visual Clarity: Color-coded cells provide immediate trend identification
Flexible Positioning: Place the dashboard anywhere on your chart
Customizable Appearance: Adjust sizes, colors, and text formatting
How It Works
The dashboard calculates a fast MA and slow MA for each symbol-timeframe combination. When the fast MA is above the slow MA, the cell shows green (bullish). When the fast MA is below the slow MA, the cell shows red (bearish).
Use Cases
Get a bird's-eye view of market trends across multiple instruments
Identify potential trading opportunities where multiple timeframes align
Monitor your watchlist without switching between charts
Spot divergences between related instruments
Track market breadth across sectors or related instruments
Notes and Limitations
Limited to 7 symbols and 5 timeframes due to TradingView's security request limits
Uses simple MA crossover as trend determination method
Dashboard is most effective when displayed on a dedicated chart
Performance may vary on lower-end devices due to multiple security requests
Settings Explanation
MA Settings: Configure the periods and types of moving averages
Display Settings: Adjust dashboard positioning and visual elements
Trading Instruments: Select which symbols to monitor (defaults to major forex pairs)
Timeframes: Choose which timeframes to display (default: M15, H1, H4, D1, W1)
Colors: Customize the color scheme for bullish/bearish indications and headers
This dashboard provides a straightforward way to maintain situational awareness across multiple markets and timeframes, helping traders identify potential setups and market conditions at a glance.
Global Net Liquidity - OffsetThis is a global net liquidity indicator with a built-in offset, allowing you to adjust by a specific number of days.
A lot of people believe that Global Net Liquidity operates at a 10-12 week lag, so being able to offset it helps to visualise the impact of liquidity on markets.
Multi-Timeframe EMA/SMA IndicatorEasy configuration of multiple EMAs and SMAs on the same chart with configurable time intervals and lengths.