PEGY Ratio (Div Adj PEG)Identifying the PEGY (Dividend Adjusted PEG) to find value investment opportunities.
在腳本中搜尋"上证综指etf"
Lorentzian Length Adaptive Moving Average [LLAMA] Adaptation of "Machine Learning: Lorentzian Classification" by
Gradient color by base on work by
LLAMA: A regime-aware adaptive moving average that bends with the market.
Start with a problem traders know:
Traditional moving averages are either too slow (EMA200) or too fast (EMA9)
Adaptive MAs exist, but they often hug price too tightly or smooth too much, failing to balance bias and tactics
LLAMA uses a Lorentzian distance function to adapt its length dynamically. Instead of a fixed smoothing window, it stretches or contracts depending on market conditions. This distortion reduces lag while still providing a clear bias line.
The indicator looks back at recent bars and measures how similar they are using a Lorentzian distance (a log‑scaled absolute difference). It keeps track of the “nearest neighbors” — bars that most resemble the current regime. Each neighbor carries a label (long, short, neutral) based on simple price comparisons. By averaging these labels, LLAMA predicts whether the market is leaning bullish or bearish. That prediction is then mapped into a dynamic length between and .
Bullish bias -> length stretches toward max (smoother, more stable).
Bearish bias -> length contracts toward min (snappier, more reactive).
During breakouts, LLAMA tightens and comes into contact with bars, giving actionable signals. During chop, it stretches to avoid false triggers. It covers both ends of the spectrum (bias and tactics) in one line, something static MA's can't do.
Think of LLAMA as a lens that bends with the market:
Wide lens (max length) for big picture bias.
Narrow lens (min length) for tactical precision.
The "Lorentzian Loop" is the math that decides when to widen or narrow.
Bullish ATR Level indicatorThis indicator is used by OVTLYR Golden Ticket Trading strategy to determine the stop loss and option rollover levels. Super simple indicator that just shows the current price, -1/2 ATR for a stop loss and 1 and 2 ATR levels for possible take profit or option rollover points.
Smart Trail Signals NO CONDITIONSSmart Trail Signals Indicator
Overview
This is a trend-following indicator that uses a dynamic trailing stop system to identify bullish and bearish trends. It adapts to market volatility using ATR (Average True Range) and provides visual signals when the trend direction changes.
Core Components
Smart Trail System:
Calculates dynamic support (trail_up) and resistance (trail_down) levels
Adjusts trail levels based on price movement and volatility
Maintains trend direction until price crosses the opposite trail level
Key Parameters:
Length (14): Period for ATR calculation
Multiplier (2.0): Distance of trail from price relative to ATR
Sensitivity (1-5): Fine-tunes how quickly the trail adapts to price changes
How It Works
Trend Detection: Monitors whether price is above the support trail (bullish) or below the resistance trail (bearish)
Trail Movement:
In uptrends: Support trail rises with price but never decreases
In downtrends: Resistance trail falls with price but never increases
Signals: Diamond shapes appear when trend flips:
Green diamond below bar = bullish trend change
Red diamond above bar = bearish trend change
Visual Aids:
Trail line changes color (lime for uptrend, red for downtrend)
Candles colored green (bullish), red (bearish), or gray (neutral)
Best Use Cases
Identifying trend reversals on any timeframe
Following strong directional moves
Setting dynamic stop-loss levels
Works 24/7 on all instruments (stocks, crypto, forex)
RetryClaude can make mistakes. Please double-check responses. Sonnet 4.5
INMERELO EMA Reclaim HighlighterOverview
The INMERELO EMA Reclaim indicator highlights intraday candles reclaiming a configurable EMA on any timeframe. It identifies candles based on customizable candle geometry filters and confirms momentum using a custom MACD setup.
Features
Configurable Intraday EMA
Any EMA length and timeframe. Default: 6-period EMA on chart timeframe.
Highlights when price reclaims the EMA after a configurable number of prior closes below it.
Candle Geometry Filters (ORB-Style)
Open Position: Maximum position of open relative to candle range (0–1). Default: 0.40
Close Position: Minimum position of close relative to candle range (0–1). Default: 0.70
Body Fraction: Minimum body size relative to candle range. Default: 0.50
Custom MACD Filter
Fast line above slow line.
Configurable: Fast (default 6), Slow (default 20), Signal (default 9).
Prior Closes Below EMA Filter
Configurable minimum number of prior closes below EMA. Default: 2
Visual Options
Paint candle with configurable color.
Optional arrow display above reclaim candle (toggleable).
Flexible
Works on any intraday timeframe, including 5-minute, 2-minute, 15-minute, etc.
Settings Overview
Setting Default Notes
EMA Length 6 EMA used for reclaim detection
EMA Timeframe Chart TF Can be set to any intraday timeframe
Open ≤ 0.40 ORB-style filter
Close ≥ 0.70 ORB-style filter
Body Fraction 0.50 ORB-style filter
Min Prior Closes Below EMA 2 Minimum closes below EMA before reclaim
MACD Fast 6 Custom MACD fast line
MACD Slow 20 Custom MACD slow line
MACD Signal 9 Custom MACD signal line
Paint Candle True Highlights valid candles
Candle Color Lime Configurable
Show Arrow False Optional visual
Summary:
The INMERELO EMA Reclaim indicator identifies intraday candles reclaiming a configurable EMA, filtered by customizable candle geometry and MACD momentum. Visual options include painted candles and optional arrows, and all settings are fully configurable.
RSI Divergence on 15-Minute with 5min & 1min CorrectionUse the 5 minute chart to identify 15 minute rsi divergence, showing the 5 and 1 min rsi levels "participating in" the correction of the 15 minute rsi divergence.
RSI Divergence on 1-Hour with 15min & 5min CorrectionUsing the 15 minute timeframe, rsi divergence on the hourly chart is "tracked" by the 15 and 5 min rsi levels to watch for the hourly chart's rsi correction.
RSI Divergence on 4-Hour with 1hr & 15min CorrectionRSI Divergence on 4-hr chart viewed on the hourly chart, watch hourly and 15min rsi levels interact with correction of the 4 hr rsi divergence.
RSI Divergence on Daily with 4hr & 1hr CorrectionRSI Divergence on Daily chart viewed in 4 hr timeframe to identifty 4 hr/1hr rsi corrections inside of the identified, Daily RSI level (source high)
Custom ATR TableThis indicator is intended to displays a simple, data-rich ATR table that summarizes volatility and directional bias based on the Average True Range (ATR). It helps you quickly see:
The current daily range relative to ATR
Potential call and put trigger levels
The trend bias based on EMAs
ATR measures the average daily volatility — how much price typically moves in one day. This helps identify if the market is moving more or less than usual and calculates how much of the ATR that range covers.
QQQ Momentum Regime Rider (EMA + VWAP + ADX + Vol Pullback)My strategy catches intraday momentum, has a phenomenal return of 18% annually
Vertical Lines on Selected DatesThis Pine Script indicator allows a user to place vertical lines on a chart at specific dates and times. It provides three separate input sections, each dedicated to one targeted date. For each of the three dates, the user can select the exact timestamp and customize the line’s color, width, and style directly from the indicator’s settings panel.
Behind the scenes, the script converts the selected visual style (solid, dashed, or dotted) into the appropriate internal line style using a helper function. When the live chart time crosses each chosen timestamp, the script detects that crossover and draws a vertical line on that exact bar. The line extends both upward to the high and downward to the low of the chart, creating a full-height marker.
Overall, the indicator functions as a simple visual marking tool for highlighting important moments in time—such as events, sessions, or personal reminders—without affecting any price analysis. The flexibility of color, width, and style allows each vertical line to stand out uniquely, and because the script uses detection logic on a per-bar basis, each line is drawn only once at the appropriate moment.
OPPLIGER SMA Stufen-TP Strategie (200/100/50/25) mit Reentry✔️ 5.- transaction costs
✔️ 7% Stop-Loss
✔️ 3 Take-Profit SMA-levels
✔️ Reentry via SMA100 correction
✔️ Reentry via SMA25/SMA50 crossover
✔️ New REENTRY rule after Stop-Loss
→ only if SMA stack is bullish AND the 3rd & 4th candle after SL are above SMA25
SMA Stufen-TP Strategie (200/100/50/25) mit ReentryStrategy Description for TradingView: Multi-SMA Momentum & Reentry System
This Pine Script strategy, named "SMA Stufen-TP Strategie (200/100/50/25) mit Reentry," is a Long-Only trend-following system designed to capitalize on upward momentum and capture significant gains while incorporating sophisticated logic for reentry after corrections.
The system relies on four Simple Moving Averages (SMAs): SMA 200, SMA 100, SMA 50, and SMA 25. These indicators are used to define the trend structure, trigger entries, and set dynamic, layered Take-Profit (TP) levels.
Entry Rules
The strategy has one main entry and two specific reentry triggers:
Main Entry (Standard Trend): A long position is opened when the price crosses above the SMA 200. This acts as the initial signal for a strong, long-term uptrend.
Reentry 1 (Medium Correction): This reentry is sought after an official exit (Stop Loss or Take Profit). It is permitted if the SMA 100 is above the SMA 200 and two conditions are met: the price previously dipped below the SMA 100 during the correction, and it now closes two consecutive bars above the SMA 100. This targets a confirmed bounce within an overall bullish structure.
Reentry 2 (Deep Correction/Momentum Shift): This triggers during a deep correction where all shorter SMAs (100, 50, 25) are below the SMA 200. Reentry occurs when the SMA 25 crosses above the SMA 50, signaling a powerful short-term momentum shift that precedes a larger recovery.
Exit and Take-Profit Logic
Exits are governed by a prioritized system including a fixed Stop Loss and three dynamic Take-Profit stages.
A. Stop Loss (Highest Priority)
The primary risk control is a fixed Stop Loss at -10% below the entry price. This is always the first exit condition checked.
B. Layered Take-Profits (TP)
Profits are secured using a step-wise mechanism that trails the price using the shorter SMAs, but only after specific profit thresholds are met. This ensures that the strategy provides ample room for a strong rally while securing gains as the trend matures.
TP Stage 1: Activated when the price first crosses above the SMA 100. The position is closed if the profit reaches 10% or more and the price closes two consecutive bars below the SMA 100.
TP Stage 2: Activated when the price first crosses above the SMA 50. The position is closed if the profit reaches 20% or more and the price closes two consecutive bars below the SMA 50.
TP Stage 3: Activated when the price first crosses above the SMA 25. The position is closed if the profit reaches 40% or more and the price closes two consecutive bars below the SMA 25.
The exit priority ensures that the tightest active stop is used: Stop Loss takes precedence, followed by TP 3 (the highest profit and tightest trail), then TP 2, and finally TP 1.
Intraday Technical Strength Dashboard — 5m (Universal) — FIXED2An Intraday Technical Strength Dashboard for RSI, OBV, MACD, ADX, and EMA Cloud
QQQ SR Pro.MARIA VICTORIAthis script is thinking to help traders to avoid false breakdown on resistant or support. try to improve enter en exist trading in any time frame, as well.
SISTEMA DE REVERSIONTrying to avoid false signal to enter o exit in any timeframe. To do so, I am using a support and resistant dynamic no lineal.
Auto Fibonacci RetraceNOTE: This script is for educational purposes only.
This Pine Script v6 indicator automates the drawing of Fibonacci retracement levels on a TradingView chart based on detected pivot highs and lows. It's designed to identify the most recent swing points in a price trend and plot horizontal lines at standard Fibonacci ratios (0%, 23.6%, 38.2%, 50%, 61.8%, 78.6%, 100%), along with optional labels for each level. The script is useful for traders who want dynamic, hands-free Fib retracements that update as new pivots form, helping to spot potential support/resistance zones without manual intervention.
Key Features
Automatic Pivot Detection: Uses TradingView's built-in ta.pivothigh and ta.pivotlow functions to find recent swing highs and lows. The sensitivity is adjustable via user inputs for "Left Bars" and "Right Bars" (default: 5 each), which define how many bars are checked on either side to confirm a pivot.
Trend Direction Awareness: Determines if the current swing is an uptrend (recent high after low) or downtrend (recent low after high) and orients the Fib levels accordingly—starting from the low in uptrends or high in downtrends.
Dynamic Drawing:
Plots dashed horizontal lines extending to the right of the chart for each Fib level.
Colors are predefined for visual distinction (e.g., blue for 23.6%, orange for 61.8%).
Lines and labels are cleared and redrawn only when a new pivot is detected or on initial load to prevent chart clutter.
Customizable Labels: Optional labels show the percentage (e.g., "61.8%") and can be positioned on the "Left" (at the swing start) or "Right" (pinned to the current bar, updating dynamically). Labels use semi-transparent backgrounds for readability.
Performance Optimizations: Uses arrays to manage lines and labels efficiently, with reverse-indexed loops for safe deletion. The max_bars_back=500 ensures it handles historical data without excessive computation.
User Inputs:
Left/Right Bars: Tune pivot detection (higher values for major trends, lower for shorter swings).
Show Fib Levels/Labels: Toggle visibility.
Label Position: "Left" or "Right" for placement flexibility.
Usage Instructions
Adding to Chart: Copy-paste into TradingView's Pine Editor, save as a new indicator, and add it to your chart via the "Indicators" menu.
Customization: Adjust inputs in the indicator settings panel. For example, set Left/Right Bars to 10 for daily charts in strong trends.
Best Practices:
Use on trending markets (e.g., stocks, forex, crypto like BTC/USD); avoid choppy sideways action.
Combine with other indicators (e.g., RSI for overbought/oversold confirmation) for better trade signals.
Test on historical data—zoom out to see how it redraws on past swings.
Limitations: Relies on pivot functions, so it may lag slightly (pivots confirm after "Right Bars"). Not a trading strategy—use for analysis only. No alerts built-in, but you can add alertcondition if extending it.
Potential Enhancements: Add extensions (e.g., 161.8%), user-defined levels, or alerts on price touches via simple modifications.
This script provides a clean, efficient way to visualize Fib retracements automatically, saving time compared to manual drawing. If you need further tweaks or integration into a full strategy, let me know!
12 Band Volume matched Candles📌 12 Band Volume matched Candles (Official Description)
12 Band Volume matched Candles is a next-generation volume-strength visualisation tool designed for traders who rely on precision, speed, and clarity.
Instead of colouring candles by price action or relative indicators, this script maps every candle to one of 12 absolute-volume strength bands, using real contract/share volume thresholds that you define.
No guessing.
No subjective smoothing.
No repainting.
Just pure, clean, calibrated volume pressure — visualised instantly.
🔥 Why This Indicator Exists
Traditional volume colouring is vague, delayed, or tied to assumptions (like moving averages).
Scalpers, orderflow watchers, and tape-readers all know the truth:
👉 The raw size of volume matters more than relative volume.
This tool removes all ambiguity and lets you define exact thresholds that match the behaviour of your market:
5k volume
10k volume
20k
35k
50k
70k
… all the way to
200k+ (or whatever instrument volume you want)
Those thresholds map to a 12-band spectrum, ranging from the coldest low-volume purples to the hottest high-volume reds.
The result?
A visual system that lets you read volume pressure instantly, the same way our RSI 12-band spectrum lets you read momentum immediately.
🎨 Premium 12-Band Colour Spectrum
This indicator uses the same refined colour spectrum as the In The Zone RSI – 12 Band script:
Weak Volume (Bands 1–6) – Cold Side
Ultra-dark violet
Deep purples
Cool blues
Light icy blue
Strong Volume (Bands 7–12) – Hot Side
Warm yellows
Oranges
Orange-reds
Deep maroons
Ultra-dark red for max volume
You instantly know:
When volume is dying
When volume is building
When a trend is being pushed
When a breakout has REAL participation
When a reversal is weak or strong
Your brain doesn’t need to “interpret” numbers — just read the colours.
⚙️ Key Features
✔ 12 Custom Volume Thresholds
Set exact volume values that match your instrument.
A perfect companion for multi-indicator visual alignment.
✔ Borders-Only Mode
Keep your chart clean and still read volume strength.
✔ Adjustable Brightness & Opacity
Fine-tune the aesthetic for dark or light chart themes.
✔ Legend Placement Options
Display the volume band legend in any corner of the chart.
✔ Zero Lag – Zero Repaint
Everything is based on historical volume — no tricks.
🚀 Who It’s For
This tool is extremely powerful for:
Scalpers
Momentum traders
Orderflow readers
Breakout traders
Reversal hunters
Algo / quant-style chart readers
Anyone who trades with candle-flow awareness
If you rely on the “feel” of a chart, volume rhythm, or momentum pressure — this indicator becomes a cheat-code.
🎯 Practical Uses
Spot when large players enter a move
Filter weak vs strong pullbacks
Confirm breakout candles
See exhaustion before reversals
Separate noise from real interest
Pair with IZ RSI + price structure for elite scalp precision
⭐ Why Traders Love It
Because it's clear.
Instant.
And it treats volume as the truth, not something to smooth or average.
This is how scalpers and tape-readers naturally think — now in a visual form.
🔥 Final Line
12 Band Volume matched Candles turns raw volume into a crystal-clear language.
Once you see volume this way, you will never go back to traditional colouring again.
4/8/15 EMA Overlaya simple script to overlay your 4/8/15. If it clears the 8, it usually will raise. If it stays entangled with the 4/8, it rarely breaks above.
HTF MACD Dual Zero Cross + First EMA PullbackThis script aims to get the trader on the right side of the momentum and get better entries by only alerting when price pulls back to the trader's specified EMA.
This script isnt meant to catch tops or bottoms but to trade with the momentum once it starts.
This script will alert whe nthe MACD and signal line both cross the zero line, after that the script waits for price to make a pullback and then alet either a sell or buy. Ive found this works best when you trade with the trend on a higher timeframe.
You can use whatever MACD settings you prefer and really customize this to the asset youre trading.
You can also change whether you get an alert based on a wick touch of the EMA or a candle close.






















