Gold Futures vs Spot (Candlestick + Line Overlay)📝 Script Description: Gold Futures vs Spot
This script was developed to compare the price movements between Gold Futures and Spot Gold within a specific time frame. The primary goals of this script are:
To analyze the price spread between Gold Futures and Spot
To identify potential arbitrage opportunities caused by price discrepancies
To assist in decision-making and enhance the accuracy of gold market analysis
🔧 Key Features:
Fetches price data from both Spot and Futures markets (from APIs or chart sources)
Converts and aligns data for direct comparison
Calculates the price spread (Futures - Spot)
Visualizes the spread over time or exports the data for further analysis
📅 Date Created:
🧠 Additional Notes:
This script is ideal for investors, gold traders, or analysts who want to understand the relationship between the Futures and Spot markets—especially during periods of high volatility. Unusual spreads may signal shifts in market sentiment or the actions of institutional players.
Forecasting
HTSS v7.1 Advanced [Mum & Formasyon Analizli]karma bir giriş çıkış kodu deniyorum bkalım hayırlısı :)
M.G.O Receptor RSIThis indicator adds to the traditional RSI two fields that make overprices areas of accumulation and distribution.
It is used together with the M.G.O (Matrix ON Charts) methodology as a signal receiver for the trader to make the decision to buy or sell after periodic wave analysis on the main chart.
Econometrica by [SS]This is Econometrica, an indicator that aims to bridge a big gap between the resources available for analysis of fundamental data and its impact on tickers and price action.
I have noticed a general dearth of available indicators that offer insight into how fundamentals impact a ticker and provide guidance on how they these economic factors influence ticker behaviour.
Enter Econometrica. Econometrica is a math based indicator that aims to co-integrate and model indicator price action in relation to critical economic metrics.
Econometrica supports the following US based economic data:
CPI
Non-Farm Payroll
Core Inflation
US Money Supply
US Central Bank Balance Sheet
GDP
PCE
Let's go over the functions of Econometrica.
Creating a Regression Cointegrated Model
The first thing Econometrica does is creates a co-integrated regression, as you see in the main chart, predicting ticker value ranges from fundamental economic data.
You can visualize this in the main chart above, but here are some other examples:
SPY vs Core Inflation:
BA vs PCE:
QQQ vs US Balance Sheet:
The band represents the anticipated range the ticker should theoretically fall in based on the underlying economic value. The indicator will breakdown the relationship between the economic indicator and the ticker more precisely. In the images above, you can see how there are some metrics provided, including Stationairty, lagged correlation, Integrated Correlation and R2. Let's discuss these very briefly:
Stationarity: checks to ensure that the relationship between the economic indicator and ticker is stationary. Stationary data is important for making unbiased inferences and projections, so having data that is stationary is valuable.
Lagged Correlation: This is a very interesting metric. Lagged correlation means whether there is a delay in the economic indicator and the response of the ticker. Typically, you will observed a lagged correlation between an economic indicator and price of a ticker, as it can take some time for economic changes to reach the market. This lagged correlation will provide you with how long it takes for the economic indicator to catch up with the ticker in months.
Integrated Correlation: This metric tells you how good of a fit the regression bands are in relation to the ticker price. A higher correlation, means the model is better at consistent and accurate information about the anticipated range for the ticker in relation to the economic indicator.
R2: Provides information on the variance and degree of model fit. A high R2 value means that the model is capable of explaining a large amount of variance between the economic indicator and the ticker price action.
Explaining the Relationship
Owning to the fact that the indicator is a bit on the mathy side (it has to be to do this kind of task), I have included ability for the indicator to explain and make suggestions based on the underlying data. It can assess the model's fit and make suggestions for tweaking. It can also explain the implications of the data being presented in the model.
Here is an example with QQQ and the US Balance Sheet:
This helps to simplify and interpret the results you are looking at.
Forecasting the Economic Indicator
In addition to assessing the economic indicator's impact on the ticker, the indicator is also capable of forecasting out the economic indicator over the next 25 releases.
Here is an example of the CPI forecast:
Overall use of the indicator
The indicator is meant to bridge the gap between Technical Analysis and Fundamental Analysis.
Any trader who is attune to fundamentals would benefit from this, as this provides you with objective data on how and to what extent fundamental and economic data impacts tickers.
It can help affirm hypothesis and dispel myths objectively.
It also omits the need from having to perform these types of analyses outside of Tradingview (i.e. in excel, R or Python), as you can get the data in just a few licks of enabling the indicator.
Conclusion
I have tried to make this indicator as user friendly as possible. Though it uses a lot of math, it is fairly straight forward to interpret.
The band plotted can be considered the fair market value or FMV of the ticker based on the underlying economic data, provided the indicator tells you that the relationship is significant (and it will blatantly give you this information verbatim, you don't have to interpret the math stuff).
This is US economic data only. It does not pull economic data from other countries. You can absolutely see how US economic data impacts other markets like the TSX, BANKNIFTY, NIFTY, DAX etc. but the indicator is only pulling US economic data.
That is it!
I hope you enjoy it and find this helpful!
Thanks everyone and safe trades as always 🚀🚀🚀
FiveFactorEdgeUses ATR14, TSI, RSI, Fast Stochastic and Slow Stochastic information to determine potential high and low price, trend strength and direction. The information ia easy to read, self-descriptive and color coded for quick reference. Since it incorporates 5 different elements it could be used by itself but as with any indicator it's highly recommended to use it with other tried and true indicators.
MACD Crossover + SAR + VOLUME💎 MACD Crossover + SAR + Volume | Professional Multi-Filter Signal Suite
This script is a highly customizable and professional trading tool designed for traders seeking precise and filtered buy/sell signals.
The system intelligently combines: ✔️ MACD crossovers (MACD line vs Signal line)
✔️ Parabolic SAR reversals
✔️ Optional volume strength filters
✔️ Smart candle confirmations
✔️ Dynamic signal delay mechanism
✔️ 🆕 RSI Level Filter (optional):
Restrict bullish/bearish signals only when RSI conditions are met:
Only bullish signals when RSI ≤ Lower Limit (default: 60)
Only bearish signals when RSI ≥ Upper Limit (default: 60)
Fully configurable RSI period and thresholds
✅ Features:
Multi-layer signal validation
Adaptive signal triggering via SAR or MACD crossover
Avoids signal spamming with built-in delay
Clean plotting of BUY / SELL signals directly on the chart
Fully customizable confirmations
Built-in alerts for automation or manual trading
📌 Usage Recommendation:
This tool is pre-configured for scalping and swing trading.
However, for longer-term or conservative investors, you can simply enable the RSI Level Filter checkbox to restrict signals based on RSI trend zone. This adds an extra layer of trend filtering suitable for more cautious entries.
HOB / GuGaApart from the standard support-resistance zones or FVGs, you can improve your trading strategies by identifying hidden support-resistance zones on the current timeframe.
Rochit SinghThe Rochit Singh Indicator is a technical analysis tool designed to help traders identify market trends, reversals, and potential entry or exit points. It combines multiple price action factors, momentum signals, and volatility metrics to provide a comprehensive view of market conditions. The indicator is tailored for various asset classes, including stocks, forex, and cryptocurrencies, making it a versatile addition to any trader’s toolkit.
Hossa SignalsHow It Works
The "Hossa Signals" indicator generates trading signals based on four distinct strategy modes:
Mode 1 & 2 (Counter Trade Strategies):
These modes trigger buy signals when the price falls below a moving average (SMA50 for Mode 1, SMA200 for Mode 2) combined with a low RSI (having been below 26), and sell signals when the price rises above these SMAs combined with a high RSI (previously above 74).
Mode 3 & 4 (Trend Respect Strategies):
These modes generate buy signals when the price crosses above the respective moving average (SMA50 for Mode 3, SMA200 for Mode 4) and the RSI is strong (above 55 after touching 50), and sell signals when the price crosses below these levels with the RSI dropping below 45.
Additional conditions for taking profit are built into each mode, and the indicator tracks position status to help reset the conditions after a trade is closed.
Signals are plotted directly on the chart with labels (displaying "KUP" for buy and "SPRZEDAJ" for sell) and shapes for visual clarity. The current RSI value is also shown in the top-right corner.
How to Use It
Trade Entry:
For example, in Mode 1, if the price dips below SMA50, the RSI has been low (below 26) and is now rising above 30, a buy signal is generated. This may signal a counter-trend opportunity when the price has oversold.
Trade Exit:
Conversely, if the price rises above SMA50 while the RSI is falling (having been high above 74 and now dropping below 70), a sell signal is generated to exit the trade.
Risk Management:
Take profit (TP) conditions are set based on price action or RSI levels. These conditions help you exit a trade once the market moves in your favor, ensuring you lock in profits.
Example Strategy
Counter-Trend Setup (Mode 1):
Buy: Enter a long position when the price drops below the 50-period SMA and the RSI has been oversold (below 26) but starts to recover (rises above 30).
Sell/TP: Exit when the price moves above the SMA or the RSI reaches a high level (above 70).
Trend Respect Setup (Mode 3):
Buy: Enter when the price crosses above the 50-period SMA and the RSI, after touching around 50, moves up above 55.
Sell/TP: Exit when the price reverses (crosses below the SMA) or the RSI drops below 45.
Combine this indicator with other analysis tools (like volume or support/resistance levels) to refine your entry and exit points.
Please Share
If you find the "Hossa Signals" indicator useful for your trading strategy, please share it with your fellow traders. Sharing helps grow our community and encourages the development of more innovative trading tools.
Enjoy your trading!
Hossa OTF 4-candles"Hossa OTF 4-candles," overlays mini-representations of the higher timeframe candle on your current chart and displays a countdown timer showing how much time remains until that higher timeframe candle closes. Here’s how it works and how you might use it:
How It Works
Multi-Timeframe Display:
The indicator fetches the open, high, low, and close of a higher timeframe candle based on the timeframe you select (for example, 1H, 4H, 8H, 1D, or 1W). It then draws four mini-candles that update as new higher timeframe candles are formed.
Simple Stopwatch Countdown:
It retrieves the open time of the current higher timeframe candle and calculates its full duration (using the timeframe’s minutes converted to milliseconds). The indicator then subtracts the elapsed time from the total duration to show a countdown (formatted in hours and minutes) that tells you how long until the current candle closes.
How to Use It
Multi-Timeframe Analysis:
Use this indicator to see at a glance the status of the higher timeframe candle while you trade on a lower timeframe. For instance, if you're trading on a 5-minute chart but want to see what the 4-hour candle is doing, this indicator places a mini-representation of that 4-hour candle right on your chart.
Time-Based Entries/Exits:
The countdown helps you prepare for potential shifts in market sentiment as the higher timeframe candle closes. For example, if you notice a pattern or reversal setup on your lower timeframe near the end of the higher timeframe candle, it could signal an opportunity to enter or exit a trade.
Confluence with Other Indicators:
Combine this tool with other technical indicators (like RSI, MACD, or moving averages) to build a strategy. For instance, you might wait for a divergence on the lower timeframe as the higher timeframe candle nears its close, which can serve as an extra signal for a potential reversal or breakout.
Example Strategy
Trend Confirmation:
Suppose the 4-hour candle is trending upward. Use the mini-candles and countdown timer to monitor when the current 4-hour candle is about to close.
Entry Signal:
If you see a bullish divergence on your lower timeframe (say, on a 15-minute chart) near the end of the 4-hour candle (as the countdown nears zero), this could signal that the uptrend might continue, suggesting a potential buy signal.
Exit Signal:
Conversely, if you see bearish price action or a breakdown of support as the candle closes, you might consider exiting long positions or even taking a short trade.
Please Share
If you find this indicator useful for your multi-timeframe analysis and timing-based strategies, please consider sharing it with your fellow traders. Sharing helps improve our community's tools and fosters collaboration among traders!
Futuristic Trend PredictorAI-based trend predictor. converting it to a strategy for backtesting. thanks.
M2 Global Liquidity Index - X Days LeadThis custom indicator overlays the Bitcoin price chart with the Global Liquidity M2 chart, providing a unique perspective on how monetary supply might influence Bitcoin's price movements. The indicator distinguishes between past and future segments of the liquidity data using two distinct colors.
- Past Segment: The portion of the Global Liquidity M2 chart that has already passed is displayed in one color, allowing users to assess historical correlations with Bitcoin's price.
- Future Segment: The upcoming part of the liquidity chart is shown in a different color, offering insights into potential future impacts on Bitcoin's price trajectory.
by walkin
SuperTrader Trend Analysis and Trade Study DashboardSuperTrader Trend Analysis and Trade Study Dashboard
Overview
This script offers a multi-faceted look at market behavior. It combines signals from different momentum indicators, daily cross checks, and a specialized dashboard to reveal trend strength, potential divergences, and how far price has traveled from its recent averages.
Three Musketeers Method
This script uses a special set of three indicators (the “Three Musketeers”) to determine bullish or bearish pressure on the current chart.
Trend Condition – Compares fast vs. slow EMAs (50 and 200) and checks which side of the line price is favoring.
Mean Reversion Condition – Watches RSI crossing typical oversold or overbought thresholds (e.g., crossing above 30 or below 70).
Bollinger Condition – Checks whether price pushes above/below the Bollinger Bands (based on a 20 SMA + standard deviations).
When at least two out of these three conditions align in a bullish way, the script issues a Buy Signal . Conversely, if at least two align in a bearish way, a Sell Signal is triggered. This “Three Musketeers” synergy ensures multiple confirmations before calling a potential market turn.
Mag 8 Daily Performance
The script tracks eight highly influential stocks (AAPL, AMZN, GOOG, NFLX, NVDA, TSLA, META, MSFT) to see which are green (higher) or red (lower) compared to yesterday’s close. It then prints a quick tally – helpful in gauging overall market mood via these major players.
Golden / Death Cross Signals
On a daily time frame, the script notes when the 50-day SMA crosses above or below the 200-day SMA. A “Golden Cross” often signals rising momentum, while a “Death Cross” can hint at oncoming weakness.
RSI & Divergence Checks
RSI helps identify hidden turning points. Whenever a bullish or bearish divergence is spotted, the script updates you via a concise readout.
Hardcoded Settings
EMA lengths for trend checks, Bollinger parameters, etc., are locked in, letting you focus on adjusting only the pivotal study inputs (e.g., RSI length, VIDYA momentum).
VIDYA Trend Line & Fill
Built on an adaptive Variable Index Dynamic Average, it plots a line that quickly reacts to changing momentum. Users can set a “Trend Band Distance” to mark ATR-based thresholds around that line, identifying possible breakouts or breakdowns.
YoYo Distance
This concept measures how far price strays from SMA(10). If it’s too far, the script colors your display to indicate potential snapbacks.
Gap Up/Down Probability
By weighing volume, MACD signals, and whether price sits above/below its midrange, the script estimates probabilities of a gap up or down on the next daily candle.
Table Output & Trend Label
Turning on Show Table Widget reveals a quick dashboard on the chart detailing RSI, CCI, divergences, bull/bear scores, and more. A label on the last bar further summarizes overall trend, gap distance, and the Mag 8 snapshot – perfect for a fast read of current market posture.
Use this script to unify multiple signals in one place, see how far price has ventured from typical patterns, and get daily cross signals plus real-time bullish/bearish calls – all at a glance.
Smart % Levels📈 Smart % Levels – Visualize Significant Percentage Moves
What it does:
This indicator plots horizontal levels based on a percentage change from the previous day's close (or open, if selected). It allows traders to visualize price movements relative to meaningful thresholds like ±1%, ±2%, etc.
What makes it different:
Unlike other level indicators, Smart % Levels only displays the relevant levels based on current price action. This avoids clutter by showing only the levels that are being approached or crossed by the current price. It's a clean and dynamic way to visualize key price zones for intraday analysis.
How it works:
- Select between using the previous day's Close or Open as the reference
- Choose the percentage spacing between levels (e.g., 1%, 0.5%, etc.)
- Enable optional labels to see the exact percentage of each level
- Automatically filters levels to only show those between yesterday's price and today's current price
- Includes customization for colors, line styles, widths, and opacity
Best for:
Day traders and scalpers who want a quick, clean view of how far the current price has moved from yesterday’s reference, without being overwhelmed by unnecessary lines.
Extra notes:
- The levels are recalculated each day at the market open
- All graphics reset at the start of each session to maintain clarity
- This script avoids repainting by only plotting levels relative to available historical data (no lookahead)
This tool is for informational purposes only and should not be considered as financial advice. Always do your own research before making trading decisions.
Daily ProtractorDaily Protractor Indicator
Overview
The Daily Protractor is a visually intuitive tool designed for traders who want to analyze price action through angular measurements on a 5-minute chart. By overlaying a protractor on the chart, this indicator helps identify potential support, resistance, and trend directions based on angular relationships from the first 5-minute candle of each day. It’s particularly useful for intraday traders looking to incorporate geometric analysis into their strategies for spot or strike charts.
Key Features
Dynamic Protractor Overlay: Draws a protractor centered on the low of the first 5-minute candle of each day, with customizable radius in both bars (horizontal) and price units (vertical).
Angular Measurements: Displays angles in 5-degree increments, covering a full 360° circle or a 105° to -105° (91° to 269°) half-circle, depending on user preference.
Customizable Display:
Adjust the number of days to display protractors (up to 5 days).
Customize line colors for different angle ranges (0° to 180°, 180° to 360°, and 0° specifically).
Modify line thickness, label size, and label colors for better visibility.
Center Point Highlight: Marks the center of each protractor with a labeled point for easy reference.
Efficient Design:
Optimized with max_lines_count, max_labels_count, and max_bars_back to ensure smooth performance on TradingView.
How It Works
The indicator identifies the first 5-minute candle of each day and uses its low price as the center point for a protractor. It then draws lines at 5-degree intervals, radiating from the center, with each line representing an angle from 0° to 360°. Labels at the end of each line display the angle in degrees, with negative values shown for angles between 195° and 345° (e.g., 270° is displayed as -90°). The protractor’s radius can be adjusted in both time (bars) and price units, allowing traders to scale the tool to their chart’s characteristics.
Usage Instructions
Add to Chart:
Apply the indicator to a 5-minute chart of your chosen instrument (e.g., spot or strike charts).
Interpret the Protractor:
Use the angular lines to identify potential price levels or trend directions.
The 0° line (horizontal) can act as a reference for horizontal support/resistance.
Angles between 0° and 180° (upper half) and 180° and 360° (lower half) are color-coded for quick identification.
Customize Settings:
Toggle the Show 105° to -105° option to display a half-circle (91° to 269°) instead of a full 360° protractor.
Adjust the Radius in Bars and Radius in Price Units to scale the protractor to your chart.
Set the Maximum Days to Display to control how many daily protractors are shown.
Modify line thickness, colors, and label settings to suit your visual preferences.
Customization Options
Protractor Settings:
Show 105° to -105° (91° to 269°): Toggle between a full circle or a half-circle protractor.
Radius in Bars: Set the horizontal span of the protractor (default: 75 bars).
Radius in Price Units: Set the vertical span in price units (default: 1000.0).
Maximum Days to Display: Limit the number of protractors shown (default: 5 days).
Line Settings:
Line Thickness: Adjust the thickness of the protractor lines (1 or 2).
Line Color (0° to 180°): Color for the upper half (default: light blue).
Line Color (180° to 360°): Color for the lower half (default: light red).
Line Color (0°): Color for the 0° line (default: black).
Label Settings:
Label Size: Choose between small, normal, or large labels.
Label Color (0° to 180°): Color for labels in the upper half (default: red).
Label Color (180° to 360°): Color for labels in the lower half (default: green).
Notes
The indicator was designed with the help of Grok3 for use on 5-minute charts only, as it relies on the first 5-minute candle of the day to set the protractor’s center.
For best results, adjust the radius settings to match the volatility and price scale of your instrument. However, where the price is in single digits it is advised to switch off the labels or I would suggest not to use the same.
The protractor can be used alongside other technical tools to confirm trends, reversals, or key price levels.
Limitations: This cannot be used on instruments that trade for more than 75 candles with a timeframe of 5 minutes as the angles would not cover the entire trading window. I am working coming up with a script to address this limitation.
Feedback
I’d love to hear your thoughts! If you find the Daily Protractor helpful or have suggestions for improvements, please leave a comment or reach out. Happy trading!
Composite Reversal IndicatorOverview
The "Composite Reversal Indicator" aggregates five technical signals to produce a composite score that ranges from -5 (strongly bearish) to +5 (strongly bullish). These signals come from:
Relative Strength Index (RSI)
Moving Average Convergence Divergence (MACD)
Accumulation/Distribution (A/D)
Volume relative to its moving average
Price proximity to support and resistance levels
Each signal contributes a value of +1 (bullish), -1 (bearish), or 0 (neutral) to the total score. The raw score is plotted as a histogram, and a smoothed version is plotted as a colored line to highlight trends.
Step-by-Step Explanation
1. Customizable Inputs
The indicator starts with user-defined inputs that allow traders to tweak its settings. These inputs include:
RSI: Length (e.g., 14), oversold level (e.g., 30), and overbought level (e.g., 70).
MACD: Fast length (e.g., 12), slow length (e.g., 26), and signal length (e.g., 9).
Volume: Moving average length (e.g., 20) and multipliers for high (e.g., 1.5) and low (e.g., 0.5) volume thresholds.
Price Levels: Period for support and resistance (e.g., 50) and proximity percentage (e.g., 2%).
Score Smoothing: Length for smoothing the score (e.g., 5).
These inputs make the indicator adaptable to different trading styles, assets, or timeframes.
2. Indicator Calculations
The script calculates five key indicators using the input parameters:
RSI: Measures momentum and identifies overbought or oversold conditions.
Formula: rsi = ta.rsi(close, rsi_length)
Example: With a length of 14, it analyzes the past 14 bars of closing prices.
MACD: Tracks trend and momentum using two exponential moving averages (EMAs).
Formula: = ta.macd(close, macd_fast, macd_slow, macd_signal)
Components: MACD line (fast EMA - slow EMA), signal line (EMA of MACD line).
Accumulation/Distribution (A/D): A volume-based indicator showing buying or selling pressure.
Formula: ad = ta.accdist
Reflects cumulative flow based on price and volume.
Volume Moving Average: A simple moving average (SMA) of trading volume.
Formula: vol_ma = ta.sma(volume, vol_ma_length)
Example: A 20-bar SMA smooths volume data.
Support and Resistance Levels: Key price levels based on historical lows and highs.
Formulas:
support = ta.lowest(low, price_level_period)
resistance = ta.highest(high, price_level_period)
Example: Over 50 bars, it finds the lowest low and highest high.
These calculations provide the raw data for generating signals.
3. Signal Generation
Each indicator produces a signal based on specific conditions:
RSI Signal:
+1: RSI < oversold level (e.g., < 30) → potential bullish reversal.
-1: RSI > overbought level (e.g., > 70) → potential bearish reversal.
0: Otherwise.
Logic: Extreme RSI values suggest price may reverse.
MACD Signal:
+1: MACD line > signal line → bullish momentum.
-1: MACD line < signal line → bearish momentum.
0: Equal.
Logic: Crossovers indicate trend shifts.
A/D Signal:
+1: Current A/D > previous A/D → accumulation (bullish).
-1: Current A/D < previous A/D → distribution (bearish).
0: Unchanged.
Logic: Rising A/D shows buying pressure.
Volume Signal:
+1: Volume > high threshold (e.g., 1.5 × volume MA) → strong activity (bullish).
-1: Volume < low threshold (e.g., 0.5 × volume MA) → weak activity (bearish).
0: Otherwise.
Logic: Volume spikes often confirm reversals.
Price Signal:
+1: Close near support (within proximity %, e.g., 2%) → potential bounce.
-1: Close near resistance (within proximity %) → potential rejection.
0: Otherwise.
Logic: Price near key levels signals reversal zones.
4. Composite Score
The raw composite score is the sum of the five signals:
Formula: score = rsi_signal + macd_signal + ad_signal + vol_signal + price_signal
Range: -5 (all signals bearish) to +5 (all signals bullish).
Purpose: Combines multiple perspectives into one number.
5. Smoothed Score
A smoothed version of the score reduces noise:
Formula: score_ma = ta.sma(score, score_ma_length)
Example: With a length of 5, it averages the score over 5 bars.
Purpose: Highlights the trend rather than short-term fluctuations.
6. Visualization
The indicator plots two elements:
Raw Score: A gray histogram showing the composite score per bar.
Style: plot.style_histogram
Color: Gray.
Smoothed Score: A line that changes color:
Green: Score > 0 (bullish).
Red: Score < 0 (bearish).
Gray: Score = 0 (neutral).
Style: plot.style_line, thicker line (e.g., linewidth=2).
These visuals make it easy to spot potential reversals.
How It Works Together
The indicator combines signals from:
RSI: Momentum extremes.
MACD: Trend shifts.
A/D: Buying/selling pressure.
Volume: Confirmation of moves.
Price Levels: Key reversal zones.
By summing these into a composite score, it filters out noise and provides a unified signal. A high positive score (e.g., +3 to +5) suggests a bullish reversal, while a low negative score (e.g., -3 to -5) suggests a bearish reversal. The smoothed score helps traders focus on the trend.
Practical Use
Bullish Reversal: Smoothed score is green and rising → look for buying opportunities.
Bearish Reversal: Smoothed score is red and falling → consider selling or shorting.
Neutral: Score near 0 → wait for clearer signals.
Traders can adjust inputs to suit their strategy, making it versatile for stocks, forex, or crypto.
OPR First 15Stupidely simple indicator, It creates a box all around the first 15 minutes of the OPR of London and NY. I'st just boring to do it everyday ... It can be used only in 1 minute timeframe.
SPY MACD Histogram Reversals and RejectionsStrategy Overview: Intraday SPY Options Day Trading with MACD Histogram Reversals and Rejections
This is an intraday trading strategy designed specifically for trading SPY (or SPX) using 1DTE options. It focuses on price action during the morning session and leverages MACD histogram crossovers, volatility analysis, and short-term price rejections to enter directional trades (calls or puts). The goal is to capitalize on early momentum shifts and retracement failures after initial market moves.
Key Trading Hours and Constraints
Trading Window: Only trades between 9:50 AM and 1:00 PM EST are considered.
Trade Cutoff Buffer: New trades are blocked in the final 5 minutes before the 1:00 PM end time to avoid auto-close conflicts.
First Hour Focus: Special logic applies during the first hour of the session (9:30 AM to 10:30 AM), where reversal-based setups are tracked more aggressively.
MACD Histogram Setup
The strategy calculates both 5-minute and 10-minute MACD values.
Signals are generated when the 5-minute MACD histogram crosses the zero line, indicating a momentum shift.
The magnitude of the histogram (absolute value) must exceed a threshold (0.10) to validate strong enough momentum.
The 10-minute histogram is used as a confirmation filter: if it’s under 0.17 in magnitude, it favors a call entry (bullish breakout); otherwise, it defaults to put entry (bearish momentum).
Reversal & Protection Logic (Early Morning Retests)
Call Rejection Protection (To avoid entering long after a strong upward move and sharp retrace):
Monitors price from 9:30–10:00 AM for the lowest point.
Then from 10:00–10:35 AM, it tracks the highest price.
If price retraces more than 90% of that move up, it avoids new call entries.
Put Rejection Protection (To avoid entering short after a downward move and retrace):
Tracks the highest point from 9:30–10:00 AM, then the lowest price from 10:00–10:35 AM.
If price retraces more than 90% of that downward move, put entries are skipped.
This avoids buying into failed breakouts or deep retracements, protecting against reversal traps.
Entry Conditions Summary
A trade is considered only if:
It's within the allowed time window.
MACD histogram crosses zero with sufficient strength.
No retracement rejection conditions are triggered.
The 10-minute MACD filter confirms momentum direction.
Risk Management – Dynamic ATR-Based Stop Loss & Profit Target
Uses a 6-period ATR to size both the stop loss and profit target.
ATR multipliers are adjusted dynamically based on RSI(14) values to account for current volatility and overbought/oversold conditions:
Profit Targets: Scaled using an aggressive ATR multiplier tied to RSI position.
Stop Losses: Slightly wider to prevent premature exits from minor retracements.
This adaptive approach helps ensure realistic targets while keeping risk within bounds.
Options Profit Estimation
Estimated option move is calculated using:
The difference between entry price and the profit target (in underlying asset).
Assumes 0.48 delta to approximate the expected option gain/loss.
These values are displayed directly on the chart as part of the trade label.
Trade Execution and Labeling
Each trade is assigned a unique ID and visually labeled on the chart with:
Direction (Call or Put)
Profit target level
Estimated underlying move
Estimated option gain in dollars
Alerts are also triggered to notify on entry signals, showing the estimated option profit.
Performance Tracking and Statistics
Tracks total trades, wins, losses, and current win streak using strategy.closedtrades.
Displays these values in a live stats table on the chart for real-time feedback.
Additional Visual Aids
Table showing:
MACD profit targets and histograms
Estimated option moves
Intraday range (high – low)
Draws a horizontal line at the nearest rounded price level for quick visual context.
Marks key morning times (9:55, 10:00, and 10:30) with small labeled markers.
Overall Objective
This strategy aims to:
Catch early directional momentum in SPY within a controlled risk framework.
Avoid trading into retracements or false breakouts.
Provide visually clear, data-supported trade entries for real-time manual execution.
Estimate profitability in terms of options pricing for quick decision-making.
It's ideal for traders looking to day trade 0DTE or 1DTE SPY options using technical triggers, real-time filtering, and protective logic to reduce false signals and improve timing.
Pivot S/R with Volatility Filter## *📌 Indicator Purpose*
This indicator identifies *key support/resistance levels* using pivot points while also:
✅ Detecting *high-volume liquidity traps* (stop hunts)
✅ Filtering insignificant pivots via *ATR (Average True Range) volatility*
✅ Tracking *test counts and breakouts* to measure level strength
---
## *⚙ SETTINGS – Detailed Breakdown*
### *1️⃣ ◆ General Settings*
#### *🔹 Pivot Length*
- *Purpose:* Determines how many bars to analyze when identifying pivots.
- *Usage:*
- *Low values (5-20):* More pivots, better for scalping.
- *High values (50-200):* Fewer but stronger levels for swing trading.
- *Example:*
- Pivot Length = 50 → Only the most significant highs/lows over 50 bars are marked.
#### *🔹 Test Threshold (Max Test Count)*
- *Purpose:* Sets how many times a level can be tested before being invalidated.
- *Example:*
- Test Threshold = 3 → After 3 tests, the level is ignored (likely to break).
#### *🔹 Zone Range*
- *Purpose:* Creates a price buffer around pivots (±0.001 by default).
- *Why?* Markets often respect "zones" rather than exact prices.
---
### *2️⃣ ◆ Volatility Filter (ATR)*
#### *🔹 ATR Period*
- *Purpose:* Smoothing period for Average True Range calculation.
- *Default:* 14 (standard for volatility measurement).
#### *🔹 ATR Multiplier (Min Move)*
- *Purpose:* Requires pivots to show *meaningful price movement*.
- *Formula:* Min Move = ATR × Multiplier
- *Example:*
- ATR = 10 pips, Multiplier = 1.5 → Only pivots with *15+ pip swings* are valid.
#### *🔹 Show ATR Filter Info*
- Displays current ATR and minimum move requirements on the chart.
---
### *3️⃣ ◆ Volume Analysis*
#### *🔹 Volume Change Threshold (%)*
- *Purpose:* Filters for *unusual volume spikes* (institutional activity).
- *Example:*
- Threshold = 1.2 → Requires *120% of average volume* to confirm signals.
#### *🔹 Volume MA Period*
- *Purpose:* Lookback period for "normal" volume calculation.
---
### *4️⃣ ◆ Wick Analysis*
#### *🔹 Wick Length Threshold (Ratio)*
- *Purpose:* Ensures rejection candles have *long wicks* (strong reversals).
- *Formula:* Wick Ratio = (Upper Wick + Lower Wick) / Candle Range
- *Example:*
- Threshold = 0.6 → 60% of the candle must be wicks.
#### *🔹 Min Wick Size (ATR %)*
- *Purpose:* Filters out small wicks in volatile markets.
- *Example:*
- ATR = 20 pips, MinWickSize = 1% → Wicks under *0.2 pips* are ignored.
---
### *5️⃣ ◆ Display Settings*
- *Show Zones:* Toggles support/resistance shaded areas.
- *Show Traps:* Highlights liquidity traps (▲/▼ symbols).
- *Show Tests:* Displays how many times levels were tested.
- *Zone Transparency:* Adjusts opacity of zones.
---
## *🎯 Practical Use Cases*
### *1️⃣ Liquidity Trap Detection*
- *Scenario:* Price spikes *above resistance* then reverses sharply.
- *Requirements:*
- Long wick (Wick Ratio > 0.6)
- High volume (Volume > Threshold)
- *Outcome:* *Short Trap* signal (▼) appears.
### *2️⃣ Strong Support Level*
- *Scenario:* Price bounces *3 times* from the same level.
- *Indicator Action:*
- Labels the level with test count (3/5 = 3 tests out of max 5).
- Turns *red* if broken (Break Count > 0).
Deep Dive: How This Indicator Works*
This indicator combines *four professional trading concepts* into one powerful tool:
1. *Classic Pivot Point Theory*
- Identifies swing highs/lows where price previously reversed
- Unlike basic pivot indicators, ours uses *confirmed pivots only* (filtered by ATR)
2. *Volume-Weighted Validation*
- Requires unusual trading volume to confirm levels
- Filters out "phantom" levels with low participation
3. *ATR Volatility Filtering*
- Eliminates insignificant price swings in choppy markets
- Ensures only meaningful levels are plotted
4. *Liquidity Trap Detection*
- Spots institutional stop hunts where markets fake out traders
- Uses wick analysis + volume spikes for high-probability signals
---
Deep Dive: How This Indicator Works*
This indicator combines *four professional trading concepts* into one powerful tool:
1. *Classic Pivot Point Theory*
- Identifies swing highs/lows where price previously reversed
- Unlike basic pivot indicators, ours uses *confirmed pivots only* (filtered by ATR)
2. *Volume-Weighted Validation*
- Requires unusual trading volume to confirm levels
- Filters out "phantom" levels with low participation
3. *ATR Volatility Filtering*
- Eliminates insignificant price swings in choppy markets
- Ensures only meaningful levels are plotted
4. *Liquidity Trap Detection*
- Spots institutional stop hunts where markets fake out traders
- Uses wick analysis + volume spikes for high-probability signals
---
## *📊 Parameter Encyclopedia (Expanded)*
### *1️⃣ Pivot Engine Settings*
#### *Pivot Length (50)*
- *What It Does:*
Determines how many bars to analyze when searching for swing highs/lows.
- *Professional Adjustment Guide:*
| Trading Style | Recommended Value | Why? |
|--------------|------------------|------|
| Scalping | 10-20 | Captures short-term levels |
| Day Trading | 30-50 | Balanced approach |
| Swing Trading| 50-200 | Focuses on major levels |
- *Real Market Example:*
On NASDAQ 5-minute chart:
- Length=20: Identifies levels holding for ~2 hours
- Length=50: Finds levels respected for entire trading day
#### *Test Threshold (5)*
- *Advanced Insight:*
Institutions often test levels 3-5 times before breaking them. This setting mimics the "probe and push" strategy used by smart money.
- *Psychology Behind It:*
Retail traders typically give up after 2-3 tests, while institutions keep testing until stops are run.
---
### *2️⃣ Volatility Filter System*
#### *ATR Multiplier (1.0)*
- *Professional Formula:*
Minimum Valid Swing = ATR(14) × Multiplier
- *Market-Specific Recommendations:*
| Market Type | Optimal Multiplier |
|------------------|--------------------|
| Forex Majors | 0.8-1.2 |
| Crypto (BTC/ETH) | 1.5-2.5 |
| SP500 Stocks | 1.0-1.5 |
- *Why It Matters:*
In EUR/USD (ATR=10 pips):
- Multiplier=1.0 → Requires 10 pip swings
- Multiplier=1.5 → Requires 15 pip swings (fewer but higher quality levels)
---
### *3️⃣ Volume Confirmation System*
#### *Volume Threshold (1.2)*
- *Institutional Benchmark:*
- 1.2x = Moderate institutional interest
- 1.5x+ = Strong smart money activity
- *Volume Spike Case Study:*
*Before Apple Earnings:*
- Normal volume: 2M shares
- Spike threshold (1.2): 2.4M shares
- Actual volume: 3.1M shares → STRONG confirmation
---
### *4️⃣ Liquidity Trap Detection*
#### *Wick Analysis System*
- *Two-Filter Verification:*
1. *Wick Ratio (0.6):*
- Ensures majority of candle shows rejection
- Formula: (UpperWick + LowerWick) / Total Range > 0.6
2. *Min Wick Size (1% ATR):*
- Prevents false signals in flat markets
- Example: ATR=20 pips → Min wick=0.2 pips
- *Trap Identification Flowchart:*
Price Enters Zone →
Spikes Beyond Level →
Shows Long Wick →
Volume > Threshold →
TRAP CONFIRMED
---
## *💡 Master-Level Usage Techniques*
### *Institutional Order Flow Analysis*
1. *Step 1:* Identify pivot levels with ≥3 tests
2. *Step 2:* Watch for volume contraction near levels
3. *Step 3:* Enter when trap signal appears with:
- Wick > 2×ATR
- Volume > 1.5× average
### *Multi-Timeframe Confirmation*
1. *Higher TF:* Find weekly/monthly pivots
2. *Lower TF:* Use this indicator for precise entries
3. *Example:*
- Weekly pivot at $180
- 4H shows liquidity trap → High-probability reversal
---
## *⚠ Critical Mistakes to Avoid*
1. *Using Default Settings Everywhere*
- Crude oil needs higher ATR multiplier than bonds
2. *Ignoring Trap Context*
- Traps work best at:
- All-time highs/lows
- Major psychological numbers (00/50 levels)
3. *Overlooking Cumulative Volume*
- Check if volume is building over multiple tests
IU Smart Flow SystemDESCRIPTION
The IU Smart Flow System is a powerful and dynamic order flow-based strategy designed to capture high-probability trades by analyzing bullish and bearish imbalances, trend direction, and RSI strength. It identifies trading opportunities by aligning order flow conditions with the prevailing trend and momentum, making it suitable for trend-following and momentum-based trading.
This system utilizes a unique combination of:
- Order flow score to gauge market imbalance
- Trend filter using SMA and ATR to confirm market direction
- RSI to ensure entry only during strong momentum
USER INPUTS:
- Imbalance Length: Defines the lookback period for calculating bullish and bearish imbalances. (Default: 10)
- Trend Length: Determines the length of the SMA to evaluate the trend direction. (Default: 50)
- RSI Length: Specifies the RSI period to assess momentum strength. (Default: 14)
LONG CONDITIONS:
Long entries are triggered when:
- Order flow score is positive, indicating bullish imbalance
- Price is above the bullish trend level (SMA + ATR), confirming an uptrend
- RSI is above 50, indicating bullish momentum
- No active short position is currently open
SHORT CONDITIONS:
Short entries are triggered when:
- Order flow score is negative, indicating bearish imbalance
- Price is below the bearish trend level (SMA - ATR), confirming a downtrend
- RSI is below 50, indicating bearish momentum
- No active long position is currently open
WHY IT IS UNIQUE:
- Imbalance-Based Approach: Unlike traditional strategies that rely solely on price action, this system evaluates bullish and bearish imbalances to anticipate order flow direction.
- Adaptive Trend Filter: The combination of SMA and ATR dynamically adjusts to market volatility, providing a reliable trend confirmation mechanism.
- Momentum Validation with RSI: Ensures that entries are taken only in the direction of strong momentum, reducing false signals.
HOW USERS CAN BENEFIT FROM IT:
- Enhanced Trade Accuracy: Aligning order flow, trend, and momentum reduces false signals and improves trade success rates.
- Versatile Application: Suitable for various markets and timeframes, making it adaptable to different trading styles.
- Clear Trade Signals: Provides clear entry labels and alerts, ensuring traders never miss a potential opportunity.
- Visual Clarity: The filled region between bullish and bearish trends highlights trend direction, enhancing decision-making.
Bitcoin Polynomial Regression ModelThis is the main version of the script. Click here for the Oscillator part of the script.
💡Why this model was created:
One of the key issues with most existing models, including our own Bitcoin Log Growth Curve Model , is that they often fail to realistically account for diminishing returns. As a result, they may present overly optimistic bull cycle targets (hence, we introduced alternative settings in our previous Bitcoin Log Growth Curve Model).
This new model however, has been built from the ground up with a primary focus on incorporating the principle of diminishing returns. It directly responds to this concept, which has been briefly explored here .
📉The theory of diminishing returns:
This theory suggests that as each four-year market cycle unfolds, volatility gradually decreases, leading to more tempered price movements. It also implies that the price increase from one cycle peak to the next will decrease over time as the asset matures. The same pattern applies to cycle lows and the relationship between tops and bottoms. In essence, these price movements are interconnected and should generally follow a consistent pattern. We believe this model provides a more realistic outlook on bull and bear market cycles.
To better understand this theory, the relationships between cycle tops and bottoms are outlined below:https://www.tradingview.com/x/7Hldzsf2/
🔧Creation of the model:
For those interested in how this model was created, the process is explained here. Otherwise, feel free to skip this section.
This model is based on two separate cubic polynomial regression lines. One for the top price trend and another for the bottom. Both follow the general cubic polynomial function:
ax^3 +bx^2 + cx + d.
In this equation, x represents the weekly bar index minus an offset, while a, b, c, and d are determined through polynomial regression analysis. The input (x, y) values used for the polynomial regression analysis are as follows:
Top regression line (x, y) values:
113, 18.6
240, 1004
451, 19128
655, 65502
Bottom regression line (x, y) values:
103, 2.5
267, 211
471, 3193
676, 16255
The values above correspond to historical Bitcoin cycle tops and bottoms, where x is the weekly bar index and y is the weekly closing price of Bitcoin. The best fit is determined using metrics such as R-squared values, residual error analysis, and visual inspection. While the exact details of this evaluation are beyond the scope of this post, the following optimal parameters were found:
Top regression line parameter values:
a: 0.000202798
b: 0.0872922
c: -30.88805
d: 1827.14113
Bottom regression line parameter values:
a: 0.000138314
b: -0.0768236
c: 13.90555
d: -765.8892
📊Polynomial Regression Oscillator:
This publication also includes the oscillator version of the this model which is displayed at the bottom of the screen. The oscillator applies a logarithmic transformation to the price and the regression lines using the formula log10(x) .
The log-transformed price is then normalized using min-max normalization relative to the log-transformed top and bottom regression line with the formula:
normalized price = log(close) - log(bottom regression line) / log(top regression line) - log(bottom regression line)
This transformation results in a price value between 0 and 1 between both the regression lines. The Oscillator version can be found here.
🔍Interpretation of the Model:
In general, the red area represents a caution zone, as historically, the price has often been near its cycle market top within this range. On the other hand, the green area is considered an area of opportunity, as historically, it has corresponded to the market bottom.
The top regression line serves as a signal for the absolute market cycle peak, while the bottom regression line indicates the absolute market cycle bottom.
Additionally, this model provides a predicted range for Bitcoin's future price movements, which can be used to make extrapolated predictions. We will explore this further below.
🔮Future Predictions:
Finally, let's discuss what this model actually predicts for the potential upcoming market cycle top and the corresponding market cycle bottom. In our previous post here , a cycle interval analysis was performed to predict a likely time window for the next cycle top and bottom:
In the image, it is predicted that the next top-to-top cycle interval will be 208 weeks, which translates to November 3rd, 2025. It is also predicted that the bottom-to-top cycle interval will be 152 weeks, which corresponds to October 13th, 2025. On the macro level, these two dates align quite well. For our prediction, we take the average of these two dates: October 24th 2025. This will be our target date for the bull cycle top.
Now, let's do the same for the upcoming cycle bottom. The bottom-to-bottom cycle interval is predicted to be 205 weeks, which translates to October 19th, 2026, and the top-to-bottom cycle interval is predicted to be 259 weeks, which corresponds to October 26th, 2026. We then take the average of these two dates, predicting a bear cycle bottom date target of October 19th, 2026.
Now that we have our predicted top and bottom cycle date targets, we can simply reference these two dates to our model, giving us the Bitcoin top price prediction in the range of 152,000 in Q4 2025 and a subsequent bottom price prediction in the range of 46,500 in Q4 2026.
For those interested in understanding what this specifically means for the predicted diminishing return top and bottom cycle values, the image below displays these predicted values. The new values are highlighted in yellow:
And of course, keep in mind that these targets are just rough estimates. While we've done our best to estimate these targets through a data-driven approach, markets will always remain unpredictable in nature. What are your targets? Feel free to share them in the comment section below.
Bitcoin Polynomial Regression OscillatorThis is the oscillator version of the script. Click here for the other part of the script.
💡Why this model was created:
One of the key issues with most existing models, including our own Bitcoin Log Growth Curve Model , is that they often fail to realistically account for diminishing returns. As a result, they may present overly optimistic bull cycle targets (hence, we introduced alternative settings in our previous Bitcoin Log Growth Curve Model).
This new model however, has been built from the ground up with a primary focus on incorporating the principle of diminishing returns. It directly responds to this concept, which has been briefly explored here .
📉The theory of diminishing returns:
This theory suggests that as each four-year market cycle unfolds, volatility gradually decreases, leading to more tempered price movements. It also implies that the price increase from one cycle peak to the next will decrease over time as the asset matures. The same pattern applies to cycle lows and the relationship between tops and bottoms. In essence, these price movements are interconnected and should generally follow a consistent pattern. We believe this model provides a more realistic outlook on bull and bear market cycles.
To better understand this theory, the relationships between cycle tops and bottoms are outlined below:https://www.tradingview.com/x/7Hldzsf2/
🔧Creation of the model:
For those interested in how this model was created, the process is explained here. Otherwise, feel free to skip this section.
This model is based on two separate cubic polynomial regression lines. One for the top price trend and another for the bottom. Both follow the general cubic polynomial function:
ax^3 +bx^2 + cx + d.
In this equation, x represents the weekly bar index minus an offset, while a, b, c, and d are determined through polynomial regression analysis. The input (x, y) values used for the polynomial regression analysis are as follows:
Top regression line (x, y) values:
113, 18.6
240, 1004
451, 19128
655, 65502
Bottom regression line (x, y) values:
103, 2.5
267, 211
471, 3193
676, 16255
The values above correspond to historical Bitcoin cycle tops and bottoms, where x is the weekly bar index and y is the weekly closing price of Bitcoin. The best fit is determined using metrics such as R-squared values, residual error analysis, and visual inspection. While the exact details of this evaluation are beyond the scope of this post, the following optimal parameters were found:
Top regression line parameter values:
a: 0.000202798
b: 0.0872922
c: -30.88805
d: 1827.14113
Bottom regression line parameter values:
a: 0.000138314
b: -0.0768236
c: 13.90555
d: -765.8892
📊Polynomial Regression Oscillator:
This publication also includes the oscillator version of the this model which is displayed at the bottom of the screen. The oscillator applies a logarithmic transformation to the price and the regression lines using the formula log10(x) .
The log-transformed price is then normalized using min-max normalization relative to the log-transformed top and bottom regression line with the formula:
normalized price = log(close) - log(bottom regression line) / log(top regression line) - log(bottom regression line)
This transformation results in a price value between 0 and 1 between both the regression lines.
🔍Interpretation of the Model:
In general, the red area represents a caution zone, as historically, the price has often been near its cycle market top within this range. On the other hand, the green area is considered an area of opportunity, as historically, it has corresponded to the market bottom.
The top regression line serves as a signal for the absolute market cycle peak, while the bottom regression line indicates the absolute market cycle bottom.
Additionally, this model provides a predicted range for Bitcoin's future price movements, which can be used to make extrapolated predictions. We will explore this further below.
🔮Future Predictions:
Finally, let's discuss what this model actually predicts for the potential upcoming market cycle top and the corresponding market cycle bottom. In our previous post here , a cycle interval analysis was performed to predict a likely time window for the next cycle top and bottom:
In the image, it is predicted that the next top-to-top cycle interval will be 208 weeks, which translates to November 3rd, 2025. It is also predicted that the bottom-to-top cycle interval will be 152 weeks, which corresponds to October 13th, 2025. On the macro level, these two dates align quite well. For our prediction, we take the average of these two dates: October 24th 2025. This will be our target date for the bull cycle top.
Now, let's do the same for the upcoming cycle bottom. The bottom-to-bottom cycle interval is predicted to be 205 weeks, which translates to October 19th, 2026, and the top-to-bottom cycle interval is predicted to be 259 weeks, which corresponds to October 26th, 2026. We then take the average of these two dates, predicting a bear cycle bottom date target of October 19th, 2026.
Now that we have our predicted top and bottom cycle date targets, we can simply reference these two dates to our model, giving us the Bitcoin top price prediction in the range of 152,000 in Q4 2025 and a subsequent bottom price prediction in the range of 46,500 in Q4 2026.
For those interested in understanding what this specifically means for the predicted diminishing return top and bottom cycle values, the image below displays these predicted values. The new values are highlighted in yellow:
And of course, keep in mind that these targets are just rough estimates. While we've done our best to estimate these targets through a data-driven approach, markets will always remain unpredictable in nature. What are your targets? Feel free to share them in the comment section below.