Profit Seeker📈 Profit Seeker — Precision Trend Signal Indicator
Profit Seeker is a trend-based multi-condition indicator designed to identify high-probability long and short trade setups by combining the strengths of multiple proven technical tools:
🔍 Core Features:
Heiken Ashi Mode (Optional): Smoothens price action to reduce noise and improve trend clarity.
Stochastic Ribbon Pivots: Detect trend reversals with built-in “HUNT” signals.
Chande Momentum Oscillator (CMO): Confirms weakening or strengthening momentum — labeled as “SIGHT”.
Bollinger Bands (BB): Pinpoint final entry triggers when price breaches volatility extremes — the “FIRE” signal.
Multi-Timeframe Trend Filtering: Trade only in the direction of a dominant higher-timeframe trend.
Color-coded Flags:
🟢 HUNT: Initial trend signal
🟢 SIGHT: Momentum alignment
🟢 FIRE: Volatility-based confirmation
Smart Alerts: Receive real-time long or short alerts when all conditions align.
🛠️ Use Cases:
Ideal for swing and intraday traders
Works on all asset classes: crypto, forex, equities, commodities
Compatible with manual trading or automated bots
Indicators and strategies
T3 Moving Average with Multiple EMAsT3 Moving Average with Multiple EMAs
Short Title: T3 + EMAs
Overview
The T3 Moving Average with Multiple EMAs is a versatile trend-following indicator that combines the smooth, adaptive T3 Moving Average with eight customizable multi-timeframe Exponential Moving Averages (EMAs). Designed for traders seeking clarity in trend direction and momentum, this indicator overlays on the price chart to highlight dynamic support/resistance levels and trend alignment across multiple timeframes.
Key Features
T3 Moving Average: A highly responsive, smoothed moving average (default: 9-period, 0.7 volume factor) that reduces lag while maintaining accuracy, ideal for identifying short-term trends and reversals.
Eight Multi-Timeframe EMAs: Plots eight EMAs (default lengths: 8, 13, 21, 34, 55, 89, 144, 233) sourced from user-defined timeframes (e.g., 1m, 5m, 15m, 1h, 4h), providing a comprehensive view of short-, medium-, and long-term trends.
Customizable Timeframes: Each EMA can be independently set to a specific timeframe, allowing traders to analyze cross-timeframe trend alignment.
Theme Support: Offers "Dark" and "Light" themes with optimized colors for visual clarity and chart compatibility.
Flexible Parameters: Adjust T3 length, volume factor, EMA lengths, and timeframes to suit various markets and trading styles (scalping, swing trading, or long-term investing).
How It Works
The T3 Moving Average is calculated using a multi-stage EMA formula weighted by a volume factor, offering smoother trend tracking than traditional EMAs. The eight EMAs, sourced from higher or lower timeframes using request.security, provide a layered perspective on price trends. Faster EMAs (e.g., 8, 13) react to short-term price movements, while slower EMAs (e.g., 144, 233) reflect longer-term trends. The indicator plots all lines on the price chart with distinct, theme-adjusted colors for easy identification.
Usage
Trend Identification: Use the T3 MA for short-term trend signals and the EMAs to confirm broader trend direction. A price above multiple EMAs suggests a bullish trend; below indicates bearish.
EMA Crossovers: Watch for crossovers between faster and slower EMAs (e.g., 8 crossing 21) for potential entry/exit signals.
Support/Resistance: Treat slower EMAs (e.g., 89, 144) as dynamic support/resistance levels, especially on higher timeframes.
Timeframe Alignment: Align trades with the trend direction of higher-timeframe EMAs for higher-probability setups.
Customization: Adjust T3 and EMA settings to match your trading style or asset volatility.
Settings
T3 Parameters:
Length (default: 9): Period for T3 calculation.
Volume Factor (default: 0.7): Controls T3 smoothness (0.1–1.0).
EMA Parameters:
Lengths (default: 8, 13, 21, 34, 55, 89, 144, 233): Period for each EMA.
Timeframes (default: 5m, 5m, 15m, 15m, 1h, 1h, 4h, 4h): Select from 1m, 5m, 15m, 30m, 1h, 4h, D, W, or M.
Theme: Choose "Dark" (vibrant colors) or "Light" (softer colors) for chart compatibility.
Notes
Combine with other tools (e.g., RSI, support/resistance, or volume) for confirmation.
Optimize settings for specific markets (e.g., crypto, forex, stocks) or timeframes.
The indicator is overlayed on the price chart for seamless integration with price action analysis.
Author’s Note
This indicator was designed to provide traders with a clear, multi-timeframe perspective on trends using the T3 MA and EMAs. Feedback is welcome to enhance this tool for the TradingView community!
[Mad]Triple Bollinger Bands ForecastTriple Bollinger Bands Forecast (BBx3+F)
This open-source indicator is an advanced version of the classic Bollinger Bands, designed to provide a more comprehensive and forward-looking view of market volatility and potential price levels.
It plots three distinct sets of Bollinger Bands and projects them into the future based on statistical calculations.
How It Is Built and Key Features
Triple Bollinger Bands: Instead of a single set of bands, this indicator plots three. All three share the same central basis line (a Simple Moving Average), but each has a different standard deviation multiplier. This creates three distinct volatility zones for analyzing price deviation from its mean.
Multi-Timeframe (MTF) Capability: The indicator can calculate and display Bollinger Bands from a higher timeframe (e.g., showing daily bands on a 4-hour chart). This allows for contextualizing price action within the volatility structure of a more significant trend.
(Lower HTF selection will result in script-crash!)
Future Forecasting: This is the indicator's main feature. It projects the calculated Bollinger Bands up to 8 bars into the future. This forecast is a recalculation of the Simple Moving Average and Standard Deviation based on a projected future source price.
Selectable Forecast Methods: The mathematical model for estimating the future source price can be selected:
Flat: A model that uses the most recent closing price as the price for all future bars in the calculation window.
Linreg (Linear Regression): A model that calculates a linear regression trend on the last few bars and projects it forward to estimate the future source price.
Efficient Drawing with Polylines: The future projections are drawn on the chart using Pine Script's polyline object. This is an efficient method that draws the forecast data only on the last bar, which avoids repainting issues.
Differences from a Classical Bollinger Bands Indicator
Band Count: A classical indicator shows one set of bands. This indicator plots three sets for a multi-layered view of volatility.
Perspective: Classical Bollinger Bands are purely historical. This indicator is both historical and forward-looking .
Forecasting: The classic version has no forecasting capability. This indicator projects the bands into the future .
Timeframe: The classic version works only on the current timeframe. This indicator has full Multi-Timeframe (MTF) support .
The Mathematics Behind the Future Predictions
The core challenge in forecasting Bollinger Bands is that a future band value depends on future prices, which are unknown. This indicator solves this by simulating a future price series. Here is the step-by-step logic:
Forecast the Source Price for the Next Bar
First, the indicator estimates what the price will be on the next bar.
Flat Method: The forecasted price is the current bar's closing price.
Price_forecast = close
Linreg Method: A linear regression is calculated on the last few bars and extrapolated one step forward.
Price_forecast = ta.linreg(close, linreglen, 1)
Calculate the Future SMA (Basis)
To calculate the Simple Moving Average for the next bar, a new data window is simulated. This window includes the new forecasted price and drops the oldest historical price. For a 1-bar forecast, the calculation is:
SMA_future = (Price_forecast + close + close + ... + close ) / length
Calculate the Future Standard Deviation
Similarly, the standard deviation for the next bar is calculated over this same simulated window of prices, using the new SMA_future as its mean.
// 1. Calculate the sum of squared differences from the new mean
d_f = Price_forecast - SMA_future
d_0 = close - SMA_future
// ... and so on for the rest of the window's prices
SumOfSquares = (d_f)^2 + (d_0)^2 + ... + (d_length-2)^2
// 2. Calculate future variance and then the standard deviation
Var_future = SumOfSquares / length
StDev_future = sqrt(Var_future)
Extending the Forecast (2 to 8 Bars)
For forecasts further into the future (e.g., 2 bars), the script uses the same single Price_forecast for all future steps in the calculation. For a 2-bar forecast, the simulated window effectively contains the forecasted price twice, while dropping the two oldest historical prices. This provides a statistically-grounded projection of where the Bollinger Bands are likely to form.
Usage as a Forecast Extension
This indicator's functionality is designed to be modular. It can be used in conjunction with as example Mad Triple Bollinger Bands MTF script to separate the rendering of historical data from the forward-looking forecast.
Configuration for Combined Use:
Add both the Mad Triple Bollinger Bands MTF and this Triple Bollinger Bands Forecast indicator to your chart.
Open the Settings for this indicator (BBx3+F).
In the 'General Settings' tab, disable the Activate Plotting option.
To ensure data consistency, the Bollinger Length, Multipliers, and Higher Timeframe settings should be identical across both indicators.
This configuration prevents the rendering of duplicate historical bands. The Mad Triple Bollinger Bands MTF script will be responsible for visualizing the historical and current bands, while this script will overlay only the forward-projected polyline data.
30% Away from 200 SMA AlertWhen stock price is overly extended. This alert is meant to let you know when a reversal is on the way
Customizable Engulfing, Pin Bar, Inside Bar Colorengulfing,pin,inside bar candle which helps to identify these candles for better visualization and understanding
OPR Asia-New-York [Elykia]This Pine Script indicator, called "OPR Asia-New-York ", displays time-based boxes corresponding to two specific trading periods known as OPR (Opening Price Range):
🎯 Purpose of the Indicator:
To visualize two key market time windows (morning and afternoon) as extended boxes, helping with technical analysis around opening ranges.
🕒 Two sessions displayed as boxes:
🔹 Morning OPR:
Default: from 09:00 to 09:15 (configurable)
The box extends until 10:30.
It captures the highest and lowest candle within this interval.
🔸 Afternoon OPR:
Default: from 15:30 to 15:45
The box extends until 17:30.
Follows the same logic as the morning session.
⚙️ Dashboard Options:
Enable or disable the morning or afternoon box individually
Select the timezone (e.g., GMT+2)
Customize all colors (morning/afternoon boxes, median line)
Set your own start/end/extension times for each session
📦 Each box includes:
A colored rectangle showing the price range (high/low)
A dotted median line between the high and low
The box and line extend until the end time defined
🧠 Usefulness for Traders:
Identify liquidity zones or consolidation areas
Trade setups like liquidity grabs, breakouts, or fakeouts around the OPR
Align with ICT methods or scalping strategies based on session behavior
ALP AT + KAMA Crossover This indicator is a powerful combination of two adaptive trend-following concepts: the AlphaTrend by Kivanc Ozbilgic and the Kaufman's Adaptive Moving Average (KAMA), often credited to Perry Kaufman (with the specific implementation based on HPotter's interpretation of KAMA).
The primary goal of this indicator is to provide a robust trend detection and dynamic support/resistance system, adapting to market volatility.
How it Works:
AlphaTrend Component: The green/red line is the AlphaTrend. It dynamically adjusts to market volatility (using ATR) and momentum (using MFI or RSI, configurable). It provides faster signals for trend changes.
KAMA Component: The black line is the Kaufman's Adaptive Moving Average. KAMA is designed to filter out market noise during choppy periods and follow the price closely during trending periods, making it a smoother and more reliable long-term trend indicator.
Color-Coded Trend Zones: The AlphaTrend line is color-coded to visually represent the current market condition based on the price's position relative to both AlphaTrend and KAMA:
Strong Uptrend (Lime Green): Price is above both AlphaTrend and KAMA.
Strong Downtrend (Red): Price is below both AlphaTrend and KAMA.
Uptrend Uncertainty (Orange): Price is above KAMA but below AlphaTrend (suggests consolidation or weakening uptrend).
Downtrend Uncertainty (Blue): Price is below KAMA but above AlphaTrend (suggests consolidation or strengthening downtrend within a downtrend).
Gray: Default/unclassified state.
The underlying logic is based on:
Bullish Crossover (Potential Buy Signal): When the AlphaTrend line crosses above the KAMA line.
Bearish Crossover (Potential Sell Signal): When the AlphaTrend line crosses below the KAMA line.
These crossovers indicate a shift in the adaptive trend momentum.
Customization:
Users can customize various parameters in the indicator's settings, including:
AlphaTrend Multiplier and Common Period.
KAMA Lengths and Alpha values.
All the color codes for different trend zones and lines, allowing for full personalization of the visual output.
Disclaimer:
This indicator is for informational and educational purposes only and should not be considered as financial advice. Trading involves substantial risk, and past performance is not indicative of future results. Always conduct your own thorough research and analysis before making any trading or investment decisions. This indicator is NOT a buy/sell/hold recommendation. Use it as a tool to aid your analysis, not as a sole basis for your trades.
Oscillator SignalsOscillator Signals – Smart Trading with RSI & Stochastic
Stop waiting for false reversals—trade the confirmed moves!
Developed by Marcelo Ulisses Sobreiro Ribeiro
Many traders struggle with the Stochastic Oscillator because it can linger in overbought (OB) or oversold (OS) zones for long periods, leading to premature entries. This script solves that problem by only triggering signals when Stochastic exits these zones, combined with RSI crossovers for higher-confidence trades.
🔹 Key Features:
✅ No More False Alerts – Avoids signals inside OB/OS zones—waits for Stochastic to exit (confirming momentum shift).
✅ RSI + Moving Average Crossovers – Adds a second layer of confirmation when RSI crosses its moving average.
✅ Combined Alerts – Strongest signals occur when:
Stochastic exits oversold (OS) and RSI crosses above its MA (▲ Bullish).
Stochastic exits overbought (OB) and RSI crosses below its MA (▼ Bearish).
✅ Fully Customizable – Adjust lengths, OB/OS levels, and toggle signals.
✅ Built-in Alerts – Never miss a setup.
🔹 Why It Works Better:
Traditional Stochastic signals often fail because price can stay stuck in OB/OS for extended periods. This script ignores entries inside the zones and only acts when:
Stochastic leaves OS (crosses above 20) + RSI confirms uptrend.
Stochastic leaves OB (crosses below 80) + RSI confirms downtrend.
Filters out weak reversals, focusing on high-probability breakouts.
🔹 Ideal For:
Traders tired of "whipsaws" from premature OB/OS entries.
Swing traders seeking confirmed reversals.
Combining with support/resistance for precision.
📌 Pro Tip: Pair this with price action (e.g., breakouts from key levels) for even stronger signals!
Try it now—trade less, profit more! 🚀
Key Improvements:
Problem-Solution Framework: Directly addresses the "Stochastic lingering" issue upfront.
Stronger Emphasis on Confirmation: Highlights how the script waits for OB/OS exits to avoid fakeouts.
Clearer Value Proposition: Positions the script as a filter for higher-quality signals.
Momo MasterA combination of moving averages and macd in one indicator.
Shows trend directionality and momentum.
SMA200 and VWAP are additional indicators that help to quickly assess whether we are in an up or down trend
London Open MarkerThis indicator draws a box on the candle of the London Open (it's designed to account for European time change, so it draws the box at 7am UTC in summer and 8am UTC in winter)
Useful for London session opening drive strategies
US Stocks SPDRsSelect Sector SPDR ETFs - These are unique Exchange Traded Funds (ETFs) that divide the S&P 500 into eleven index funds that trade all day on NYSE Arca.
ADT MSI TableKey Features:
1. Market Smith Methodology
Composite Rating: Combines price and volume strength
Relative Strength Rating: Measures stock performance vs benchmark
Base Pattern Detection: Identifies consolidation patterns
Breakout Signals: Detects valid breakouts with volume confirmation
2. Indian Market Adaptations
INR Currency Formatting: Displays prices in ₹, Lakhs, and Crores
Indian Benchmarks: NIFTY, SENSEX, NIFTY500 options
Market Cap Display: Formatted in Indian currency standards
Trading Hours Compatibility: Works with NSE/BSE data
3. Comprehensive Data Table
Real-time Metrics: Current price, daily change, volume analysis
Technical Indicators: MA positions, RS rating, composite rating
Performance Tracking: 3M, 6M, 12M returns
Signal Generation: BUY/SELL/HOLD recommendations
4. Visual Elements
Multiple Moving Averages: 10, 20, 50, 200 period MAs
Support/Resistance Levels: Dynamic pivot-based levels
Volume Analysis: Color-coded volume bars with surge detection
Trend Background: Color-coded background based on trend strength
Breakout Markers: Visual signals for valid breakouts
5. Customizable Parameters
Adjustable Periods: All timeframes can be modified
Table Positioning: 9 different table positions
Alert System: Customizable breakout and volume alerts
Display Options: Toggle any component on/off
6. Indian Market Specific
No Errors: Fully compatible with Indian stock data
Proper Formatting: All values in Indian currency format
Market Hours: Optimized for Indian trading sessions
Volume Calculations: Adapted for Indian market volume patterns
SG Multi Entry/Exit IndicatorThis strategy is based on an entry and an exit indicator that can be selected from a range of indicators.
The entry / exit indicators are standard Stochastic, MACD, RSI and MA indicators.
The graphs for each indicator are normalised to between 0 and 100 and displayed on above the other with buy and sell indicators.
The Strategy can be enabled / disabled via the inputs as can the date range as can whether to put a dummy sell signal in for the last trading day to give an accurate Mark to Market performance.
Mutant Cycle - Volatility DriverMutant cycle _ volatility Driver
Punti di volatilità settimanali massimo e minimi forti
OI Bahavior MapThis indicator visualizes Open Interest (OI) changes for Binance Futures and highlights the behavior of market participants — whether takers or makers are opening or closing positions.
📊 Supported display modes:
• Taker or Maker
• Longs or Shorts
• Cumulative or Per-Bar
• Displayed in USD or Coins
💡 Each candle color reflects the dominant trade direction (delta):
🟢 Green = Aggressive buying (Delta Buy)
🔴 Red = Aggressive selling (Delta Sell)
OI direction (↑/↓) determines whether positions are being opened or closed.
🛠️ Optional metrics:
• Moving average of OI (SMA, EMA, WMA, VWMA, LSMA)
• Volatility channels (Bollinger Bands or Extremums)
⚙️ How it works:
• Fetches OI data from the SYMBOL_OI ticker (e.g., BTCUSDT_OI)
• Compares current OI with the previous bar
• Uses signed volume delta (close - open) to infer intent
• Classifies bar as open/close, long/short, taker/maker
• Displays the net effect as a colored candle on a secondary chart
🤔 How to interpret Taker and Maker?
• Taker: The aggressive participant who removes liquidity (initiates the trade)
• Maker: The passive participant who provides liquidity (places resting orders)
You can choose to display the same event from either the Taker or Maker perspective — the chart will look the same, but the interpretation changes.
🧠 Core Logic Mapping
```
🟢 Green: Taker Longs (Buy, OI↑) | Maker Shorts (Buy, OI↓)
🔴 Red: Taker Shorts (Sell, OI↑) | Maker Longs (Sell, OI↓)
```
⚠️ Limitations:
• Works only for Binance Futures
• Requires existence of SYMBOL_OI ticker on TradingView
• Represents approximate intent based on OI + volume behavior
💬 Open Source
The script is open for the community. Suggestions and feedback are welcome in the comments!
__________________________________________________________________________________
Этот индикатор визуализирует изменения открытого интереса (OI) для Binance Futures и показывает поведение участников рынка — открывают или закрывают позиции тейкеры или мейкеры.
📊 Доступные режимы отображения:
• Taker или Maker
• Longs или Shorts
• Кумулятивный или по бару
• В USD или в монетах
💡 Каждый цвет свечи отражает преобладающее направление сделок (дельта):
🟢 Зеленый = Агрессивные покупки (Delta Buy)
🔴 Красный = Агрессивные продажи (Delta Sell)
Направление OI (↑/↓) показывает, открываются или закрываются позиции.
🛠️ Дополнительные метрики:
• Скользящая средняя OI (SMA, EMA, WMA, VWMA, LSMA)
• Волатильностные каналы (Bollinger Bands или экстремумы)
⚙️ Как работает:
• Получает данные OI из тикера SYMBOL_OI (например, BTCUSDT_OI)
• Сравнивает текущий OI с предыдущим баром
• Использует направленную дельту объема (close - open) для определения намерения
• Классифицирует бар как открытие/закрытие, лонг/шорт, тейкер/мейкер
• Отображает итог в виде цветной свечи на дополнительном графике
🤔 Как интерпретировать Taker и Maker?
• Taker: Агрессивный участник, который изымает ликвидность (инициирует сделку)
• Maker: Пассивный участник, который создает ликвидность (выставляет лимитные заявки)
Вы можете выбрать отображение события с позиции тейкера или мейкера — график будет одинаковым, но смысл меняется.
🧠 Схема логики
```
🟢 Зеленый: Taker Longs (Покупка, OI↑) | Maker Shorts (Покупка, OI↓)
🔴 Красный: Taker Shorts (Продажа, OI↑) | Maker Longs (Продажа, OI↓)
```
⚠️ Ограничения:
• Работает только для Binance Futures
• Требуется наличие тикера SYMBOL_OI на TradingView
• Показывает приблизительное намерение на основе OI и дельты объема
💬 Open Source
Скрипт открыт для сообщества. Предложения и обратная связь приветствуются в комментариях!
Multi-SMA (100, 200, 365)This indicator plots three Simple Moving Averages (SMAs) on the chart.
The lengths are fixed at 100, 200, and 365 periods.
It is a good buying zone for Bitcoin
ZigZagLibrary "ZigZag"
method lastPivot(this)
Retrieves the last `Pivot` object's reference from a `ZigZag` object's `pivots`
array if it contains at least one element, or `na` if the array is empty.
Callable as a method or a function.
Namespace types: ZigZag
Parameters:
this (ZigZag) : (series ZigZag) The `ZigZag` object's reference.
Returns: (Pivot) The reference of the last `Pivot` instance in the `ZigZag` object's
`pivots` array, or `na` if the array is empty.
method update(this, sourceHigh, sourceLow)
Updates a `ZigZag` object's pivot information, volume data, lines, and
labels when it detects new pivot points.
NOTE: This function requires a single execution on each bar for accurate
calculations.
Callable as a method or a function.
Namespace types: ZigZag
Parameters:
this (ZigZag) : (series ZigZag) The `ZigZag` object's reference.
sourceHigh (float) : (series float) The data series to analyze for high pivot points.
sourceLow (float) : (series float) The data series to analyze for low pivot points.
Returns: (bool) `true` if the function detects a new pivot point and updates the
`ZigZag` object's data, `false` otherwise.
newInstance(settings)
Creates a new `ZigZag` instance with optional settings.
Parameters:
settings (Settings) : (series Settings) Optional. A `Settings` object's reference for the new
`ZigZag` instance's `settings` field. If `na`, the `ZigZag` instance
uses a new `Settings` object with default properties. The default is `na`.
Returns: (ZigZag) A new `ZigZag` object's reference.
Settings
A structure for objects that store calculation and display properties for `ZigZag` instances.
Fields:
devThreshold (series float) : The minimum percentage deviation from a previous pivot point required to change the Zig Zag's direction.
depth (series int) : The number of bars required for pivot point detection.
lineColorUp (series color) : The color of each line in the Zig Zag drawing that connects pivot highs.
lineColorDown (series color) : The color of each line in the Zig Zag drawing that connects pivot lows.
textUpColor (series color) : The color of the text in each label that shows a pivot high's price and volume.
textDownColor (series color) : The color of the text in each label that shows a pivot low's price and volume.
lineWidth (series int) : The width of the Zig Zag lines.
extendLast (series bool) : Specifies whether the Zig Zag drawing includes a line connecting the most recent pivot point to the latest bar's `close`.
displayReversalPrice (series bool) : Specifies whether the Zig Zag drawing shows pivot prices in its labels.
displayCumulativeVolume (series bool) : Specifies whether the Zig Zag drawing shows the cumulative volume between pivot points in its labels.
displayReversalPriceChange (series bool) : Specifies whether the Zig Zag drawing shows the reversal amount from the previous pivot point in each label.
differencePriceMode (series string) : The reversal amount display mode. Possible values: `"Absolute"` for price change or `"Percent"` for percentage change.
draw (series bool) : Specifies whether the Zig Zag drawing displays its lines and labels.
allowZigZagOnOneBar (series bool) : Specifies whether the Zig Zag calculation can register a pivot high *and* pivot low on the same bar.
drawSupportResistance (series bool) : Specifies whether the Zig Zag drawing includes support and resistance lines.
supportResistanceOffset (series int) : The number of bars to extend the support and resistance lines from the last pivot point.
supportResistanceWidth (series int) : The width of the support and resistance lines.
supportColor (series color) : The color of the support lines.
resistanceColor (series color) : The color of the resistance lines.
supportResistanceZoneWidth (series int) : The width of the support and resistance zones.
drawSupportResistanceZone (series bool) : Specifies whether the Zig Zag drawing includes support and resistance zones.
supportZoneColor (series color) : The color of the support zone.
resistanceZoneColor (series color) : The color of the resistance zone.
supportResistanceExtend (series bool) : Specifies whether the support and resistance lines extend to the right of the chart.
overlay (series bool) : Specifies whether the Zig Zag drawing appears on the main chart or in a separate pane.
zigZagLineStyle (series string) : The line style of the Zig Zag lines. Possible values: `line.style_solid`, `line.style_dotted`, `line.style_dashed`, `line.style_arrow_left`, `line.style_arrow_right`, or `line.style_arrow_both`.
supportResistanceLineStyle (series string) : The line style of the support and resistance lines. Possible values: `line.style_solid`, `line.style_dotted`, `line.style_dashed`, `line.style_arrow_left`, `line.style_arrow_right`, or `line.style_arrow_both`.
Pivot
A structure for objects that store chart point references, drawing references, and volume information for `ZigZag` instances.
Fields:
ln (series line) : References a `line` object that connects the coordinates from the `start` and `end` chart points.
lb (series label) : References a `label` object that displays pivot data at the `end` chart point's coordinates.
isHigh (series bool) : Specifies whether the pivot at the `end` chart point's coordinates is a pivot high.
vol (series float) : The cumulative volume across the bars between the `start` and `end` chart points.
start (chart.point) : References a `chart.point` object containing the coordinates of the previous pivot point.
end (chart.point) : References a `chart.point` object containing the coordinates of the current pivot point.
supportResistance (series line)
supportResistanceZone (series line)
ZigZag
A structure for objects that maintain Zig Zag drawing settings, pivots, and cumulative volume data.
Fields:
settings (Settings) : References a `Settings` object that specifies the Zig Zag drawing's calculation and display properties.
pivots (array) : References an array of `Pivot` objects that store pivot point, drawing, and volume information.
sumVol (series float) : The cumulative volume across bars covered by the latest `Pivot` object's line segment.
extend (Pivot) : References a `Pivot` object that projects a line from the last confirmed pivot point to the current bar's `close`.
Custom ETF with Dynamic Weights & RatioHi,
Want to create your own ETF from your portfolio?
This script lets you:
Add up to 10 stocks to form an ETF.
Assign weightings to each stock.
Create a second ETF to compare with your first ETF.
Compare both ETFs to determine which performs best.
COG GravityBased on the COG concept by veryfid — but shown directly on the chart instead of an oscillator pane.
Long Entry
Price crosses above the COG line, and
Price is above the SMA
COG velocity is rising (momentum is building)
Short Entry
Price crosses below the COG line, and
Price is below the SMA
COG velocity is falling (momentum is weakening)
Feel free to modify the script and let me know ☺️
MA Bands with Dynamic ColorsThe chart displays the 50-day, 100-day, and 200-day moving averages (MAs).
When the 50-day MA is above both the 100-day and 200-day MAs, the chart turns green, indicating a bullish trend with increasing positive momentum.
Conversely, when the 50-day MA is below the 100-day and 200-day MAs, the chart turns red, signaling a bearish trend with negative momentum.
This color-coded system, with green and red clouds, helps traders identify the trend direction and gauge positive or negative momentum for potential trading opportunities.