B4100 - NW Trend Ribbon StrategyB4100 - NW Trend Ribbon Strategy: Adaptive Trend Following with Kernel Smoothing
This strategy is a sophisticated trend-following system designed to identify and capitalize on sustained market trends. It combines a ribbon of custom-built moving averages with multiple layers of filtering and confirmation to generate high-probability entry and exit signals. It's highly customizable, allowing you to fine-tune its sensitivity and responsiveness to adapt to various market conditions and timeframes.
What the Strategy Does:
The NW Trend Ribbon Strategy aims to:
Identify the prevailing trend: It uses a ribbon of five moving averages (MAs), each with configurable length and smoothing type, to visually represent and quantify the current market trend.
Filter out noise and false signals: It employs several filters, including an RSI filter, a trend strength filter (based on the RSI of a selected MA), and a trend confirmation period, to reduce the likelihood of entering trades based on short-term fluctuations.
Generate precise entry signals: Entry signals are triggered only when a specified number of MA crossovers occur, the RSI filter (optional) is satisfied, the trend strength filter (optional) is met, and the trend conditions have persisted for a user-defined confirmation period.
Manage risk and protect profits: The strategy includes multiple exit options:
Percentage Trailing Stop: A classic trailing stop that activates at a specified percentage profit and trails the price by a defined offset.
ATR Trailing Stop: A volatility-based trailing stop that uses the Average True Range (ATR) to dynamically adjust the stop level.
ATR Take Profit: A volatility-based take profit that uses the ATR to set a profit target.
Hard Stop Loss: A fixed stop loss, either percentage-based or ATR-based, for maximum risk control.
Control Trade Direction : Allow the user to decide whether they want to enter Long trades, short trades, or both.
How It Works:
The strategy's core logic revolves around these key components:
Kernel-Smoothed Moving Averages: Instead of standard moving averages (SMA, EMA, etc.), this strategy uses *kernel smoothing*. This allows for more flexible and adaptive smoothing than traditional MAs. You can choose from three kernel types:
Beta Kernel: This is the most versatile option. It allows you to control *positive* and *negative* lag independently using the `alpha` and `beta` parameters. This means you can make the MA react slower to price increases and faster to price decreases (or vice versa), which can be particularly useful in trending markets.
Gaussian Kernel: A classic smoothing kernel that creates a bell-shaped weighting. The `bandwidth` parameter controls the width of the bell curve; a smaller bandwidth makes the MA more responsive.
Epanechnikov Kernel: Similar to the Gaussian kernel, but with a slightly different shape. It also uses a `bandwidth` parameter.
MA Ribbon: The five MAs form a "ribbon" on the chart. The alignment and relative positions of the MAs provide a visual indication of trend strength and direction.
Crossover Detection: The strategy monitors the crossovers between consecutive MAs in the ribbon. You can specify how many crossovers are required to generate a potential signal.
RSI Filter (Optional): This filter helps avoid entries during overextended market conditions. For long entries, the RSI must be below the oversold level; for short entries, it must be above the overbought level.
Trend Strength Filter (Optional): This unique filter uses the RSI of one of the moving averages (you choose which one) to measure the *strength* of the trend. This helps to ensure that you're entering trades in the direction of a strong, established trend.
Trend Confirmation: To further reduce false signals, the strategy requires that the entry conditions (MA crossovers, RSI, and trend strength) be met for a specified number of consecutive bars before a trade is actually triggered.
Exit Logic: The strategy prioritizes exits in the following order: Hard Stop Loss, Trailing Stop (Percentage or ATR-based), and Take Profit (ATR-based). This ensures that losses are minimized and profits are protected.
What Makes It Unique:
This strategy stands out from other indicators and strategies due to several key features:
Highly Customizable Kernel Smoothing: The use of kernel smoothing, especially the Beta kernel, provides a level of control over MA responsiveness that is not available with standard MAs. This allows for a much more adaptive and nuanced approach to trend following.
Combined Trend Strength and Confirmation: The combination of the trend strength filter (using the RSI of an MA) and the trend confirmation period provides a robust filtering mechanism that goes beyond simple MA crossovers or RSI readings. This helps to filter out weak trends and whipsaws.
Multiple, Prioritized Exit Options: The strategy's exit logic is sophisticated, offering a combination of fixed and dynamic stops and take profit levels. The prioritization ensures that the most conservative exit (hard stop) is triggered first, followed by the trailing stops, and finally the take profit.
Comprehensive Input Grouping: All inputs have been sorted into groups that control certain aspects of the strategy. This allows users to easily and quickly locate and adjust inputs as they see fit.
Trade Direction Control : Unlike many strategies, this one lets you independently enable or disable long and short trades.
All-in-one trend system: This indicator combines multiple aspects needed for trading: entry signals, stop loss calculations, take profit calculations.
In summary, the NW Trend Ribbon Strategy is a powerful and flexible trend-following system that combines the visual clarity of a moving average ribbon with the advanced filtering and risk management capabilities of kernel smoothing, RSI, trend strength, and multiple exit options. It's designed for traders who want a customizable and robust tool for identifying and trading sustained market trends.
Regressions
BB-BO.ELF Signals by ElfAlgorithms//YOUTUBE: www.youtube.com
//TELEGRAM: t.me
BO.ELF Trading Signals By ElfAlgorithms
📌 English
The BB-Trend-Signals By ElfAlgorithms is a powerful Bollinger Bands-based indicator designed to detect strong price movements and trend continuation signals.
🔹 Key Features:
✅ Detects price touches on the upper and lower Bollinger Bands.
✅ Confirms trends by checking the last five closing candles relative to the middle band.
✅ Filters out false signals by requiring price closures in specific Bollinger zones.
✅ Identifies trend strength by counting consecutive candle closes above/below critical levels.
✅ Provides real-time alerts for trading opportunities.
This indicator is ideal for traders who rely on Bollinger Bands to identify breakout trends and potential reversals. Whether you are a day trader or swing trader, BO.ELF Trading Signals helps you make informed decisions! 🚀
📌 Türkçe
BO.ELF Trading Signals By ElfAlgorithms, güçlü fiyat hareketlerini ve trend devam sinyallerini tespit etmek için Bollinger Bantları’na dayalı geliştirilmiş bir göstergedir.
🔹 Ana Özellikler:
✅ Fiyatın üst ve alt Bollinger bantlarına temaslarını algılar.
✅ Son beş mum kapanışını orta banda göre kontrol ederek trendi doğrular.
✅ Yanıltıcı sinyalleri önlemek için fiyatın belirli Bollinger bölgelerinde kapanmasını şart koşar.
✅ Trend gücünü belirlemek için kritik seviyelerin üzerinde/altında kapanan mumları numaralandırır.
✅ Gerçek zamanlı uyarılar ile işlem fırsatlarını bildirir.
Bollinger Bantlarını kullanarak trend kırılımlarını ve olası dönüşleri yakalamak isteyen yatırımcılar için idealdir. Günlük veya swing trade yapan herkes için BO.ELF Trading Signals, kararlarınıza rehberlik eder! 🚀
NeoTrend AI- Advanced Trading SignalsNeoTrend AI – Advanced Trading Signals
Overview
NeoTrend AI is an advanced trading signal indicator that uniquely integrates a kernel-based predictive model with adaptive volatility analysis. By processing historical price data through a Gaussian kernel matrix, NeoTrend AI produces a statistically informed predicted price. This prediction is then used to generate dynamic volatility bands that serve as adaptive support and resistance levels, leading to clear BUY and SELL signals.
Originality and Usefulness
Innovative Mashup: NeoTrend AI isn’t a mere combination of common indicators; it fuses a novel kernel-based forecasting method with volatility analysis. This creates a tool that not only tracks trends but also identifies key market zones with enhanced precision.
Actionable Insights: The indicator’s design helps traders understand both the underlying trend and the market’s volatility, providing a robust framework for making informed trading decisions.
Customizable Approach: With user-adjustable settings for lookback periods, prediction offsets, smoothness factors, and volatility multipliers, NeoTrend AI adapts to various markets and trading styles.
Omissions and Realistic Claims
Transparent Methodology: NeoTrend AI’s signals are generated solely from historical data analysis using well-established mathematical techniques. There are no unrealistic promises—past performance does not guarantee future results.
No Unsubstantiated Claims: All performance metrics and signal accuracy are clearly derived from the underlying methodology. This script is designed to provide useful insights rather than definitive trading outcomes.
Strategy Results
Kernel Forecasting:
The script builds a Gaussian kernel matrix over a chosen lookback period, smoothing historical price data and generating a predictive price that adjusts dynamically.
Adaptive Volatility Bands:
A volatility band is calculated based on the difference between the actual price and the predicted price, scaled by a user-defined multiplier. These bands change in real time, acting as dynamic support and resistance levels.
Signal Generation:
BUY Signal: Issued when the current price moves above the upper volatility band and the predicted price is trending upward.
SELL Signal: Issued when the price falls below the lower volatility band while the predicted price is trending downward.
Visual Examples
Buy and sell signals are generated, as clearly shown on the chart
Usage Tips
Parameter Customization: Adjust the lookback period, smoothness factor, and volatility multiplier to fit your trading timeframe and market conditions.
Combine with Other Tools: Use NeoTrend AI alongside additional technical indicators and robust risk management strategies for best results.
Backtest Thoroughly: Always perform comprehensive backtesting to understand how the indicator behaves under different market scenarios.
Final Remarks
NeoTrend AI is built to offer traders an original, data-driven insight into market trends without resorting to exaggerated or misleading claims. Its design emphasizes both innovation and practicality, ensuring that you receive actionable signals based on sound statistical methods.
Destroy Strategy - Trend & ReversalThe Destroy Strategy - Trend & Reversal is a trading indicator designed to identify potential trend continuations and reversals in the market. It combines multiple technical analysis tools to provide clear signals for traders.
PRC-EPMA | QuantEdgeB Introducing PRC-EPMA by QuantEdgeB
Overview
The PRC-EPMA (Percentile-Endpoint Moving Average) is a sophisticated trading indicator developed for traders looking to capitalize on trend shifts with enhanced filtering mechanisms. It blends Endpoint Moving Averages, Percentile Rank, and Median Absolute Deviation (MAD) Filtering to generate high-probability long and short signals.
____
Key Features
🔹 1. Endpoint Moving Average (EPMA):
- A regression-based moving average that adapts quickly to price movements.
- Uses a linear regression slope to project future price direction.
- Helps traders identify trend direction more responsively than traditional moving averages.
🔹 2. Percentile Rank-Based Dynamic Levels:
- Identifies overbought (75th percentile) and oversold (25th percentile) zones.
- Dynamically adjusts based on historical data, making it robust across different market conditions.
🔹 3. Median Absolute Deviation (MAD) Filtering:
- An advanced volatility filter that refines entry and exit points.
- Reduces noise by filtering out weak signals, focusing only on meaningful trend shifts.
- Uses two multipliers (long and short) to fine-tune sensitivity.
🔹 4. Signal Generation:
- 📈Long Signal: Triggered when price closes above the upper dynamic threshold.
- 📉Short Signal: Triggered when price closes below the lower dynamic threshold.
- Uses color-coded candles to visually indicate trend shifts.
- Optional signal labels can be enabled for clear entry/exit indications.
🔹 5. Customizable Visualization:
- Multiple color themes to match user preferences.
- Ability to overlay signals on price charts.
- Alerts available for long & short crossovers.
_____
How It Works
1. The script calculates an Endpoint Moving Average based on a user-defined period.
2. It computes the 75th and 25th percentile ranks of the Endpoint Moving Average.
3. Median Absolute Deviation (MAD) Filtering is applied to reduce false breakouts.
4. A buy (long) or sell (short) signal is triggered when price crosses the respective filtered percentile levels.
5. Alerts and labels can be used to notify traders of new signals.
_____
Behavior across Crypto Majors (Using Default Settings)
BTC
ETH
SOL
Note : Past behaviour is not indicative of future results. Always conduct thorough testing and risk management before making trading decisions.
_____
Best Use Cases
📌 Trend Confirmation – Use EPMA to confirm if a trend is strengthening or weakening.
📌 Noise Reduction – MAD filtering prevents reacting to minor fluctuations, focusing on stronger trend shifts.
📌 Multi-Timeframe Scalability – Works across multiple timeframes (1H, 4H, Daily, etc.), depending on the trader’s strategy.
⚙️ Customizable Inputs ⚙️
- Endpoint Moving Average Lookback Length
- Percentile Rank Length
- MAD Filter Sensitivity (Multipliers for Long & Short)
- Signal Labels & Alerts for Long/Short Entries
- Color Theme Selection
Default Setup for PRC-EPMA
Linear Regression Length → 4
Endpoint Lookback → 14
Percentile Length → 21
Median Period (Absolute Deviation Filter) → 21
Upper Multiplier (Absolute Deviation Filter) → 1.8
Lower Multiplier (Absolute Deviation Filter) → 0.9
_____
Final Thoughts
The PRC-EPMA Indicator is a powerful tool for traders seeking high-quality entry and exit signals based on statistical and regression-based methodologies. By combining EPMA, Percentile Rank, and MAD Filtering, it ensures that only strong and validated signals are executed, making it a great addition for trend-followers and mean-reversion traders alike.
🔹 Disclaimer: Past performance is not indicative of future results. No trading strategy can guarantee success in financial markets.
🔹 Strategic Advice: Always backtest, optimize, and align parameters with your trading objectives and risk tolerance before live trading.
ICT Session by LasinsName: ICT Session by Lasins
Purpose: To visually identify and differentiate between the Asian, London, and New York trading sessions on the chart.
Features:
Highlights the background of the chart during each session.
Includes a mini dashboard in the top-right corner to show the active session.
Allows customization of time zones (exchange timezone or UTC).
Displays copyright and author information.
Key Components
Inputs:
useExchangeTimezone: A boolean input to toggle between using the exchange timezone or UTC for session times.
showDashboard: A boolean input to toggle the visibility of the mini dashboard.
Session Times:
The script defines three trading sessions:
Asian Session: 2000-0000 UTC (or adjusted for exchange timezone).
London Session: 0200-0500 UTC (or adjusted for exchange timezone).
New York Session: 0700-1000 UTC (or adjusted for exchange timezone).
Session Detection:
The is_session function checks if the current time falls within a specified session using the time function.
Background Coloring:
The bgcolor function is used to highlight the chart background during each session:
Asian Session: Red background.
London Session: Green background.
New York Session: Blue background.
Mini Dashboard:
A table is created in the top-right corner of the chart to display the active session and its corresponding color.
The dashboard includes:
A header row with "Session" and "Color".
Rows for each session (Asian, London, New York) with their respective colors.
Copyright and Author Information:
A label is added to the chart to display the copyright and author information ("© ICT Session by Lasins Raj").
How It Works
The script checks the current time and compares it to the predefined session times.
If the current time falls within a session, the chart background is highlighted with the corresponding color.
The mini dashboard updates to reflect the active session.
The copyright and author information is displayed at the bottom of the chart.
Customization
You can adjust the session times in the script to match your preferred timezone or trading hours.
The useExchangeTimezone input allows you to switch between UTC and the exchange timezone.
The showDashboard input lets you toggle the visibility of the mini dashboard.
Example Use Case
Traders who follow the ICT (Inner Circle Trader) methodology can use this indicator to identify key trading sessions and plan their trades accordingly.
The visual representation of sessions helps traders quickly recognize when major markets are open and active.
TASC 2025.03 A New Solution, Removing Moving Average Lag█ OVERVIEW
This script implements a novel technique for removing lag from a moving average, as introduced by John Ehlers in the "A New Solution, Removing Moving Average Lag" article featured in the March 2025 edition of TASC's Traders' Tips .
█ CONCEPTS
In his article, Ehlers explains that the average price in a time series represents a statistical estimate for a block of price values, where the estimate is positioned at the block's center on the time axis. In the case of a simple moving average (SMA), the calculation moves the analyzed block along the time axis and computes an average after each new sample. Because the average's position is at the center of each block, the SMA inherently lags behind price changes by half the data length.
As a solution to removing moving average lag, Ehlers proposes a new projected moving average (PMA) . The PMA smooths price data while maintaining responsiveness by calculating a projection of the average using the data's linear regression slope.
The slope of linear regression on a block of financial time series data can be expressed as the covariance between prices and sample points divided by the variance of the sample points. Ehlers derives the PMA by adding this slope across half the data length to the SMA, creating a first-order prediction that substantially reduces lag:
PMA = SMA + Slope * Length / 2
In addition, the article includes methods for calculating predictions of the PMA and the slope based on second-order and fourth-order differences. The formulas for these predictions are as follows:
PredictPMA = PMA + 0.5 * (Slope - Slope ) * Length
PredictSlope = 1.5 * Slope - 0.5 * Slope
Ehlers suggests that crossings between the predictions and the original values can help traders identify timely buy and sell signals.
█ USAGE
This indicator displays the SMA, PMA, and PMA prediction for a specified series in the main chart pane, and it shows the linear regression slope and prediction in a separate pane. Analyzing the difference between the PMA and SMA can help to identify trends. The differences between PMA or slope and its corresponding prediction can indicate turning points and potential trade opportunities.
The SMA plot uses the chart's foreground color, and the PMA and slope plots are blue by default. The plots of the predictions have a green or red hue to signify direction. Additionally, the indicator fills the space between the SMA and PMA with a green or red color gradient based on their differences:
Users can customize the source series, data length, and plot colors via the inputs in the "Settings/Inputs" tab.
█ NOTES FOR Pine Script® CODERS
The article's code implementation uses a loop to calculate all necessary sums for the slope and SMA calculations. Ported into Pine, the implementation is as follows:
pma(float src, int length) =>
float PMA = 0., float SMA = 0., float Slope = 0.
float Sx = 0.0 , float Sy = 0.0
float Sxx = 0.0 , float Syy = 0.0 , float Sxy = 0.0
for count = 1 to length
float src1 = src
Sx += count
Sy += src
Sxx += count * count
Syy += src1 * src1
Sxy += count * src1
Slope := -(length * Sxy - Sx * Sy) / (length * Sxx - Sx * Sx)
SMA := Sy / length
PMA := SMA + Slope * length / 2
However, loops in Pine can be computationally expensive, and the above loop's runtime scales directly with the specified length. Fortunately, Pine's built-in functions often eliminate the need for loops. This indicator implements the following function, which simplifies the process by using the ta.linreg() and ta.sma() functions to calculate equivalent slope and SMA values efficiently:
pma(float src, int length) =>
float Slope = ta.linreg(src, length, 0) - ta.linreg(src, length, 1)
float SMA = ta.sma(src, length)
float PMA = SMA + Slope * length * 0.5
To learn more about loop elimination in Pine, refer to this section of the User Manual's Profiling and optimization page.
UM-Optimized Linear Regression ChannelDESCRIPTION
This indicator was inspired by Dr. Stoxx at drstoxx.com. Shout out to him and his services for introducing me to this idea. This indicator is a slightly different take on the standard linear regression indicator.
It uses two standard deviations to draw bands and dynamically attempts to best-fit the data lookback period using an R-squared statistical measure. The R-squared value ranges between zero and one with zero being no fit to the data at all and 1 being a 100% match of the data to linear regression line. The R-squared calculation is weighted exponentially to give more weight to the most recent data.
The label provides the number of periods identified as the optimal best-fit period, the type of loopback period determination (Manual or Auto) and the R-squared value (0-100, 100% being a perfect fit). >=90% is a great fit of the data to the regression line. <50% is a difficult fit and more or less considered random data.
The lookback mode can also be set manually and defaults to a value of 100 periods.
DEFAULTS
The defaults are 1.5 and 2.0 for standard deviation. This creates 2 bands above and below the regression line. The default mode for best-fit determination with "Auto" selected in the dropdown. When manual mode is selected, the default is 100. The modes, manual lookback periods, colors, and standard deviations are user-configurable.
HOW TO USE
Overlay this indicator on any chart of any timeframe. Look for turning points at extremes in the upper and lower bands. Look for crossovers of the centerline. Look at the Auto-determination for best fit. Compare this to your favorite Manual mode setting (Manual Mode is set to 100 by default lookback periods.)
When price is at an extreme, look for turnarounds or reversals. Use your favorite indicators, in addition to this indicator, to determine reversals. Try this indicator against your favorite securities and timeframes.
CHART EXAMPLE
The chart I used for an example is the daily chart of IWM. I illustrated the extremes with white text. This is where I consider proactively exiting an existing position and/or begin looking for a reversal.
CandelaCharts - Fib Retracement (OTE) 📝 Overview
The CandelaCharts Fib Retracement (OTE) indicator is a precision tool designed to help traders identify Optimal Trade Entry (OTE) levels based on Fibonacci retracement principles, as taught in ICT (Inner Circle Trader) methodology.
This indicator automatically plots Fibonacci retracement levels between a selected swing high and swing low, highlighting the key OTE zone between the 61.8% and 78.6% retracement levels—a prime area for potential reversals in trending markets.
📦 Features
Automatic & Custom lookback modes
Customizable fib levels
Dynamic coloring
Reverse & extend
⚙️ Settings
Lookback: Controls the number of bars to look back. You can choose between **Automatic** or **Custom** mode.
Line Style: Sets the line style for the Fibonacci levels.
Levels: 0, 0.236, 0.0.382, 0.500, 0.620, 0.705, 0.790, 0.886, 1.000. Allows you to toggle the visibility of Fibonacci levels.
Dynamic Coloring: Colors Fibonacci levels according to trend direction.
Show Labels: Shows the price value at each Fibonacci level.
Reverse: Flips the Fibonacci levels in the opposite direction.
Extend Left: Extends the Fibonacci levels to the left.
⚡️ Showcase
Dynamic Coloring
Manual Coloring
Fib Retracement
Extended
Custom Length
📒 Usage
Using the CandelaCharts Fib Retracement (OTE) is pretty straightforward—just follow these steps to spot high-probability trade setups and refine your entries.
Identify the Trend – Determine whether the market is in an uptrend or downtrend.
Select Swing Points – The indicator automatically plots from the most recent swing high to swing low (or vice versa).
Wait for Price to Enter OTE Zone – Look for price action confirmation within the optimal entry zone (61.8%-78.6%).
Enter the Trade – Consider longs in an uptrend at the OTE zone, and shorts in a downtrend.
Set Stop & Target – Place stops below/above the swing low/high and target extension levels (127.2%, 161.8%).
🎯 Key takeways
The CandelaCharts Fib Retracement (OTE) is a must-have tool for traders looking to refine their entries and maximize risk-reward potential with precision-based ICT trading strategies. 🚀
🚨 Alerts
The indicator does not provide any alerts!
⚠️ Disclaimer
Trading involves significant risk, and many participants may incur losses. The content on this site is not intended as financial advice and should not be interpreted as such. Decisions to buy, sell, hold, or trade securities, commodities, or other financial instruments carry inherent risks and are best made with guidance from qualified financial professionals. Past performance is not indicative of future results.
MOKI V1The "MOKI V1" script is a trading strategy on the TradingView platform that uses a combination of two key indicators to identify buy and sell signals:
EMA200 (Exponential Moving Average 200): Used to determine the overall market trend. This line helps ensure that trades are made in the direction of the primary market trend.
RSI (Relative Strength Index): Used to measure the strength or weakness of a trend. In this strategy, a reading above 50 for the RSI indicates stronger buy signals.
Engulfing Pattern: This candlestick pattern occurs when a green (bullish) candle completely engulfs the previous red (bearish) candle. It is used as a buy signal when combined with the other indicators.
BIAS PRO - Zones + Liquidity + SP&RS [AlgoRich]This multifunction indicator is used to identify key areas on the chart, liquidity levels, and support/resistance zones (SP&RS). Its design is aimed at highlighting price pivots (swings) by drawing zones (boxes and lines) based on these pivots, while also displaying information about trading sessions and levels of analysis across different timeframes.
1. Configuration and Input Parameters
Swing Parameters (Bars Right-Left):
Two inputs are defined to adjust the number of bars on the right and left used to detect pivots (swings). This allows the determination of high and low pivot points.
Display Options:
You can choose to show or hide boxes, lines, and labels (bubbles). There is also an option to extend the zones until they are “filled” (confirmed), and you can opt to hide those zones once filled.
Appearance:
Visual parameters are defined, such as the option to display high and low pivots, colors for lines, labels, and boxes (for both bullish and bearish conditions), line styles (solid, dotted, dashed), and other aesthetic details (box width, label size, text alignment).
Lookback and Time Range:
The “lookback” and “daysBack” variables determine whether the analysis is limited to data from a certain number of days, helping to filter out older historical information.
2. Calculation of Pivots (Swings) and Zone Detection
Price Pivots:
Using the pivot functions (ta.pivothigh and ta.pivotlow), the script identifies swing high and low points based on the configured swing size (bars left and right).
If a swing high is detected, its bar index is stored and the corresponding signal is activated.
Similarly, a swing low is detected and marked.
Drawing Zones:
When a swing (high or low) is detected and the time range condition is met (inRange), the script draws:
Boxes: These visually represent the area around the pivot level. The configuration (type and width) is adjustable.
Lines: A horizontal line is drawn from the pivot point to the current bar, using the defined style and color.
Boxes and lines are drawn for both high pivots (showhighs) and low pivots (showlows).
Additionally, these zones are updated and extended dynamically as new bars appear, and zones that are “filled” (when the price exceeds the zone level) are removed.
Labels and Markers:
If enabled, the script displays circle markers (using plotshape) at the swing points.
3. Operational Zone (Sessions)
Customizable Sessions:
The script allows defining up to three operational sessions with distinct time ranges and colors.
For example, Session 1, Session 2, and Session 3 have configurable time ranges and colors (with adjustable opacity).
It checks if the current time falls within any of these sessions and, if so, applies a background color (bgcolor) to the chart with the configured session color.
Timezone Adjustment:
You can configure a UTC offset or use the exchange’s timezone to correctly adjust the session times.
4. Additional Levels and Analysis Groups
Groups of Levels (Levels 1, 2, 3, and 4):
Several groups are defined that allow data requests from different timeframes (e.g., 60 minutes, 240 minutes, daily, or weekly) and configure their parameters (length, line style, color).
For each group, the script uses a function that requests non-repainting data and calculates pivot levels based on ta.pivothigh/ta.pivotlow.
These levels are drawn on the chart with lines and “shadow” lines to reinforce the visualization of key pivot points. Labels are added with a slight offset to indicate the pivot value in the corresponding timeframe.
5. Maintenance and Management of Drawn Elements
Dynamic Update and Deletion:
The script maintains arrays to store the drawn boxes and lines. As new elements are added and the array reaches a maximum size (e.g., 500 elements), the oldest elements are deleted to avoid overloading the chart.
Extension and Hiding Conditions:
Conditions are checked to extend or delete zones based on whether the price has “filled” the area (i.e., if the current price has surpassed the zone level). There is also an option to hide zones once they are filled.
6. Session (Operational Zone) and Levels for Multiple Timeframes
Session Settings:
In addition to the pivot zones, the indicator also defines operational sessions with adjustable time ranges and colors, shading the background of the chart during those sessions.
Additional Level Groups:
The indicator allows grouping of analysis levels by timeframe, which can be useful for multi-timeframe analysis. Parameters such as length, style, and color are configurable for each group.
Summary:
The "BIAS PRO - Zones + Liquidity + SP&RS " is an all-in-one indicator that combines the detection of price pivots (swings) with the visual representation of key zones on the chart. With options to customize appearance, manage operational sessions, and group levels across different timeframes, this script is designed to help traders identify areas of high liquidity, potential breakouts, or reversals, thus optimizing decision-making based on market structure.
This explanation covers the main functionalities and workflow of the script, making it easier to understand without needing to examine the code in detail.
Pearson Correlation CoefficientDescription: The Pearson Correlation Coefficient measures the strength and direction of the linear relationship between two data series. Its value ranges from -1 to +1, where:
+1 indicates a perfect positive linear correlation: as one asset increases, the other asset increases proportionally.
0 indicates no linear correlation: variations in one asset have no relation to variations in the other asset.
-1 indicates a perfect negative linear correlation: as one asset increases, the other asset decreases proportionally.
This measure is widely used in technical analysis to assess the degree of correlation between two financial assets. The "Pearson Correlation (Manual Compare)" indicator allows users to manually select two assets and visually display their correlation relationship on a chart.
Features:
Correlation Period: The time period used for calculating the correlation can be adjusted (default: 50).
Comparison Asset: Users can select a secondary asset for comparison.
Visual Plots: The chart includes reference lines for perfect correlations (+1 and -1) and strong correlations (+0.7 and -0.7).
Alerts: Set alerts for when the correlation exceeds certain threshold values (e.g., +0.7 for strong positive correlation).
How to Select the Second Asset:
Primary Asset Selection: The primary asset is the one you select for viewing on the chart. This can be done by simply opening the chart for the desired asset.
Secondary Asset Selection: To select the secondary asset for comparison, use the input field labeled "Comparison Asset" in the script settings. You can manually enter the ticker symbol of the secondary asset you want to compare with the primary asset.
This indicator is ideal for traders looking to identify relationships and correlations between different financial assets to make informed trading decisions.
Statistical Arbitrage Pairs Trading - Long-Side OnlyThis strategy implements a simplified statistical arbitrage (" stat arb ") approach focused on mean reversion between two correlated instruments. It identifies opportunities where the spread between their normalized price series (Z-scores) deviates significantly from historical norms, then executes long-only trades anticipating reversion to the mean.
Key Mechanics:
1. Spread Calculation: The strategy computes Z-scores for both instruments to normalize price movements, then tracks the spread between these Z-scores.
2. Modified Z-Score: Uses a robust measure combining the median and Median Absolute Deviation (MAD) to reduce outlier sensitivity.
3. Entry Signal: A long position is triggered when the spread’s modified Z-score falls below a user-defined threshold (e.g., -1.0), indicating extreme undervaluation of the main instrument relative to its pair.
4. Exit Signal: The position closes automatically when the spread reverts to its historical mean (Z-score ≥ 0).
Risk management:
Trades are sized as a percentage of equity (default: 10%).
Includes commissions and slippage for realistic backtesting.
VFV Correction Levels
This Pine Script, "VFV Correction Levels," identifies significant daily price corrections and calculates corresponding investments based on fixed thresholds (paliers). Key features include:
Six predefined correction levels trigger investments between $150 and $600 based on the percentage drop.
Larger corrections correspond to higher investment amounts.
Graphical Indicators:
Visual labels mark correction levels and display investment amounts directly on the chart.
Investment Tracking:
Calculates total invested and tracks performance (yield percentage) relative to the initial correction price.
Double RSI + MA Signal [AlgoRich]This indicator combines two RSI (Relative Strength Index) indicators with their respective Exponential Moving Averages (EMA) to provide a more detailed view of the market's relative strength.
Its design allows for the identification of overbought and oversold zones, as well as potential trend reversal signals.
How does it work?
1. RSI (Relative Strength Index)
The RSI is an oscillator that measures the speed and change of price movements.
The values range between 0 and 100:
Values above 70 typically indicate overbought conditions (price may be overvalued).
Values below 30 typically indicate oversold conditions (price may be undervalued).
In this indicator, two RSIs are calculated with different periods to capture strength signals in both the short and medium term:
RSI 1: Uses a shorter period (7 by default), making it more sensitive to recent price changes.
RSI 2: Uses a longer period (14 by default), providing a more stable perspective.
2. EMAs (Exponential Moving Averages)
EMAs are calculated for each RSI to smooth their movements:
EMA RSI 1: Smooths RSI 1 (short-term).
EMA RSI 2: Smooths RSI 2 (medium-term).
These EMAs help filter market noise and allow for clearer trend identification in the RSI data.
3. Key Levels
Horizontal reference levels are defined on the chart:
80 (solid red line): Extreme overbought zone.
70 (dotted red line): Initial overbought zone.
50 (dotted gray line): Midline, acting as an equilibrium reference.
30 (dotted green line): Initial oversold zone.
20 (solid green line): Extreme oversold zone.
These levels help interpret market strength:
Above 70: The market is in a strong bullish phase (or overbought).
Below 30: The market is in a strong bearish phase (or oversold).
4. Visualization
The indicator plots:
RSI 1 and its EMA:
RSI 1: Thick green line.
EMA RSI 1: Thin white line that follows RSI 1.
RSI 2 and its EMA:
RSI 2: Thick red line.
EMA RSI 2: Transparent line (not visible in this case but can be enabled if desired).
What is this indicator used for?
1. Identifying Overbought and Oversold Conditions
Levels 70 and 30 indicate zones where the market might be near a trend reversal.
Levels 80 and 20 identify extreme conditions, often accompanied by strong price reversals.
2. Confirming Trends
If the RSI and its EMA are above 50, it indicates a bullish trend.
If the RSI and its EMA are below 50, it indicates a bearish trend.
3. Filtering False Signals
By combining two RSIs with different periods, you can confirm signals more reliably:
If both RSIs are moving in the same direction (above or below 50), the signal is stronger.
EMAs smooth out oscillations, helping to ignore irrelevant short-term movements.
Benefits for Traders
This indicator is useful for:
Scalpers and Day Traders: By using a shorter RSI (RSI 1), you can capture quick movements in the market.
Swing Traders: With the longer RSI (RSI 2), you can identify broader trends.
Risk Management: Avoid trading in extreme overbought/oversold zones (levels 80 and 20).
In summary, this indicator provides a powerful tool to evaluate the market's relative strength, combining multiple analysis timeframes and helping traders make more informed decisions.
-----------------
TRADUCCIÓN AL ESPAÑOL:
Explicación del Indicador: Double RSI + MA Signal
Este indicador combina dos RSI (Relative Strength Index) con sus respectivas medias móviles exponenciales (EMA) para proporcionar una visión más detallada de la fuerza relativa del mercado.
Su diseño permite identificar zonas de sobrecompra, sobreventa y posibles señales de cambio de tendencia.
¿Cómo funciona?
1. RSI (Relative Strength Index)
El RSI es un oscilador que mide la velocidad y el cambio en los movimientos de precios.
Los valores oscilan entre 0 y 100:
Valores por encima de 70 suelen indicar sobrecompra (precio posiblemente sobrevalorado).
Valores por debajo de 30 suelen indicar sobreventa (precio posiblemente infravalorado).
En este indicador, se calculan dos RSI con diferentes períodos para capturar señales de fuerza a corto y mediano plazo:
RSI 1: Usando un período más corto (7, por defecto), lo que lo hace más sensible a cambios recientes en el precio.
RSI 2: Usando un período más largo (14, por defecto), proporcionando una visión más estable.
2. EMAs (Exponential Moving Averages)
Se calculan EMAs de cada RSI para suavizar sus movimientos:
EMA RSI 1: Suaviza el RSI 1 (corto plazo).
EMA RSI 2: Suaviza el RSI 2 (mediano plazo).
Estas EMAs ayudan a filtrar el ruido del mercado y permiten identificar tendencias más claras en los datos del RSI.
3. Niveles Clave
Se definen niveles de referencia horizontales en el gráfico:
80 (línea sólida roja): Zona de sobrecompra extrema.
70 (línea punteada roja): Zona inicial de sobrecompra.
50 (línea gris punteada): Línea media, que actúa como una referencia de equilibrio.
30 (línea punteada verde): Zona inicial de sobreventa.
20 (línea sólida verde): Zona de sobreventa extrema.
Estos niveles ayudan a interpretar la fuerza del mercado:
Por encima de 70: El mercado está en una fase alcista fuerte (o sobrecompra).
Por debajo de 30: El mercado está en una fase bajista fuerte (o sobreventa).
4. Visualización
El indicador grafica:
RSI 1 y su EMA:
RSI 1: Línea verde gruesa.
EMA RSI 1: Línea blanca delgada, que sigue al RSI 1.
RSI 2 y su EMA:
RSI 2: Línea roja gruesa.
EMA RSI 2: Línea transparente (no visible en este caso, pero puede activarse si se desea).
¿Para qué sirve este indicador?
1. Identificar sobrecompra y sobreventa
Los niveles de 70 y 30 marcan zonas donde el mercado podría estar cerca de un cambio de tendencia.
Los niveles de 80 y 20 identifican extremos, que suelen estar acompañados de fuertes reversiones de precio.
2. Confirmar tendencias
Si el RSI y su EMA están por encima de 50, indica una tendencia alcista.
Si el RSI y su EMA están por debajo de 50, indica una tendencia bajista.
3. Filtrar señales falsas
Al combinar dos RSI con diferentes períodos, puedes confirmar señales de una forma más confiable:
Si ambos RSI están en la misma dirección (por encima o por debajo de 50), la señal es más fuerte.
Las EMAs suavizan las oscilaciones, ayudando a ignorar movimientos temporales irrelevantes.
Beneficio para los Traders
Este indicador es útil para:
Scalpers y Day Traders: Al usar un RSI más corto (RSI 1), puedes capturar movimientos rápidos en el mercado.
Swing Traders: Con el RSI más largo (RSI 2), puedes identificar tendencias más amplias.
Gestión de riesgos: Evitar operaciones en zonas de sobrecompra/sobreventa extremas (niveles 80 y 20).
En resumen, este indicador proporciona una herramienta poderosa para evaluar la fuerza relativa del mercado, combinando diferentes horizontes de análisis y ayudando a los traders a tomar decisiones informadas.
Liquidity + SP y RS + Zones [AlgoRich]This indicator is designed to identify key areas in the market, such as support and resistance levels, liquidity zones, and important price structures.
Additionally, it highlights operational areas based on specific time frames, facilitating technical analysis and decision-making in trading.
How does it work?
1. Identification of Pivot Levels
The indicator identifies local highs and lows on the chart, known as pivot levels, which are zones where the price tends to react, such as:
Support zones: Areas where the price is likely to stop falling.
Resistance zones: Areas where the price might encounter obstacles to keep rising.
These levels are calculated by analyzing a range of bars around the current price and are highlighted with lines, boxes, and labels on the chart.
2. Liquidity Zones
Liquidity zones are defined as areas where there has been an accumulation of orders, either for buying or selling. These zones are significant because they often signal future price movements.
The indicator creates visual boxes around these levels, allowing traders to quickly identify areas where the price might react.
3. Support and Resistance Lines
Horizontal lines are drawn at the identified highs and lows, representing support and resistance levels on the chart.
These lines can be extended forward until the price touches them, showing whether the level has been respected or "broken."
4. Visual Labels
The indicator can also display labels at key levels to provide additional information, such as whether the level corresponds to a high or low.
5. Operational Zones
In addition to support and resistance levels, the indicator allows users to mark specific time periods, referred to as operational sessions.
These zones highlight user-defined periods, such as:
New York session
London session
Daily session
This helps focus analysis on the most active market periods.
6. Customization
The user can customize the following:
Pivot sizes (how many bars to consider to the left and right).
Colors and styles of the lines, boxes, and labels.
Visibility of elements such as boxes, lines, and labels.
Whether to extend the levels forward until the price reaches them.
What is this indicator used for?
Identifying key areas in the market: Support, resistance levels, and liquidity zones are essential for understanding where the price is most likely to react.
Defining entry and exit points: Highlighted zones help determine when to open or close trades.
Highlighting key market moments: With operational sessions, you can focus on the most relevant periods for your strategy.
Simplifying technical analysis: By visualizing levels and zones directly on the chart, it reduces the time needed to identify critical areas.
Benefits for Traders
This indicator is ideal for traders who:
Want to analyze key market levels quickly and efficiently.
Are looking for high-probability zones to trade, based on support, resistance, and liquidity areas.
Need a visual approach to highlight operational levels and important time frames on their charts.
In summary, this indicator serves as a comprehensive tool that combines advanced technical analysis with a user-friendly visual interface, allowing traders to make more informed and precise decisions.
-----------------
TRADUCCIÓN AL ESPAÑOL:
Este indicador está diseñado para identificar zonas clave en el mercado, como niveles de soporte y resistencia, zonas de liquidez, y estructuras importantes de precios. Además, resalta las áreas operativas de acuerdo con horarios específicos, facilitando el análisis técnico y la toma de decisiones en el trading.
¿Cómo funciona?
1. Identificación de Niveles Pivot
El indicador busca máximos y mínimos locales en el gráfico, conocidos como niveles pivote, los cuales son zonas donde el precio suele reaccionar, como en:
Zonas de soporte: Donde el precio tiene probabilidades de detener su caída.
Zonas de resistencia: Donde el precio podría encontrar obstáculos para seguir subiendo.
Estos niveles son calculados analizando un rango de barras alrededor del precio actual, y se destacan con líneas, cajas y etiquetas en el gráfico.
2. Zonas de Liquidez
Las zonas de liquidez se definen como áreas donde ha habido una acumulación de órdenes, ya sea de compra o venta. Estas zonas son importantes porque suelen marcar movimientos futuros significativos en el precio.
El indicador crea cajas visuales alrededor de estos niveles, permitiendo identificar rápidamente las áreas donde el precio puede reaccionar.
3. Líneas de Soporte y Resistencia
Se trazan líneas horizontales en los máximos y mínimos identificados, representando los niveles de soporte y resistencia en el gráfico.
Estas líneas se pueden extender hacia adelante hasta que el precio las toque, mostrando si el nivel ha sido respetado o "roto".
4. Etiquetas Visuales
El indicador también puede mostrar etiquetas en los niveles clave para proporcionar información adicional, como si el nivel corresponde a un máximo o un mínimo.
5. Zonas Operativas
Además de los niveles de soporte y resistencia, el indicador permite marcar zonas de tiempo específicas, llamadas sesiones operativas.
Estas zonas resaltan períodos definidos por el usuario, como:
Sesión de Nueva York.
Sesión de Londres.
Diario.
Esto ayuda a enfocar el análisis en los momentos más activos del mercado.
6. Personalización
El usuario puede personalizar:
Tamaños de pivote (cuántas barras a la izquierda y derecha considerar).
Colores y estilos de las líneas, cajas y etiquetas.
La visibilidad de elementos como cajas, líneas y etiquetas.
Extender o no los niveles hacia adelante hasta que el precio los alcance.
¿Para qué sirve este indicador?
Identificar zonas importantes del mercado: Los niveles de soporte, resistencia y las zonas de liquidez son esenciales para entender dónde es más probable que el precio reaccione.
Definir puntos de entrada y salida: Las zonas destacadas ayudan a determinar cuándo abrir o cerrar operaciones.
Resaltar momentos clave del mercado: Con las sesiones operativas, puedes enfocarte en los períodos más relevantes para tu estrategia.
Simplificar el análisis técnico: Visualizando niveles y zonas directamente en el gráfico, se reduce el tiempo necesario para identificar áreas críticas.
Beneficio para los Traders
Este indicador es ideal para traders que:
Quieren analizar niveles clave del mercado de forma rápida y eficiente.
Buscan zonas de alta probabilidad para operar, basándose en soportes, resistencias y zonas de liquidez.
Necesitan un enfoque visual para destacar niveles operativos y horarios importantes en sus gráficos.
En resumen, este indicador actúa como una herramienta integral para combinar análisis técnico avanzado con una interfaz visual amigable, lo que permite a los traders tomar decisiones más informadas y precisas.
Smoothed Gaussian Trend Filter [AlgoAlpha]Experience seamless trend detection and market analysis with the Smoothed Gaussian Trend Filter by AlgoAlpha! This cutting-edge indicator combines advanced Gaussian filtering with linear regression smoothing to identify and enhance market trends, making it an essential tool for traders seeking precise and actionable signals.
Key Features :
🔍 Gaussian Trend Filtering: Utilizes a customizable Gaussian filter with adjustable length and pole settings for tailored smoothing and trend identification.
📊 Linear Regression Smoothing: Reduces noise and further refines the Gaussian output with user-defined smoothing length and offset, ensuring clarity in trend representation.
✨ Dynamic Visual Highlights: Highlights trends and signals based on volume intensity, allowing for real-time insights into market behavior.
📉 Choppy Market Detection: Identifies ranging or choppy markets, helping traders avoid false signals.
🔔 Custom Alerts: Set alerts for bullish and bearish signals, trend reversals, or choppy market conditions to stay on top of trading opportunities.
🎨 Color-Coded Visuals: Fully customizable colors for bullish and bearish signals, ensuring clear and intuitive chart analysis.
How to Use :
Add the Indicator: Add it to your favorites and apply it to your TradingView chart.
Interpret the Chart: Observe the trend line for directional changes and use the accompanying buy/sell signals for entry and exit opportunities. Choppy market conditions are flagged for additional caution.
Set Alerts: Enable alerts for trend signals or choppy market detections to act promptly without constant chart monitoring.
How It Works :
The Smoothed Gaussian Trend Filter uses a combination of advanced smoothing techniques to identify trends and enhance market clarity. First, a Gaussian filter is applied to price data, using a user-defined length (Gaussian length) and poles (smoothness level) to calculate an alpha value that determines the degree of smoothing. This creates a refined trend line that minimizes noise while preserving key market movements. The output is then further processed using linear regression smoothing, allowing traders to adjust the length and offset to flatten minor oscillations and emphasize the dominant trend. To incorporate market activity, volume intensity is analyzed through a normalized Hull Moving Average (HMA), dynamically adjusting the trend line's color transparency based on trading activity. The indicator also identifies trend direction by comparing the smoothed trend line with a calculated SuperTrend-style level, generating clear trend regimes and highlighting ranging or choppy conditions where trends are less reliable and avoiding false signals. This seamless integration of Gaussian smoothing, regression analysis, and volume dynamics provides traders with a powerful and intuitive tool for market analysis.
Price Projection by Linear RegressionPurpose:
This is a TradingView Pine Script indicator that performs a linear regression on historical price data to project potential future price levels. It's designed to help traders visualize long-term price trends and potential future price targets.
Key Components:
User Inputs:
Historical Data Points (default 1000 bars) - The amount of historical data used to calculate the trend
Years to Project (default 10 years) - How far into the future to project the price
Technical Implementation:
Uses linear regression (ta.linreg) to calculate the trend slope
Converts years to trading days using 252 trading days per year
Limits visible projection to 500 bars due to TradingView's drawing limitations
Projects prices using the formula: current_price + (slope × number_of_bars)
Visual Elements:
Blue line showing actual historical prices
Red projection line showing the expected price path
Label showing the projected price at the visible end of the line
Information table in the top-right corner showing:
Current price
Final projected price after the full time period
Limitations:
Can only display projections up to 500 bars into the future (about 2 years) due to TradingView limitations
The full projection value is still calculated and shown in the table
Past performance doesn't guarantee future results - this is a mathematical projection based on historical trends
Usage:
Traders can use this to:
Visualize potential long-term price trends
Set long-term price targets
Understand the historical trend's trajectory
Compare current prices with projected future values
Previous Candle Sweep IndicatorThis script identifies candlesticks where the current candle's high is higher than the previous candle's high, and the current candle's low is lower than the previous candle's low. If both conditions are met, the candle's body is highlighted in blue on the chart, allowing traders to quickly spot these patterns.
Features:
Highlights candles with both higher highs and lower lows.
Uses clear visual cues (blue body) for easy identification.
Ideal for traders looking to identify specific volatility patterns or reversals.
RM - Hull Moving RegressionRM - Hull Moving Regression (RM - HMR)
This indicator integrates the Enhanced Hull Moving Average (EHMA) with linear regression and RSI to provide a comprehensive view of market trends and momentum. By combining advanced smoothing techniques with dynamic visual cues, it delivers actionable insights for traders seeking clarity in price movements.
Key Features
- Enhanced Hull Moving Average (EHMA):
The indicator computes EHMA values using the open, high, low, and close prices. These are averaged to create a smooth, responsive representation of market trends.
- Linear Regression Smoothing:
The EHMA output is further refined with a linear regression model, reducing noise and highlighting directional trends.
- RSI-Tracking:
RSI is calculated on the smoothed regression output.
- Dynamic Bar Coloring:
Bars change color to reflect shifts in momentum:
- Green for increasing momentum.
- Orange for decreasing momentum.
- Customizable Parameters:
Users can adjust the RSI length, regression length, and EHMA period to suit their trading strategy.
How It Works
1. The indicator calculates EHMA values for four price sources (open, high, low, close).
2. These EHMA values are averaged to generate a smoother price action metric.
3. The averaged EHMA is processed through a linear regression model to further smooth the data.
4. RSI is then applied to the regression output.
How to Use
- Identify Market Trends:
Use the color-coded bars and moving averages to confirm overall market direction.
- Monitor Momentum Changes:
Look for shifts in bar color (e.g., green to orange) to identify potential weakening or strengthening trends.
- Combine with Other Indicators:
Integrate the RM-HMR with other trend-following or momentum tools for robust analysis and confirmation.
Example Use Cases
- Trend Following:
Utilize the smooth moving averages and bar colors to follow dominant market trends.
Disclaimer
This indicator is designed for educational and analytical purposes. It should not be used in isolation and must be paired with sound risk management practices and additional tools for comprehensive market analysis.
Adjust Asset for Future Interest (Brazil)Este script foi criado para ajustar o preço de um ativo com base na taxa de juros DI11!, que reflete a expectativa do mercado para os juros futuros. O objetivo é mostrar como o valor do ativo seria influenciado se fosse diretamente ajustado pela variação dessa taxa de juros.
Como funciona?
Preço do Ativo
O script começa capturando o preço de fechamento do ativo que está sendo visualizado no gráfico. Esse é o ponto de partida para o cálculo.
Taxa de Juros DI11!
Em seguida, ele busca os valores diários da taxa DI11! no mercado. Esta taxa é uma referência de juros de curto prazo, usada para ajustes financeiros e projeções econômicas.
Fator de Ajuste
Com a taxa de juros DI11!, o script calcula um fator de ajuste simples:
Fator de Ajuste
=
1
+
DI11
100
Fator de Ajuste=1+
100
DI11
Esse fator traduz a taxa percentual em um multiplicador aplicado ao preço do ativo.
Cálculo do Ativo Ajustado
Multiplica o preço do ativo pelo fator de ajuste para obter o valor ajustado do ativo. Este cálculo mostra como o preço seria se fosse diretamente influenciado pela variação da taxa DI11!.
Exibição no Gráfico
O script plota o preço ajustado do ativo como uma linha azul no gráfico, com maior espessura para facilitar a visualização. O resultado é uma curva que reflete o impacto teórico da taxa de juros DI11! sobre o ativo.
Utilidade
Este indicador é útil para entender como as taxas de juros podem influenciar ativos financeiros de forma hipotética. Ele é especialmente interessante para analistas que desejam avaliar a relação entre o mercado de renda variável e as condições de juros no curto prazo.
This script was created to adjust the price of an asset based on the DI11! interest rate, which reflects the market's expectation for future interest rates. The goal is to show how the asset's value would be influenced if it were directly adjusted by the variation of this interest rate.
How does it work?
Asset Price
The script starts by capturing the closing price of the asset that is being viewed on the chart. This is the starting point for the calculation.
DI11! Interest Rate
The script then searches for the daily values of the DI11! rate in the market. This rate is a short-term interest reference, used for financial adjustments and economic projections.
Adjustment Factor
With the DI11! interest rate, the script calculates a simple adjustment factor:
Adjustment Factor
=
1
+
DI11
100
Adjustment Factor=1+
100
DI11
This factor translates the percentage rate into a multiplier applied to the asset's price.
Adjusted Asset Calculation
Multiplies the asset price by the adjustment factor to obtain the adjusted asset value. This calculation shows how the price would be if it were directly influenced by the variation of the DI11! rate.
Display on the Chart
The script plots the adjusted asset price as a blue line on the chart, with greater thickness for easier visualization. The result is a curve that reflects the theoretical impact of the DI11! interest rate on the asset.
Usefulness
This indicator is useful for understanding how interest rates can hypothetically influence financial assets. It is especially interesting for analysts who want to assess the relationship between the equity market and short-term interest rate conditions.
Algo Bands [ProjeAdam]OVERVIEW:
The Algo Bands indicator is a technical analysis tool that calculates the highest, lowest, and average price levels over a user-defined number of bars. It generates buy and sell signals based on price interactions with these levels, visualizing them as bands on the chart. Additionally, the indicator provides multi-timeframe analysis and integrates alerts for timely trading decisions.
ALGORITHM:
1. Initialization and Function Definition
The Algo Bands indicator starts by defining functions to calculate critical price levels:
- High Band : A smoothed average of recent high price levels.
- Low Band : A smoothed average of recent low price levels.
- Average Band : The midpoint between the High Band and Low Band.
The smoothing process utilizes a Smoothed Moving Average (SMMA) to reduce noise and ensure accurate signal generation.
2. Inputs and Band Calculation
The indicator accepts customizable inputs for flexibility in trading strategies:
- Backward Length : The number of bars to consider for calculating high and low values.
- Number of Lines : Specifies how many recent high or low values are averaged.
- Smoothing Period : The length of the SMMA to smooth price data.
Using these inputs:
- The High Band is calculated as the smoothed average of the highest price values.
- The Low Band is calculated as the smoothed average of the lowest price values.
- The Average Band is the midpoint of the High and Low Bands.
3. Plotting the Bands
The Algo Bands indicator plots three main lines on the price chart:
- High Band : Plotted as a red step line, representing resistance levels.
- Low Band : Plotted as a green step line, indicating support levels.
- Average Band : Plotted as an orange line, showing the midpoint or equilibrium price.
4. Buy and Sell Conditions
Sell Condition:
The indicator triggers a sell signal when either of the following conditions is met:
A. Crossunder Condition :
- The closing price crosses below the High Band.
- The candle closes below its open price, confirming bearish sentiment.
- The closing price remains below both the High Band and the previous bar's open price.
B. Rejection Condition :
- The high price exceeds the High Band during the bar.
- However, the closing price fails to hold above the High Band and closes lower than both the High Band and the open price.
Buy Condition:
The indicator triggers a buy signal when either of the following conditions is met:
A. Crossover Condition :
- The closing price crosses above the Low Band.
- The candle closes above its open price, indicating bullish momentum.
- The closing price remains above both the Low Band and the previous bar's open price.
B. Rejection Condition :
- The low price dips below the Low Band during the bar.
- However, the closing price recovers and closes higher than both the Low Band and the open price.
5. Signal Visualization
The indicator visually represents buy and sell signals as follows:
- Sell Signals : Displayed as a red downward label (🔴) above the bar.
- Buy Signals : Displayed as a green upward label (🟢) below the bar.
The background colors between the bands also reflect market direction:
- Red for bearish trends.
- Green for bullish trends.
6. Alerts
The Algo Bands indicator includes customizable alerts to notify traders of trading signals:
- Alerts are triggered when Buy or Sell conditions are met.
- Integration with Telegram allows real-time notifications for immediate action.
7. Multi-Timeframe Analysis
The indicator supports analysis across multiple timeframes, including:
- 1 Hour
- 4 Hours
- Daily
It calculates the High and Low Bands for these timeframes to provide a comprehensive view of the market trend.
HOW DOES THE INDICATOR WORK?
1. Price Band Calculation :
- The highest and lowest price values are dynamically identified for a user-defined range.
- These values are smoothed using SMMA to produce the High Band and Low Band.
2. Signal Generation :
- Sell signals occur when the price crosses below or rejects the High Band.
- Buy signals occur when the price crosses above or rejects the Low Band.
3. Visualization :
- The bands are plotted on the chart to display resistance, support, and price equilibrium.
- Buy and Sell signals are marked with labels and color-coded backgrounds.
4. Alerts :
- Custom alerts notify traders in real time when signals are triggered.
BENEFITS OF THE ALGO BANDS INDICATOR:
- Trend Identification : Identifies support, resistance, and price equilibrium levels.
- Clear Buy/Sell Signals : Helps traders make timely entry and exit decisions.
- Noise Reduction : SMMA smoothing minimizes false signals.
- Multi-Timeframe Analysis : Provides insights across 1-hour, 4-hour, and daily timeframes.
- Customizable Parameters : Users can adjust settings for their trading style.
- Real-Time Alerts : Immediate notifications ensure timely actions.
- Visual Clarity : Labels and background colors enhance signal visibility.
- Ease of Use : Suitable for traders of all levels, from beginners to experts.
If you have any ideas what to add to my work to add more sources or make calculations cooler, suggest in DM .