Multi Horizontal Lines 1000 Bars
This indicator is not my code, I have copied this from another user and extened the lines so they go back 1000 bars for back testing.
I use this indicator to trade Crude Oil and set the horizontal lines to 20 cents increments, 0.2 is 20 cents. You can change the horizontal lines to any price distance to suit your style of trading.
My idea is when price crosses over a horizontal line I will enter a trade long or short looking to secure 20 cents.
Educational
DaringBull Arvind MACD GAPS MA CrossoverTo generate buy and sell signals based on a combination of MACD crossover events and histogram behavior, particularly around the zero line. This is used to identify early momentum reversals for entry and exit points in the market.
📐 MACD Setup
Uses customizable MACD parameters (defaults: Fast = 12, Slow = 26, Signal = 9).
Calculates:
MACD Line
Signal Line
Histogram (difference between MACD and Signal)
✅ Buy Conditions
A buy signal is plotted when all three of the following occur:
MACD Line crosses above Signal Line (bullish crossover).
MACD Line is still below or near the zero line (< 0.05) – indicates early reversal from a bearish zone.
First green histogram bar appears (current bar is > 0 and previous was ≤ 0) – confirming momentum shift.
➡️ When these align, a blue circle is plotted below the price bar.
❌ Sell Conditions
A sell signal is plotted when all three of the following occur:
MACD Line crosses below Signal Line (bearish crossover).
MACD Line is still above or near the zero line (> -0.05) – indicates early weakness after a bullish move.
First red histogram bar appears (current bar is < 0 and previous was ≥ 0) – confirming loss of momentum.
➡️ When these align, a red circle is plotted above the price bar.
📊 Visualization
Buy/Sell markers appear on the price chart for visual entry/exit cues.
MACD line, Signal line, and Zero line are optionally plotted for deeper analysis.
📌 Key Insights
This script aims to enter trades early in trend reversals by using MACD in conjunction with histogram shifts near the zero line.
It's especially useful in gap trading, mean reversion, or breakout confirmation setups.
The optional plot toggle allows switching between overlay and non-overlay views.
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.
MACD GAPS PivotLabels MAIt provides with dots where the MACD is either highest or lowest. Identify the gaps in the chart. Pivot labels are to read the numeric value of the candle high or low and an option to select moving averages
Open Range Breakout (ORB) with Alerts
🚀 ChartsAlgo – Open Range Breakout (ORB) with Alerts
The Open Range Breakout (ORB) Indicator by ChartsAlg is designed for intraday traders looking to capitalize on price movements after the market’s opening range. This tool is especially effective for futures (MNQ, MES) and high-volatility stocks or crypto where initial volatility sets the tone for the session.
This indicator identifies a user-defined opening range window, plots the high/low lines of that range, and visually alerts users when price breaks out above or below the range — with options to customize breakout repetitions, background fill, and alerts.
💡 What is an Open Range Breakout (ORB)?
The opening range represents the high and low established during the first few minutes of the trading session — usually 15 or 30 minutes. Many intraday strategies are based on the idea that breaking out of this initial range often signals strong momentum and trend continuation.
Traders often enter:
Long when price breaks above the range high.
Short when price breaks below the range low.
⚙️ How It Works
You define a session window (e.g., 09:30–09:45 EST).
The indicator tracks the high and low during this time.
Once the session ends, the high and low become your range breakout levels.
The indicator then:
Plots lines for visual clarity
Optionally fills background between the range
Triggers breakout signals if price crosses the levels
Provides alerts when breakouts occur
🛠️ Settings Breakdown
🔹 Session Settings
Range Session: Set your preferred window (e.g., 0930–0945). Can be premarket, first 30 mins, or any custom time.
Time zone: Use "America/New York" for EST (default) or change to "GMT+0" for international traders.
🔹 Breakout Settings
Bullish Breakout Signals: Number of allowed breakout alerts above the range.
Bearish Breakout Signals: Number of allowed breakout alerts below the range.
This prevents repeated alerts once breakout has been confirmed.
🔹 Display Settings
Show Background Fill: Fills area between high/low of the range for easier visual analysis.
Show Breakout Signals: Triangle markers plotted on the chart when breakouts happen.
Only Show Today’s Range: Keeps the chart clean by showing only the most current day’s range.
🔹 Color Settings
Range High/Low Line Colors: Choose any color for clarity.
Range Fill Color: Customize the highlight area for your chart style.
📊 Chart Features
Range High/Low Lines: Automatically plotted after range session ends.
Visual Fill Box: Optional background shading between the opening range.
Triangle Breakout Markers: Appear at the breakout candle.
Alerts: Can be used with TradingView’s alert system to notify you of breakouts in real-time.
🔔 Alerts
Two alert conditions are built in:
Bullish Breakout: Triggers when price breaks above the high of the range.
Bearish Breakout: Triggers when price breaks below the low of the range.
Example Alert Message:
📈 “Bullish Breakout above Open Range on AAPL!”
To activate:
Click “🔔 Alerts” on TradingView.
Set condition to this script.
Choose “ORB Breakout Up” or “ORB Breakout Down”.
Choose alert frequency and notification method.
⚠️ DISCLAIMER
ChartsAlgo tools are for informational and educational purposes only.
They are not financial advice or signals. Past performance does not guarantee future results. Use at your own risk and always implement solid risk management.
By using this indicator, you agree that you are solely responsible for any trades or decisions made based on the information provided.
✅ 200 EMA + RSI Pullback + Volume Surge (Full Strategy)200 EMA Trend + RSI Pullback + Volume Surge Strategy (Advanced)
📖 Strategy Description:
This strategy is designed to identify high-probability entries in trending markets using a combination of trend-following and momentum re-entry principles. It works effectively for intraday and swing trading on equities, indices, and crypto.
🔍 Entry Logic:
✅ Long Entry Conditions:
Trend Confirmation:
Price must be above the 200 EMA, indicating a bullish trend.
RSI Pullback:
RSI must drop below a defined level (default 40), indicating a healthy pullback in an uptrend.
Volume Surge:
Current volume must be above 1.5× the 20-period average, confirming strong buying activity.
Entry Triggered on Candle Close:
Ensures reliable confirmation instead of premature entries.
Short Entry Conditions (reverse logic):
Price below the 200 EMA
RSI above threshold (default 60)
Volume surge
Entry only after candle close
Exit Conditions:
Take Profit (TP):
Book profits at 2% move (configurable).
Stop Loss (SL):
Protect capital at 1% loss (configurable).
Trailing Stop Loss (TSL):
Follows the price with a 1.5% trail to lock in profits.
Time-Based Exit:
Closes position automatically after a fixed number of candles (default: 5 bars).
Alerts:
Built-in alerts notify when a Long or Short setup is triggered, allowing traders to act or automate execution.
Best Used On:
Timeframes: 15-minute, 1-hour, or Daily
Markets: NIFTY, BANKNIFTY, RELIANCE, INFY, BTC/USD, ETH/USD
Styles: Intraday, Swing, Trend-followinG
Ideal For:
Traders who follow pullback entries in strong trends
Users looking for automated alerts and exits
Strategies requiring volume confirmation + trend bias
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
Boxed EMA + Volume PanelBoxed EMA - where Numbers show the price distance from each EMA.
RVOL
VOL percentage + contraction
Average 50 day volume
todays volume
MFI Candles MTF TableMFI Candles + Multi-Timeframe Table | by julzALGO
This open-source script visualizes the Money Flow Index (MFI) in a new format — as candles instead of a traditional oscillator line. It provides a clean, volume-driven view of momentum and pressure, ideal for traders seeking more actionable and visual cues than a typical MFI plot.
What Makes It Unique:
• Plots "MFI Candles" — synthetic candles based on smoothed MFI values using a selected timeframe (default: 1D), giving a new way to read volume flow.
• Candles reflect momentum: green if MFI rises, red if it falls.
• Background turns red when MFI is overbought (≥ 80) or green when oversold (≤ 20).
Multi-Timeframe Strength Table:
• Displays MFI values from 15m, 1h, 4h, and 1D timeframes — all in one dashboard.
• Color-coded for quick recognition: 🔴 Overbought, 🟢 Oversold.
• Values are smoothed with linear regression for better clarity.
Custom Settings:
• MFI calculation length
• Smoothing factor
• Candle source timeframe
• Toggle table and OB/OS background
How to Use:
- Use MFI Candles to monitor momentum shifts based on money flow.
- Use the Multi-Timeframe Table to identify when multiple timeframes align — helpful for timing entries and exits.
- Watch the background for extreme conditions (OB/OS) that may signal upcoming reversals or pressure exhaustion.
Happy Trading!
BTC/Fiat Divergence & Spread Monitor📄 BTC/Fiat Divergence & Spread Monitor
This indicator visualizes Bitcoin’s relative performance across multiple fiat currencies and highlights periods of unusual divergence. It helps traders assess which fiat pairs BTC has outperformed or underperformed over a configurable lookback period and monitor the dynamic spread between the strongest and weakest pairs.
Features:
Relative Performance Matrix:
Ranks BTC returns in 6 fiat pairs, displaying a color-coded table of percentage changes and ranks.
Divergence Spread Oscillator:
Calculates the spread between the top and bottom performing pairs and normalizes this using a Z-Score. The oscillator helps identify when fiat pricing divergence is unusually high or compressed.
Dynamic Smoothing:
Optional Hull Moving Average smoothing to reduce noise in the spread signal.
Customizable Inputs:
Lookback period for percent change.
Z-Score normalization window.
Smoothing length.
Symbol selection for each fiat pair.
Visual Mode Toggle:
Switch between relative performance lines and spread oscillator view.
Potential Use Cases:
Fiat Rotation:
Identify which fiat is relatively weak or strong to optimize your exit currency when taking BTC profits.
Volatility Detection:
Use the spread Z-Score to detect periods of high divergence across fiat pairs, signaling macro FX volatility or dislocations.
Regime Analysis:
Track when fiat spreads are converging or expanding, potentially signaling market regime shifts.
Risk Management:
When divergence is extreme (Z-Score > +1), consider reducing position sizing or waiting for reversion.
Disclaimer:
This indicator is provided for educational and informational purposes only. It does not constitute financial advice or a recommendation to buy or sell any security or asset. Always do your own research and consult a qualified financial professional before making trading decisions. Use at your own risk.
Tip:
Experiment with different lookback periods and smoothing settings to adapt the indicator to your timeframe and trading style.
Volume Overbought/Oversold Zones📊 What You’ll See on the Chart
Red Background or Red Triangle ABOVE a Candle
🔺 Means: Overbought Volume
→ Volume on that bar is much higher than average (as defined by your settings).
→ Suggests strong activity, possible exhaustion in the trend or an emotional spike.
→ It’s a warning: consider watching for signs of reversal, especially if price is already stretched.
Green Background or Green Triangle BELOW a Candle
🔻 Means: Oversold Volume
→ Volume on that bar is much lower than normal.
→ Suggests the market may be losing momentum, or few sellers are left.
→ Could signal an upcoming reversal or recovery if confirmed by price action.
Orange Line Below the Candles (Volume Moving Average)
📈 Shows the "normal" average volume over the last X candles (default is 20).
→ Helps you visually compare each bar’s volume to the average.
Gray Columns (Actual Volume Bars)
📊 These are your regular volume bars — they rise and fall based on how active each candle is.
🔍 What This Indicator Does (In Simple Words)
This indicator looks at trading volume—which is how many shares/contracts were traded in a given period—and compares it to what's considered "normal" for recent history. When volume is unusually high or low, it highlights those moments on the chart.
It tells you:
• When volume is much higher than normal → market might be overheated or experiencing a buying/selling frenzy.
• When volume is much lower than normal → market might be quiet, potentially indicating lack of interest or indecision.
These conditions are marked visually, so you can instantly spot them.
💡 How It Helps You As a Trader
1. Spotting Exhaustion in Trends (Overbought Signals)
If a market is going up and suddenly volume spikes way above normal, it may mean:
• The move is getting crowded (lots of buyers are already in).
• A reversal or pullback could be near because smart money may be taking profits.
Trading idea: Wait for high-volume up bars, then look for price weakness to consider a short or exit.
2. Identifying Hidden Opportunities (Oversold Signals)
If price is falling but volume drops unusually low, it might mean:
• Panic is fading.
• Sellers are losing energy.
• A bounce or trend reversal could happen soon.
Trading idea: After a volume drop in a downtrend, watch for bullish price patterns or momentum shifts to consider a buy.
3. Confirming or Doubting Breakouts
Volume is critical for confirming breakouts:
• If price breaks a key level with strong volume, it's more likely to continue.
• A breakout without volume could be a fake-out.
This indicator highlights volume surges that can help you confirm such moves.
📈 How to Use It in Practice
• Combine it with candlestick patterns, support/resistance, or momentum indicators.
• Use the background colors or shapes as a visual cue to pause and analyze.
• Adjust the sensitivity to suit fast-moving markets (like crypto) or slow ones (like large-cap stocks).
Gold Power Hours StrategyStrategy: XAUUSD Gold Power Hours
(ideal for Tuesday to Thursday, 8:00–11:30 am NY and 1:30–3:30 pm NY)
Strategy Rules
1️⃣ Timeframe
Trade on 15 min and 1 hour charts
Confirm with the 4 h chart (trend direction)
2️⃣ Entry Conditions
✅ Main trend (confirmation):
50-period Simple Moving Average (SMA50) on the 4h chart
price above = only look for longs
price below = only look for shorts
✅ Momentum (confirmation):
RSI(14) on the 15 min chart
above 55 = bullish strength
below 45 = bearish strength
✅ Volume (validation):
Increasing volume (bar higher than previous) during NY open (8–9 am) or at 1:30 pm
confirms institutional interest
3️⃣ Entry Setup
🟢 Longs (buys):
Price above 4h SMA50
15 min RSI > 55
break of previous resistance (e.g., last hour’s high)
rising volume on the entry candle
👉 Enter on breakout + 2 pips of margin
🔴 Shorts (sells):
Price below 4h SMA50
15 min RSI < 45
break of previous support
rising volume on the entry candle
👉 Enter on breakout – 2 pips of margin
4️⃣ Trade Exits / Management
✅ Take profit (TP):
2 × the risk taken (e.g., SL 20 pips → TP 40 pips)
or the next significant support/resistance on H1
✅ Stop loss (SL):
below the last impulse candle (for longs)
or above the last impulse candle (for shorts)
minimum 15–20 pips to avoid stop hunts
✅ Break-even
move SL to entry point once +15 pips profit is reached
5️⃣ Additional Filters
✅ Avoid trading during red news (NFP, FOMC) until the first spike finishes.
✅ Avoid trading outside these windows:
8:00–11:30 am NY
1:30–3:30 pm NY
-----------
Estrategia: XAUUSD Gold Power Hours
(ideal para martes a jueves, 8:00 – 11:30 am NY y 1:30 – 3:30 pm NY)
Reglas de la estrategia
1️⃣ Marco temporal
Operar en gráficos de 15 min y 1 hora
Confirmaciones con gráfico de 4 h (dirección de tendencia)
2️⃣ Condiciones de entrada
✅ Tendencia principal (confirmación):
Media Móvil Simple de 50 (SMA50) en gráfico 4h
precio por encima = solo buscar compras
precio por debajo = solo buscar ventas
✅ Momentum (confirmación):
RSI(14) en gráfico de 15 min
sobre 55 = fuerza alcista
debajo de 45 = fuerza bajista
✅ Volumen (validación):
Volumen creciente (barra más alta que la anterior) en la apertura NY (8–9 am) o a la 1:30 pm
confirma que hay interés institucional
3️⃣ Setup de entrada
🟢 Largos (compras):
Precio arriba de SMA50 4h
RSI 15 min > 55
rompimiento de resistencia previa (ej. alto de la última hora)
volumen creciente en la vela de entrada
👉 Entrada en rompimiento + 2 pips de margen
🔴 Cortos (ventas):
Precio debajo de SMA50 4h
RSI 15 min < 45
rompimiento de soporte previo
volumen creciente en la vela de entrada
👉 Entrada en rompimiento – 2 pips de margen
4️⃣ Salidas / gestión del trade
✅ Take profit (TP):
2 × riesgo asumido (por ejemplo, SL 20 pips → TP 40 pips)
o siguiente soporte/resistencia mayor en H1
✅ Stop loss (SL):
debajo de la última vela de impulso (para compras)
o encima de la última vela de impulso (para ventas)
mínimo 15–20 pips para evitar barridas
✅ Break-even
mover el SL a punto de entrada cuando se alcance +15 pips de ganancia
5️⃣ Filtros adicionales
✅ Evita operar durante noticias rojas (NFP, FOMC) hasta que el primer spike termine.
✅ Evita operar fuera de las ventanas:
8:00 – 11:30 am NY
1:30 – 3:30 pm NY
Day of Week HighlighterThis Indicator Helps Indian Traders or Any Traders to see Charts Days Highlights in their Charts..
AshishBediSPLThis Pine Script indicator, "AshishBediSPL," is designed to help you visualize and analyze the combined premium of a short straddle strategy using Call and Put options. It fetches real-time and historical data for your chosen index or stock (NIFTY, BANKNIFTY, FINNIFTY, MIDCPNIFTY, SENSEX, BANKEX, or RELIANCE) and a specified expiry date and strike price.
You can opt to view the combined premium of both Call and Put options, or analyze just the Call or Put premium individually. The indicator then allows you to overlay and generate trading signals based on a selection of popular technical indicators, including:
EMA Crossover: Identify trend changes with configurable fast and slow Exponential Moving Averages.
Supertrend: Determine the prevailing trend direction and potential reversal points.
VWAP (Volume Weighted Average Price): Track the average price traded based on volume, resetting daily.
RSI (Relative Strength Index): Gauge momentum and potential overbought/oversold conditions (note: RSI buy/sell logic is set to trigger on overbought/oversold levels, which can be interpreted for contrarian or trend-following strategies depending on your approach).
SMA (Simple Moving Average): Smooth price data to identify support and resistance.
The indicator plots the combined premium as a dynamic line, changing color based on its opening and closing values. Buy and Sell signals are clearly marked on the chart, and you can set up alerts to notify you of these trading opportunities.
This tool is ideal for traders looking to monitor straddle premiums and integrate multiple indicator-based signals into their analysis.
CLMM Vault策略回测 (专业版) v5Explanation of the CLMM (Concentrated Liquidity - Market Maker) Strategy Backtesting Model Developed for the Sui Chain Vaults Protocol
Why Are We Doing This?
Conducting strategy backtesting is a crucial step for us to make data-driven decisions, validate the feasibility of strategies, and manage potential risks before committing real funds and significant development resources. A strategy that appears to have a high APY may perform entirely differently once real-world frictional costs (such as rebalancing fees and slippage) are deducted. The goal of this backtesting model is to quickly and cost-effectively identify which strategy parameter combinations have the potential to be profitable and which ones pose risks before formal development, thereby avoiding significant losses and providing data support for the project's direction.
Core Features of the Backtesting Model
We have built a "pro version" (v5) strategy simulator using TradingView's Pine Script. It can quickly simulate the core performance of our auto-compounding and rebalancing Vaults on historical price data, with the following main features:
Auto-Compounding: Continuously adds the generated fee income to the principal based on the set profit range (e.g., 0.01%).
Auto-Rebalancing: Simulates automatic rebalancing actions when the price exceeds the preset profit range and deducts the corresponding costs.
Smart Filtering Mechanism: To make the simulation closer to our ideal "smart" decision-making, it integrates three freely combinable filtering mechanisms:
Buffer Zone: Tolerates minor and temporary breaches of the profit range to avoid unnecessary rebalancing.
Breakout Confirmation: Requires the price to be in the trigger zone for N consecutive candles to confirm a breakout, filtering out market noise from "false breakouts."
Time Cooldown: Enforces a minimum time interval between two rebalances to prevent value-destroying high-frequency trading in extreme market conditions.
Important: Simplifications and Assumptions of the Model
To quickly prototype and iterate on the TradingView platform, we have made some key simplifications to the model.
A fully accurate backtest would require a deep simulation of on-chain liquidity pools (Pool Pair), calculating the price impact (Slippage) and impermanent loss (IL) caused by each rebalance on the pool. Since TradingView cannot access real-time on-chain liquidity data, we have made the following simplifications:
Simplified Rebalancing Costs: Instead of simulating real transaction slippage, we use a unified input parameter of single rebalance cost (%) to "bundle" and approximate the total of Gas fees, slippage, and realized impermanent loss.
Simplified Fee Income: Instead of calculating fees based on real-time trading volume, we directly input an average fee annualized return (%) as the core income assumption for our strategy.
How to Use and Test
Team members can load this script and test different strategies by adjusting the input parameters on the panel. The most critical parameters include: position profit range, average fee annualized return, single rebalance cost, and the switches and corresponding values of the above three smart filters.
Previous 2 Days High/LowCan you give me a summary of this indicator
The "Previous 2 Days High/Low" indicator, written in Pine Script v5 for TradingView, plots horizontal lines representing the combined high and low prices of the previous two trading days on a chart. Here's a summary of its functionality, purpose, and key features:
Purpose
The indicator helps traders identify significant price levels by displaying the highest high and lowest low from the previous two days, which can act as potential support or resistance levels. These levels are plotted as lines that extend across the current trading day, making it easier to visualize key price zones for trading decisions.
Key Features
Calculates Combined High and Low:
Retrieves the high and low prices of the previous day and the day before using request.security on the daily timeframe ("D").
Computes the combined high as the maximum of the two days' highs and the combined low as the minimum of the two days' lows.
Dynamic Line Plotting:
Draws two horizontal lines:
Red Line: Represents the combined high, plotted at the highest price of the previous two days.
Green Line: Represents the combined low, plotted at the lowest price of the previous two days.
Lines are created at the start of a new trading day and extended to the right edge of the chart using line.set_x2, ensuring they span the entire current day.
Labels for Clarity:
Adds labels to the right of the chart, displaying the exact price values of the combined high ("Combined High: ") and combined low ("Combined Low: ").
Labels are updated to move with the lines, maintaining alignment at the current bar.
Clutter Prevention:
Deletes old lines and labels at the start of each new trading day to avoid overlapping or excessive objects on the chart.
Dynamic Requests:
Uses dynamic_requests=true in the indicator() function to allow request.security calls within conditional blocks (if ta.change(time("D"))), enabling daily data retrieval within the script's logic.
ORB Screener-Multiple Indicators [Marin adjusted]ORB screener for multiple instruments. it needs just the customization of time/ timezone.
Bollinger Bands Entry/Exit ThresholdsBollinger Bands Entry/Exit Thresholds
Author of enhancements: chuckaschultz
Inspired and adapted from the original 'Bollinger Bands Breakout Oscillator' by LuxAlgo
Overview
Pairs nicely with Contrarian 100 MA
The Bollinger Bands Entry/Exit Thresholds is a powerful momentum-based indicator designed to help traders identify potential entry and exit points in trending or breakout markets. By leveraging Bollinger Bands, this indicator quantifies price deviations from the bands to generate bullish and bearish momentum signals, displayed as an oscillator. It includes customizable entry and exit signals based on user-defined thresholds, with visual cues plotted either on the oscillator panel or directly on the price chart.
This indicator is ideal for traders looking to capture breakout opportunities or confirm trend strength, with flexible settings to adapt to various markets and trading styles.
How It Works
The Bollinger Bands Entry/Exit Thresholds calculates two key metrics:
Bullish Momentum (Bull): Measures the extent to which the price exceeds the upper Bollinger Band, expressed as a percentage (0–100).
Bearish Momentum (Bear): Measures the extent to which the price falls below the lower Bollinger Band, also expressed as a percentage (0–100).
The indicator generates:
Long Entry Signals: Triggered when the bearish momentum (bear) crosses below a user-defined Long Threshold (default: 40). This suggests weakening bearish pressure, potentially indicating a reversal or breakout to the upside.
Exit Signals: Triggered when the bullish momentum (bull) crosses below a user-defined Sell Threshold (default: 80), indicating a potential reduction in bullish momentum and a signal to exit long positions.
Signals are visualized as tiny colored dots:
Long Entry: Blue dots, plotted either at the bottom of the oscillator or below the price bar (depending on user settings).
Exit Signal: White dots, plotted either at the top of the oscillator or above the price bar.
Calculation Methodology
Bollinger Bands:
A user-defined Length (default: 14) is used to calculate an Exponential Moving Average (EMA) of the source price (default: close).
Standard deviation is computed over the same length, multiplied by a user-defined Multiplier (default: 1.0).
Upper Band = EMA + (Standard Deviation × Multiplier)
Lower Band = EMA - (Standard Deviation × Multiplier)
Bull and Bear Momentum:
For each bar in the lookback period (length), the indicator calculates:
Bullish Momentum: The sum of positive deviations of the price above the upper band, normalized by the total absolute deviation from the upper band, scaled to a 0–100 range.
Bearish Momentum: The sum of positive deviations of the price below the lower band, normalized by the total absolute deviation from the lower band, scaled to a 0–100 range.
Formula:
bull = (sum of max(price - upper, 0) / sum of abs(price - upper)) * 100
bear = (sum of max(lower - price, 0) / sum of abs(lower - price)) * 100
Signal Generation:
Long Entry: Triggered when bear crosses below the Long Threshold.
Exit: Triggered when bull crosses below the Sell Threshold.
Settings
Length: Lookback period for EMA and standard deviation (default: 14).
Multiplier: Multiplier for standard deviation to adjust Bollinger Band width (default: 1.0).
Source: Input price data (default: close).
Long Threshold: Bearish momentum level below which a long entry signal is generated (default: 40).
Sell Threshold: Bullish momentum level below which an exit signal is generated (default: 80).
Plot Signals on Main Chart: Option to display entry/exit signals on the price chart instead of the oscillator panel (default: false).
Style:
Bullish Color: Color for bullish momentum plot (default: #f23645).
Bearish Color: Color for bearish momentum plot (default: #089981).
Visual Features
Bull and Bear Plots: Displayed as colored lines with gradient fills for visual clarity.
Midline: Horizontal line at 50 for reference.
Threshold Lines: Dashed green line for Long Threshold and dashed red line for Sell Threshold.
Signal Dots:
Long Entry: Tiny blue dots (below price bar or at oscillator bottom).
Exit: Tiny white dots (above price bar or at oscillator top).
How to Use
Add to Chart: Apply the indicator to your TradingView chart.
Adjust Settings: Customize the Length, Multiplier, Long Threshold, and Sell Threshold to suit your trading strategy.
Interpret Signals:
Enter a long position when a blue dot appears, indicating bearish momentum dropping below the Long Threshold.
Exit the long position when a white dot appears, indicating bullish momentum dropping below the Sell Threshold.
Toggle Plot Location: Enable Plot Signals on Main Chart to display signals on the price chart for easier integration with price action analysis.
Combine with Other Tools: Use alongside other indicators (e.g., trendlines, support/resistance) to confirm signals.
Notes
This indicator is inspired by LuxAlgo’s Bollinger Bands Breakout Oscillator but has been enhanced with customizable entry/exit thresholds and signal plotting options.
Best used in conjunction with other technical analysis tools to filter false signals, especially in choppy or range-bound markets.
Adjust the Multiplier to make the Bollinger Bands wider or narrower, affecting the sensitivity of the momentum calculations.
Disclaimer
This indicator is provided for educational and informational purposes only.
Previous Day/Week/Month - High/Lows + Open/Close (RC)Its an indicator marking previous day and previous week and last month's high, low open, close.
Ticker Pulse Meter + Fear EKG StrategyDescription
The Ticker Pulse Meter + Fear EKG Strategy is a technical analysis tool designed to identify potential entry and exit points for long positions based on price action relative to historical ranges. It combines two proprietary indicators: the Ticker Pulse Meter (TPM), which measures price positioning within short- and long-term ranges, and the Fear EKG, a VIX-inspired oscillator that detects extreme market conditions. The strategy is non-repainting, ensuring signals are generated only on confirmed bars to avoid false positives. Visual enhancements, such as optional moving averages and Bollinger Bands, provide additional context but are not core to the strategy's logic. This script is suitable for traders seeking a systematic approach to capturing momentum and mean-reversion opportunities.
How It Works
The strategy evaluates price action using two key metrics:
Ticker Pulse Meter (TPM): Measures the current price's position within short- and long-term price ranges to identify momentum or overextension.
Fear EKG: Detects extreme selling pressure (akin to "irrational selling") by analyzing price behavior relative to historical lows, inspired by volatility-based oscillators.
Entry signals are generated when specific conditions align, indicating potential buying opportunities. Exits are triggered based on predefined thresholds or partial position closures to manage risk. The strategy supports customizable lookback periods, thresholds, and exit percentages, allowing flexibility across different markets and timeframes. Visual cues, such as entry/exit dots and a position table, enhance usability, while optional overlays like moving averages and Bollinger Bands provide additional chart context.
Calculation Overview
Price Range Calculations:
Short-Term Range: Uses the lowest low (min_price_short) and highest high (max_price_short) over a user-defined short lookback period (lookback_short, default 50 bars).
Long-Term Range: Uses the lowest low (min_price_long) and highest high (max_price_long) over a user-defined long lookback period (lookback_long, default 200 bars).
Percentage Metrics:
pct_above_short: Percentage of the current close above the short-term range.
pct_above_long: Percentage of the current close above the long-term range.
Combined metrics (pct_above_long_above_short, pct_below_long_below_short) normalize price action for signal generation.
Signal Generation:
Long Entry (TPM): Triggered when pct_above_long_above_short crosses above a user-defined threshold (entryThresholdhigh, default 20) and pct_below_long_below_short is below a low threshold (entryThresholdlow, default 40).
Long Entry (Fear EKG): Triggered when pct_below_long_below_short crosses under an extreme threshold (orangeEntryThreshold, default 95), indicating potential oversold conditions.
Long Exit: Triggered when pct_above_long_above_short crosses under a profit-taking level (profitTake, default 95). Partial exits are supported via a user-defined percentage (exitAmt, default 50%).
Non-Repainting Logic: Signals are calculated using data from the previous bar ( ) and only plotted on confirmed bars (barstate.isconfirmed), ensuring reliability.
Visual Enhancements:
Optional moving averages (SMA, EMA, WMA, VWMA, or SMMA) and Bollinger Bands can be enabled for trend context.
A position table displays real-time metrics, including open positions, Fear EKG, and Ticker Pulse values.
Background highlights mark periods of high selling pressure.
Entry Rules
Long Entry:
TPM Signal: Occurs when the price shows strength relative to both short- and long-term ranges, as defined by pct_above_long_above_short crossing above entryThresholdhigh and pct_below_long_below_short below entryThresholdlow.
Fear EKG Signal: Triggered by extreme selling pressure, when pct_below_long_below_short crosses under orangeEntryThreshold. This signal is optional and can be toggled via enable_yellow_signals.
Entries are executed only on confirmed bars to prevent repainting.
Exit Rules
Long Exit: Triggered when pct_above_long_above_short crosses under profitTake.
Partial exits are supported, with the strategy closing a user-defined percentage of the position (exitAmt) up to four times per position (exit_count limit).
Exits can be disabled or adjusted via enable_short_signal and exitPercentage settings.
Inputs
Backtest Start Date: Defines the start of the backtesting period (default: Jan 1, 2017).
Lookback Periods: Short (lookback_short, default 50) and long (lookback_long, default 200) periods for range calculations.
Resolution: Timeframe for price data (default: Daily).
Entry/Exit Thresholds:
entryThresholdhigh (default 20): Threshold for TPM entry.
entryThresholdlow (default 40): Secondary condition for TPM entry.
orangeEntryThreshold (default 95): Threshold for Fear EKG entry.
profitTake (default 95): Exit threshold.
exitAmt (default 50%): Percentage of position to exit.
Visual Options: Toggle for moving averages and Bollinger Bands, with customizable types and lengths.
Notes
The strategy is designed to work across various timeframes and assets, with data sourced from user-selected resolutions (i_res).
Alerts are included for long entry and exit signals, facilitating integration with TradingView's alert system.
The script avoids repainting by using confirmed bar data and shifted calculations ( ).
Visual elements (e.g., SMA, Bollinger Bands) are inspired by standard Pine Script practices and are optional, not integral to the core logic.
Usage
Apply the script to a chart, adjust input settings to suit your trading style, and use the visual cues (entry/exit dots, position table) to monitor signals. Enable alerts for real-time notifications.
Designed to work best on Daily timeframe.
Anchored EMA with Timeframe SelectionLet's you choose a date and time to start tracking EMAs. I am attempting to use it in tandem with Wyckoff Analysis to "indicate" a BUEC or Fall through ice.... Not sure if it works but publishing for the fun of it.