Future Prediction Lines//@version=6
indicator("Future Prediction Lines", overlay=true)
/*
# **Future Prediction Lines v3 (Indicator Documentation)**
---
## **Purpose**
The **Future Prediction Lines Indicator** is a powerful tool designed to visualize potential future price movements based on historical trends and multi-timeframe analysis. By integrating **linear regression**, **momentum indicators (MACD and RSI)**, and **confidence bands**, this indicator helps traders anticipate where prices might move over the next ` ` bars.
---
## **Key Features**
1. **Future Price Prediction**:
- Forecasts price movements for a user-defined number of bars into the future.
- Combines trends from multiple timeframes for a more robust prediction.
2. **Confidence Bands**:
- Upper and lower bounds based on **ATR (Average True Range)** to estimate potential volatility around the predicted price.
3. **Customizable Parameters**:
- **Future Bars**: Adjust how far ahead the predictions extend.
- **Higher Timeframe Analysis**: Incorporate data from larger timeframes (e.g., Daily, Weekly).
4. **Visibility Toggles**:
- **Reference Lines**: Hide or display the local and higher timeframe trends.
- **Confidence Bands**: Optionally show or hide the volatility bands around the forecast.
5. **Visual Markers**:
- **Red prediction lines** start from the current price and extend into the future.
- A **label** displays the forecasted price at the furthest point.
---
## **How It Works**
### 1. **Linear Regression (Trend Analysis)**:
- The indicator calculates **linear regression (LR)** for the chart's current timeframe and a higher timeframe.
- It averages these trends to create a combined forecast.
### 2. **Momentum Adjustments**:
- **MACD**: Adjusts predictions based on short-term momentum.
- **RSI**: Accounts for overbought/oversold conditions, nudging forecasts accordingly.
### 3. **Confidence Bands**:
- Uses **ATR** to generate upper and lower bounds, highlighting potential price volatility around the central forecast.
---
## **Recommended Timeframes**
### **1. Day Trading**:
- **Chart Timeframe**: 5m, 15m, 1H
- **Higher TF**: 4H or Daily
- **Focus**: Captures intraday trends and micro-movements.
### **2. Swing Trading**:
- **Chart Timeframe**: 4H, Daily
- **Higher TF**: Weekly
- **Focus**: Anticipates multi-day price swings within trends.
### **3. Position Trading**:
- **Chart Timeframe**: Daily, Weekly
- **Higher TF**: Monthly
- **Focus**: Analyzes macro trends and large price movements over weeks or months.
---
## **Settings Overview**
| **Parameter** | **Description** |
|-----------------------|-----------------------------------------------------------------------------------------------------------------------------|
| **Future Bars** | Number of bars to project into the future. |
| **Higher TF** | Select a higher timeframe to incorporate larger trends (e.g., "D" for Daily, "W" for Weekly). |
| **Confidence Bands** | Option to show upper/lower bounds based on ATR. |
| **MACD Settings** | Fine-tune MACD lengths for momentum adjustment. |
| **RSI Settings** | Adjust RSI length and overbought/oversold levels to influence predictions. |
| **Show Reference** | Toggle local and higher timeframe regression lines for comparison (default: hidden). |
---
## **How to Use**
1. **Add the Indicator**:
- Copy the script into TradingView’s Pine Editor.
- Click **Add to Chart**.
2. **Adjust Settings**:
- Open the indicator settings to configure:
- Number of future bars.
- Higher timeframe for additional trend analysis.
- Confidence bands (toggle visibility and adjust width using ATR).
3. **Interpret the Predictions**:
- **Red Line**: The central forecast for future prices.
- **Shaded Bands**: Optional confidence bands show volatility ranges.
- **Final Label**: Displays the predicted price at the furthest bar.
---
## **Practical Tips**
- **For Day Traders**:
- Use **shorter chart timeframes (5m–1H)** combined with a higher timeframe like **4H or Daily**.
- Focus on quick intraday price movements.
- **For Swing Traders**:
- Use a **4H or Daily chart** with **Weekly higher timeframe trends** for multi-day analysis.
- **For Long-Term Traders**:
- Use **Daily or Weekly charts** combined with **Monthly timeframe trends** to analyze macro movements.
---
## **Example Workflow**
1. Set your **chart timeframe** based on your trading style.
2. Select a **higher timeframe** in the settings (e.g., Weekly for swing trading).
3. Observe the **red prediction line** for potential price trajectory and plan entries/exits based on:
- Alignment with existing support/resistance levels.
- Confidence band boundaries (volatility range).
- Momentum indicators (e.g., MACD/RSI) confirming direction.
---
## **Limitations**
1. **Lagging Nature**:
- Linear regression is based on historical data and may lag during high-impact events.
2. **Assumption of Continuity**:
- Forecast assumes trends continue uninterrupted, which may not account for sudden market reversals.
3. **No Guarantee**:
- Predictions are **probabilistic** and should always be used in conjunction with other tools and analysis.
---
## **Final Note**
The **Future Prediction Lines Indicator** is a tool for projecting possible price paths. While it provides insights into potential price movements, always validate predictions with **price action**, **support/resistance levels**, and other **technical indicators** for better decision-making.
*/
Indicators and strategies
Relative Strength IndexRelative Strength Index
The relative strength index (RSI) is a momentum indicator used in technical analysis. RSI measures the speed and magnitude of a security's recent price changes to detect overbought or oversold conditions in the price of that security.
BTC Multi-Timeframe Perfect SignalsCe script, intitulé "BTC Multi-Timeframe Perfect Signals", est conçu pour détecter des signaux de trading robustes et fiables pour le Bitcoin en utilisant des critères provenant de plusieurs périodes de temps. Voici une description détaillée de ses fonctionnalités et de sa logique :
Objectif Principal
Le script identifie des signaux parfaits longs et courts en combinant des indicateurs techniques (RSI, MACD, EMA, volume) sur trois horizons temporels :
Hebdomadaire (Weekly) – pour analyser la tendance à long terme.
Journalier (Daily) – pour confirmer la dynamique intermédiaire.
Intra-journalier (4H) – pour des points d’entrée précis.
Les Composantes du Script
1. Paramètres Configurables
RSI Period : Période pour calculer l'indicateur RSI.
MACD Fast, Slow, Signal : Périodes utilisées pour les lignes MACD et Signal.
Ces paramètres permettent de personnaliser les signaux en fonction des préférences de l’utilisateur ou des caractéristiques du marché.
2. Indicateurs Multi-Timeframes (MTF)
Le script extrait les données suivantes depuis des périodes spécifiques grâce à request.security :
RSI Hebdomadaire et Journalier : Force relative du prix sur des périodes différentes.
EMA Hebdomadaire (20 et 50) : Moyennes mobiles exponentielles pour la tendance à long terme.
Prix de clôture journalier : Positionnement quotidien par rapport à l'EMA 20.
Volume Hebdomadaire : Pour évaluer l'intérêt du marché sur une longue période.
Pour la période actuelle (4H), il utilise :
MACD (4H) : Détection des croisements MACD/Signal.
RSI (4H) : Confirmation des conditions de surachat ou de survente.
ATR (Average True Range) : Mesure de la volatilité actuelle.
3. Signaux Parfaits
Les signaux se déclenchent si toutes les conditions suivantes sont remplies :
Signal Long :
Hebdomadaire :
RSI < 35 (Survente).
EMA 20 > EMA 50 (Tendance haussière).
Volume > Moyenne mobile du volume (20).
Journalier :
RSI < 40 (Confirmation de la survente intermédiaire).
Clôture > EMA 20 (Prix au-dessus de la moyenne mobile journalière).
4H :
Croisement MACD/Signal vers le haut.
RSI < 35.
Bonne volatilité (ATR supérieur à 80% de sa moyenne).
Signal Court :
Critères inverses : RSI > 65, EMA 20 < EMA 50, etc.
4. Alertes Détaillées
Lorsque les signaux parfaits sont détectés, le script génère une alerte avec :
Les conditions des trois périodes (RSI, tendance, etc.).
Les niveaux de Stop Loss (SL) et de Take Profit (TP1, TP2, TP3).
Une indication de la force maximale du signal et un "Win Rate" théorique.
5. Affichage Visuel
Les signaux longs sont représentés par des triangles verts sous les bougies.
Les signaux courts par des triangles rouges au-dessus des bougies.
Les couleurs de fond (optionnelles) peuvent indiquer un contexte haussier ou baissier.
Forces du Script
Robustesse : Combine plusieurs indicateurs et horizons pour réduire les faux signaux.
Personnalisation : Les paramètres ajustables permettent d’affiner les résultats.
Alertes Pratiques : Donne des détails complets pour agir rapidement.
Fiabilité : En intégrant volume, volatilité et tendance, il maximise la probabilité de réussite des signaux.
Limites et Améliorations Possibles
Complexité des Conditions : Les critères restrictifs peuvent limiter le nombre de signaux.
Manque de Backtesting : Pas de suivi de capital ou d’évaluation des performances historiques.
Dépendance à un seul actif : Conçu spécifiquement pour BTC.
Ce script est particulièrement utile pour des traders recherchant des points d'entrée/sortie précis et basés sur une analyse multi-timeframe complète. Si tu veux des ajustements ou un ajout de backtesting, fais-le-moi savoir !
Bollinger Bands StrategyHier ist eine grundlegende Tradingstrategie für ZEREBRO/USDT in Pine Script, die auf Bollinger Bändern basiert. Diese Strategie setzt Kauf- und Verkaufssignale und kann automatisch mit Bybit über TradingView verknüpft werden.
Bollinger Strategy
Diese Strategie verwendet Bollinger-Bänder, um Kauf- und Verkaufssignale zu generieren.
Pattern and Percent Pro-2.0Candle Percentage Change with Patterns Overview Original, unique indicator that represents the missing link between pattern-based candlestick analysis, volatility percentage tracking, and trend detection. The combination of multifeature abilities in one single script eliminates the need for the trader to overflow their screen with multiple indicators in order to analyze market dynamics easily and intuitively.
Originality
This script is unique among the other indicators for its combination of features, which so far have not been found together in one tool:
Integrated Percentage and Pattern Analysis: Though most tools focus either on candlestick patterns or on percentage changes, this script marries them together, offering both granular insights and broader market context, such as trend and cumulative changes.
Dynamic Visual Features: The optional heatmap dynamically changes shades with the magnitude of the percent change, offering a more intuitive way to evaluate market volatility. Besides that, adjustable labels and thresholds ensure an unparalleled degree of adaptability.
Multi-Layered Customizable Approach: From data filtration through RSI, highlighting of considerable changes, up to following cumulative trends, a trader can adjust this tool for his approach, which hardly finds its analogy in such an extended manner.
Pattern Synergy: The advanced detection of candlestick patterns, combined with indicators of trend and percentage change, creates a synergy that is above the sum of its parts in terms of actionable insights for traders. Key Features and How They Work
Percentage Change Analysis:
To begin, there will be percentage change labels for each candle. The user will be able to set label placement so that it will include cumulative percentage tracking across a predefined number of candles for short- and long-term insight into the markets.
Candlestick Pattern Detection:
Automatically detects and labels major candlestick patterns including but not limited to:
Doji Variants (Dragonfly, Gravestone).
Hammer Variants (Standard, Inverted).
Marubozu Patterns (Bullish, Bearish).
These are important in the identification of potential reversals or continuation signals.
Trend Analysis with Moving Average(Optional):
Detects the general direction of the market using Weighted Moving Average. Arrows are used to visually indicate upward or downward trends.
Heatmap and Highlighting:
Heatmap - The background is dynamically colored based on percentage changes; this provides instant visual feedback on volatility.
Highlighting: Marks candles that exceed user-defined thresholds, helping traders identify significant market movements.
RSI Integration (Optional):
Filters displayed labels based on RSI overbought/oversold levels to reduce noise and refine insights.
Customizable Alerts:
Notifications of high or low percentage changes include visual and audio cues to keep traders informed in real time.
User-Friendly Customization:
Traders can customize label colors, positions, lifespan, and more to fit their needs.
Use Case and Application
This script is perfect for:
Day Traders and Scalpers: Immediate identification of high-volatility candles for quick reversals.
Swing Traders: Confirm entry and exit with cumulative percentage trends.
Education: This will help new traders learn in a very simplified manner how to use complex concepts like candlestick patterns and trend analysis.
How to Use:
Toggle Features On/Off: Heatmap, candlestick pattern, RSI filter, and/or trend arrow.
Threshold Settings: Percentage change threshold and label lifetime threshold set for actionable signals.
Visualize Volatility: Immediately understand the action in the market through the heat map and combine it with pattern detection for a more profound analysis.
This script is unique because it's the first multi-dimensional tool that brings together the best in class candlestick pattern recognition, % change tracking, and visualizations into one single, easy-to-use tool. It will be a must-have tool for any serious trader who wants to glean immediate insight into volatility, trend, and pattern information all from one place.
RS ScanThis indicator is primarily used in Pine Screener to filter stocks with relative strength. There are three screening modes: daily close range percentage, weekly close range percentage, and stock price change.
The close range is used to filter stocks where the close price is positioned at a certain percentage of the entire bar within a day or a week. For example, in the weekly close range percentage, selecting "above 90" means that the weekly closing price is above 90% of the entire bar.
The stock price change is used to filter stocks based on price changes within a specified date range. We can use TradingView to determine the distance from the recent high of SPX to today's closing price: the number of bars X and the price change value Y. Then, in the indicator settings, select the date range X for the number of bars and choose "above Y" in the manual setup. This way, we can filter out stocks that have a price change greater than Y within X bars.
SHAAKUNI INDICATO//@version=5
indicator("Simple Moving Average Crossover", overlay=true)
// Input for Moving Averages
fastLength = input.int(10, title="Fast MA Length")
slowLength = input.int(20, title="Slow MA Length")
// Calculating Moving Averages
fastMA = ta.sma(close, fastLength)
slowMA = ta.sma(close, slowLength)
// Plotting Moving Averages
plot(fastMA, color=color.green, title="Fast MA")
plot(slowMA, color=color.red, title="Slow MA")
// Highlight Buy/Sell Signals
buySignal = ta.crossover(fastMA, slowMA)
sellSignal = ta.crossunder(fastMA, slowMA)
plotshape(series=buySignal, title="Buy Signal", location=location.belowbar, color=color.new(color.green, 0), style=shape.labelup, text="BUY")
plotshape(series=sellSignal, title="Sell Signal", location=location.abovebar, color=color.new(color.red, 0), style=shape.labeldown, text="SELL")
Strategies 71% Profit / Scalping by Jasson+FuturosMake the most of it, Time: 10:00am A 12:00pm (New-York).
Advanced Buy/Sell Signals with Sessions 2025 KravchenkoНаданий вами скрипт — це торгова стратегія, реалізована в Pine Script, яка використовується для створення сигналів купівлі та продажу на основі комбінації різних технічних індикаторів. Ось розбивка компонентів: ### Ключові компоненти: 1. **RSI (індекс відносної сили)**: використовується для визначення умов перекупленості або перепроданості на ринку. - **Умова**: стратегія шукає RSI нижче 30 (перепроданість) для сигналів купівлі та RSI вище 70 (перекупленість) для сигналів продажу. 2.
MA 200 and Bollinger Bands StrategyNamaku Alfian, aku wong jawa timur, gawe en lek menurutmu cocok, lek engga yo ojo dielek2no, iki mek gae testing tok, aku yo butuh duit su
Pivot Points S/R- Ashish SinghWhat does the indicator do?
This indicator adds labels to a chart at swing ("pivot") highs and lows. Each label may contain a horizontal line mark, the high low price at the swing, the number of bars since the last swing in the same direction, and the number of bars from the last swing in the opposite direction.
How to Use Pivot Points in Trading
Identify Key Levels:
Calculate the pivot point and associated support and resistance levels for the current trading day.
Plot these levels on your chart.
Trend Direction:
If the price is above the pivot point (Green line), it indicates bullish sentiment.
If the price is below the pivot point (Red line), it suggests bearish sentiment.
Using Support and Resistance Levels:
Support Levels(Red Line): Look for buying opportunities near these levels if the price is trending down.
Resistance Levels(Green Line): Look for selling opportunities near these levels if the price is trending up.
Breakout Strategies:
A breakout above resistance can signal a continuation of the uptrend.
A breakout below support can signal a continuation of the downtrend.
Reversal Strategies:
If the price tests a resistance level and starts to reverse, it could indicate a potential short-selling opportunity.
If the price tests a support level and bounces, it might signal a buying opportunity.
Combine with Other Indicators:
Use additional tools like moving averages, RSI, or MACD to confirm signals.
Look for confluence between pivot levels and other technical indicators or chart patterns.
Percentual Variation This script is an indicator for plotting percentage-based lines using the previous day's closing price. It is useful for traders who want to visualize support and resistance levels derived from predefined percentages. Here's what the script does:
Calculates percentage levels:
It uses the previous day's closing price to calculate two positive levels (above the close) and two negative levels (below the close) based on fixed percentages:
+0.25% and +0.50% (above the close).
-0.25% and -0.50% (below the close).
Plots the lines on the chart:
Draws four horizontal lines representing the calculated levels:
Green lines indicate levels above the closing price.
Red lines indicate levels below the closing price.
Displays labels on the chart:
Adds labels near the lines showing the corresponding percentage, such as "+0.25%", "+0.50%", "-0.25%", and "-0.50%".
This script provides a clear visual representation of key percentage-based levels, which can be used as potential entry, exit, or target points in trading strategies.
High Accuracy Forex Indicator//@version=5
indicator("High Accuracy Forex Indicator", overlay=true)
// Input for Moving Averages
fastLength = input(14, title="Fast MA Length")
slowLength = input(50, title="Slow MA Length")
// Calculate Moving Averages
fastMA = ta.sma(close, fastLength)
slowMA = ta.sma(close, slowLength)
// Plot Moving Averages on the price chart
plot(fastMA, color=color.green, title="Fast MA")
plot(slowMA, color=color.red, title="Slow MA")
// Generate Buy and Sell Signals
buySignal = ta.crossover(fastMA, slowMA)
sellSignal = ta.crossunder(fastMA, slowMA)
// Plot Buy and Sell Signals on the chart
plotshape(series=buySignal, location=location.belowbar, color=color.green, style=shape.labelup, text="BUY", size=size.small)
plotshape(series=sellSignal, location=location.abovebar, color=color.red, style=shape.labeldown, text="SELL", size=size.small)
// Alerts for Buy and Sell Signals
alertcondition(buySignal, title="Buy Alert", message="Buy Signal!")
alertcondition(sellSignal, title="Sell Alert", message="Sell Signal!")
21 EMA Crossover Strategy with 80% accuracy21 EMA Crossover Strategy with 80% accuracy. Once high of the buy signal is broken take a long trade and once low of sell signal is broken then take a short trade. Put stoploss as high or low of prev candle based on the trade
PIERCING PATTERNThis indicator identify of piercing Bullish and bearish pattern finding for help you.
SHAAKUNI INDICATOR//@version=5
indicator("Simple Moving Average Crossover", overlay=true)
// Input for Moving Averages
fastLength = input.int(10, title="Fast MA Length")
slowLength = input.int(20, title="Slow MA Length")
// Calculating Moving Averages
fastMA = ta.sma(close, fastLength)
slowMA = ta.sma(close, slowLength)
// Plotting Moving Averages
plot(fastMA, color=color.green, title="Fast MA")
plot(slowMA, color=color.red, title="Slow MA")
// Highlight Buy/Sell Signals
buySignal = ta.crossover(fastMA, slowMA)
sellSignal = ta.crossunder(fastMA, slowMA)
plotshape(series=buySignal, title="Buy Signal", location=location.belowbar, color=color.new(color.green, 0), style=shape.labelup, text="BUY")
plotshape(series=sellSignal, title="Sell Signal", location=location.abovebar, color=color.new(color.red, 0), style=shape.labeldown, text="SELL")
Z-Strike RecoveryThis strategy utilizes the Z-Score of daily changes in the VIX (Volatility Index) to identify moments of extreme market panic and initiate long entries. Scientific research highlights that extreme volatility levels often signal oversold markets, providing opportunities for mean-reversion strategies.
How the Strategy Works
Calculation of Daily VIX Changes:
The difference between today’s and yesterday’s VIX closing prices is calculated.
Z-Score Calculation:
The Z-Score quantifies how far the current change deviates from the mean (average), expressed in standard deviations:
Z-Score=(Daily VIX Change)−MeanStandard Deviation
Z-Score=Standard Deviation(Daily VIX Change)−Mean
The mean and standard deviation are computed over a rolling period of 16 days (default).
Entry Condition:
A long entry is triggered when the Z-Score exceeds a threshold of 1.3 (adjustable).
A high positive Z-Score indicates a strong overreaction in the market (panic).
Exit Condition:
The position is closed after 10 periods (days), regardless of market behavior.
Visualizations:
The Z-Score is plotted to make extreme values visible.
Horizontal threshold lines mark entry signals.
Bars with entry signals are highlighted with a blue background.
This strategy is particularly suitable for mean-reverting markets, such as the S&P 500.
Scientific Background
Volatility and Market Behavior:
Studies like Whaley (2000) demonstrate that the VIX, known as the "fear gauge," is highly correlated with market panic phases. A spike in the VIX is often interpreted as an oversold signal due to excessive hedging by investors.
Source: Whaley, R. E. (2000). The investor fear gauge. Journal of Portfolio Management, 26(3), 12-17.
Z-Score in Financial Strategies:
The Z-Score is a proven method for detecting statistical outliers and is widely used in mean-reversion strategies.
Source: Chan, E. (2009). Quantitative Trading. Wiley Finance.
Mean-Reversion Approach:
The strategy builds on the mean-reversion principle, which assumes that extreme market movements tend to revert to the mean over time.
Source: Jegadeesh, N., & Titman, S. (1993). Returns to Buying Winners and Selling Losers: Implications for Stock Market Efficiency. Journal of Finance, 48(1), 65-91.