OpeningRange (Trading_Tix)Purpose:
The indicator highlights the high, low, and middle (50%) price levels of a specified session's opening range. These levels can serve as key support and resistance zones for trading strategies. The indicator also offers options to extend these levels beyond the session into later timeframes, making it useful for tracking breakout or trend continuation setups.
Key Features:
1. Session Detection:
The indicator identifies a specific session period using the user-defined Session Time. It calculates the start time, high, and low prices during this period:
rangeTime: Defines the session time range (default: 5:00 PM to 2:59 AM).
extendTime: Defines the extended time range where lines/backgrounds can be prolonged.
2. Opening Range Calculation:
High (high_val) and Low (low_val)**:
Tracks the highest and lowest prices during the session.
Middle Line:
A midpoint is calculated by averaging high_val and low_val.
3. Visual Elements:
Horizontal Lines:
Drawn at the high, low, and middle levels.
Customizable in width and color.
Shaded Background Box:
Covers the range between high and low prices.
The box’s color and transparency can be adjusted.
Line and Box Extension:
Optionally extends these elements into the extended time range.
4. Customization:
Users have the flexibility to:
Toggle visibility of lines, middle line, and background box.
Adjust colors, line thickness, and style.
Enable or disable the extension of lines and backgrounds into the extended period.
How It Works:
Initialization:
The script initializes variables to store range data (startTime, high_val, low_val) and drawing objects (lines, boxes).
It detects whether the current bar falls within the session (inSession) or extended timeframe (inExtend).
Plotting:
During the session:
Deletes previous lines and boxes from prior sessions.
Draws new lines at the high, low, and middle levels.
Creates a background box covering the range, if enabled.
During the extended period:
Extends the session lines and box, if the user has opted for extensions.
Updates:
Continuously adjusts the high/low values and updates the lines as new price data arrives.
Use Cases:
This indicator can be valuable for traders who:
Use the opening range to identify potential breakout zones.
Trade based on price consolidation within the range.
Want a visual representation of key price levels to plan entries and exits.
Would you like help refining this script further or adjusting its settings to match your trading style?
Indicators and strategies
BTC Daily DCA CalculatorThe BTC Daily DCA Calculator is an indicator that calculates how much Bitcoin (BTC) you would own today by investing a fixed dollar amount daily (Dollar-Cost Averaging) over a user-defined period. Simply input your start date, end date, and daily investment amount, and the indicator will display a table on the last candle showing your total BTC, total invested, portfolio value, and unrealized yield (in USD and percentage).
Features
Customizable Inputs: Set the start date, end date, and daily dollar amount to simulate your DCA strategy.
Results Table: Displays on the last candle (top-right of the chart) with:
Total BTC: The accumulated Bitcoin from daily purchases.
Total Invested ($): The total dollars invested.
Portfolio Value ($): The current value of your BTC holdings.
Unrealized Yield ($): Your profit/loss in USD.
Unrealized Yield (%): Your profit/loss as a percentage.
Visual Markers: Green triangles below the chart mark each daily investment.
Overlay on Chart: The table and markers appear directly on the BTCUSD price chart for easy reference.
Daily Timeframe: Designed for Daily (1D) charts to ensure accurate calculations.
How to Use
Add the Indicator: Apply the indicator to a BTCUSD chart (e.g., Coinbase:BTCUSD, Binance:BTCUSDT).
Set Daily Timeframe: Ensure your chart is on the Daily (1D) timeframe, or the script will display an error.
Configure Inputs: Open the indicator’s Settings > Inputs tab and set:
Start Date: When to begin the DCA strategy (e.g., 2024-01-01).
End Date: When to end the strategy (e.g., 2025-04-27 or earlier).
Daily Investment ($): The fixed dollar amount to invest daily (e.g., $100).
View Results: Scroll to the last candle in your date range to see the results table in the top-right corner of the chart. Green triangles below the bars indicate investment days.
Settings
Start Date: Choose the start date for your DCA strategy (default: 2024-01-01).
End Date: Choose the end date (default: 2025-04-27). Must be after the start date and within available chart data.
Daily Investment ($): Set the daily investment amount (default: $100). Minimum is $0.01.
Notes
Timeframe: The indicator requires a Daily (1D) chart. Other timeframes will trigger an error.
Data: Ensure your BTCUSD chart has historical data for the selected date range. Use reliable pairs like Coinbase:BTCUSD or Binance:BTCUSDT.
Limitations: Does not account for trading fees or slippage. Future dates (beyond the current date) will not display results.
Performance: Works best with historical data. Free TradingView accounts may have limited historical data; consider premium for longer ranges.
Relative Strength IndexRSI script that indicates whenever there is a crossover with RSI and the rsi ma
Arun - TimingSession Timing:
This script allows you to visualize key trading sessions (Asian, Frankfurt, London, and New York) by drawing boxes and lines around those time periods.
It has the ability to adjust the time range for each session using input variables. For example:
Asian Range: rangeTime = input.session(title='Session Time', defval='1700-0100')
Frankfurt: rangeTime0 = input.session(title='FRANKFURT', defval='0200-0301')
London: rangeTime4 = input.session(title='LONDON KZ', defval='0300-0500')
New York: rangeTime5 = input.session(title='NEWYORK KZ', defval='0800-1000')
Box Creation for Sessions:
The script creates boxes that highlight the high and low values of each session.
The boxes are drawn based on session time intervals and can be extended into the future (if extendLines is true).
You can also enable or disable the background color and middle line for the boxes.
Previous High/Low for Various Timeframes:
Previous Daily High/Low: Plots the high and low of the previous day.
Previous Weekly High/Low: Plots the high and low of the previous week.
Previous Monthly High/Low: Plots the high and low of the previous month.
These levels can be displayed on the chart with configurable colors and options.
MMM (Market Maker Movements) Levels:
The script allows you to plot "Market Maker Movements" (MMM), which are key levels that may act as support or resistance during specific times of the trading day. It includes:
mmm1Range = input.session(title='MMM', defval='0330-0331')
You can configure the color and style of the lines for these levels as well.
Daily Open:
The Daily Open is shown on the chart as a labeled point, so you can easily track the opening price of the day.
Dynamic Features:
Real-Time Adjustments: The script dynamically updates the lines and boxes when the session starts and ends. It can delete and redraw lines and boxes based on whether the session is active or extended.
Line/Box Styles: You can customize the appearance of the lines (solid, dotted, or dashed) and set the color of the session boxes and lines.
Background and Middle Lines: You can choose to display the background color of the session ranges and a middle line that divides the high and low of the session.
How It Works:
Boxes and Lines: For each session (like the Asian range), the script draws a box between the session’s high and low values. You can also draw vertical lines marking the start and end of the session. These are updated in real-time as new bars are formed.
Previous High/Low: The script plots the previous day's, week's, or month's high and low prices, helping traders identify important support and resistance levels from earlier time periods.
Market Maker Movements (MMM): These levels are drawn at specific times of the day based on your input and are often used by traders who believe that institutional players move the market at specific times.
User Input Options:
Show/Hide Options: You can enable or disable the display of various features like the daily open, previous daily/weekly highs, and the MMM levels.
Customization: You can set the colors, line styles, and the timeframes for each session and other levels.
Text Labels: The script supports labeling the session lines and high/low points, with customizable text color.
Example Visualization:
Asian Session Box: A box is drawn for the Asian session range (from 1700 to 0100), with the session’s high and low price points marked.
Previous High/Low: You would see circles or labels for the previous day's high and low.
MMM Lines: Horizontal lines or areas drawn at specific times based on the user input for the "Market Maker Movement".
Dirección de Sesión Diaria (Fija)This Script shows the daily direction the market may be heading to look for opportunities based on the direction marked. Currently I use this indicator to check the daily direction and it is very effective. if you are going to use this indicator go by the direction from 15m forward apart before using it do your own backtesting to adapt this indicator to your trading plans. any suggestions you can let me know to improve this script :)
RSI Divergence pro with Bollinger Band Full ControlRSI Divergence with MA9 & WMA45
Description:
This indicator identifies both regular and hidden RSI divergences based on pivot highs and lows of the RSI. It plots:
The RSI line, along with two optional moving averages:
SMA (MA9): for smoothing short-term RSI movements.
WMA (WMA45): for broader RSI trend detection.
It visually marks divergence signals directly on the RSI pane:
Bullish Divergence → "Bull" label
Hidden Bullish Divergence → "H Bull" label
Bearish Divergence → "Bear" label
Hidden Bearish Divergence → "H Bear" label
The indicator includes the following features:
Adjustable RSI period, source, and divergence lookback settings.
Optional display of MA9 and WMA45 on the RSI.
Customizable colors for bullish, bearish, hidden divergence signals.
Overbought and oversold zones are shown at 70 and 30, with a background fill for easy visualization.
Built-in alert conditions trigger notifications when divergences are detected.
This script is useful for traders looking to anticipate trend reversals by spotting RSI divergences in combination with moving average smoothing.
ORB-X v6 (Dashed OR Lines)// ORB-X v6 (Opening Range Breakout + Fibonacci Extensions) by Opskie
// Description:
// This indicator automatically captures the high and low of the first X minutes of the trading session
// and draws them as yellow dashed lines extending into the rest of the day. Alert conditions fire
// when price breaks above or below the opening-range high/low.
// User Inputs:
// • Session Start Hour/Minute: define when your market open begins
// • Range Length: how many minutes after open to form the opening range
//
// Key Benefits:
// • Immediate visual context for where price is trading relative to the opening range
// • Daily reset ensures each new session starts fresh
// • Built‑in alerts for breakout entries
Gold Key Levels 3290-3350This TradingView indicator plots dynamic key price levels between a customizable range (default: 3290–3350) in steps of 5.
Key features include:
Dynamic Range Control:
Set the start and end levels manually.
Adjust the gap (step) between each level.
Key Level Highlighting:
Levels ending with 00, 30, or 50 are automatically highlighted with a different color.
Other levels use the normal color.
Toggle Display:
A simple ON/OFF toggle to quickly show or hide all key levels without editing the script.
EMA 9 on 5-Minute Chart:
A 9-period Exponential Moving Average (EMA) is plotted, visible only on the 5-minute timeframe.
Alert Conditions:
Generates alerts when the price crosses above or below the EMA 9.
Professional Styling:
Infinite horizontal lines (fully extended across the chart).
Clean and simple structure without unnecessary multi-line formatting.
Quantum UT BOT by MrCryptoBTCQuantum UT BOT by MrCryptoBTC – Precision Signal Engine (Not For Sale - FREE)
How it Works:
The Quantum UT BOT is a smart, optimized version of the classic UT BOT indicator by Yo_adriiiiaan.
It has been meticulously modified by MrCryptoBTC with a Key Value of 0.5 and an ATR Period of 7, making it faster, more responsive, and more accurate in detecting market shifts.
The system uses Adaptive ATR-based triggers to generate Buy (LONG) and Sell (SHORT) signals with Exit points, helping traders catch trends earlier and lock in profits intelligently.
Description:
Quantum UT BOT is an evolution of the original UT BOT, now tuned for higher precision, faster entries, and smarter exits.
By adjusting the core parameters (Key Value 0.5, ATR Period 7), MrCryptoBTC has transformed the UT BOT into a next-generation signal engine suitable for scalpers, intraday, and swing traders.
The Buy and Sell signals generated by the Quantum UT BOT are clear, early, and reliable — offering a major advantage in volatile markets like Gold, Crypto, and Forex.
It is highly recommended to use the Quantum UT BOT together with the STO * Smart Trend Oscillator for a complete smart trading system, providing confirmation and trend filtering for maximum accuracy.
Main Features:
* Fast Buy/Sell Detection – reacts quickly to market changes
* Clear Exit Signals – helps secure profits and reduce drawdowns
* Smart Trend Filtering – ATR-adaptive for dynamic conditions
* Works on All Timeframes – from 1-minute scalping to daily swings
* Perfect Companion to STO * Smart Trend Oscillator
✅ Created by: MrCryptoBTC
✅ Perfect for: Scalpers, Intraday Traders, Swing Traders
✅ Markets: Gold, Crypto, Forex, Indices
Asia High/Low Break Alert (20:00-02:00 NY Time)An indicator that automaically alerts the Asia/Highs and Lows. Good for someone that wants to wake up in the middle of the night that wants to trade the Asia Sweep maximizing their sleep
Initial Imbalance [First FVG - ICT] v1Initial Imbalance v1
This indicator identifies the first Fair Value Gap (FVG) at the start of a user-defined session, inspired by The Inner Circle Trader. It helps traders spot initial imbalance in a sessions price action, offering filter options to refine FVG detection and optional session high/low lines for context.
Features:
Detects the first bullish or bearish FVG at the session start (default: 08:30). ISE: Sets a custom session start time (hour and minute).
Filters FVGs by size: None, ATR-based, or Points-based.
Displays session high/low lines (optional) to visualize the session range.
Customizable colors for bullish and bearish FVGs (background and border derived from a single color input).
Alerts for new FVGs and mitigated FVGs.
Settings:
Session Start Time: Define the hour and minute for the session start.
FVG Filter Type: Choose None, ATR, or Points to filter FVGs by size.
ATR Multiple / Minimum Points: Set the minimum FVG size for ATR or Points filters.
Show Session High/Low Lines: Toggle visibility of session range lines.
Bullish/Bearish FVG Colors: Customize colors for FVGs.
Technical Details:
Overlay indicator, displayed directly on the price chart.
This indicator is ideal for traders seeking to identify key price imbalances at the start of a session, with flexible filtering and visualization options.
Awesome EMASimple crossing EMA suited for smaller time frames. This is an updated of someone else's work, but I've had it for so long I cant fine the original author.
Prezzo + Velocità + AccelerazionePrice + Velocity + Acceleration (Cycle Centered Analysis)
Description:
🔥 This indicator provides an advanced analysis of the cyclical behavior of the market through the calculation of:
📈 Centered Moving Average (150 periods, equivalent to a 450-period cycle on the 15m timeframe, adapted to 45m),
🏎️ Velocity: the difference between two consecutive centered moving averages (measuring immediate movement strength),
⚡ Acceleration: the difference between moving averages of the velocity (measuring the change in force, i.e., cyclic acceleration),
🌟 Smoothed Acceleration Moving Average (amplified ×100 for better visualization).
✅ All calculations respect the exact centering of data (offset -length/2). ✅ No subjective interpretations: pure mathematical cycle analysis.
How to read it:
The green/red line = Instantaneous velocity.
The smoothed green/red line = Instantaneous acceleration.
The yellow line = Smoothed acceleration moving average ×100, showing important phase inversions.
Operational use:
Velocity color changes → possible short-term cycle turning points.
Acceleration reversals → confirmations of cycle trend changes.
📊 Best suited for intraday and swing trading (45-minute and daily timeframes).
📚 A powerful tool to study and forecast market cycles based on pure mathematics without subjective biases.
Trading Session Levels | Data For TradersA clean price level marker for futures traders that markets the Tokyo, London and New York session open, high, low and close price levels.
Kevs RSI v2 - Divergence & Signals **Kevs RSI v2 - Divergence & Signals**
**Description:**
Kevs RSI v2 is an enhanced Relative Strength Index (RSI) indicator designed for traders who want more actionable insights from RSI behavior.
It combines a hybrid smoothing technique for a cleaner RSI line with intelligent divergence detection and automatic buy/sell signals.
Key features include:
- **Smoothed RSI** using a blend of WMA and EMA for a sharper, more responsive line.
- **Buy/Sell Signals** generated by oversold/overbought exits and confirmed divergence patterns.
- **Automatic Divergence Detection**, highlighting bullish and bearish divergences visually on the chart.
- **Customizable Settings** for RSI length, overbought/oversold levels, background fill, and divergence sensitivity.
This tool provides an excellent edge for traders who want to combine traditional RSI signals with modern divergence analysis.
---
# **How to Use:**
1. **Add to Chart:**
Apply "Kevs RSI v2 - Divergence & Signals" to your chart from the Indicators menu.
2. **Customize Settings (Optional):**
- Adjust the RSI Length, Overbought, and Oversold levels according to your trading style.
- Turn background fill on or off for better visibility.
- Modify the Divergence Lookback Period or Strength Threshold to fine-tune divergence sensitivity.
3. **Interpret Signals:**
- **Buy Signal:** A green "BUY" label appears when the RSI crosses back above the oversold zone or when bullish divergence is detected.
- **Sell Signal:** A red "SELL" label appears when the RSI crosses below the overbought zone or when bearish divergence is detected.
- **Bullish/Bearish Divergence:** Small green or red diamonds highlight divergence points with optional strength labels.
4. **Trade Responsibly:**
Combine these signals with your broader analysis (price action, trend structure, risk management) for best results.
---
**Notes:**
- Best used on 1-minute to daily charts.
- Ideal for day traders, swing traders, and crypto or forex traders looking to enhance entry/exit precision.
- Divergence detection is dynamic — lower the "Divergence Strength Threshold" to catch more divergences, or raise it to filter out weaker signals.
WhispererRealtimeVolumeLibrary "WhispererRealtimeVolume"
▮ Overview
The Whisperer Realtime Volume Library is a lightweight and reusable Pine Script® library designed for real-time volume analysis.
It calculates up, down, and neutral volumes dynamically, making it an essential tool for traders who want to gain deeper insights into market activity.
This library is a simplified and modular version of the original "Realtime Volume Bars w Market Buy/Sell/Neutral split & Mkt Delta" indicator by the_MarketWhisperer , tailored for integration into custom scripts.
How bars are classified
- Up Bars
If the current bar’s closing price is higher than the previous bar’s closing price, it is classified as an up bar.
Volume handling:
The increase in volume for this bar is added to the up volume.
This represents buying pressure.
- Down Bars
If the current bar’s closing price is lower than the previous bar’s closing price, it is classified as a down bar.
Volume handling:
The increase in volume for this bar is added to the down volume.
This represents selling pressure.
- Neutral Bars
If the current bar’s closing price is the same as the previous bar’s closing price, it is classified as a neutral bar.
Volume handling:
If neutral volume is enabled, the volume is added to the neutral volume.
If neutral volume is not enabled, the volume is assigned to the same direction as the previous bar (up or down). If the previous direction is unknown, it is added to the neutral volume.
▮ What to look for
Real-Time Volume Calculation : Analyze up, down, and neutral volumes in real-time based on price movements and bar volume.
Customizable Start Line : Add a visual reference line to your chart for better context by viewing the starting point of real-time bars.
Ease of Integration : Designed as a library for seamless use in other Pine Script® indicators or strategies.
▮ How to use
Example code:
//@version=6
indicator("Volume Realtime from Whisperer")
import andre_007/WhispererRealtimeVolume/4 as MW
MW.displayStartLine(startLineColor = color.gray, startLineWidth = 1, startLineStyle = line.style_dashed,
displayStartLine = true, y1=volume, y2=volume + 10)
= MW.mw_upDownVolumeRealtime(true)
plot(volume, style=plot.style_columns, color=color.gray)
plot(volumeUp, style=plot.style_columns, color=color.green)
plot(volumeDown, style=plot.style_columns, color=color.red)
plot(volumeNeutral, style=plot.style_columns, color=color.purple)
▮ Credits
This library is inspired by the original work of the_MarketWhisperer , whose "Realtime Volume Bars" indicator served as the foundation.
Link to original indicator :
Ultimate Multi EMA🔹 Ultimate Multi EMA + HTF Bias Line
This script plots four customizable EMAs (8, 21, 50, 200) with flexible colors and line widths.
It also adds an automatic Higher Timeframe (HTF) EMA line:
On the Daily timeframe: shows the Weekly EMA.
On lower timeframes (like 1-minute): shows the Daily EMA.
The HTF EMA helps to easily identify market bias.
All colors and thicknesses can be adjusted in the settings.
Default settings:
EMA 8 (green)
EMA 21 (gold)
EMA 50 (blue)
EMA 200 (black)
HTF EMA (lilac)
Ultimate Multi EMA🔹 Ultimate Multi EMA + HTF Bias Line
This script plots four customizable EMAs (8, 21, 50, 200) with flexible colors and line widths.
It also adds an automatic Higher Timeframe (HTF) EMA line:
On the Daily timeframe: shows the Weekly EMA.
On lower timeframes (like 1-minute): shows the Daily EMA.
The HTF EMA helps to easily identify market bias.
All colors and thicknesses can be adjusted in the settings.
Default settings:
EMA 8 (green)
EMA 21 (gold)
EMA 50 (blue)
EMA 200 (black)
HTF EMA (lilac)
BTC Growth | AlchimistOfCrypto🌈 BTC Regression Bands & Halvings – Unveiling Bitcoin's Logarithmic Growth Fields 🌈
"The Bitcoin Regression Bands, engineered through advanced logarithmic mathematics, visualizes the probabilistic distribution of Bitcoin's price evolution within a multi-cycle growth paradigm. This indicator employs principles from hyperbolic regression where decay coefficients create mathematical boundaries that define Bitcoin's long-term value progression. Our implementation features algorithmically enhanced rainbow visualization derived from extensive cycle analysis, creating a dynamic representation of Bitcoin's logarithmic growth with adaptive color gradients that highlight critical halving-based phase transitions in the asset's monetary evolution."
📊 Professional Trading Application
The Bitcoin Regression Bands transcends traditional price prediction models with a sophisticated multi-band illumination system that reveals the underlying structure of Bitcoin's monetary evolution. Scientifically calibrated across multiple halving cycles and featuring seamless rainbow visualization, it enables investors to perceive Bitcoin's position within its macro growth trajectory with unprecedented clarity.
- Visual Theming 🎨
Scientifically designed rainbow gradient optimized for cycle pattern recognition:
- Violet-Blue: Lower value accumulation zones with highest mathematical growth potential
- Green: Fair value equilibrium zone representing the regression mean
- Yellow-Orange: Moderate overvaluation regions indicating potential resistance
- Red: Statistical extreme zones indicating mathematical cycle peaks
- Halving Visualization 🔍
- Precise cycle boundaries demarcating Bitcoin's fundamental supply shock events
- Adaptive band spacing based on mathematical cycle progression
- Multiple sub-cycle markers revealing the probabilistic nature of Bitcoin's trajectory
🚀 How to Use
1. Identify Macro Position ⏰: Locate Bitcoin's current price relative to the regression bands
2. Understand Cycle Context 🎚️: Note position within the current halving cycle for time-based analysis
3. Assess Mathematical Value 🌈: Determine potential over/undervaluation based on band location
4. Adjust Investment Strategy 🔎: Modulate position sizing based on mathematical value assessment
5. Identify Cycle Phases ✅: Monitor band transitions to detect accumulation and distribution zones
6. Invest with Precision 🛡️: Utilize lower bands for strategic accumulation, upper bands for strategic reduction
7. Manage Risk Dynamically 🔐: Scale investment allocations based on mathematical cycle positioning
RSI Full Forecast [Titans_Invest]RSI Full Forecast
Get ready to experience the ultimate evolution of RSI-based indicators – the RSI Full Forecast, a boosted and even smarter version of the already powerful: RSI Forecast
Now featuring over 40 additional entry conditions (forecasts), this indicator redefines the way you view the market.
AI-Powered RSI Forecasting:
Using advanced linear regression with the least squares method – a solid foundation for machine learning - the RSI Full Forecast enables you to predict future RSI behavior with impressive accuracy.
But that’s not all: this new version also lets you monitor future crossovers between the RSI and the MA RSI, delivering early and strategic signals that go far beyond traditional analysis.
You’ll be able to monitor future crossovers up to 20 bars ahead, giving you an even broader and more precise view of market movements.
See the Future, Now:
• Track upcoming RSI & RSI MA crossovers in advance.
• Identify potential reversal zones before price reacts.
• Uncover statistical behavior patterns that would normally go unnoticed.
40+ Intelligent Conditions:
The new layer of conditions is designed to detect multiple high-probability scenarios based on historical patterns and predictive modeling. Each additional forecast is a window into the price's future, powered by robust mathematics and advanced algorithmic logic.
Full Customization:
All parameters can be tailored to fit your strategy – from smoothing periods to prediction sensitivity. You have complete control to turn raw data into smart decisions.
Innovative, Accurate, Unique:
This isn’t just an upgrade. It’s a quantum leap in technical analysis.
RSI Full Forecast is the first of its kind: an indicator that blends statistical analysis, machine learning, and visual design to create a true real-time predictive system.
⯁ SCIENTIFIC BASIS LINEAR REGRESSION
Linear Regression is a fundamental method of statistics and machine learning, used to model the relationship between a dependent variable y and one or more independent variables 𝑥.
The general formula for a simple linear regression is given by:
y = β₀ + β₁x + ε
β₁ = Σ((xᵢ - x̄)(yᵢ - ȳ)) / Σ((xᵢ - x̄)²)
β₀ = ȳ - β₁x̄
Where:
y = is the predicted variable (e.g. future value of RSI)
x = is the explanatory variable (e.g. time or bar index)
β0 = is the intercept (value of 𝑦 when 𝑥 = 0)
𝛽1 = is the slope of the line (rate of change)
ε = is the random error term
The goal is to estimate the coefficients 𝛽0 and 𝛽1 so as to minimize the sum of the squared errors — the so-called Random Error Method Least Squares.
⯁ LEAST SQUARES ESTIMATION
To minimize the error between predicted and observed values, we use the following formulas:
β₁ = /
β₀ = ȳ - β₁x̄
Where:
∑ = sum
x̄ = mean of x
ȳ = mean of y
x_i, y_i = individual values of the variables.
Where:
x_i and y_i are the means of the independent and dependent variables, respectively.
i ranges from 1 to n, the number of observations.
These equations guarantee the best linear unbiased estimator, according to the Gauss-Markov theorem, assuming homoscedasticity and linearity.
⯁ LINEAR REGRESSION IN MACHINE LEARNING
Linear regression is one of the cornerstones of supervised learning. Its simplicity and ability to generate accurate quantitative predictions make it essential in AI systems, predictive algorithms, time series analysis, and automated trading strategies.
By applying this model to the RSI, you are literally putting artificial intelligence at the heart of a classic indicator, bringing a new dimension to technical analysis.
⯁ VISUAL INTERPRETATION
Imagine an RSI time series like this:
Time →
RSI →
The regression line will smooth these values and extend them n periods into the future, creating a predicted trajectory based on the historical moment. This line becomes the predicted RSI, which can be crossed with the actual RSI to generate more intelligent signals.
⯁ SUMMARY OF SCIENTIFIC CONCEPTS USED
Linear Regression Models the relationship between variables using a straight line.
Least Squares Minimizes the sum of squared errors between prediction and reality.
Time Series Forecasting Estimates future values based on historical data.
Supervised Learning Trains models to predict outputs from known inputs.
Statistical Smoothing Reduces noise and reveals underlying trends.
⯁ WHY THIS INDICATOR IS REVOLUTIONARY
Scientifically-based: Based on statistical theory and mathematical inference.
Unprecedented: First public RSI with least squares predictive modeling.
Intelligent: Built with machine learning logic.
Practical: Generates forward-thinking signals.
Customizable: Flexible for any trading strategy.
⯁ CONCLUSION
By combining RSI with linear regression, this indicator allows a trader to predict market momentum, not just follow it.
RSI Full Forecast is not just an indicator — it is a scientific breakthrough in technical analysis technology.
⯁ Example of simple linear regression, which has one independent variable:
⯁ In linear regression, observations ( red ) are considered to be the result of random deviations ( green ) from an underlying relationship ( blue ) between a dependent variable ( y ) and an independent variable ( x ).
⯁ Visualizing heteroscedasticity in a scatterplot against 100 random fitted values using Matlab:
⯁ The data sets in the Anscombe's quartet are designed to have approximately the same linear regression line (as well as nearly identical means, standard deviations, and correlations) but are graphically very different. This illustrates the pitfalls of relying solely on a fitted model to understand the relationship between variables.
⯁ The result of fitting a set of data points with a quadratic function:
_________________________________________________
🔮 Linear Regression: PineScript Technical Parameters 🔮
_________________________________________________
Forecast Types:
• Flat: Assumes prices will remain the same.
• Linreg: Makes a 'Linear Regression' forecast for n periods.
Technical Information:
ta.linreg (built-in function)
Linear regression curve. A line that best fits the specified prices over a user-defined time period. It is calculated using the least squares method. The result of this function is calculated using the formula: linreg = intercept + slope * (length - 1 - offset), where intercept and slope are the values calculated using the least squares method on the source series.
Syntax:
• Function: ta.linreg()
Parameters:
• source: Source price series.
• length: Number of bars (period).
• offset: Offset.
• return: Linear regression curve.
This function has been cleverly applied to the RSI, making it capable of projecting future values based on past statistical trends.
______________________________________________________
______________________________________________________
⯁ WHAT IS THE RSI❓
The Relative Strength Index (RSI) is a technical analysis indicator developed by J. Welles Wilder. It measures the magnitude of recent price movements to evaluate overbought or oversold conditions in a market. The RSI is an oscillator that ranges from 0 to 100 and is commonly used to identify potential reversal points, as well as the strength of a trend.
⯁ HOW TO USE THE RSI❓
The RSI is calculated based on average gains and losses over a specified period (usually 14 periods). It is plotted on a scale from 0 to 100 and includes three main zones:
• Overbought: When the RSI is above 70, indicating that the asset may be overbought.
• Oversold: When the RSI is below 30, indicating that the asset may be oversold.
• Neutral Zone: Between 30 and 70, where there is no clear signal of overbought or oversold conditions.
______________________________________________________
______________________________________________________
⯁ ENTRY CONDITIONS
The conditions below are fully flexible and allow for complete customization of the signal.
______________________________________________________
______________________________________________________
🔹 CONDITIONS TO BUY 📈
______________________________________________________
• Signal Validity: The signal will remain valid for X bars .
• Signal Sequence: Configurable as AND or OR .
📈 RSI Conditions:
🔹 RSI > Upper
🔹 RSI < Upper
🔹 RSI > Lower
🔹 RSI < Lower
🔹 RSI > Middle
🔹 RSI < Middle
🔹 RSI > MA
🔹 RSI < MA
📈 MA Conditions:
🔹 MA > Upper
🔹 MA < Upper
🔹 MA > Lower
🔹 MA < Lower
📈 Crossovers:
🔹 RSI (Crossover) Upper
🔹 RSI (Crossunder) Upper
🔹 RSI (Crossover) Lower
🔹 RSI (Crossunder) Lower
🔹 RSI (Crossover) Middle
🔹 RSI (Crossunder) Middle
🔹 RSI (Crossover) MA
🔹 RSI (Crossunder) MA
🔹 MA (Crossover) Upper
🔹 MA (Crossunder) Upper
🔹 MA (Crossover) Lower
🔹 MA (Crossunder) Lower
📈 RSI Divergences:
🔹 RSI Divergence Bull
🔹 RSI Divergence Bear
📈 RSI Forecast:
🔹 RSI (Crossover) MA Forecast
🔹 RSI (Crossunder) MA Forecast
🔹 RSI Forecast 1 > MA Forecast 1
🔹 RSI Forecast 1 < MA Forecast 1
🔹 RSI Forecast 2 > MA Forecast 2
🔹 RSI Forecast 2 < MA Forecast 2
🔹 RSI Forecast 3 > MA Forecast 3
🔹 RSI Forecast 3 < MA Forecast 3
🔹 RSI Forecast 4 > MA Forecast 4
🔹 RSI Forecast 4 < MA Forecast 4
🔹 RSI Forecast 5 > MA Forecast 5
🔹 RSI Forecast 5 < MA Forecast 5
🔹 RSI Forecast 6 > MA Forecast 6
🔹 RSI Forecast 6 < MA Forecast 6
🔹 RSI Forecast 7 > MA Forecast 7
🔹 RSI Forecast 7 < MA Forecast 7
🔹 RSI Forecast 8 > MA Forecast 8
🔹 RSI Forecast 8 < MA Forecast 8
🔹 RSI Forecast 9 > MA Forecast 9
🔹 RSI Forecast 9 < MA Forecast 9
🔹 RSI Forecast 10 > MA Forecast 10
🔹 RSI Forecast 10 < MA Forecast 10
🔹 RSI Forecast 11 > MA Forecast 11
🔹 RSI Forecast 11 < MA Forecast 11
🔹 RSI Forecast 12 > MA Forecast 12
🔹 RSI Forecast 12 < MA Forecast 12
🔹 RSI Forecast 13 > MA Forecast 13
🔹 RSI Forecast 13 < MA Forecast 13
🔹 RSI Forecast 14 > MA Forecast 14
🔹 RSI Forecast 14 < MA Forecast 14
🔹 RSI Forecast 15 > MA Forecast 15
🔹 RSI Forecast 15 < MA Forecast 15
🔹 RSI Forecast 16 > MA Forecast 16
🔹 RSI Forecast 16 < MA Forecast 16
🔹 RSI Forecast 17 > MA Forecast 17
🔹 RSI Forecast 17 < MA Forecast 17
🔹 RSI Forecast 18 > MA Forecast 18
🔹 RSI Forecast 18 < MA Forecast 18
🔹 RSI Forecast 19 > MA Forecast 19
🔹 RSI Forecast 19 < MA Forecast 19
🔹 RSI Forecast 20 > MA Forecast 20
🔹 RSI Forecast 20 < MA Forecast 20
______________________________________________________
______________________________________________________
🔸 CONDITIONS TO SELL 📉
______________________________________________________
• Signal Validity: The signal will remain valid for X bars .
• Signal Sequence: Configurable as AND or OR .
📉 RSI Conditions:
🔸 RSI > Upper
🔸 RSI < Upper
🔸 RSI > Lower
🔸 RSI < Lower
🔸 RSI > Middle
🔸 RSI < Middle
🔸 RSI > MA
🔸 RSI < MA
📉 MA Conditions:
🔸 MA > Upper
🔸 MA < Upper
🔸 MA > Lower
🔸 MA < Lower
📉 Crossovers:
🔸 RSI (Crossover) Upper
🔸 RSI (Crossunder) Upper
🔸 RSI (Crossover) Lower
🔸 RSI (Crossunder) Lower
🔸 RSI (Crossover) Middle
🔸 RSI (Crossunder) Middle
🔸 RSI (Crossover) MA
🔸 RSI (Crossunder) MA
🔸 MA (Crossover) Upper
🔸 MA (Crossunder) Upper
🔸 MA (Crossover) Lower
🔸 MA (Crossunder) Lower
📉 RSI Divergences:
🔸 RSI Divergence Bull
🔸 RSI Divergence Bear
📉 RSI Forecast:
🔸 RSI (Crossover) MA Forecast
🔸 RSI (Crossunder) MA Forecast
🔸 RSI Forecast 1 > MA Forecast 1
🔸 RSI Forecast 1 < MA Forecast 1
🔸 RSI Forecast 2 > MA Forecast 2
🔸 RSI Forecast 2 < MA Forecast 2
🔸 RSI Forecast 3 > MA Forecast 3
🔸 RSI Forecast 3 < MA Forecast 3
🔸 RSI Forecast 4 > MA Forecast 4
🔸 RSI Forecast 4 < MA Forecast 4
🔸 RSI Forecast 5 > MA Forecast 5
🔸 RSI Forecast 5 < MA Forecast 5
🔸 RSI Forecast 6 > MA Forecast 6
🔸 RSI Forecast 6 < MA Forecast 6
🔸 RSI Forecast 7 > MA Forecast 7
🔸 RSI Forecast 7 < MA Forecast 7
🔸 RSI Forecast 8 > MA Forecast 8
🔸 RSI Forecast 8 < MA Forecast 8
🔸 RSI Forecast 9 > MA Forecast 9
🔸 RSI Forecast 9 < MA Forecast 9
🔸 RSI Forecast 10 > MA Forecast 10
🔸 RSI Forecast 10 < MA Forecast 10
🔸 RSI Forecast 11 > MA Forecast 11
🔸 RSI Forecast 11 < MA Forecast 11
🔸 RSI Forecast 12 > MA Forecast 12
🔸 RSI Forecast 12 < MA Forecast 12
🔸 RSI Forecast 13 > MA Forecast 13
🔸 RSI Forecast 13 < MA Forecast 13
🔸 RSI Forecast 14 > MA Forecast 14
🔸 RSI Forecast 14 < MA Forecast 14
🔸 RSI Forecast 15 > MA Forecast 15
🔸 RSI Forecast 15 < MA Forecast 15
🔸 RSI Forecast 16 > MA Forecast 16
🔸 RSI Forecast 16 < MA Forecast 16
🔸 RSI Forecast 17 > MA Forecast 17
🔸 RSI Forecast 17 < MA Forecast 17
🔸 RSI Forecast 18 > MA Forecast 18
🔸 RSI Forecast 18 < MA Forecast 18
🔸 RSI Forecast 19 > MA Forecast 19
🔸 RSI Forecast 19 < MA Forecast 19
🔸 RSI Forecast 20 > MA Forecast 20
🔸 RSI Forecast 20 < MA Forecast 20
______________________________________________________
______________________________________________________
🤖 AUTOMATION 🤖
• You can automate the BUY and SELL signals of this indicator.
______________________________________________________
______________________________________________________
⯁ UNIQUE FEATURES
______________________________________________________
Linear Regression: (Forecast)
Signal Validity: The signal will remain valid for X bars
Signal Sequence: Configurable as AND/OR
Condition Table: BUY/SELL
Condition Labels: BUY/SELL
Plot Labels in the Graph Above: BUY/SELL
Automate and Monitor Signals/Alerts: BUY/SELL
Linear Regression (Forecast)
Signal Validity: The signal will remain valid for X bars
Signal Sequence: Configurable as AND/OR
Condition Table: BUY/SELL
Condition Labels: BUY/SELL
Plot Labels in the Graph Above: BUY/SELL
Automate and Monitor Signals/Alerts: BUY/SELL
______________________________________________________
📜 SCRIPT : RSI Full Forecast
🎴 Art by : @Titans_Invest & @DiFlip
👨💻 Dev by : @Titans_Invest & @DiFlip
🎑 Titans Invest — The Wizards Without Gloves 🧤
✨ Enjoy!
______________________________________________________
o Mission 🗺
• Inspire Traders to manifest Magic in the Market.
o Vision 𐓏
• To elevate collective Energy 𐓷𐓏
XAUUSD Polished Pullback StrategyThis is a 20SMA pull back strategy. It will buy or sell when ever it touches the SMA and pulls back thereby creating sniper entries.
Overnight ES Strategy: CBC + Fractal + RSI + ATR FilterThis script is designed for overnight trading of the E-mini S&P 500 futures (ES) between 6 PM and 11 PM EST.
It combines multiple technical confluences to generate high-probability buy and sell signals, focusing on volatility-rich, low-liquidity evening sessions.
Key Features:
Candle Body Confluence (CBC) Approximation:
Identifies candles with small real bodies compared to total range, simulating consolidation zones where price is likely to reverse.
Williams Fractal Confirmation:
Detects local tops and bottoms based on 5-bar fractal reversal patterns, helping validate breakout or reversal points.
RSI Filter:
Ensures momentum is supportive — buys only when RSI < 35 (oversold) and sells only when RSI > 65 (overbought).
ATR Volatility Filter:
Trades are only allowed if the Average True Range (ATR) exceeds a user-defined threshold, filtering out low-volatility, risky environments.
Time Session Control:
Signals are only generated during the user-defined evening session (default: 6 PM to 11 PM EST) to match market behavior.
Real-Time Alerts Enabled:
Alerts can be set for BUY or SELL conditions, enabling mobile notifications, emails, or pop-ups without constant chart monitoring.
Recommended Settings:
Chart Timeframe: 15-minute or 30-minute candles
Assets: ES Mini (ES1!), NQ Mini, or other CME futures
Session: New York Time (EST)
ATR Threshold: Adjust based on market conditions; 5.0 suggested starting point for ES Mini on 15m.
Important:
This script only plots signals, it does not auto-execute trades.
Always backtest and paper trade before using live capital.
Volatility can vary; consider adjusting RSI and ATR filters based on market environment.
Credits:
Script designed based on confluence of price action, momentum, reversal structure, and volatility filtering principles used by professional traders.
Inspired by Candle Body Confluence (CBC) theory and Williams fractal techniques.