Gold ORB Strategy (15-min Range, 5-min Entry)The Gold ORB (Opening Range Breakout) Strategy is designed for day traders looking to capitalize on the price action in the early part of the trading day, specifically using a 15-minute range for identifying the opening range and a 5-minute timeframe for breakout entries. The strategy trades the Gold market (XAU/USD) during the New York session.
Opening Range: The strategy defines the Opening Range (ORB) between 9:30 AM EST and 9:45 AM EST using the highest and lowest points during this 15-minute window.
Breakout Entries: The strategy enters trades when the price breaks above the ORB high for a long position or below the ORB low for a short position. It waits for a 5-minute candle close outside the range before entering a trade.
Stop Loss and Take Profit: The stop loss is placed at 50% of the ORB range, and the take profit is set at twice the ORB range (1:2 risk-reward ratio).
Time Window: The strategy only executes trades before 12:00 PM EST, avoiding late-day market fluctuations and consolidations.
Educational
Niveles decimalesCREATOR: SANTIAGO CANO
this indicator marks decimals in 10s on a graph for easier reading in assets such as indices or raw materials
Collatz Conjecture - DolphinTradeBot1️⃣ Overview
Every positive number follows its own unique path to reach 1 according to the Collatz rule.
Some numbers reach the end quickly and directly.
Others rise significantly before crashing down sharply.
Some get stuck within a certain range for a while before finally reaching 1.
Each number follows a different pattern — the number of steps it takes, how high it climbs, or which values it passes through cannot be predicted in advance.
This is a structure that appears chaotic but ultimately leads to order:
Every number reaches 1, but the way it gets there is entirely uncertain.
2️⃣ How Is It Work?
The rule is simple:
▪️ If the number is even → divide it by two.
▪️ If it’s odd → multiply it by three and add one.
Repeat this process at each step.
Example :
Let’s say the starting number is 7:
7 → 22 → 11 → 34 → 17 → 52 → 26 → 13 → 40 → 20 → 10 → 5 → 16 → 8 → 4 → 2 → 1
It reaches 1 in 17 steps.
And from there, it always enters the same cycle:
4 → 2 → 1 → 4 → 2 → 1...
3️⃣ Why Is It Worth Learning?
🎯 This indicator isn’t just mathematical fun—it’s a thought experiment for those who dare to question market behavior.
▪️ It’s fun.
Watching numbers behave in unpredictable ways from a simple rule set is surprisingly enjoyable.
▪️ It shows how hard it is to teach a computer what randomness really is .
The Collatz process can be used to simulate chaotic behavior and may even inspire creative ways to introduce complexity into your code.
▪️ It makes you think — especially in financial markets.
The patternless, yet rule-based structure of Collatz can help train your mind to recognize that not all unpredictability is random. It’s a great mental model for navigating complex systems like price action.
▪️ Just like price movements in financial markets, this ancient problem remains unsolved.
Despite its simplicity, the Collatz conjecture has resisted proof for decades — a reminder that even the most basic-looking systems can hide deep complexity.
4️⃣ How To Use?
Super easy — in the indicator’s settings, there’s just one input field.
Enter any positive number, and you’ll see the pattern it follows on its way to 1.
You can also observe how many steps it takes and which values it visits in the info box at the top center of the chart.
5️⃣ Some Examples
You Can Observe the Chaos in the Following Examples⤵️
For Input Number → 12
For Input Number → 13
For Input Number → 14
For Input Number → 32768
For Input Number → 47
EMA TrendEMA Trend is a simple yet effective technical analysis tool that plots three Exponential Moving Averages (EMAs) — Fast, Medium, and Slow — on the price chart to help identify trend direction and strength.
The Fast EMA (default: 10) and Medium EMA (default: 30) are used together to define short- to medium-term trend shifts. When the Fast EMA crosses above the Medium EMA, the indicator fills the area between them with a green color to highlight bullish momentum. Conversely, when the Fast EMA falls below the Medium EMA, the fill turns orange to indicate bearish pressure. The color fill provides a quick visual cue for potential trend changes or continuation.
The Slow EMA (default: 100) serves as a longer-term trend baseline, helping traders align their strategy with the broader market direction.
Aetherius Trend"Support indicator for trend-following with 6 configurable moving averages and a Hilo Activator for potential entry and exit points."
Ultimate Scalping DashboardIncluded Tools (Combo Strategy):
EMA 9 / 21 / 50 – for trend direction and momentum
VWAP – for intraday bias
Stochastic RSI – for overbought/oversold + reversals
Volume Spike Detector – for entry confirmation
SuperTrend – to simplify entry/exit decisions
You’ll see:
EMAs for trend
VWAP to confirm bias
SuperTrend trail
Buy/Sell signals based on momentum + volume + trend alignment
Bollinger Band Expansion with EMAsCall Entry above Purple Candle's High, Stop loss previous candle low.
Sell Entry Below Grey Candle's Low, Stop loss previous candle High.
ryantrad3s session highs and lowsbecome profitable with this.
pwease subscribe to my youtube aswell: ryantrad3s
Market Open & Pre-Open Linesversion 1.0 2025-04-23
Stated vertical line for market open and pre-market open. Market option include US, EU, UK, JP and AU. This line do auto-defined during daylight saving time. This help for those trade during market open and benefit for those doing backtest on it.
WVF Spike + DMI Alternating Alerts (Auto 1m & 5m) w/ Mimi LabelsMimi Trend Signal
Buy/Sell alerts based on WVF spike + DMI crossover for 1m/5m charts
BRKT SMART - VWAPVolumeCVDOI (Agg BINANCE OKX)This script is a powerful breakout detection tool designed to capture real market intent by combining VWAP structure, volume surges, and derivatives market data from multiple top-tier exchanges (BINANCE + OKX).
It identifies:
✅ True breakouts with confirmation from volume, Open Interest delta (OIΔ), and directional aggression (CVD)
⚠️ Fake breakouts (traps) where the market lacks new commitment (negative OIΔ and counter-pressure)
🔁 Retests after breakout to help time re-entries or add-ons
🔍 Key Features:
🧠 Aggregated OI & Volume from BINANCE and OKX for a more accurate picture of institutional activity
⚙️ Fully customizable thresholds for volume, OIΔ, and CVD delta
🎯 Optional cooldown between signals to avoid noise
📉 Visual markers for:
Breakouts (BRK↑ / BRK↓)
Traps (FAL↑ / FAL↓)
Retests (Ret↑ / Ret↓)
🟦 VWAP as central structure reference
🔧 Parameters You Can Adjust:
Volume strength (x times the average)
Minimum/maximum thresholds for OIΔ and CVD
Cooldown time between signals
Pullback detection window
KI_30wmaWeekly EMA with Label
This indicator plots the Weekly EMA on any timeframe chart and shows a clean label for easy reference. Useful for tracking higher timeframe trend support or resistance zones.
Z-Score Normalized by Price ChangeZscoee normalizedd to price change grgzergzerg
zer
gz
erg
e
rg
zre
tg
zergzergarg
Zen MIG Reversal V1**Zen MIG Reversal V1**
Zen MIG Reversal is a pattern-based indicator that highlights rare reversal setups.
It’s designed to support traders in visually identifying potential turning points, especially following strong momentum or gap-style moves.
**How it works:**
- **Bullish Reversal:**
Detects 3 consecutive bullish candles. The third bar must have a low above the high of the first bar and below the 20 EMA. When this occurs, a light blue box is drawn across the 3-bar range, from high to the current bar’s low. A blue arrow appears below the prior bar.
- **Bearish Reversal:**
Detects 3 consecutive bearish candles. The third bar must have a high below the low of the first bar and above the 20 EMA. A light red box is drawn from low to the current bar’s high. A red arrow appears above the prior bar.
- Optional settings allow you to:
- Show or hide the EMA line
- Toggle the arrows
- Adjust smoothing settings for context
**Purpose:**
It’s best used for discretionary analysis, journaling, or studying price behavior in momentum-driven environments.
**Disclaimer:**
This script is for educational and informational purposes only. It does not provide financial advice or trade recommendations. Always backtest and use proper risk management before applying any indicator to live trading.
Horizontal Price TableOverview:
This script displays a dynamic price table on your chart, showing real-time prices and daily percentage changes for up to 7 user-defined tickers. You can customize both which tickers are shown and how many are visible, all through the settings panel.
How it works (Step-by-Step):
User-Defined Tickers:
The script provides input fields for up to 7 tickers using input.symbol(). You can track stocks, indexes, ETFs, crypto, or futures — anything supported by TradingView.
Choose How Many to Display:
An additional dropdown lets you choose how many of the 7 tickers to actually display (between 1 and 7). This gives you control over screen space and focus.
Market Data Fetching:
For each displayed ticker, the script fetches:
The current day’s closing price (close)
The previous day’s closing price (close )
This data is pulled using request.security() on the daily timeframe (1D).
% Change Calculation:
The script calculates the daily percentage change using:
(Current Price−Previous Close)/Previous Close×100(Current Price−Previous Close)/Previous Close×100
Cleaned Ticker Names:
Ticker symbols often include an exchange prefix like NASDAQ:AAPL. The script automatically removes anything before the colon (:), so only the clean symbol (e.g., AAPL) is shown in the table.
Table Display:
A visual table appears at the top-center of your chart, showing:
Row 1: Ticker symbol (cleaned)
Row 2: Current price (rounded to 2 decimals)
Row 3: Daily % change (green for gains, red for losses)
Customization:
You can choose the background color of the table.
Ticker names appear in white text with a gray background.
% change is color-coded: green for positive, red for negative.
Why Use This Script?
Track multiple tickers at once without leaving your chart.
Clean, customizable layout.
Useful for monitoring watchlists, portfolios, or related markets.
Tips:
Combine this with your favorite indicators for a personalized dashboard.
Works great on any chart or timeframe.
Ensure the tickers entered are valid on TradingView (e.g., SPY, BTCUSD, NQ1!, etc.).
Supertrend + EMA Strategy By Arvind DodkeThis strategy is based on Supertrand and EMA. You can backtest.
Nasan Market Phase ClassifierThe Nasan Market Phase Classifier indicator designed to classify market phases using volume, volatility (or momentum), and statistical analysis. Here's a summary of how it works and what it does:
🔍 Core Concept
This indicator classifies the market into four phases based on volume and ATR (or optionally momentum):
High Volume / High ATR or Momentum (HV/HATR): Strong Trend
Low Volume / High ATR or Momentum (LV/HATR): False Breakout / Exhaustion
High Volume / Low ATR or Momentum (HV/LATR): Consolidation
Low Volume / Low ATR or Momentum (LV/LATR): Stagnation
⚙️ Key Settings
Short-Term Length: Used for the active market phase.
Long-Term Length: Used as the expected/benchmark distribution.
Use Momentum: Replaces volatility (ATR) with momentum (custom ROC-based formula).
Use Fixed Alpha: Toggles adaptive vs. fixed weighting in scoring (this is based on variation of the volatility - standard deviation of true range).
📊 How It Works
Volatility or Momentum Scoring:
Uses ATR-based or Momentum-based score depending on the setting.
Applies weighing (alpha) which is based on variability of the volatility itself.
Market Phase Count:
Measures how often each of the 4 volume/volatility combinations occur in:
Short-term window (observed phase)
Long-term window (expected distribution)
Category Proportions:
Calculates percentage share of each category (e.g., % time in HV/HATR).
Plots these on chart to visually see market phase dominance (can be used for screening of pine screener).
Statistical Testing:
IQV (Index of Qualitative Variation): Measures phase diversity (0 = focused, 1 = mixed).
Chi-Squared Test: Compares current vs. historical phase distribution.
Z-Test: Tests if current phase dominance is statistically significant.
📋 Outputs
On-Chart Plots and Tabels:
Strong Trend, False Breakout/Exhaustion, Consolidation, Stagnation
Strength Quality Plot: Trend strength normalized by IQV.
Dynamic Table (Top Right):
Shows each phase’s proportion (the current phase cell is highlighted in yellow), IQV, Chi² value, and current dominant phase. The current candle classification (text) is in purple.
Highlights the dominant phase classification and color-codes significance (the cell highlighted in green highly confident about the classification, orange intermediate confidence and red low confidence). This color coding is not just based on statistical significance it is based on IQV which takes into account how spread the proportions are.
🧠 Interpretation
A dominant HV/HATR phase with low IQV and high Z-Score indicates a strong and statistically significant trend.
High IQV suggests uncertainty or mixed market behavior.
Chi² spike indicates a shift from historical behavior can be used to see is the market behavior changing by changing the long term length say to 252 and short term length to 21 this will tell if the short term behavior is different from the past 252 day behavior.
Open - CSC Bars - 33 CSC Bars – Early Session Price Action Filter
This script detects when the first three bars of the RTH (Regular Trading Hours) session all move in the same direction — either all bullish or all bearish.
It’s a tool for price action traders who want to develop structured opening strategies by observing clean directional agreement at the session start. The indicator highlights the third bar when the sequence confirms directional bias.
🔍 How It Works:
Monitors the first three bars after the RTH session begins.
If all three bars are bullish, it highlights the third bar (same for bearish sequences).
No projections, signals, or entries—purely a visual tool to observe and study opening behavior.
🎯 Use Case:
This script is designed to help traders build and test opening-based frameworks by identifying potential trend bias early in the day.
Note: This is an open-source utility script with a simple function. It does not generate signals or predictions and is intended to assist with observation and discretionary strategy building.
Prop Firm Business SimulatorThe prop firm business simulator is exactly what it sounds like. It's a plug and play tool to test out any tradingview strategy and simulate hypothetical performance on CFD Prop Firms.
Now what is a modern day CFD Prop Firm?
These companies sell simulated trading challenges for a challenge fee. If you complete the challenge you get access to simulated capital and you get a portion of the profits you make on those accounts payed out.
I've included some popular firms in the code as presets so it's easy to simulate them. Take into account that this info will likely be out of date soon as these prices and challenge conditions change.
Also, this tool will never be able to 100% simulate prop firm conditions and all their rules. All I aim to do with this tool is provide estimations.
Now why is this tool helpful?
Most traders on here want to turn their passion into their full-time career, prop firms have lately been the buzz in the trading community and market themselves as a faster way to reach that goal.
While this all sounds great on paper, it is sometimes hard to estimate how much money you will have to burn on challenge fees and set realistic monthly payout expectations for yourself and your trading. This is where this tool comes in.
I've specifically developed this for traders that want to treat prop firms as a business. And as a business you want to know your monthly costs and income depending on the trading strategy and prop firm challenge you are using.
How to use this tool
It's quite simple you remove the top part of the script and replace it with your own strategy. Make sure it's written in same version of pinescript before you do that.
//--$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$--//--------------------------------------------------------------------------------------------------------------------------$$$$$$
//--$$$$$--Strategy-- --$$$$$$--// ******************************************************************************************************************************
//--$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$--//--------------------------------------------------------------------------------------------------------------------------$$$$$$
length = input.int(20, minval=1, group="Keltner Channel Breakout")
mult = input(2.0, "Multiplier", group="Keltner Channel Breakout")
src = input(close, title="Source", group="Keltner Channel Breakout")
exp = input(true, "Use Exponential MA", display = display.data_window, group="Keltner Channel Breakout")
BandsStyle = input.string("Average True Range", options = , title="Bands Style", display = display.data_window, group="Keltner Channel Breakout")
atrlength = input(10, "ATR Length", display = display.data_window, group="Keltner Channel Breakout")
esma(source, length)=>
s = ta.sma(source, length)
e = ta.ema(source, length)
exp ? e : s
ma = esma(src, length)
rangema = BandsStyle == "True Range" ? ta.tr(true) : BandsStyle == "Average True Range" ? ta.atr(atrlength) : ta.rma(high - low, length)
upper = ma + rangema * mult
lower = ma - rangema * mult
//--Graphical Display--// *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-$$$$$$
u = plot(upper, color=#2962FF, title="Upper", force_overlay=true)
plot(ma, color=#2962FF, title="Basis", force_overlay=true)
l = plot(lower, color=#2962FF, title="Lower", force_overlay=true)
fill(u, l, color=color.rgb(33, 150, 243, 95), title="Background")
//--Risk Management--// *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-$$$$$$
riskPerTradePerc = input.float(1, title="Risk per trade (%)", group="Keltner Channel Breakout")
le = high>upper ? false : true
se = lowlower
strategy.entry('PivRevLE', strategy.long, comment = 'PivRevLE', stop = upper, qty=riskToLots)
if se and upper>lower
strategy.entry('PivRevSE', strategy.short, comment = 'PivRevSE', stop = lower, qty=riskToLots)
The tool will then use the strategy equity of your own strategy and use this to simulat prop firms. Since these CFD prop firms work with different phases and payouts the indicator will simulate the gains until target or max drawdown / daily drawdown limit gets reached. If it reaches target it will go to the next phase and keep on doing that until it fails a challenge.
If in one of the phases there is a reward for completing, like a payout, refund, extra it will add this to the gains.
If you fail the challenge by reaching max drawdown or daily drawdown limit it will substract the challenge fee from the gains.
These gains are then visualised in the calendar so you can get an idea of yearly / monthly gains of the backtest. Remember, it is just a backtest so no guarantees of future income.
The bottom pane (non-overlay) is visualising the performance of the backtest during the phases. This way u can check if it is realistic. For instance if it only takes 1 bar on chart to reach target you are probably risking more than the firm wants you to risk. Also, it becomes much less clear if daily drawdown got hit in those high risk strategies, the results will be less accurate.
The daily drawdown limit get's reset every time there is a new dayofweek on chart.
If you set your prop firm preset setting to "'custom" the settings below that are applied as your prop firm settings. Otherwise it will use one of the template by default it's FTMO 100K.
The strategy I'm using as an example in this script is a simple Keltner Channel breakout strategy. I'm using a 0.05% commission per trade as that is what I found most common on crypto exchanges and it's close to the commissions+spread you get on a cfd prop firm. I'm targeting a 1% risk per trade in the backtest to try and stay within prop firm boundaries of max 1% risk per trade.
Lastly, the original yearly and monthly performance table was developed by Quantnomad and I've build ontop of that code. Here's a link to the original publication:
That's everything for now, hope this indicator helps people visualise the potential of prop firms better or to understand that they are not a good fit for their current financial situation.
Bitcoin NUPL IndicatorThe Bitcoin NUPL (Net Unrealized Profit/Loss) Indicator is a powerful metric that shows the difference between Bitcoin's market cap and realized cap as a percentage of market cap. This indicator helps identify different market cycle phases, from capitulation to euphoria.
// How It Works
NUPL measures the aggregate profit or loss held by Bitcoin investors, calculated as:
```
NUPL = ((Market Cap - Realized Cap) / Market Cap) * 100
```
// Market Cycle Phases
The indicator automatically color-codes different market phases:
• **Deep Red (< 0%)**: Capitulation Phase - Most coins held at a loss, historically excellent buying opportunities
• **Orange (0-25%)**: Hope & Fear Phase - Early accumulation, price uncertainty and consolidation
• **Yellow (25-50%)**: Optimism & Anxiety Phase - Emerging bull market, increasing confidence
• **Light Green (50-75%)**: Belief & Denial Phase - Strong bull market, high conviction
• **Bright Green (> 75%)**: Euphoria & Greed Phase - Potential market top, historically good profit-taking zone
// Features
• Real-time NUPL calculation with customizable smoothing
• RSI indicator for additional momentum confirmation
• Color-coded background reflecting current market phase
• Reference lines marking key transition zones
• Detailed metrics table showing NUPL value, market sentiment, market cap, realized cap, and RSI
// Strategy Applications
• **Long-term investors**: Use extreme negative NUPL values (deep red) to identify potential bottoms for accumulation
• **Swing traders**: Look for transitions between phases for potential trend changes
• **Risk management**: Consider taking profits when entering the "Euphoria & Greed" phase (bright green)
• **Mean reversion**: Watch for overbought/oversold conditions when NUPL reaches historical extremes
// Settings
• **RSI Length**: Adjusts the period for RSI calculation
• **NUPL Smoothing Length**: Applies moving average smoothing to reduce noise
// Notes
• Premium TradingView subscription required for Glassnode and Coin Metrics data
• Best viewed on daily timeframes for macro analysis
• Historical NUPL extremes have often marked cycle bottoms and tops
• Use in conjunction with other indicators for confirmation
Rolling Beta against SPY📈 Pine Script Showcase: Rolling Beta Against SPY
Understanding how your favorite stock or ETF moves in relation to a benchmark like the S&P 500 can offer powerful insights into risk and exposure. This script calculates and visualizes the rolling beta of any asset versus the SPY ETF (which tracks the S&P 500).
🧠 What Is Beta?
Beta measures the sensitivity of an asset's returns to movements in the broader market. A beta of:
- 1.0 means the asset moves in lockstep with SPY,
- >1.0 indicates higher volatility than the market,
- <1.0 implies lower volatility or possible defensive behavior,
- <0 suggests inverse correlation (e.g., hedging instruments).
🧮 How It Works
This script computes rolling beta over a user-defined window (default = 60 periods) using classic linear regression math:
- Calculates daily returns for both the asset and SPY.
- Computes covariance between the two return streams.
- Divides by the variance of SPY returns to get beta.
⚙️ Customization
You can adjust the window size to control the smoothing:
- Shorter windows capture recent volatility changes,
- Longer windows give more stable, long-term estimates.
📊 Visual Output
The script plots the beta series dynamically, allowing you to observe how your asset’s correlation to SPY evolves over time. This is especially useful in regime-change environments or during major macroeconomic shifts.
💡 Use Cases
- Portfolio construction: Understand how your assets co-move with the market.
- Risk management: Detect when beta spikes—potentially signaling higher market sensitivity.
- Market timing: Use beta shifts to infer changing investor sentiment or market structure.
📌 Pro Tip: Combine this rolling beta with volatility, Sharpe ratio, or correlation tracking for a more robust factor-based analysis.
Ready to add a layer of quantitative insight to your chart? Add the script to your watchlist and start analyzing your favorite tickers against SPY today!
HTF FibonacciThis indicator displays Fibonacci lines for the selected previous HTF candle.
You can set its Fibs levels and colors.
HTF options: 15 minutes, 30 minutes, 1 hour, 2 hours, 4 hours and 1 day
ADX with Shaded ZoneThe ADX with Shaded Zone indicator is a momentum-based tool that visualizes trend strength using the Average Directional Index (ADX) along with the +DI and -DI lines. This indicator enhances the traditional ADX setup by adding a shaded zone between ADX levels 20 and 25, helping traders easily identify the transition area between non-trending and trending market conditions.
It plots:
+DI (Green): Positive Directional Indicator
−DI (Red): Negative Directional Indicator
ADX (Blue): Measures the strength of the trend
Shaded Zone: Highlights the indecisive range where ADX is below 25 (gray background between levels 20 and 25)
⚙️ How to Use:
✅ Trend Identification:
ADX < 20: Weak or no trend. Avoid trend-following strategies.
ADX 20–25 (Shaded Zone): Transition zone. Potential trend forming — stay cautious.
ADX > 25: Stronger trend. Favor trend-following strategies.
✅ Direction Confirmation:
If +DI > -DI and ADX > 25 → Uptrend confirmation.
If -DI > +DI and ADX > 25 → Downtrend confirmation.
Crossovers between +DI and -DI can be used as early signals.
✅ Shaded Zone Use:
The gray shaded area helps visually filter out low-trend strength conditions.
Useful for trend traders to wait before entering until ADX breaks above 25.