MarketCapLibrary1Library "MarketCapLibrary1"
setMarketCapMap(m)
Parameters:
m (map)
getMarketCap(ticker)
Parameters:
ticker (string)
Indicatori e strategie
AnnualizedReturnCalculatorLibrary "AnnualizedReturnCalculator"
TODO: add library description here
calculateAnnualizedReturn(isStartTime, enableLog)
Parameters:
isStartTime (bool) : 开始时间的BOOL值变量(用于标记策略开始时间)
enableLog (bool) : 是否输出日志
Returns:
返回持仓基准年化收益率、资金基准年化收益率、总收益、平均资金占用
My script//@version=5
indicator("Volume in Crores", overlay=false)
vol_crores = volume / 1e7
plot(vol_crores, title="Volume (Cr)", style=plot.style_columns, color=color.new(color.blue, 0))
showLabels = input.bool(true, title="Show Volume Labels")
labelOffset = input.int(1, title="Label Offset (bars)")
if showLabels and bar_index % 5 == 0
label.new(x=bar_index - labelOffset, y=vol_crores, text=str.tostring(vol_crores, "#.##") + " Cr", style=label.style_label_up, size=size.small, color=color.white, textcolor=color.black)
Vertical Lines at Specific NY Timesthese time zones indicates london session and new york session accumulation manipulation and distribution at than spesific time zones
Alinhamento H1 + H4 com Fundo Colorido MACD Alignment Strategy: H1 + H4
This script highlights candles on the H1 chart with a colored background when there's full alignment between H1 and H4 based on the classic MACD (12,26,9) and EMA 200.
✅ Bullish background (green):
Price is above the EMA 200 on both H1 and H4
On both H1 and H4:
MACD line is above the Signal line
Histogram is green and above zero
MACD is above zero
❌ Bearish background (red):
Price is below the EMA 200 on both H1 and H4
On both H1 and H4:
MACD line is below the Signal line
Histogram is red and below zero
MACD is below zero
Use this tool to visually confirm trend alignment between timeframes and filter high-probability entries.
Relative Strength RSI with LevelsThis is a relative Strength Indicator used for comparing the performance of the Stock analyzed with the SPX, with a single line moving above or below a midline signaling over- or underperformance when compared to S&P500 SPX Index
kinetic test123mattThe Nuclear Regulatory Commission (NRC) is not the kind of agency most Americans think about often.
In fact, there’s a decent chance you’ve never even heard of it outside of a few advanced social studies classes in high school or college.
The NRC was originally established back in 1975 as a successor to the United States Atomic Energy Commission. Then, just a few years later, in 1979, there was a partial meltdown in the Unit 2 reactor at the Three Mile Island Nuclear Generating Station.
That disaster was mercifully averted, but the event left a lasting impact on the still-developing agency…
Following Three Mile Island, the NRC was widely perceived as risk-averse. They developed a licensing process that could be counted among the most bureaucratic and byzantine in history.
Just securing the NRC’s approval for a new nuclear reactor could take years (in some cases over a decade) and cost hundreds of millions of dollars. And that’s before you even start breaking ground!
Bringing Georgia’s 3 and 4 reactor units at Plant Vogtle online was estimated to cost $14 billion at first. However, due to various delays in the approval process and subsequent contracting issues, costs ballooned to more than $30 billion, with a wait of 15 years.
Sounds like a nightmare, right?
Don’t worry — it gets worse!
So far, we’ve only been talking about large light-water reactors (LWRs). Perish the thought, but those are the kinds of reactors the NRC is actually optimized to work with.
Newer technologies, such as small modular reactors (SMRs) or molten salt reactors (MSRs), are evaluated on a case-by-case basis. And it just so happens that the NRC has neither the manpower nor the realistic expertise to evaluate these developments comprehensively.
That means even for the companies that can develop next-generation nuclear technology, they’re going to face a huge production bottleneck when it comes to the NRC approving the projects.
LiliALHUNTERSystem_v2📚 **Library: LiliALHUNTERSystem_v2**
This library provides a powerful target management system for Pine Script developers.
It includes advanced calculators for EMA, RMA, and Supertrend, and introduces a central `createTargets()` function to dynamically render target lines and labels based on long/short trade logic.
🛠️ **Main Features:**
– Dynamic horizontal & vertical target lines
– Dual target configuration (Target 1 & Target 2)
– Directional logic via `isLong1`, `isLong2`
– Integrated Supertrend validation
– Visual dashboard and label display
– Works seamlessly with custom indicators
🎯 **Purpose:**
The `LiliALHUNTERSystem_v2` Library enables Pine coders to manage and visualize targets consistently across all trading strategies and indicators. It simplifies target logic while maintaining visual clarity and modular usage.
⚠️ **Disclaimer:**
This script is intended for educational and analytical purposes only. It does not constitute financial advice.
Library "LiliALHUNTERSystem_v2"
ema_calc(len, source)
Parameters:
len (simple int)
source (float)
rma_calc(len, source)
Parameters:
len (simple int)
source (float)
supertrend_calc(length, factor)
Parameters:
length (simple int)
factor (float)
createTargets(config, state, source1A, source1B, source2A, source2B)
Parameters:
config (TargetConfig)
state (TargetState)
source1A (float)
source1B (float)
source2A (float)
source2B (float)
showDashboard(state, dashLoc, textSize)
Parameters:
state (TargetState)
dashLoc (string)
textSize (string)
TargetConfig
Fields:
enableTarget1 (series bool)
enableTarget2 (series bool)
isLong1 (series bool)
isLong2 (series bool)
target1Condition (series string)
target2Condition (series string)
target1Color (series color)
target2Color (series color)
target1Style (series string)
target2Style (series string)
distTarget1 (series float)
distTarget2 (series float)
distOptions1 (series string)
distOptions2 (series string)
showLabels (series bool)
showDash (series bool)
TargetState
Fields:
target1LineV (series line)
target1LineH (series line)
target2LineV (series line)
target2LineH (series line)
target1Lbl (series label)
target2Lbl (series label)
target1Active (series bool)
target2Active (series bool)
target1Value (series float)
target2Value (series float)
countTargets1 (series int)
countTgReached1 (series int)
countTargets2 (series int)
countTgReached2 (series int)
Sesión Asiatica 5-10 PM México + EMAs + Cruces# Asian Session EMA Crossover Indicator
## Overview
This Pine Script indicator is designed specifically for trading during the Asian session (5-10 PM Mexico time) and focuses on EMA crossover signals with visual markers.
## Key Features
### 1. **Multiple EMAs Display**
- **EMA 8** (Blue line) - Short-term trend
- **EMA 13** (Green line) - Medium-term trend
- **EMA 21** (Yellow line) - Intermediate trend
- **EMA 55** (Red line) - Long-term trend
- Toggle option to show/hide all EMAs
### 2. **Asian Session Focus**
- Configured for Mexico timezone (America/Mexico_City)
- Active trading window: 5:00 PM - 10:00 PM Mexico time
- Crossover signals only trigger during this session
### 3. **EMA 8/13 Crossover Detection**
- **Bullish Signal**: Green triangle (↑) appears below price when EMA 8 crosses above EMA 13
- **Bearish Signal**: Red triangle (↓) appears above price when EMA 8 crosses below EMA 13
- Signals only occur during Asian session hours
### 4. **Alert System**
- Real-time alerts for bullish crossovers
- Real-time alerts for bearish crossovers
- Alerts only fire during Asian session
## Configuration Options
- Customizable EMA periods (default: 8, 13, 21, 55)
- Show/hide EMAs toggle
- Show/hide crossover signals toggle
- Timezone selection (Mexico City, GMT-6, GMT-5)
- Session time adjustment
## Use Case
Ideal for traders who focus on Asian market hours and use EMA crossover strategies for entry signals. The indicator helps identify momentum shifts during the Asian session while filtering out noise from other trading sessions.
7 EMA CloudThe "7 EMA Cloud" script was likely flagged because it reuses the core concept of EMA clouds (shading areas between multiple EMAs to visualize trends, support/resistance, and momentum) without crediting the original inventor, Ripster (author ripster47 on TradingView). This concept is prominently associated with Ripster's "EMA Clouds" indicator, which popularized filling spaces between EMA pairs for trading signals. TradingView's house rules require crediting authors when reusing open-source ideas or code, even if not a direct copy-paste, and mandate significant improvements where the original forms a small proportion of the script. Your version adds features like multiple color modes (Classic rainbow, Monochrome, Heatmap), customizable signal sizes, and crossover alerts between the first and last EMA, which are enhancements, but the foundational EMA ribbon/cloud idea needs explicit attribution in the description and ideally code comments to comply.
Additionally, the description might be seen as not fully self-contained (e.g., it uses promotional language like "Advanced" and "Adaptive Trend & Signal Suite" without deeply explaining calculations or use cases), potentially violating rules against relying on code or external references for clarity.
To fix this, republish a new version with proper credits, ensure the description is detailed and standalone, and emphasize your improvements (e.g., the 7 Fibonacci-based EMAs, color modes, and signals). Do not reuse the flagged script—create a fresh one. Here's a compliant description you can use:
7 EMA Cloud Indicator
Overview
The 7 EMA Cloud overlays seven exponential moving averages (EMAs) with Fibonacci-inspired periods and fills the spaces between them with customizable "clouds" to visually represent trend strength, direction, and convergence/divergence. It includes crossover signals between the shortest and longest EMAs for potential entry/exit points, with adjustable visual modes for different trading styles. This helps traders identify bullish/bearish momentum, support/resistance zones, and overextensions in trending or ranging markets.
This script builds on the EMA cloud concept popularized by Ripster (ripster47) in their "EMA Clouds" indicatortradingview.com, where areas between EMA pairs are shaded for trend analysis. Improvements include a fixed set of 7 Fibonacci EMAs, multiple color schemes (Classic rainbow, Monochrome grayscale, Heatmap for intensity), user-selectable signal sizes, and transparency controls. Released under the Mozilla Public License 2.0.
Key Features
7 EMAs with Clouds: EMAs at periods 8, 13, 21, 34, 55, 89, and 144; clouds filled between consecutive pairs to show alignment (tight clouds for consolidation, wide for trends).
Color Modes:
Classic: Rainbow gradients (blue to purple) for vibrant distinction.
Monochrome: Grayscale shades for minimalistic charts.
Heatmap: Red-to-blue spectrum to highlight "hot" (volatile) vs. "cool" (stable) areas.
Crossover Signals: Triangle markers (up for bullish, down for bearish) when the shortest EMA crosses the longest; sizes from Tiny to Huge.
Display Options: Toggle EMA lines on/off, adjust cloud transparency (0-100%), and enable alerts for crossovers.
Alerts: Notifications for "Bullish EMA Crossover" (EMA1 > EMA7) and "Bearish EMA Crossover" (EMA1 < EMA7).
How It Works
EMA Calculations: Each EMA is computed using ta.ema(close, period), with periods based on Fibonacci sequences for natural market rhythm alignment.
Clouds: Filled via fill() between plot pairs, with colors derived from the selected mode and transparency applied.
Signals: Detected with ta.crossover(ema1, ema7) and ta.crossunder(ema1, ema7), plotted as shapes with mode-specific colors (e.g., green/lime for bull, red for bear).
Customization: Inputs grouped into EMA Settings (periods), Display Settings (visibility, colors, transparency), and Signal Settings (size).
Customization Options
EMA Periods: Individually adjustable (defaults: 8, 13, 21, 34, 55, 89, 144).
Show EMAs: Toggle to hide lines and focus on clouds.
Cloud Transparency: 0% for solid fills, 100% for invisible (default 80%).
Color Mode: Switch between Classic, Monochrome, or Heatmap.
Signal Size: Tiny, Small, Normal, Large, or Huge for crossover markers.
Ideal Use Case
Suited for swing or trend-following on any timeframe (e.g., 15m-1h for intraday, daily for swings) and assets (stocks, forex, crypto, futures). Enter long on bullish crossovers above aligned clouds; exit on bearish signals or cloud widenings. Use Monochrome for clean charts or Heatmap for volatility emphasis. Combine with volume or RSI for confirmation.
Why It's Valuable
By expanding Ripster's EMA cloud idea with multi-mode visuals and integrated signals, this indicator provides a versatile, at-a-glance tool for trend assessment—reducing noise while highlighting key shifts. It's more adaptive than basic MA ribbons, with Fibonacci periods adding a layer of harmonic analysis.
Note: Test on historical data or demo accounts. Not financial advice—incorporate risk management. Optimized for Pine Script v5; some features may vary on non-overlay charts.
Liquidity Swings [Nix]Liquidity Swings Indicator!
It marks recent swing highs and lows on the chart using lines and labels.
Another great feature is that it tracks whether those swing levels are SWEPT (price crosses them again) and either:
Removes swept levels, or
Fades them to indicate they’ve been taken.
You can customize:
Number of swings shown.
Colors, styles, and visibility of lines/labels.
Whether to show highs, lows, or both.
Useful for liquidity analysis.
Usually when these special swings are swept, you can consider moving stops to BE. This is because there should be enough stop losses at the swing points to liquidate others and give more fuel to your trade direction!
Drunken Bird Inspiration for the support and resistance plateau lines came from AnotherDAPTrader.
The TSL Drunken Bird is an enhanced technical analysis tool for swing traders on TradingView, based on the original Accurate Swing Trading System by ceyhun. It generates buy and sell signals when price crosses a dynamic Trailing Stop Loss (TSL) level derived from recent highs and lows. This version introduces plateau detection for support and resistance lines, dynamic label expiration to reduce clutter, customizable line styles and decay, and improved HTF confluence for trend-aligned trading. Visual elements include signal labels, horizontal lines, a colored TSL plot, and optional bar/background coloring. Alerts are available for buy/sell crossovers, making it suitable for assets like NASDAQ E-mini futures, stocks, forex, and more.
This script adapts and expands upon ceyhun's original codetradingview.com, adding significant features such as tolerance-based plateau identification for support/resistance, label management with timeframe-aware expiration (~7 days), cross-count decay for lines, and expanded customization options. Inspiration for the support and resistance plateau lines came from AnotherDAPTrader. Released under the Mozilla Public License 2.0.Key
Features
Swing Signals: "BUY" and "SELL" labels on price crossovers/crossunders of the TSL, with a user-defined lookback (default 3).
HTF Confluence: Filters signals based on higher timeframe trend (e.g., "EXIT LONG" instead of "SELL" if HTF is bullish); toggleable.
HTF Options: Select from 5m, 15m, 30m, 1h, 4h, Daily, Weekly, or Monthly.
Plateau Detection: Identifies flat highs/lows (with tolerance) for resistance/support lines, plotted as dotted/solid/dashed with customizable colors, thickness, and decay after crosses (default 2).
Horizontal Lines: Green (buy) and red (sell) lines at signal closes, extending right until crossed; toggle between short (no extension limit) or long visualization.
TSL Visualization: Colored line (green if close >= TSL, red otherwise) for dynamic levels.
Bar/Background Coloring: Optional green/red coloring based on price vs. TSL.
Label Expiration: All labels (signals and plateaus) auto-delete after ~7 days (timeframe-adjusted, default 1008 bars).
Alerts: Triggers for "Buy Signal" and "Sell Signal" on crossovers.
How to Use
Add to Chart: Paste the Pine Script into TradingView's editor and add to your chart.
Configure Settings:
Swing: Lookback for highs/lows (min 1).
Plateau Tolerance: Flatness allowance (default 0.0).
Use HTF Confluence: Enable for trend filtering.
Higher Time Frame: Choose timeframe string.
Barcolor/Bgcolor: Toggle coloring.
Show Plateau Lines: Enable support/resistance.
Line Styles/Colors/Thickness: Customize buy/sell and plateau visuals.
Plateau Line Decay: Crosses before stopping extension.
Label Expiration: Bars for auto-deletion (~7 days).
Interpret Elements:
Labels: "BUY"/"SELL" (green/red), "EXIT SHORT"/"EXIT LONG" (orange) on signals; "Res"/"Sup" on plateaus.
Lines: Extend right until conditions met (cross for buy/sell, decay threshold for plateaus).
TSL Plot: Monitors trend shifts.
Set Alerts: Use "Buy Signal" or "Sell Signal" conditions for notifications.
Testing: Apply to volatile assets; adjust Swing for signal frequency, tolerance for plateau sensitivity.
Ideal Use Cases
Swing trading on 1m–1h charts for entries/exits aligned with HTF trends.
Identifying support/resistance in ranging markets via plateaus.
Scalping with short lookbacks or longer swings with HTF enabled.
Manual or alert-based trading on futures, stocks, or forex.
Why It's Valuable
This indicator builds on ceyhun's core TSL logic with practical enhancements for modern trading: clutter reduction via expiration/decay, visual customization, and plateau-based S/R for better context. It promotes disciplined, trend-aware decisions while maintaining simplicity.
Note: Optimized for any timeframe/asset; test in demo. Not financial advice—use with risk management.
Info TableOverview
The Info Table V1 is a versatile TradingView indicator tailored for intraday futures traders, particularly those focusing on MESM2 (Micro E-mini S&P 500 futures) on 1-minute charts. It presents essential market insights through two customizable tables: the Main Table for predictive and macro metrics, and the New Metrics Table for momentum and volatility indicators. Designed for high-activity sessions like 9:30 AM–11:00 AM CDT, this tool helps traders assess price alignment, sentiment, and risk in real-time. Metrics update dynamically (except weekly COT data), with optional alerts for key conditions like volatility spikes or momentum shifts.
This indicator builds on foundational concepts like linear regression for predictions and adapts open-source elements for enhanced functionality. Gradient code is adapted from TradingView's Color Library. QQE logic is adapted from LuxAlgo's QQE Weighted Oscillator, licensed under CC BY-NC-SA 4.0. The script is released under the Mozilla Public License 2.0.
Key Features
Two Customizable Tables: Positioned independently (e.g., top-right for Main, bottom-right for New Metrics) with toggle options to show/hide for a clutter-free chart.
Gradient Coloring: User-defined high/low colors (default green/red) for quick visual interpretation of extremes, such as overbought/oversold or high volatility.
Arrows for Directional Bias: In the New Metrics Table, up (↑) or down (↓) arrows appear in value cells based on metric thresholds (top/bottom 25% of range), indicating bullish/high or bearish/low conditions.
Consensus Highlighting: The New Metrics Table's title cells ("Metric" and "Value") turn green if all arrows are ↑ (strong bullish consensus), red if all are ↓ (strong bearish consensus), or gray otherwise.
Predicted Price Plot: Optional line (default blue) overlaying the ML-predicted price for visual comparison with actual price action.
Alerts: Notifications for high/low Frahm Volatility (≥8 or ≤3) and QQE Bias crosses (bullish/bearish momentum shifts).
Main Table Metrics
This table focuses on predictive, positional, and macro insights:
ML-Predicted Price: A linear regression forecast using normalized price, volume, and RSI over a customizable lookback (default 500 bars). Gradient scales from low (red) to high (green) relative to the current price ± threshold (default 100 points).
Deviation %: Percentage difference between current price and predicted price. Gradient highlights extremes (±0.5% default threshold), signaling potential overextensions.
VWAP Deviation %: Percentage difference from Volume Weighted Average Price (VWAP). Gradient indicates if price is above (green) or below (red) fair value (±0.5% default).
FRED UNRATE % Change: Percentage change in U.S. unemployment rate (via FRED data). Cell turns red for increases (economic weakness), green for decreases (strength), gray if zero or disabled.
Open Interest: Total open MESM2 futures contracts. Gradient scales from low (red) to high (green) up to a hardcoded 300,000 threshold, reflecting market participation.
COT Commercial Long/Short: Weekly Commitment of Traders data for commercial positions. Long cell green if longs > shorts (bullish institutional sentiment); Short cell red if shorts > longs (bearish); gray otherwise.
New Metrics Table Metrics
This table emphasizes technical momentum and volatility, with arrows for quick bias assessment:
QQE Bias: Smoothed RSI vs. trailing stop (default length 14, factor 4.236, smooth 5). Green for bullish (RSI > stop, ↑ arrow), red for bearish (RSI < stop, ↓ arrow), gray for neutral.
RSI: Relative Strength Index (default period 14). Gradient from oversold (red, <30 + threshold offset, ↓ arrow if ≤40) to overbought (green, >70 - offset, ↑ arrow if ≥60).
ATR Volatility: Score (1–20) based on Average True Range (default period 14, lookback 50). High scores (green, ↑ if ≥15) signal swings; low (red, ↓ if ≤5) indicate calm.
ADX Trend: Average Directional Index (default period 14). Gradient from weak (red, ↓ if ≤0.25×25 threshold) to strong trends (green, ↑ if ≥0.75×25).
Volume Momentum: Score (1–20) comparing current to historical volume (lookback 50). High (green, ↑ if ≥15) suggests pressure; low (red, ↓ if ≤5) implies weakness.
Frahm Volatility: Score (1–20) from true range over a window (default 24 hours, multiplier 9). Dynamic gradient (green/red/yellow); ↑ if ≥7.5, ↓ if ≤2.5.
Frahm Avg Candle (Ticks): Average candle size in ticks over the window. Blue gradient (or dynamic green/red/yellow); ↑ if ≥0.75 percentile, ↓ if ≤0.25.
Arrows trigger on metric-specific logic (e.g., RSI ≥60 for ↑), providing directional cues without strict color ties.
Customization Options
Adapt the indicator to your strategy:
ML Inputs: Lookback (10–5000 bars) and RSI period (2+) for prediction sensitivity—shorter for volatility, longer for trends.
Timeframes: Individual per metric (e.g., 1H for QQE Bias to match higher frames; blank for chart timeframe).
Thresholds: Adjust gradients and arrows (e.g., Deviation 0.1–5%, ADX 0–100, RSI overbought/oversold).
QQE Settings: Length, factor, and smooth for fine-tuned momentum.
Data Toggles: Enable/disable FRED, Open Interest, COT for focus (e.g., disable macro for pure intraday).
Frahm Options: Window hours (1+), scale multiplier (1–10), dynamic colors for avg candle.
Plot/Table: Line color, positions, gradients, and visibility.
Ideal Use Case
Perfect for MESM2 scalpers and trend traders. Use the Main Table for entry confirmation via predicted deviations and institutional positioning. Leverage the New Metrics Table arrows for short-term signals—enter bullish on green consensus (all ↑), avoid chop on low volatility. Set alerts to catch shifts without constant monitoring.
Why It's Valuable
Info Table V1 consolidates diverse metrics into actionable visuals, answering critical questions: Is price mispriced? Is momentum aligning? Is volatility manageable? With real-time updates, consensus highlights, and extensive customization, it enhances precision in fast markets, reducing guesswork for confident trades.
Note: Optimized for futures; some metrics (OI, COT) unavailable on non-futures symbols. Test on demo accounts. No financial advice—use at your own risk.
The provided script reuses open-source elements from TradingView's Color Library and LuxAlgo's QQE Weighted Oscillator, as noted in the script comments and description. Credits are appropriately given in both the description and code comments, satisfying the requirement for attribution.
Regarding significant improvements and proportion:
The QQE logic comprises approximately 15 lines of code in a script exceeding 400 lines, representing a small proportion (<5%).
Adaptations include integration with multi-timeframe support via request.security, user-customizable inputs for length, factor, and smooth, and application within a broader table-based indicator for momentum bias display (with color gradients, arrows, and alerts). This extends the original QQE beyond standalone oscillator use, incorporating it as one of seven metrics in the New Metrics Table for confluence analysis (e.g., consensus highlighting when all metrics align). These are functional enhancements, not mere stylistic or variable changes.
The Color Library usage is via official import (import TradingView/Color/1 as Color), leveraging built-in gradient functions without copying code, and applied to enhance visual interpretation across multiple metrics.
The script complies with the rules: reused code is minimal, significantly improved through integration and expansion, and properly credited. It qualifies for open-source publication under the Mozilla Public License 2.0, as stated.
Auto-Calculated Pivot Line/Zone (Based on Time Range)Automatically Calculated Pivot Line/Zone
Harness the power of precision with this Custom Time Range Average Line indicator—designed to pinpoint key equilibrium and pivot levels within consolidation zones after a breakout. Select any start and end time to capture the critical price action shaping the market structure between swings, and calculate the true average price using your choice of open, close, high, low, or midpoint.
Once the defined period concludes, the indicator freezes the average and extends it forward as a clear horizontal ray, acting as a powerful reference for fair value and market balance. This dynamic line shines brightest within consolidation phases, helping traders identify pivot points and equilibrium zones that often serve as magnets for price after a breakout.
Customize the line width to suit your style—use a thinner line width input for a precise single average line, or increase the width to visually represent a broader range or zone. Fully adjustable line color and thickness options ensure this tool integrates seamlessly into any chart setup.
Elevate your trading edge by visualizing the hidden balance points between market swings—turning consolidation chaos into clear, strategic opportunities!
Entry Signal Paint (RSI + DMI + Stoch + MACD)RSI above 60
Stoch - cross overslod
DMI - Ungli
// === RSI Condition ===
rsi = ta.rsi(rsiSource, rsiPeriod)
rsiCondition = rsi > 60
// === ADX and DI Condition ===
adx = ta.adx(adxPeriod)
plusDI = ta.plus_di(adxPeriod)
minusDI = ta.minus_di(adxPeriod)
adxCondition = adx > 15 and plusDI > minusDI
// === Stochastic Condition ===
k = ta.stoch(close, high, low, stochK)
d = ta.sma(k, stochD)
stochOversoldCross = ta.crossover(k, d) and k < 20
TZanalyserTZanalyser (Trend Zone Monitor With Trend Strength, Volume Focus And -Events Markers)
Before I used TrendZones to manage my portfolio I used Fibonacci Zone Oscillator as my favorite in the sub panel, accompanied with another subpanel indicator which I never published called IncliValue and also REVE Cohorts.
TZanalyser inherits Ideas and code from all three of them: The visual and the idea of using a channel as the basis for an oscillator depicted as a histogram, is taken from the FibZone Oscillator. The idea of providing a number to evaluate the trend is taken from IncliValue. The idea to create a horizontal line which indicates high and low volume focus completed with markers for volume events, is taken from REVE-cohorts.
These ideas are combined in one sleek visual called TZanalyser. TZ stand for TrendZones, because the histogram is based on it.
The histogram.
Depicted is the distance of the price from COG as percent. The distance between Upper Curve and Lower Curve is used as 100%. The values may reach between 300 and -300. The colors indicate in which zone the candle lives, blue in the blue zone, green in the green zone etc. Despite the absence of a gray zone, there are gray bars. These depict candles that wrap around COG. Because hl2 is used as price, some gray bars point up and others down. The orange and red bars point down because the orange and red downtrend zones are below COG.
Use of the histogram.
Sometimes I need to create a list of stocks which are in uptrend in monthly, weekly and daily charts from the stocks I follow in my universe. This job is done fast and easy by looking at the last bar of the histogram. The histogram also gives a quick evaluation of how the stock fared in the past.
The number.
Suppose I need to allocate some money to another stock, selected a few, looked into news and gurus and they look equally good. Then it is nice to be able to find out which has the best charts. Which one has the strongest uptrend. For this purpose this number can be consulted, because it indicates somehow the strength of the trend. It is an integer between 20 and -20, the closer to 20 the stronger the uptrend, closer to -20 indicates a stronger downtrend. The color of the background is the same as the last column of the histogram.
Volume focus and events
The horizontal lines depict volume focus, the line below the focus that comes with the uptrend columns pointing up, the one above the focus for the downtrend columns pointing down. Thes line have tree colors: maroon for high volume focus, green for normal volume and gray for low volume situations. Between the lines and the histogram triangles appear at volume events, a green triangle when the candle comes with high volume, i.e. 120-200 percent of normal, maroon when extreme volume, i.e. more than 200 percent of normal.
The direction of these triangles is that of the histogram, i.e. when the price is higher, direction is up and vice versa.
Take care and have fun.
Auto Fibonaccing File MignonScript with Fibonaccing and File Mignon from Marco Rossi, plots the maximums and minimums of 5 days ago as a reference
ZScore Plot with Ranked TableVersion 0.1
ZScore Plot with Ranked Table — Overview
This indicator visualizes the rolling ZScores of up to 10 crypto assets, giving traders a normalized view of log return deviations over time. It's designed for volatility analysis, anomaly detection, and clustering of asset behavior.
🎯 Purpose
• Show how each asset's performance deviates from its historical mean
• Identify potential overbought/oversold conditions across assets
• Provide a ranked leaderboard to compare asset behavior instantly
⚙️ Inputs
• Lookback: Number of bars to calculate mean and standard deviation
• Asset 1–10: Choose up to 10 symbols (e.g. BTCUSDT, ETHUSDT)
📈 Outputs
• ZScore Lines: Each asset plotted on a normalized scale (mean = 0, SD = 1)
• End-of-Line Labels: Asset names displayed at latest bar
• Leaderboard Table: Ranked list (top-right) showing:
◦ Asset name (color-matched)
◦ Final ZScore (rounded to 3 decimals)
🧠 Use Cases
• Quantitative traders seeking cross-asset momentum snapshots
• Signal engineers tracking volatility clusters
• Risk managers monitoring outliers and systemic shifts
Z-Score Multi-Model ClusteringA price/volume clustering framework combining three market behavior models into a single indicator. Designed to help identify emerging trend strength, turning points, and volatility-driven entries or exits.
🔍 How It Works
This indicator classifies market states by comparing normalized price/volume behavior (via Z-Score) to different types of statistical or geometric "cluster centers." You can choose from three clustering approaches:
🧠 Clustering Models
1. Percentile (Z+CVD) – Trend Momentum Bias
Uses volume Z-Score + Cumulative Volume Delta (CVD).
Detects institutional pressure by clustering volume surges with directional delta.
Best for: Breakouts, momentum trades, volume-led reversals.
Cluster Colors:
🔹 Green triangle = Strong bullish confluence
🔻 Red triangle = Bearish divergence (bull trap risk)
⚪ Gray = Neutral/low conviction
2. Euclidean (Z+Slope) – Swing Mean-Reversion
Measures the angle of recent Z-score slope and compares it to directional cluster centers.
Helps detect early directional shifts or exhaustion.
Best for: Swing entries, pullback setups, exit timing
3. Hilbert Phase – Turn Detection via Signal Phase
Applies Hilbert Transform to the Z-Score, measuring the phase difference between trend and oscillator components.
Ideal for anticipating turns or detecting cyclical inflection points.
Useful for: Scalping, top/bottom spotting, volatility fades
✅ Features
Auto-updating cluster logic based on current data
Tooltips and clean user interface
Optional cluster bar coloring (can be toggled off)
Signal-only plotting keeps candlesticks readable
Clear entry/exit logic with triangle markers
Supports trend, swing, and oscillation-based systems
🛠️ Suggested Use Cases
Combine with VWAP, Session High/Low, or Liquidity Zones to confirm entry conditions.
Use Cluster 2 (strong bullish) on pullbacks to trend structure for add-on entries.
Use Cluster 1 in strong trends to watch for potential traps or exits.
Toggle models based on your strategy: e.g., Hilbert for scalping, Percentile for macro trend breaks.
🧪 Best Timeframes
Works across all markets and timeframes
For Percentile (Z+CVD), use intraday TF with 1m–5m CVD source
Hilbert and Euclidean preferred on 5m–1h for accurate slope/phase signals
⚠️ Notes
Clusters do not generate trade signals alone; use them in context with structure, VWAP, or trend filters.
Marker signals are filtered with a magnitude threshold to reduce noise.
MACD + 1m EMA Zone FilterFeature Description
Run on Any Chart Works on any timeframe — 5m, 15m, 1h, etc.
MACD Crosses Detected on the current chart's timeframe
EMA Logic All EMA20/50/100/200 come from 1-minute timeframe
Buy Signal MACD crossover + all EMAs (1m) above EMA200
Sell Signal MACD crossunder + all EMAs (1m) below EMA200
Chart Arrows BUY/SELL arrows plotted at each signal
Alerts Configurable alerts for Buy/Sell conditions
Multi-Equity Performance TableThis indicator tracks 5 equities/stocks/crytpo across multiple timeframes: 24h, 1W, 1M, 3M, 6M, 1Y. You can use AI to modify the code to track more equities but then you will need to use less timeframes. I used Claude.ai to configure this code.
SMI Panel (kolupaiev)Stochastic Momentum + table trand + alerts
The indicator is composed of STOCHASTIC and MOMENTUM.
A table for tracking the trend on higher timeframes (1D and 1W) has also been added.
Notifications can be configured to follow the trend.