support band level 2📉 Support Band Level 2 – Support Zone and resistance zones only for Bitcoin.
Overview:
Support Band Level 2 is a support band designed for long-term traders, providing a reliable support range based on a combination of SMA and EMA calculated on a fixed higher timeframe (default: 1W)
🧠 What Makes It Unique:
This band highlights the strongest support in a Bitcoin's bull market.
Unlike traditional SMA and EMA indicators, which can be confusing when multiple levels break or hold, the band clearly shows when support is holding or being broken. By using this band, you can avoid the uncertainty that comes from analyzing individual moving averages.
besides more than just code this indicator has a strategy and a extensive backtesting behind it.
🛠️ How to Use:
Apply it to any chart timeframe — the band will remain synchronized with the fixed higher timeframe (e.g., 1W).
Use the white band to identify long-term support levels and invalidation points.
Support is often tested multiple times, and after holding, we usually see a continuation of the pump. However, if 2 weekly candles close below the white band, this indicates a bearish trend.
⚠️ Disclaimer:
This indicator does not provide buy/sell signals or predictions. It serves as a visual reference tool to assist in technical analysis by marking key support zones. Always use proper risk management strategies when making trading decisions.
Why Choose Support Band Level 2?
Support Band Level 2 provides a clear and reliable indication of market trends, making it an essential tool for long-term traders. The indicator helps you easily identify when the market is in a bullish or bearish phase:
Bullish when the price is above the white band.
Bearish when the price is below the white band.
Additionally, this indicator can also complement your day trading strategy. By combining it with your existing tools, you can follow a simple yet effective strategy:
Go long only when the price is above the white band.
Go short only when the price is below the white band.
Proven Performance:
Based on 10 years of backtesting using Bitcoin data, this indicator has shown strong reliability in identifying critical support and resistance levels.
It’s an invaluable tool for both long-term planning and short-term strategies, helping you make more informed trading decisions with ease.
Why Choose Support Band Level 2?
While many indicators can look visually impressive, the key focus of Support Band Level 2 is its practicality, simplicity and performance. I prioritize creating tools that work effectively in real market conditions, ensuring that you get in most cases good trading signals. This indicator is designed to provide actionable insights, not just aesthetics.
the strenght of this indicator is its backtesting.
this is not a financial advice
Indicators and strategies
Market Manipulation Index (MMI)The Composite Manipulation Index (CMI) is a structural integrity tool that quantifies how chaotic or orderly current market conditions are, with the aim of detecting potentially manipulated or unstable environments. It blends two distinct mathematical models that assess price behavior in terms of both structural rhythm and predictability.
1. Sine-Fit Deviation Model:
This component assumes that ideal, low-manipulation price behavior resembles a smooth oscillation, such as a sine wave. It generates a synthetic sine wave using a user-defined period and compares it to actual price movement over an adaptive window. The error between the real price and this synthetic wave—normalized by price variance—forms the Sine-Based Manipulation Index. A high error indicates deviation from natural rhythm, suggesting structural disorder.
2. Predictability-Based Model:
The second component estimates how well current price can be predicted using recent price lags. A two-variable rolling linear regression is computed between the current price and two lagged inputs (close and close ). If the predicted price diverges from the actual price, this error—also normalized by price variance—reflects unpredictability. High prediction error implies a more manipulated or erratic environment.
3. Adaptive Mechanism:
Both components are calculated using an adaptive smoothing window based on the Average True Range (ATR). This allows the indicator to respond proportionally to market volatility. During high volatility, the analysis window expands to avoid over-sensitivity; during calm periods, it contracts for better responsiveness.
4. Composite Output:
The two normalized metrics are averaged to form the final CMI value, which is then optionally smoothed further. The output is scaled between 0 and 1:
0 indicates a highly structured, orderly market.
1 indicates complete structural breakdown or randomness.
Suggested Interpretation:
CMI < 0.3: Market is clean and structured. Trend-following or breakout strategies may perform better.
CMI > 0.7: Market is structurally unstable. Choppy price action, fakeouts, or manipulative behavior may dominate.
CMI 0.3–0.7: Transitional zone. Caution or reduced risk may be warranted.
This indicator is designed to serve as a contextual filter, helping traders assess whether current market conditions are conducive to structured strategies, or if discretion and defense are more appropriate.
StochRSI Strategy with SL/TPSimple approach the StochiRSi strategy that has stop loss and take profit, A fully control the inputs of stochi RSi and back testing date.. code are credit to ryzinray@gmail.com
market_structureMarket Structure
This Pine Script implements a multi-timeframe market structure indicator to detect pivot-based trend directions and potential change of character (CHoCH) in price action. It's useful for identifying trend shifts and drawing key structural levels like swing highs, swing lows, and break points.
🔍 Core Features:
Pivot-Based Highs and Lows: Uses ta.pivothigh and ta.pivotlow with configurable lookback periods (left and right) to detect local highs and lows.
Direction Detection Modes: Supports multiple methods for trend direction:
'hl': based on price breaking recent high/low
'close': based on close price
'fbc': full-body candle break (min(open, close) vs. max(open, close))
'minmax': based on dynamically tracked min highs and max lows (via get_dir)
Trend Direction Tracking:
pp_dir: Primary pivot direction
pp_high_dir, pp_low_dir: Direction of highs/lows
pp_sl_dir: Secondary structure direction (based on previous pivot comparisons)
Multi-Timeframe Support: The indicator fetches pivot and direction signals from a selectable higher timeframe using request.security.
🔧 Inputs:
Timeframe (tf): Timeframe to analyze (e.g. '60', 'D', or leave empty for current)
Direction Mode (dir_mode): One of 'hl', 'close', 'fbc', 'minmax'
Source High/Low: Customizable source series for pivot calculations (default: high and low)
Pivot Lookback (left and right): Controls how far left/right to check for pivots
Centering Option (center): Offsets plots for pivot centering
Show Dir (show_dir): Toggles whether to color lines based on trend direction
🧠 Function Logic:
get_dir(pp_high, pp_low)
Tracks dynamic support/resistance levels and detects Change of Character (CHoCH):
If price breaks above tracked highs → Bullish shift
If price breaks below tracked lows → Bearish shift
market_structure(...)
Calculates pivots, smoothed highs/lows (pp_high, pp_low)
Determines trend direction using the selected mode
Computes midpoints and potential SL levels (pp_sl_high, pp_sl_low)
📊 Plots:
BUY (pp_high): Bullish pivot line
SELL (pp_low): Bearish pivot line
Middle (pp_mid): Midpoint of structure (optional, hidden by default)
SL BUY / SL SELL: Potential stop-loss zones, based on previous pivot extensions
Line colors are adjusted depending on direction:
Green: Bullish trend
Red: Bearish trend
This indicator is powerful for traders applying Smart Money Concepts (SMC) or Price Action-based analysis, as it automates structural trend detection and visualizes key breakout or reversal zones.
Would you like a visual diagram to explain the pivot logic or direction modes?
Macro Time Block 15mIndicator zeigt die Macrozeit 15 Minuten vor und 15 Minuten nach voller Stunde an.
ICT Macro and Daye QT ShiftEST Vertical Lines - Auto DST Adjustment
Overview
This indicator draws customizable vertical lines at specific Eastern Time (EST/EDT) points throughout the trading day, automatically adjusting for daylight savings time. Designed for precision trading on 1-minute and 5-minute charts, it highlights key intraday moments when price action tends to accelerate.
Features
- **18 pre-configured NY session times** (09:50-15:45 ET)
- **Auto timezone conversion** - Always shows correct EST/EDT regardless of your local timezone
- **3 line styles** - Choose between solid/dashed/dotted lines
- **Clean labeling** - Optional time markers above each line
- **1m/5m optimized** - Perfect for scalpers and day traders
- **Visual alerts** - "TOUCH" labels when price interacts with lines
Inputs
| Parameter | Description | Default |
|-----------|-------------|---------|
| Line Times | Comma-separated HH:MM times | 09:50,10:10,...15:45 |
| Line Color | Line color | Black |
| Line Width | 1-5px thickness | 2 |
| Line Style | Solid/Dashed/Dotted | Solid |
| Show Labels | Display time markers | true |
How To Use
1. Apply to 1m or 5m charts
2. Lines appear automatically at specified EST times
3. Watch for price reactions at these key levels
4. Customize styles via indicator settings
Ideal For
- NY open/London close traders
- Earnings/News traders
- Breakout traders
- Market open/close strategies
Updates
v1.1 - Added line style customization
v1.0 - Initial release
ATR Zone Levels Pro### 🧠 **Purpose of the Script**
The script calculates **dynamic support/resistance levels** above and below a base price using the **ATR (Average True Range)**. These "zones" help traders identify potential areas of price reaction, entries, or stop placement based on current market volatility.
---
### ⚙️ **1. User Inputs**
```pinescript
show_long = input(true, "Show Long Levels")
show_short = input(true, "Show Short Levels")
use_close_price = input(true, "Use Close Price")
atr_length = input.int(14, "ATR Period", minval=1)
smoothing = input.string("RMA", "Smoothing Type", options= )
```
* `show_long` and `show_short`: Allow toggling visibility of long/short zones.
* `use_close_price`: If true, base level = close price; else, it’s the average of high and low.
* `atr_length`: Number of bars used for ATR calculation.
* `smoothing`: Type of smoothing applied to the ATR.
---
### 📐 **2. ATR Calculation with Custom Smoothing**
```pinescript
ma_function(source, length) => ...
true_range = ta.tr(true)
atr = ma_function(true_range, atr_length)
```
* `true_range`: Calculates the true range for each bar.
* `atr`: Applies user-selected smoothing function to the true range to get ATR.
---
### 📏 **3. Base Level Calculation**
```pinescript
base_level = use_close_price ? close : (high + low) / 2
```
* Defines the **base price level** for the zones:
* `close` if selected, otherwise midpoint of high and low.
---
### 🔢 **4. Calculating Zone Levels**
```pinescript
array.push(long_levels, base_level + atr * 0.3) ...
array.push(short_levels, base_level - atr * 0.3) ...
```
* Creates arrays of levels spaced at multipliers of ATR (0.3x, 0.5x, 1x, 1.5x).
* `long_levels` are above the base level (for breakout or continuation).
* `short_levels` are below (for breakdown or reversal).
---
### 🖼️ **5. Plotting Levels**
```pinescript
plot(show_long ? array.get(long_levels, 1) : na, ...)
```
* Each level is plotted with distinct colors.
* If `show_long` or `show_short` is disabled, the corresponding lines are hidden.
---
### 📋 **6. Info Table (Top Right Corner)**
```pinescript
var table info_table = table.new(position.top_right, 2, 5)
```
* Displays:
* Current ATR value
* Main Long/Short zone level (1 ATR above/below base)
* Chosen smoothing type
* Current base price
---
### 🏷️ **7. Info Label on Chart**
```pinescript
label.new(bar_index, base_level, ...)
```
* Shows a label near the base price on the last bar with:
* Base level
* ATR value
* Old label is deleted on each bar to keep only one active label.
---
### ✅ **Use Case**
This indicator is ideal for:
* Determining dynamic **support/resistance levels**
* Planning entries/exits based on volatility zones
* Structuring trades with ATR-based risk zones (e.g. 1.5x ATR stops)
---
Would you like me to add **alerts** when price reaches these zones or crosses them?
TradeNeon - Level of InterestLevel of Interest (LOI) is part of the TradeNeon Software Portfolio – built for professional futures traders.
LOI highlights key price zones of institutional interest based on proprietary models and displays them directly on your chart.
It helps you cut through market noise, improve timing, and focus on what truly matters: structure, context, and key decision points.
Use LOI to navigate markets with clarity and confidence.
Level of Interest – See what matters.
Use the daily, professional market analyses to your advantage. Our experts with years of experience identify precise price areas of institutional interest. Maximize your trading potential and use these high-quality trading locations for your individual strategies.
tradeneon-academy.com/level-of-interest/
Ticker DataThis script mostly for Pine coders but may be useful for regular users too.
I often find myself needing quick access to certain information about a ticker — like its full ticker name, mintick, last bar index and so on. Usually, I write a few lines of code just to display this info and check it.
Today I got tired of doing that manually, so I created a small script that shows the most essential data in one place. I also added a few extra fields that might be useful or interesting to regular users.
Description for regular users (from Pine Script Reference Manual)
tickerid - full ticker name
description - description for the current symbol
industry - the industry of the symbol. Example: "Internet Software/Services", "Packaged software", "Integrated Oil", "Motor Vehicles", etc.
country - the two-letter code of the country where the symbol is traded
sector - the sector of the symbol. Example: "Electronic Technology", "Technology services", "Energy Minerals", "Consumer Durables", etc.
session - session type (regular or extended)
timezone - timezone of the exchange of the chart
type - the type of market the symbol belongs to. Example: "stock", "fund", "index", "forex", "futures", "spread", "economic", "fundamental", "crypto".
volumetype - volume type of the current symbol.
mincontract - the smallest amount of the current symbol that can be traded
mintick - min tick value for the current symbol (the smallest increment between a symbol's price movements)
pointvalue - point value for the current symbol
pricescale - a whole number used to calculate mintick (usually (when minmove is 1), it shows the resolution — how many decimal places the price has. For example, a pricescale 100 means the price will have two decimal places - 1 / 100 = 0.01)
bar index - last bar index (if add 1 (because indexes starts from 0) it will shows how many bars available to you on the chart)
If you need some more information at table feel free to leave a comment.
support band level 1📘 Support Band Level 1 – Fixed Timeframe EMAs
Description:
This indicator displays a dynamic support band composed of two exponential moving averages (EMA 21 and EMA 28) sourced from a fixed higher timeframe. The area between the EMAs is visually filled to make the zone more intuitive and easier to interpret.
The purpose of using a band instead of multiple moving averages is to reduce chart clutter and provide a clearer picture of potential support zones. Many overlapping EMAs can make analysis confusing, so this simplified structure helps maintain a clean and effective layout.
How to Use:
The blue band serves as a visual reference for potential dynamic support. In some cases, price revisits this area after moving above it. Observing how price behaves around this zone may assist in broader market analysis.
Disclaimer:
This indicator does not generate buy/sell signals and is not intended as financial advice. It is designed to support visual technical analysis. Always use your own judgment and apply proper risk management.
G10 FX Basket ComparisonDescription:
This indicator shows how individual FX major currencies (including CNY) have performed relative to each other. It calculates each currency's performance against a "Trade Weighted" basket of other major currencies.
I created this because I couldn't find it, and I wanted an easy way to see currency behaviour and flows.
Purpose:
It lets you see the relative strength and weakness of each currency, similar to how the DXY measures USD strength, but for all the major currencies. Each basket and currency weights are based on Trade Weighted values from literature/economics.
This way you can maybe decide which crosses / pairs to trade.
Can helps you visualise how events (economic, news or otherwise) affect currency flows.
Features:
Relative Performance: Focuses on how a currency's value has changed over time, rather than its absolute level.
Normalization: Adjusts currency values to a starting date, making it easy to compare their performance.
Adjustable Start Date: You can set the anchor date to choose the starting point for calculating relative performance.
Customizable Weights: The indicator allows you to use custom weights for each currency basket should you wish.
Weekday Signal [QuantAlchemy]The modified "Weekday Signal " Pine Script enhances the original by expanding from one entry and one exit condition to six independent entry and six independent exit conditions, each with its own weekdays, trading session, and time zone. While the original used a single time zone and produced one enter and one exit signal, the updated script maintains single enter and exit outputs by combining the six conditions for each using logical OR, ensuring compatibility with automated strategies. It retains the original’s main chart overlay, green/red backgrounds for entry/exit signals, and signal exposure for external scripts, aligning with the initial visualization and integration capabilities.
RSI Strategy//@version=5
strategy("RSI Strategy", overlay=true, default_qty_type=strategy.percent_of_equity, default_qty_value=10)
// Configuración del RSI
rsiLength = 14
rsi = ta.rsi(close, rsiLength)
// Niveles de referencia
rsiLongLevel = 30
rsiShortLevel = 70
// Condiciones de entrada
longCondition = ta.crossover(rsi, rsiLongLevel)
shortCondition = ta.crossunder(rsi, rsiShortLevel)
// Parámetros de gestión de riesgo
stopLossRatio = 0.01 // 1% del precio de entrada
trailStopRatio = 0.005 // 0.5% de trailing stop
breakevenTrigger = 0.005 // 0.5% de movimiento a favor para activar breakeven
// Cálculo de Stop Loss y Take Profit
longStopLoss = close * (1 - stopLossRatio)
longTakeProfit = close * (1 + 2 * stopLossRatio)
shortStopLoss = close * (1 + stopLossRatio)
shortTakeProfit = close * (1 - 2 * stopLossRatio)
// Entrada en largo
if (longCondition)
strategy.entry("Long", strategy.long)
strategy.exit("TakeProfit", from_entry="Long", limit=longTakeProfit, stop=longStopLoss, trail_points=trailStopRatio * close, trail_offset=trailStopRatio * close)
// Entrada en corto
if (shortCondition)
strategy.entry("Short", strategy.short)
strategy.exit("TakeProfit", from_entry="Short", limit=shortTakeProfit, stop=shortStopLoss, trail_points=trailStopRatio * close, trail_offset=trailStopRatio * close)
// Mostrar RSI en el gráfico
rsiPlot = plot(rsi, title="RSI", color=color.blue)
hline(rsiLongLevel, "RSI 30", color=color.green)
hline(rsiShortLevel, "RSI 70", color=color.red)
Position Size Calculator with Compound EarningsContracts = (Account × Risk%) ÷ (Stop Distance × $2.00 for MNQ)
with compounddaily.org
MACD - El Cruce de Oro//@version=5
strategy("MACD - El Cruce de Oro", overlay=true, default_qty_type=strategy.percent_of_equity, default_qty_value=2)
// === INPUTS ===
fastLength = input.int(20, title="MACD Fast Length")
slowLength = input.int(40, title="MACD Slow Length")
signalSmoothing = input.int(20, title="Signal Smoothing")
sl_pct = input.float(0.5, title="Stop Loss %", minval=0.1, maxval=5)
trailing_pct = input.float(0.5, title="Trailing Stop %", minval=0.1, maxval=5)
// === MACD CÁLCULO ===
= ta.macd(close, fastLength, slowLength, signalSmoothing)
// === CONDICIONES DE ENTRADA ===
longCondition = ta.crossover(macdLine, signalLine)
shortCondition = ta.crossunder(macdLine, signalLine)
// === GESTIÓN DE RIESGO ===
sl = close * sl_pct / 100
tsl = close * trailing_pct / 100
// === ENTRADAS Y SALIDAS ===
if (longCondition)
strategy.entry("Compra", strategy.long)
strategy.exit("SL/TS Long", from_entry="Compra", stop=close - sl, trail_points=tsl, trail_offset=tsl)
if (shortCondition)
strategy.entry("Venta", strategy.short)
strategy.exit("SL/TS Short", from_entry="Venta", stop=close + sl, trail_points=tsl, trail_offset=tsl)
// === PLOTEO DE LÍNEAS MACD ===
plot(macdLine, color=color.blue, title="MACD Line")
plot(signalLine, color=color.red, title="Signal Line")
Envelope//@version=5
indicator("FX 5分足 EMA+MACD+RSI 手法アラート", overlay=true)
// === EMA設定 ===
ema20 = ta.ema(close, 20)
ema50 = ta.ema(close, 50)
ema100 = ta.ema(close, 100)
plot(ema20, color=color.yellow, title="EMA 20")
plot(ema50, color=color.orange, title="EMA 50")
plot(ema100, color=color.red, title="EMA 100")
// === MACD設定 ===
= ta.macd(close, 12, 26, 9)
macdBuy = ta.crossover(macdLine, signalLine)
macdSell = ta.crossunder(macdLine, signalLine)
// === RSI設定 ===
rsi = ta.rsi(close, 14)
// === ロング条件 ===
longCondition = ema20 > ema50 and ema50 > ema100 and close >= ema20 and macdBuy and rsi > 50 and rsi < 70
plotshape(longCondition, location=location.belowbar, color=color.green, style=shape.labelup, text="Buy", title="Buy Signal")
// === ショート条件 ===
shortCondition = ema20 < ema50 and ema50 < ema100 and close <= ema20 and macdSell and rsi < 50 and rsi > 30
plotshape(shortCondition, location=location.abovebar, color=color.red, style=shape.labeldown, text="Sell", title="Sell Signal")
// === アラート設定 ===
alertcondition(longCondition, title="Buy Alert", message="Buy Signal: EMA + MACD + RSI conditions met")
alertcondition(shortCondition, title="Sell Alert", message="Sell Signal: EMA + MACD + RSI conditions met")
The GOAT Short/Long term D,M,W,QY, VWAP 3xrvol Vs 2
Follow the rules to the bulls and the bears:
If price is above the 200, toggle the indicator for only buy candles to be painted.
If price is below the 200, toggle the indicator for only sell candles to be painted.
For the maximum effectiveness:
Use with Multi-Timeframe VWAP V5 (1, 2, 3, Day, 2, 0) Indicator if you need to see the vwap lines of the higher time frames of the Session, D, W, M, Q, Y
Use with Moving Averages also
This will help you stay focused on the highest probability setups when they cross with the VWAP,
This advanced tool is designed to detect high-probability turning points and continuation signals by combining:
Trend confirmation (via EMA)
Institutional positioning (via VWAP from multiple timeframes)
Volume conviction (via 3x RVOL detection)
Potential reversal warnings (via volume pressure drop)
It tracks both bullish and bearish confluences between price, a customizable EMA, and higher-timeframe VWAPs — offering exceptional clarity for intraday and swing traders.
🔀 VWAP Confluence Types:
🔹 Short-Term Confluences:
EMA + Session VWAP
EMA + Daily VWAP
EMA + Weekly VWAP
🔸 Long-Term Confluences:
EMA + Monthly VWAP
EMA + Quarterly VWAP
EMA + Yearly VWAP
Each setup has:
✅ Arrows (up/down)
✅ Background highlight (color-coded)
✅ Alerts for bullish/bearish crosses
📊 Volume Logic:
Volume Signal Trigger Condition Candle Paint Color
Bullish RVOL Volume > 3× average and candle is green 🔷 Aqua
Bearish RVOL Volume > 3× average and candle is red 🔴 Fuchsia
Volume Drop Reversal Current volume < 50% avg after RVOL spike 🟤 Dark Maroon
🔔 Alerts Built In:
Bullish/Bearish VWAP + EMA crosses for all 6 VWAP types
RVOL surge alert
Volume drop reversal alert
🧩 Customizable Features:
EMA Length
VWAP timeframe toggles (short vs. long)
All paint colors
RVOL + Volume drop thresholds
Floating chart legend (optional)
🎯 Best For:
Traders who want high-confluence, high-volume entry signals
Confirmation of breakouts or pullbacks
Detection of institutional activity across multiple timeframes
Spotting exhaustion or reversal zones with volume drop logic
ATR Momentum Pro### 🧠 **Purpose of the Script**
This indicator visualizes the **momentum of volatility** by calculating the difference between the current ATR (Average True Range) and its moving average. It helps detect periods when market volatility is accelerating or decelerating.
---
### ⚙️ **1. User Inputs**
```pinescript
atr_length = input.int(14, "ATR Period", minval=1, maxval=100)
ma_length = input.int(20, "MA Period", minval=1, maxval=50)
ma_type = input.string("SMA", "MA Type", options= )
```
* `atr_length`: Number of periods used to calculate ATR (default is 14).
* `ma_length`: Number of periods for smoothing the ATR.
* `ma_type`: Type of Moving Average to use for smoothing (SMA, EMA, RMA, or WMA).
---
### 📈 **2. Calculations**
```pinescript
atr = ta.atr(atr_length)
```
* Calculates the standard **ATR**, which measures market volatility using high, low, and close prices.
```pinescript
ma_value = switch ma_type
"SMA" => ta.sma(atr, ma_length)
"EMA" => ta.ema(atr, ma_length)
"RMA" => ta.rma(atr, ma_length)
"WMA" => ta.wma(atr, ma_length)
```
* Applies the selected Moving Average to the ATR to smooth it.
```pinescript
oscillator = atr - ma_value
```
* Calculates the **ATR Momentum Oscillator**:
* Positive values: volatility is increasing.
* Negative values: volatility is decreasing.
---
### 📊 **3. Oscillator Plot**
```pinescript
plot(oscillator, "ATR Momentum", color=color.new(color.blue, 0), style=plot.style_histogram)
```
* Plots the oscillator as a **blue histogram** in a separate pane below the chart.
---
### 🏷️ **4. Informational Label**
```pinescript
var label lbl = label.new(bar_index, na, "", style=label.style_label_center)
if barstate.islast
label.set_xy(lbl, bar_index, ta.highest(high, 10) )
label.set_text(lbl,
"ATR: " + str.tostring(atr, "#.##") +
" MA(" + str.tostring(ma_length) + "): " + str.tostring(ma_value, "#.##") +
" Momentum: " + str.tostring(oscillator, "#.##"))
label.set_color(lbl, oscillator > 0 ? color.green : color.red)
```
* Creates a **single label** that updates only on the **latest bar**.
* The label shows:
* Current ATR
* ATR moving average
* Momentum (difference between the two)
* Label color:
* **Green** if momentum > 0
* **Red** if momentum < 0
* The label is positioned just above the price (highest high of the last 10 bars, offset by 1 bar).
---
### ✅ **Use Case**
This indicator is useful for:
* Spotting increases or decreases in market volatility
* Confirming breakout strength
* Filtering trades based on volatility momentum
---
Would you like me to add **buy/sell signals** when the oscillator crosses above or below zero?
BIZ: Multi Purpose Indicator V3Multi Purpose Indicator:
1. MTF Table for all Timeframes
2. Support Resistance Zones: Yesterday + Today
3. Trend colored background
4. 200 Ema + 50 Ema + 9 Ema
5. Doji + Hammer Candles Indentify
Fibonacci + TP/SL Strategy [Backtest]✅ Key Features Added and Adjusted:
Fibonacci Retracement Levels:
Automatically calculated based on the last 100 bars' high/low
Plotted levels: 0%, 23.6%, 38.2%, 50%, 61.8%, 78.6%, 100%
Extension targets: 161.8%, 261.8%, 423.6%
Buy/Sell Signal Logic:
Buy: Price is between 78.6% and 38.2% levels
Sell: Price is between 61.8% and 23.6% levels
Both depend on a can_trade time filter to avoid overtrading
ATR-based Stop-Loss:
Stop-loss dynamically adapts to market volatility:
SL = Entry - ATR * 1.5 (long)
SL = Entry + ATR * 1.5 (short)
Fixed Take-Profit:
Configurable via input: default is 4%
Can be changed in TradingView UI
Golden/Death Cross Indicator (Visual Only):
EMA 50 crossing EMA 200 plotted on chart:
Golden Cross = Buy signal (green triangle)
Death Cross = Sell signal (red triangle)
Weekly Profit Cap:
Prevents new trades if weekly profit exceeds 15%
Resets at the start of every week
Visual Elements:
All Fibonacci levels are plotted
Buy/Sell signals are labeled on the chart (BUY, SELL)
VWAP Anclado a Fecha//@version=5
indicator("Anchored VWAP (Custom Date)", overlay=true)
// === INPUT ===
// Select any specific date and time to anchor the VWAP
anchorDate = input.time(timestamp("2024-01-01 00:00 +0000"), title="Anchor Date")
// === VARIABLES ===
var float cumPV = na // cumulative price * volume
var float cumVol = na // cumulative volume
var float anchoredVWAP = na
// === VWAP CALCULATION ===
if (time >= anchorDate)
cumPV := na(cumPV) ? hlc3 * volume : cumPV + hlc3 * volume
cumVol := na(cumVol) ? volume : cumVol + volume
anchoredVWAP := cumPV / cumVol
// === PLOT ===
plot(anchoredVWAP, title="Anchored VWAP", color=color.blue, linewidth=2)
// Optional marker to show anchor start
plotshape(time == anchorDate ? close : na, title="Anchor Start", location=location.belowbar, color=color.red, style=shape.triangleup, size=size.small)
Unified ATR Zones### 🧠 **Purpose of the Script**
This indicator draws **ATR-based support and resistance levels** directly on the price chart (overlay). It's a clean and minimal visualization of current volatility zones derived from the **ATR (Average True Range)**.
---
### ⚙️ **1. User Inputs**
```pinescript
atr_length = input.int(14, "ATR Period", minval=1)
smoothing = input.string("RMA", "Smoothing", options= )
use_prev_close = input(false, "Use Previous Close")
```
* `atr_length`: The number of bars to calculate the ATR (default 14).
* `smoothing`: Type of moving average used to smooth the ATR.
* `use_prev_close`: If true, use the previous close (`close `) as the base level. If false, use the current close.
---
### 📐 **2. ATR Calculation**
```pinescript
true_range = ta.tr(true)
atr_value = ma_function(true_range, atr_length)
```
* `true_range`: Measures the maximum of:
* High - Low
* High - Previous Close
* Low - Previous Close
* `atr_value`: Smoothed version of `true_range` using the selected MA type.
---
### 📏 **3. Base Level**
```pinescript
base_level = use_prev_close ? close : close
```
* This is the price reference point for plotting zones:
* Can be today's close or yesterday’s close, based on user input.
---
### 🧱 **4. Zone Plotting**
```pinescript
plot(base_level, "Base", color=color.gray, linewidth=1)
plot(base_level + atr_value, "1 ATR Long", color=color.green)
plot(base_level + atr_value * 1.5, "1.5 ATR Long", color=color.blue)
plot(base_level - atr_value, "1 ATR Short", color=color.red)
plot(base_level - atr_value * 1.5, "1.5 ATR Short", color=color.maroon)
```
* **Base level** is plotted in gray.
* **+1 ATR and +1.5 ATR levels** are shown above as resistance or targets (green/blue).
* **–1 ATR and –1.5 ATR levels** are plotted below as support or potential reversal zones (red/maroon).
---
### 📋 **5. Info Panel**
```pinescript
var table info_table = table.new(position.top_right, 2, 1)
table.cell(info_table, 0, 0, "ATR: " + str.tostring(atr_value, "#.##"), bgcolor=color.new(color.gray, 90))
```
* A small **table in the top-right corner** shows the current ATR value.
* Background is semi-transparent gray for a clean look.
---
### ✅ **Use Case**
This script is useful for:
* Visualizing real-time **volatility zones**.
* Planning entries/exits or managing risk based on market volatility.
* Identifying breakout or retracement opportunities at dynamic ATR-based levels.
---
Would you like to add **alerts** when price touches any of these zones, or include more zone levels (e.g. 0.5 ATR)?