Bayesian Price Projection Model [Pinescriptlabs]📊 Dynamic Price Projection Algorithm 📈
This algorithm combines **statistical calculations**, **technical analysis**, and **Bayesian theory** to forecast a future price while providing **uncertainty ranges** that represent upper and lower bounds. The calculations are designed to adjust projections by considering market **trends**, **volatility**, and the historical probabilities of reaching new highs or lows.
Here’s how it works:
🚀 Future Price Projection
A dynamic calculation estimates the future price based on three key elements:
1. **Trend**: Defines whether the market is predisposed to move up or down.
2. **Volatility**: Quantifies the magnitude of the expected change based on historical fluctuations.
3. **Time Factor**: Uses the logarithm of the projected period (`proyeccion_dias`) to adjust how time impacts the estimate.
🧠 **Bayesian Probabilistic Adjustment**
- Conditional probabilities are calculated using **Bayes' formula**:
\
This models future events using conditional information:
- **Probability of reaching a new all-time high** if the price is trending upward.
- **Probability of reaching a new all-time low** if the price is trending downward.
- These probabilities refine the future price estimate by considering:
- **Higher volatility** increases the likelihood of hitting extreme levels (highs/lows).
- **Market trends** influence the expected price movement direction.
🌟 **Volatility Calculation**
- Volatility is measured using the **ATR (Average True Range)** indicator with a 14-period window. This reflects the average amplitude of price fluctuations.
- To express volatility as a percentage, the ATR is normalized by dividing it by the closing price and multiplying it by 200.
- Volatility is then categorized into descriptive levels (e.g., **Very Low**, **Low**, **Moderate**, etc.) for better interpretation.
---
🎯 **Deviation Limits (Upper and Lower)**
- The upper and lower limits form a **projected range** around the estimated future price, providing a framework for uncertainty.
- These limits are calculated by adjusting the ATR using:
- A user-defined **multiplier** (`factor_desviacion`).
- **Bayesian probabilities** calculated earlier.
- The **square root of the projected period** (`proyeccion_dias`), incorporating the principle that uncertainty grows over time.
🔍 **Interpreting the Model**
This can be seen as a **dynamic probabilistic model** that:
- Combines **technical analysis** (trends and ATR).
- Refines probabilities using **Bayesian theory**.
- Provides a **visual projection range** to help you understand potential future price movements and associated uncertainties.
⚡ Whether you're analyzing **volatile markets** or confirming **bullish/bearish scenarios**, this tool equips you with a robust, data-driven approach! 🚀
Español :
📊 Algoritmo de Proyección de Precio Dinámico 📈
Este algoritmo combina **cálculos estadísticos**, **análisis técnico** y **la teoría de Bayes** para proyectar un precio futuro, junto con rangos de **incertidumbre** que representan los límites superior e inferior. Los cálculos están diseñados para ajustar las proyecciones considerando la **tendencia del mercado**, **volatilidad** y las probabilidades históricas de alcanzar nuevos máximos o mínimos.
Aquí se explica su funcionamiento:
🚀 **Proyección de Precio Futuro**
Se realiza un cálculo dinámico del precio futuro estimado basado en tres elementos clave:
1. **Tendencia**: Define si el mercado tiene predisposición a subir o bajar.
2. **Volatilidad**: Determina la magnitud del cambio esperado en función de las fluctuaciones históricas.
3. **Factor de Tiempo**: Usa el logaritmo del período proyectado (`proyeccion_dias`) para ajustar cómo el tiempo afecta la estimación.
🧠 **Ajuste Probabilístico con la Teoría de Bayes**
- Se calculan probabilidades condicionales mediante la fórmula de **Bayes**:
\
Esto permite modelar eventos futuros considerando información condicional:
- **Probabilidad de alcanzar un nuevo máximo histórico** si el precio sube.
- **Probabilidad de alcanzar un nuevo mínimo histórico** si el precio baja.
- Estas probabilidades ajustan la estimación del precio futuro considerando:
- **Mayor volatilidad** aumenta la probabilidad de alcanzar niveles extremos (máximos/mínimos).
- **La tendencia del mercado** afecta la dirección esperada del movimiento del precio.
🌟 **Cálculo de Volatilidad**
- La volatilidad se mide usando el indicador **ATR (Average True Range)** con un período de 14 velas. Este indicador refleja la amplitud promedio de las fluctuaciones del precio.
- Para obtener un valor porcentual, el ATR se normaliza dividiéndolo por el precio de cierre y multiplicándolo por 200.
- Además, se clasifica esta volatilidad en categorías descriptivas (e.g., **Muy Baja**, **Baja**, **Moderada**, etc.) para facilitar su interpretación.
🎯 **Límites de Desviación (Superior e Inferior)**
- Los límites superior e inferior representan un **rango proyectado** en torno al precio futuro estimado, proporcionando un marco para la incertidumbre.
- Estos límites se calculan ajustando el ATR según:
- Un **multiplicador** definido por el usuario (`factor_desviacion`).
- Las **probabilidades condicionales** calculadas previamente.
- La **raíz cuadrada del período proyectado** (`proyeccion_dias`), lo que incorpora el principio de que la incertidumbre aumenta con el tiempo.
---
🔍 **Interpretación del Modelo**
Este modelo se puede interpretar como un **modelo probabilístico dinámico** que:
- Integra **análisis técnico** (tendencias y ATR).
- Ajusta probabilidades utilizando **la teoría de Bayes**.
- Proporciona un **rango de proyección visual** para ayudarte a entender los posibles movimientos futuros del precio y su incertidumbre.
⚡ Ya sea que estés analizando **mercados volátiles** o confirmando **escenarios alcistas/bajistas**, ¡esta herramienta te ofrece un enfoque robusto y basado en datos! 🚀
Скользящие средние
Adaptive Moving AveragesThe Adaptive Moving Averages indicator stands out with several unique features that set it apart from traditional moving average indicators. Its most remarkable characteristic is the ability to automatically adjust the length of moving averages based on the chosen timeframe. This ensures consistency in analysis regardless of the time scale used, eliminating the need for manual recalculation of appropriate periods for each timeframe. It allows for a more fluid and accurate multi-temporal analysis.
Another innovative aspect is the indicator's consideration of different market types (stocks, forex, crypto). This approach recognizes the fundamental differences between these markets in terms of trading hours, allowing for more precise and representative calculations for each asset class. It offers increased flexibility for traders operating across various markets.
The method for calculating periods for different moving averages (week, month, quarter, semester, year) is particularly sophisticated. It takes into account the specifics of each market, such as trading days and opening hours, automatically adapting to timeframe changes. This ensures a more accurate representation of actual trading periods rather than arbitrary approximations.
The indicator offers a wide choice of moving average types, allowing traders to use their preferred method or compare different approaches. This flexibility adapts to various trading styles and technical analysis strategies, offering the possibility to experiment and find the most effective combination for each market or asset.
In conclusion, this indicator distinguishes itself through its ability to intelligently adapt to different trading contexts, offering a versatile and sophisticated solution for technical analysis. Its flexibility and adaptive approach make it a particularly interesting tool for traders seeking consistent analysis across different markets and time scales.
3 Confirmation BearThe "3 Confirmation Bear" indicator is designed to help traders identify strong bearish market conditions with three key confirmations:
Price Below EMA15:
The price trading below the 15-period Exponential Moving Average (EMA) signals bearish momentum.
RSI Below a Threshold:
The Relative Strength Index (RSI) is below a user-defined threshold (default: 50), confirming a lack of bullish strength and momentum favoring the downside.
Downtrend Confirmation:
The indicator ensures the market is in a downtrend by checking for lower highs and lower lows over a specified lookback period.
Key Features:
Bearish Signals: Displays a red downward-pointing label above the price bar when all three conditions are met, making bearish setups easy to identify.
Customizable Inputs: Traders can adjust the EMA length, RSI threshold, and downtrend lookback period to suit their specific strategies.
Versatile Application: Ideal for short entries, trend validation, or avoiding long trades during bearish conditions.
How to Use:
Use the "3 Confirmation Bear" indicator to:
Confirm Short Trades: Enter bearish trades when the signal aligns with your strategy.
Validate Trends: Ensure a clear downtrend is present before committing to a position.
Filter Trades: Avoid long positions during bearish momentum.
This indicator simplifies decision-making by focusing on high-probability bearish setups. Perfect for day traders, swing traders, and those seeking clear confirmation before entering a trade.
Trend 30 Tick Movement1st signal - x cross appear when ma cross happen
2nd signal - circle appear when 30 tick trend happen from 1st signal.
If bull wait to break resistance 2nd signal. If break below not valid and vice versa for sell.
EP:
Entry combination using rsi multi timeframe.
If 5m oversold at 70 and 1m price up overbought at 70,then it is buy
If 5m oversold at 70 and 1m price up oversold at 30,then it is buy
TP: Using Support & Resistance
CL: If break 5m purple line.
3 Confirmation Bull This script is designed to help traders identify strong bullish conditions by providing a signal when three key confirmations align:
Price is Above the 15-period EMA:
This shows that the price is trading above a short-term average, a sign of bullish momentum.
RSI is Above a Threshold:
The Relative Strength Index (RSI) is used to measure the strength of price movements. When RSI is above the user-defined threshold (default 50), it indicates bullish momentum and avoids overbought zones.
Price is in an Uptrend:
An uptrend is confirmed when there are both higher highs and higher lows over a specified lookback period. This ensures that the price structure supports upward movement.
Key Features:
Visual Alerts: A green label appears below the price bar whenever all three conditions are met, making it easy to spot trading opportunities.
Customizable Settings: Adjust the EMA length, RSI threshold, and uptrend lookback period to match your trading style or timeframe.
Versatility: Suitable for intraday, swing, or positional trading in trending markets.
How to Use:
This indicator is ideal for traders looking to confirm a bullish setup. Use it to:
Enter Trades: As confirmation for long positions when the signal appears.
Validate Trends: Ensure conditions are favorable before committing to a trade.
Combine with Other Strategies: Enhance your trading system by pairing it with volume analysis, candlestick patterns, or support/resistance levels.
By combining these three confirmations, the script helps traders filter out false signals and focus on higher-probability setups, streamlining their decision-making process.
Trend Following Strategy with KNN
### 1. Strategy Features
This strategy combines the K-Nearest Neighbors (KNN) algorithm with a trend-following strategy to predict future price movements by analyzing historical price data. Here are the main features of the strategy:
1. **Dynamic Parameter Adjustment**: Uses the KNN algorithm to dynamically adjust parameters of the trend-following strategy, such as moving average length and channel length, to adapt to market changes.
2. **Trend Following**: Captures market trends using moving averages and price channels to generate buy and sell signals.
3. **Multi-Factor Analysis**: Combines the KNN algorithm with moving averages to comprehensively analyze the impact of multiple factors, improving the accuracy of trading signals.
4. **High Adaptability**: Automatically adjusts parameters using the KNN algorithm, allowing the strategy to adapt to different market environments and asset types.
### 2. Simple Introduction to the KNN Algorithm
The K-Nearest Neighbors (KNN) algorithm is a simple and intuitive machine learning algorithm primarily used for classification and regression problems. Here are the basic concepts of the KNN algorithm:
1. **Non-Parametric Model**: KNN is a non-parametric algorithm, meaning it does not make any assumptions about the data distribution. Instead, it directly uses training data for predictions.
2. **Instance-Based Learning**: KNN is an instance-based learning method that uses training data directly for predictions, rather than generating a model through a training process.
3. **Distance Metrics**: The core of the KNN algorithm is calculating the distance between data points. Common distance metrics include Euclidean distance, Manhattan distance, and Minkowski distance.
4. **Neighbor Selection**: For each test data point, the KNN algorithm finds the K nearest neighbors in the training dataset.
5. **Classification and Regression**: In classification problems, KNN determines the class of a test data point through a voting mechanism. In regression problems, KNN predicts the value of a test data point by calculating the average of the K nearest neighbors.
### 3. Applications of the KNN Algorithm in Quantitative Trading Strategies
The KNN algorithm can be applied to various quantitative trading strategies. Here are some common use cases:
1. **Trend-Following Strategies**: KNN can be used to identify market trends, helping traders capture the beginning and end of trends.
2. **Mean Reversion Strategies**: In mean reversion strategies, KNN can be used to identify price deviations from the mean.
3. **Arbitrage Strategies**: In arbitrage strategies, KNN can be used to identify price discrepancies between different markets or assets.
4. **High-Frequency Trading Strategies**: In high-frequency trading strategies, KNN can be used to quickly identify market anomalies, such as price spikes or volume anomalies.
5. **Event-Driven Strategies**: In event-driven strategies, KNN can be used to identify the impact of market events.
6. **Multi-Factor Strategies**: In multi-factor strategies, KNN can be used to comprehensively analyze the impact of multiple factors.
### 4. Final Considerations
1. **Computational Efficiency**: The KNN algorithm may face computational efficiency issues with large datasets, especially in real-time trading. Optimize the code to reduce access to historical data and improve computational efficiency.
2. **Parameter Selection**: The choice of K value significantly affects the performance of the KNN algorithm. Use cross-validation or other methods to select the optimal K value.
3. **Data Standardization**: KNN is sensitive to data standardization and feature selection. Standardize the data to ensure equal weighting of different features.
4. **Noisy Data**: KNN is sensitive to noisy data, which can lead to overfitting. Preprocess the data to remove noise.
5. **Market Environment**: The effectiveness of the KNN algorithm may be influenced by market conditions. Combine it with other technical indicators and fundamental analysis to enhance the robustness of the strategy.
TICKFLOW_FUTURES-ATR-ZONESThe TICKFLOW_FUTURES-ATR-ZONES script is a dynamic indicator designed to help traders identify key zones of price action based on ATR (Average True Range) and Bollinger Bands. This script combines customizable moving averages, volatility-based bands, and trend slope calculations to provide a clear visual framework for analyzing trends, detecting potential reversals, and identifying high-probability buy/sell zones.
Key Features:
Dynamic ATR Zones:
Upper and lower bands are calculated using ATR and adjusted dynamically based on the visible price range, ensuring alignment with current market conditions.
Slope-Based Color Coding:
The middle line (moving average) dynamically changes its color based on the slope to indicate bullish, bearish, or neutral trends.
Bollinger Band Squeeze Detection:
Highlights periods of price contraction using Bollinger Band width, helping identify potential breakout setups.
Buy and Sell Signals:
Displays visual markers (BUY/SELL) based on slope changes and price action relative to the dynamic middle line.
Customizable Inputs:
Includes options to adjust ATR multiplier, Bollinger Band settings, moving average type, slope lookback period, and color preferences.
Visual Zones:
Shaded areas representing ATR-based upper and lower zones for a clear and intuitive price action framework.
Usage Instructions:
Clean Chart:
Use the script on a clean chart for best results. This ensures that the plotted zones, lines, and markers are easily interpretable without interference.
Understanding the Components:
The middle line represents the selected moving average type, providing the directional bias.
Upper and lower zones indicate potential reversal or continuation levels based on ATR.
BUY/SELL markers suggest trend initiation points but should be confirmed with additional analysis.
Customization:
Adjust input parameters (e.g., ATR multiplier, Bollinger Band settings) to fit your trading style and market conditions.
Important Notes:
This script works as a standalone tool and does not require other indicators to function.
Avoid using it with additional scripts on the same chart unless explicitly needed and described in your analysis.
Candlestick Crossing SMA with ConditionsThe Candlestick Crossing SMA with Conditions indicator identifies actionable trading signals based on candlestick crossovers with two configurable Simple Moving Averages (SMAs), providing enhanced filtering for trend confirmation.
Key Features:
Dual SMA Setup:
Uses two SMAs (default: SMA 9 and SMA 50) to generate signals.
Short-term SMA (e.g., SMA 9) detects crossovers.
Long-term SMA (e.g., SMA 50) confirms trend direction.
Signal Generation:
Long Signal:
The candlestick closes above the short-term SMA.
The close is also above the long-term SMA (trend confirmation).
Short Signal:
The candlestick closes below the short-term SMA.
The close is also below the long-term SMA.
Customizable Visuals:
Plots both SMAs on the chart for clarity.
Displays arrows (▲ for long, ▼ for short) to indicate valid crossover signals.
Real-Time Alerts:
Alerts are triggered only when a candlestick closes and confirms the crossover with trend alignment.
Use Cases:
Trend Following: Ideal for swing and intraday traders to align entry points with the prevailing trend.
Signal Filtering: Helps filter out false crossovers by requiring alignment with the long-term SMA.
Parameters:
SMA 9 Length: Adjust the short-term SMA length to fine-tune crossover sensitivity.
SMA 50 Length: Modify the long-term SMA length for different market conditions.
Show Arrows: Option to toggle visual signals on the chart.
RSI + MA Strategy DTISimpel RSI + MA strategy Uitleg:
RSI Instellingen: De rsiPeriod is ingesteld op 14, en de overbought en oversold niveaus zijn respectievelijk 70 en 30.
Moving Averages: De EMA wordt berekend met een periode van 9 en de SMA met een periode van 50. Deze worden gebruikt om de trend te identificeren.
Koopconditie: De strategie opent een long positie wanneer de RSI onder de 30 (oversold) is en de EMA de SMA van onder naar boven kruist.
Verkoopconditie: De strategie opent een short positie wanneer de RSI boven de 70 (overbought) is en de EMA de SMA van boven naar beneden kruist.
Visualisatie: De RSI en de twee Moving Averages worden op de grafiek weergegeven voor een visuele inspectie.
Wat je kunt aanpassen:
RSI Periode: Als je de gevoeligheid van de RSI wilt aanpassen, kun je de rsiPeriod veranderen.
Moving Averages: De periodes van de EMA en SMA kunnen aangepast worden om andere trends te identificeren.
Overbought/Oversold Niveaus: De niveaus van RSI kunnen ook aangepast worden afhankelijk van je voorkeur voor wat je als overbought/oversold beschouwt.
Wat je kunt toevoegen:
Stop loss / Take profit: Je kunt ook stop loss- en take profit-niveaus toevoegen op basis van percentage of prijsdoelen.
Meer filters: Je kunt andere indicatoren toevoegen zoals volume, Bollinger Bands of zelfs een combinatie van meerdere RSI periodes om de nauwkeurigheid van je signalen te verbeteren.
3 EMA & Engulfing Candles Detector – Pawan Saini StrategyIndicator Description
This indicator combines trend analysis using exponential moving averages (EMA) with the detection of Engulfing candlestick patterns, providing a complete tool for traders.
Key Features:
Exponential Moving Averages (EMAs):
EMA 10: Ideal for identifying short-term price movements.
EMA 50: Helps confirm intermediate trends.
EMA 200: Represents long-term trends and acts as a key support/resistance level.
----------------------------------------
Engulfing Pattern Detection:
Bullish Engulfing: Detects bullish reversals, highlighted with green triangles or blue bars.
Bearish Engulfing: Identifies bearish reversals, marked with red triangles or purple bars.
Integrated Alerts: Receive real-time notifications when bullish or bearish engulfing patterns are detected.
-------------------------------------
How to Use This Indicator?
EMAs: Evaluate overall trends and use them as dynamic support/resistance levels.
Engulfing Patterns: Spot key reversal points to confirm trade entries or exits.
Alerts: Configure notifications to avoid missing opportunities in volatile markets.
This indicator works with any asset and time frame, making it an essential tool for technical traders.
--------------------------------------------
Credits to the Creators
This indicator is the result of collaborative efforts from several members of the TradingView community:
hunganhnnguyen1193 : Creator of the original 3 EMA indicator, a key component for trend analysis.
FinzenTrader: Adapted the script to Pine Script v6 and integrated it into a more advanced strategy.
Pawan Saini: Enhanced the strategy by combining EMAs with Engulfing pattern detection, optimizing the indicator for a comprehensive trading experience.
Daveatt: Provided inspiration for the engulfing candle detection logic through their work on the "Engulfing Candles Detector."
Seriffin: Contributed a structured base with their work on "Dante Bullish/Bearish Engulfing."
----------------------------------
Important Notes
The description and indicator have been crafted to comply with TradingView's Script Publishing Rules:
Originality: Combines established tools with unique detection logic and strategy integration.
Description: Fully detailed and explains both the functionality and usage of the script.
Language: Written entirely in English for global accessibility.
Feel free to provide feedback or ask for adjustments if necessary! 😊
GoldenTradz EMA+SMA Insight Multi Timeframe - [TilakBala]GoldenTradz EMA+SMA Insight Multi-Timeframe
📊 Indicator By: TilakBala from GoldenTradz — Revolutionize your trading approach with precision and insight!
Unlock the full potential of moving averages with the GoldenTradz EMA+SMA Insight indicator. This feature-packed tool combines the strength of Exponential Moving Averages (EMA) and Simple Moving Averages (SMA), offering unmatched flexibility and clarity for traders. Whether you're a beginner or a pro, this indicator empowers you to make well-informed trading decisions across multiple timeframes.
Key Features & Advantages:
Multi-Timeframe Analysis: Seamlessly analyze market trends using EMAs and SMAs from different timeframes on a single chart.
Gain a broader perspective by comparing short-term and long-term trends.
Customizable Settings:
Adjust EMA and SMA lengths, sources, and timeframes to fit your trading strategy perfectly.
Enable or disable specific moving averages for a clutter-free chart view.
Enhanced Trend Detection:
Identify bullish and bearish trends quickly using visually distinct EMAs and SMAs.
Use shorter EMAs for faster signals and longer SMAs for reliable trend confirmation.
Overlay Design:
Plots moving averages directly on the price chart for effortless analysis.
Distinct colors and line thicknesses ensure clear identification of each moving average.
Versatile Applications:
Suitable for scalping, day trading, swing trading, and long-term investments.
Works flawlessly with stocks, forex, cryptocurrencies, commodities, indices, and more.
Decision-Making Support:
Crossovers between EMAs and SMAs help identify potential buy or sell opportunities.
Monitor key support and resistance levels dynamically.
Efficiency in Market Noise:
EMAs provide rapid responsiveness in volatile markets.
SMAs help smooth out market noise for clearer long-term trends.
Adaptable to Any Strategy:
Perfect for breakout, trend-following, and mean-reversion strategies.
Combine with other indicators for a comprehensive trading system.
User-Friendly:
Intuitive interface with clear input fields for quick setup.
Suitable for traders of all experience levels.
📊 Indicator By: TilakBala from GoldenTradz — Revolutionize your trading approach with precision and insight!
Transform your trading with GoldenTradz EMA+SMA Insight — the ultimate tool for trend and momentum analysis.
5 EMA and 20 EMA Crossover With Buy Sell View5 EMA and 20 EMA Crossover With Buy Sell View
Below is a simple script to create a buy/sell indicator based on the 5 EMA crossing the 20 EMA:
Double RSI with MA & MFIThis Pine Script creates an indicator combining two RSI calculations (short and long) with a Money Flow Index (MFI). It includes customizable settings for each RSI and MFI, and plots them with dynamic colors. The script also adds optional smoothing using various types of moving averages. Visual enhancements like gradient fills for overbought and oversold zones are included. Overall, it provides a comprehensive tool for analyzing market momentum.
Indicator Overview
Title: Double RSI with MA & MFI
Short Title: RSI with MA & MFI
Version: 5
Inputs
Short RSI Settings: Length, Source, Timeframe
Long RSI Settings: Length, Source, Timeframe
MFI Settings: Length
Moving Average Settings: Type, Length
Calculations
Short RSI:
Uses the specified length, source, and timeframe.
Calculates RSI based on price changes.
Colors: Green (>= 60), Red (<= 40), Yellow (in between).
Long RSI:
Similar to Short RSI but with its own length, source, and timeframe.
Single color: Blue.
Money Flow Index (MFI):
Calculated using the typical price (hlc3) and specified length.
Plotted in purple.
Plotting
Short RSI: Plotted with dynamic colors.
Long RSI: Plotted in blue.
MFI: Plotted in purple.
RSI Levels: Upper (80), Mid Upper (60), Mid Lower (40), Lower (20) with dotted lines.
Gradient Fill: Overbought (green) and Oversold (red) areas.
Moving Average (MA)
Types: SMA, EMA, SMMA (RMA), WMA, VWMA.
Calculation: Based on the selected type and length.
Plotting: Plotted if enabled, in light grey.
This script combines two RSI indicators with different settings, a Money Flow Index, and an optional moving average for smoothing the RSI values. It also includes visual enhancements like dynamic coloring and gradient fills for better readability
4-Hour Moving AveragesTitle: 4-Hour Moving Averages Indicator
Description:
The "4-Hour Moving Averages" indicator is designed to help traders easily visualize key moving averages derived from the 4-hour timeframe, regardless of the chart interval they are using. This indicator plots four moving averages: a 15-period SMA (Short-Term), a 35-period SMA (Intermediate-Term), an 80-period SMA (Long-Term), and a 130-period SMA (Confirmation).
These moving averages provide a balanced approach for identifying short, medium, and long-term trends, as well as confirming significant market movements. Ideal for swing traders and those looking for clear trend signals, the indicator can be used for various markets, including stocks, forex, and cryptocurrencies.
The 4-hour moving averages overlay directly on the price chart, allowing for easy analysis of current price movements relative to important trend indicators. Use this script to enhance your trading decisions, identify opportunities, and avoid market traps by relying on consistent moving average trends.
Features:
- 15 SMA for Short-Term Trends (in red)
- 35 SMA for Intermediate-Term Trends (in orange)
- 80 SMA for Long-Term Trends (in green)
- 130 SMA for Confirmation (in blue)
Feel free to modify the settings to suit your specific strategy and market conditions.
Swing 200 EMA StrategySwing 200 EMA Strategy
A systematic approach to catching trend reversals using the 200 EMA as a dynamic support/resistance level.
Strategy Rules:
LONG SETUP:
• Previous 5 candles must close above 200 EMA
• Entry candle must dip below 200 EMA but close above it
• Entry candle must close above previous candle's high
• Stop Loss: Entry candle's low
• Profit Ratio is user Defined 2:1 works Best
SHORT SETUP:
• Previous 5 candles must close below 200 EMA
• Entry candle must spike above 200 EMA but close below it
• Entry candle must close below previous candle's low
• Stop Loss: Entry candle's high
• Profit Ratio is user Defined 2:1 works Best
Advanced Trading with Candlestick Patterns & Price PredictionAn advanced strategy combining important indicators to determine buy and sell orders as well as identify candles on the chart.
Candlestick Crossing SMA (Close Basis)The Candlestick Crossing SMA (Close Basis) indicator helps traders identify when a candlestick crosses and closes above or below a Simple Moving Average (SMA), with additional filtering based on the position relative to another SMA for confirmation.
Key Features:
Customizable Moving Averages:
Configurable lengths for two SMAs (default: SMA 9 and SMA 50).
Directional Alerts:
Alerts trigger only when:
Long Condition: The candlestick closes above the shorter SMA (e.g., SMA 9) and is positioned above the longer SMA (e.g., SMA 50).
Short Condition: The candlestick closes below the shorter SMA and is positioned below the longer SMA.
Visual Annotations:
Displays arrows (▲ for long signals, ▼ for short signals) to mark valid crossovers directly on the chart.
Arrow positions adjust automatically to the high or low of the candlestick, depending on the signal direction.
Clean Alerts:
Alerts are only triggered after the candlestick closes and confirms the conditions.
How to Use:
Trend Confirmation: Use this indicator to confirm trend-following entries or potential reversals based on SMA crossovers.
Customizable Parameters:
Adjust SMA lengths to match your trading strategy or preferred timeframe.
Accumulation Distribution Moving Average Indexthis is the moving average of the accumulation/distribution indicator, to capture both price and volume changes
Non-repainting ticker
The objective here is to provide a "non-repainting" source to indicators, meaning being sure that data is stable and will not affect the results, w/o having to make any change into the indicators
To use it :
1- include this "NRT" indicators onto your page : nothing will be displayed, just keep it.
2- as an exemple, when running any other indicator onto this page, and willing to select "close" as a source, just select instead " NRT: close" into source input; your indicator will then run "non-repainting"
Available sources : open, high, low , close, hl2, hlc3, ohlc4, hlcc4
SMA traffic lights (Ampel)A simple moving average colored in based on where the price is:
- green: price is above the SMA
- yellow: candles are crossing the SMA
- red: price is below the SMA
This can be read as green = bullish, red = bearish, yellow = transition.
---
Ein einfacher Moving Average der basierend auf dem Preis eingefärbt wird:
- grün: Preis ist über dem SMA
- gelb: Preiskerzen schneiden den SMA
- rot: Preis ist unter dem SMA
Kann gelesen werden als: grün = bullish, rot = bearish, geld = Übergangsphase.
Enhanced Future Trend Channel with EMA Signals TESTING ONLY Usage:
1. Look for BUY signals when price touches or breaks above the upper channel line.
2. Consider SELL signals when price touches or breaks below the lower channel line.
3. Confirm signals with EMA crossovers (green triangle for BUY, red triangle for SELL).
4. Stronger trends are indicated by solid channel lines and filled areas.
5. Weaker trends are shown with dashed channel lines and transparent areas.
H2O 13 48 PIVOT SUPERTRENDcombination of 4 indicators in one script
13EMA
48EMA
Used for moving average crossover
Pivots points standard
used for identifying targets
Parabolic SAR
Used for acceleration factor of price movements
Super trend used for identifying Direction of a existing trend
Enhanced Future Trend Channel with EMA Signals TESTING ONLY// Usage:
1. Look for BUY signals when price touches or breaks above the upper channel line.
2. Consider SELL signals when price touches or breaks below the lower channel line.
3. Confirm signals with EMA crossovers (green triangle for BUY, red triangle for SELL).
4. Stronger trends are indicated by solid channel lines and filled areas.
5. Weaker trends are shown with dashed channel lines and transparent areas.