Power Core MAThe Power Core MA indicator is a powerful tool designed to identify the most significant moving average (MA) in a given price chart. This indicator analyzes a wide range of moving averages, from 50 to 400 periods, to determine which one has the strongest influence on the current price action.
The blue line plotted on the chart represents the "Current Core MA," which is the moving average that is most closely aligned with other nearby moving averages. This line indicates the current trend and potential support or resistance levels.
The table displayed on the chart provides two important pieces of information. The "Current Core MA" value shows the length of the moving average that is currently most influential. The "Historical Core MA" value represents the average length of the most influential moving averages over time.
This indicator is particularly useful for traders and analysts who want to identify the most relevant moving average for their analysis. By focusing on the moving average that has the strongest historical significance, users can make more informed decisions about trend direction, support and resistance levels, and potential entry or exit points.
The Power Core MA is an excellent tool for those interested in finding the strongest moving average in the price history. It simplifies the process of analyzing multiple moving averages by automatically identifying the most influential one, saving time and providing valuable insights into market dynamics.
By combining current and historical data, this indicator offers a comprehensive view of the market's behavior, helping traders to adapt their strategies to the most relevant timeframes and trend strengths.
移動平均線
Trade Mavrix: Elite Trade NavigatorYour ultimate trading companion that helps you spot profitable breakouts, perfect pullbacks, and crucial support & resistance levels. Ready to take your trading to the next level? Let's dive in!
50MA ATR BANDSDescription: This indicator plots ATR bands around a 50-period EMA across multiple timeframes (15-minute, hourly, daily, weekly, and monthly). It offers traders a visual guide to potential price ranges using volatility-based calculations:
1.ATR Calculations: Based on selected timeframes for finer analysis.
2.EMA Calculations: 50-period EMA to track trend direction.
3.Customization: Line width, display mode (Auto/User-defined), and plot styles.
Usage: This tool helps identify potential support and resistance levels with ATR-based bands, making it a valuable addition to trend-following and volatility strategies.
sangram RSI Candlesticks//@version=5
indicator('sangram RSI Candlesticks', shorttitle='sangram RSI', overlay=false)
// RSI Settings
rsiPeriod = input.int(40, title='RSI Period', minval=1)
rsiSource = close
rsiValue = ta.rsi(rsiSource, rsiPeriod)
// Toggle Visibility
showRSILine = input(true, title='Make the RSI Glow')
showAllMA = input(true, title="Show ALL Moving Averages")
showMA1 = input(true, title='Show Moving Average 1')
showMA2 = input(true, title='Show Moving Average 2')
showMA3 = input(true, title='Show Moving Average 3')
showMA4 = input(true, title='Show Moving Average 4')
showBars = input(true, title='Show RSI OHLC Bars')
maLength1 = input.int(9, title='MA Length 1')
maLength2 = input.int(15, title='MA Length 2')
maLength3 = input.int(30, title='MA Length 3')
maLength4 = input.int(50, title='MA Length 4')
// Calculate OHLC Values for RSI
rsiOpen = na(rsiValue ) ? rsiValue : rsiValue
rsiHigh = ta.highest(rsiValue, rsiPeriod)
rsiLow = ta.lowest(rsiValue, rsiPeriod)
// Define Colors
barUpColor = color.new(color.green, 0)
barDownColor = color.new(color.red, 0)
barColor = rsiOpen < rsiValue ? barUpColor : barDownColor
// Plot RSI OHLC Bars
plotcandle(showBars ? rsiOpen : na, rsiHigh, rsiLow, rsiValue, title="RSI OHLC", color=barColor, wickcolor=color.new(color.white, 100), bordercolor=barColor)
// Horizontal Lines
hline(70, "Oversold", color.new(color.red, 80), linewidth = 2, linestyle = hline.style_solid)
hline(70, "Oversold", color.new(color.red, 85), linewidth = 12, linestyle = hline.style_solid)
hline(70, "Oversold", color.new(color.red, 90), linewidth = 24, linestyle = hline.style_solid)
hline(70, "Oversold", color.new(color.red, 95), linewidth = 36, linestyle = hline.style_solid)
hline(50, "Mid", color=color.gray)
hline(30, "Oversold", color.new(color.green, 80), linewidth = 2, linestyle = hline.style_solid)
hline(30, "Oversold", color.new(color.green, 85), linewidth = 12, linestyle = hline.style_solid)
hline(30, "Oversold", color.new(color.green, 90), linewidth = 24, linestyle = hline.style_solid)
hline(30, "Oversold", color.new(color.green, 95), linewidth = 36, linestyle = hline.style_solid)
// Plot RSI Line
rsiColor1 = color.new(color.blue, 30)
rsiColor2 = color.new(color.blue, 80)
rsiColor3 = color.new(color.blue, 85)
plot(showRSILine ? rsiValue : na, title='RSI', color=rsiColor1, linewidth=2)
plot(showRSILine ? rsiValue : na, title='RSI', color=rsiColor2, linewidth=10)
plot(showRSILine ? rsiValue : na, title='RSI', color=rsiColor3, linewidth=16)
// Moving Average
maValue1 = ta.sma(rsiValue, maLength1)
maValue2 = ta.sma(rsiValue, maLength2)
maValue3 = ta.sma(rsiValue, maLength3)
maValue4 = ta.sma(rsiValue, maLength4)
plot(showAllMA and showMA1 ? maValue1 : na, title='MA 1', color=color.green)
plot(showAllMA and showMA2 ? maValue2 : na, title='MA 2', color=color.fuchsia)
plot(showAllMA and showMA3 ? maValue3 : na, title='MA 3', color=color.red)
plot(showAllMA and showMA4 ? maValue4 : na, title='MA 4', color=color.red)
Supertrend EMA & KNNSupertrend EMA & KNN
The Supertrend EMA indicator cuts through the noise to deliver clear trend signals.
This tool is built using the good old Exponential Moving Averages (EMAs) with a novel of machine learning; KNN (K Nearest Neighbors) breakout detection method.
Key Features:
Effortless Trend Identification: Supertrend EMA simplifies trend analysis by automatically displaying a color-coded EMA. Green indicates an uptrend, red signifies a downtrend, and the absence of color suggests a potential range.
Dynamic Breakout Detection: Unlike traditional EMAs, Supertrend EMA incorporates a KNN-based approach to identify breakouts. This allows for faster color changes compared to standard EMAs, offering a more dynamic picture of the trend.
Customizable Parameters: Fine-tune the indicator to your trading style. Adjust the EMA length for trend smoothing, KNN lookback window for breakout sensitivity, and breakout threshold for filtering noise.
A Glimpse Under the Hood:
Dual EMA Power: The indicator utilizes two EMAs. A longer EMA (controlled by the "EMA Length" parameter) provides a smooth trend direction, while a shorter EMA (controlled by the "Short EMA Length" parameter) triggers color changes, aiming for faster response to breakouts.
KNN Breakout Detection: This innovative feature analyzes price action over a user-defined lookback period (controlled by the "KNN Lookback Length" parameter) to identify potential breakouts. If the price surpasses a user-defined threshold (controlled by the "Breakout Threshold" parameter) above the recent highs, a green color is triggered, signaling a potential uptrend. Conversely, a breakdown below the recent lows triggers a red color, indicating a potential downtrend.
Trading with Supertrend EMA:
Ride the Trend: When the indicator displays green, look for long (buy) opportunities, especially when confirmed by bullish price action patterns on lower timeframes. Conversely, red suggests potential shorting (sell) opportunities, again confirmed by bearish price action on lower timeframes.
Embrace Clarity: The color-coded EMA provides a clear visual representation of the trend, allowing you to focus on price action and refine your entry and exit strategies.
A Word of Caution:
While Supertrend EMA offers faster color changes than traditional EMAs, it's important to acknowledge a slight inherent lag. Breakout detection relies on historical data, and there may be a brief delay before the color reflects a new trend.
To achieve optimal results, consider:
Complementary Tools: Combine Supertrend EMA with other indicators or price action analysis for additional confirmation before entering trades.
Solid Risk Management: Always practice sound risk management strategies such as using stop-loss orders to limit potential losses.
Supertrend EMA is a powerful tool designed to simplify trend identification and enhance your trading experience. However, remember, no single indicator guarantees success. Use it with a comprehensive trading strategy and disciplined risk management for optimal results.
Disclaimer:
While the Supertrend EMA indicator can be a valuable tool for identifying potential trend changes, it's important to note that it's not infallible. Market conditions can be highly dynamic, and indicators may sometimes provide false signals. Therefore, it's crucial to use this indicator in conjunction with other technical analysis tools and sound risk management practices. Always conduct thorough research and consider consulting with a financial advisor before making any investment decisions.
RSI Divergence Indicator + 5EMABest Indicator for Price Action Traders.
RSI acting as Momentum Oscillator, 5EMA (8, 21, 55, 100, 200)
Jurik / HMA with Ribbon
**Jurik / HMA with Ribbon**
This script combines the Jurik Moving Average (JMA), Exponential Moving Average (EMA), and Hull Moving Average (HMA) to provide a comprehensive trend-following tool with a visual ribbon background. Each of these moving averages is tuned for a unique view of market trends, and the script highlights potential momentum changes based on the alignment of these averages.
### Key Components:
1. **Jurik Moving Average (JMA)**:
- JMA is a smooth, adaptive moving average that filters out noise while remaining responsive to price changes.
- The script allows customization of JMA's `length`, `phase`, and `power` parameters to suit different trading styles.
- When the JMA turns from red to green (or vice versa), it indicates a potential momentum shift based on the current price action relative to the previous bar.
2. **Exponential Moving Average (EMA)** and **Hull Moving Average (HMA)**:
- Both EMA and HMA are popular moving averages in technical analysis.
- EMA responds more quickly to recent price changes, while HMA is known for smoothing out price data while reducing lag.
- The `length` for both EMA and HMA can be customized, with a default value of 15.
3. **Ribbon Background**:
- This script creates a "ribbon" effect in the background, highlighting when the JMA is above or below both the EMA and HMA:
- **Green Ribbon**: Indicates a potential bullish trend when JMA is above both EMA and HMA.
- **Red Ribbon**: Indicates a potential bearish trend when JMA is below both EMA and HMA.
- The ribbon provides a clear visual cue, making it easy to identify trend changes at a glance.
### Inputs:
- **JMA Length, Phase, and Power**: Parameters to fine-tune the behavior of the Jurik Moving Average.
- **EMA/HMA Length**: Shared length parameter for both the EMA and HMA, with a default of 15.
- **Highlight Movements**: Option to enable/disable color changes for the JMA based on movement direction.
### Plotting:
- The script plots the JMA, EMA, and HMA lines on the chart, color-coded for easy identification.
- The JMA line changes color based on movement direction, with green for upward movements and red for downward.
- EMA and HMA lines are shown in blue and purple, respectively, for added clarity.
### How to Use:
This indicator can be useful for identifying trend direction and strength:
- When all three moving averages (JMA, EMA, and HMA) align with the same direction and the ribbon color matches, it signals a strong trend.
- This script is ideal for trend-following strategies, as well as for identifying potential reversals when the JMA crosses below or above the EMA/HMA.
### Note:
As always, this indicator should be used alongside other tools or analysis techniques to confirm signals and manage risk effectively.
---
This description should help users understand the functionality and purpose of the script when they see it on TradingView. Let me know if you'd like any further customization!
OTI-Options Trading IndicatorThis Pine Script strategy, "Enhanced Multiple Indicators Strategy (EMIS)," utilizes multiple technical indicators to generate trade signals. The strategy combines signals from moving averages, RSI, MACD, Bollinger Bands, Stochastic Oscillator, and ATR to evaluate market conditions and make informed trading decisions. This approach aims to capture strong buy and sell signals by aggregating the insights of these indicators into a scoring system, which helps filter out weaker signals and identify high-probability trades.
Indicators Used:
Simple Moving Average (SMA):
Measures the average closing price over a specified period (MA Length) to assess trend direction.
Relative Strength Index (RSI):
An oscillator that identifies overbought and oversold conditions based on RSI Length.
Overbought level is set at 70, and oversold level at 30.
Moving Average Convergence Divergence (MACD):
MACD line and Signal line are used for crossover signals, indicating potential momentum shifts.
Configured with MACD Fast Length, MACD Slow Length, and MACD Signal Length.
Bollinger Bands (BB):
This indicator uses a moving average and standard deviation to set upper and lower bands.
Upper and lower bands help indicate volatility and potential reversal zones.
Stochastic Oscillator:
Measures the position of the close relative to the high-low range over a specified period.
Uses a Stoch Length to determine trend momentum and reversal points.
Average True Range (ATR):
Measures volatility over a specified period to indicate potential breakouts and trend strength.
ATR Length determines the range for the current market.
Score Calculation:
Each indicator contributes a score based on its current signal:
Moving Average (MA): If the price is above the MA, it adds +5; otherwise, -5.
RSI: +10 if oversold, -10 if overbought, and 0 if neutral.
MACD: +5 for a bullish crossover, -5 for a bearish crossover.
Bollinger Bands: +5 if below the lower band, -5 if above the upper band, and 0 if within bands.
Stochastic: +5 if %K > %D (bullish), -5 if %K < %D (bearish).
ATR: Adjusted to detect increased volatility (e.g., recent close above previous close plus ATR).
The final score is a combination of these scores:
If the score is between 5 and 10, a Buy order is triggered.
If the score is between -5 and -10, the position is closed.
Usage Notes:
Adjust indicator lengths and levels to fit specific markets.
Back test this strategy on different timeframes to optimize results.
This script can be a foundation for more complex trading systems by tweaking scoring methods and indicator parameters.
Please Communicate Your Trading Results And Back Testing Score On-
manjunath0honmore@gmail.com
Tele-@tbmlh
SMA DeluxeIndicatore SMA 40 con Idee di Ingresso, Uscita e Stop Loss
Questo indicatore sfrutta la media mobile semplice (SMA) a 40 periodi per identificare potenziali punti di ingresso e uscita basati sul movimento del prezzo. Quando il prezzo attraversa la SMA dall'alto verso il basso o viceversa, viene visualizzata un’etichetta "ENTRY" per segnalare un possibile punto di ingresso. Successivamente, un’etichetta "EXIT" appare automaticamente 5 barre dopo l’ingresso per indicare un potenziale punto di uscita.
Inoltre, l'indicatore traccia una linea di stop loss dinamica per ogni posizione, supportando la gestione del rischio visiva e aiutando a definire livelli di protezione in modo intuitivo.
Nota Importante: Questo strumento non costituisce un consiglio finanziario e non deve essere utilizzato come unico strumento di trading. È consigliato abbinarlo ad altre analisi tecniche per confermare i segnali ricevuti. Per ottimizzare l'efficacia, si suggerisce di operare su timeframe da 4 ore in su e con un grafico a linea. È preferibile utilizzarlo in mercati in trend piuttosto che in mercati consolidati, in quanto i segnali tendono ad essere più affidabili in fasi di movimento direzionale del mercato.
EMA Ribbon with TimeframeThis indicator draws 20 Ema Ribbons in the selected range (start-End) to provide visual clarity to the standard "Ema Ribbon" indicators.
Options:
- You can see the transitions between the main periods with Show / Hide the Ribbon.
- Timeframe: You can see the strength of the turns more clearly by choosing different timeframes (Short-Long).
Cross-Asset Correlation Trend IndicatorCross-Asset Correlation Trend Indicator
This indicator uses correlations between the charted asset and ten others to calculate an overall trend prediction. Each ticker is configurable, and by analyzing the trend of each asset, the indicator predicts an average trend for the main asset on the chart. The strength of each asset's trend is weighted by its correlation to the charted asset, resulting in a single average trend signal. This can be a rather robust and effective signal, though it is often slow.
Functionality Overview :
The Cross-Asset Correlation Trend Indicator calculates the average trend of a charted asset based on the correlation and trend of up to ten other assets. Each asset is assigned a trend signal using a simple EMA crossover method (two customizable EMAs). If the shorter EMA crosses above the longer one, the asset trend is marked as positive; if it crosses below, the trend is negative. Each trend is then weighted by the correlation coefficient between that asset’s closing price and the charted asset’s closing price. The final output is an average weighted trend signal, which combines each trend with its respective correlation weight.
Input Parameters :
EMA 1 Length : Sets the period of the shorter EMA used to determine trends.
EMA 2 Length : Sets the period of the longer EMA used to determine trends.
Correlation Length : Defines the lookback period used for calculating the correlation between the charted asset and each of the other selected assets.
Asset Tickers : Each of the ten tickers is configurable, allowing you to set specific assets to analyze correlations with the charted asset.
Show Trend Table : Toggle to show or hide a table with each asset’s weighted trend. The table displays green, red, or white text for each weighted trend, indicating positive, negative, or neutral trends, respectively.
Table Position : Choose the position of the trend table on the chart.
Recommended Use :
As always, it’s essential to backtest the indicator thoroughly on your chosen asset and timeframe to ensure it aligns with your strategy. Feel free to modify the input parameters as needed—while the defaults work well for me, they may need adjustment to better suit your assets, timeframes, and trading style.
As always, I wish you the best of luck and immense fortune as you develop your systems. May this indicator help you make well-informed, profitable decisions!
Multi-Trend SynchronizerMulti-Trend Synchronizer
The Multi-Trend Synchronizer indicator provides a multi-timeframe trend analysis using SMMA (Smoothed Moving Average) across three user-defined timeframes: short, medium, and long-term. By synchronizing trends from these timeframes, this tool helps traders identify stronger alignment signals for potential trend continuation or reversal, enhancing decision-making in various market conditions.
Key Features
Multi-Timeframe Trend Analysis: Users can set three different timeframes, allowing flexibility in tracking trends over short (e.g., 15 minutes), medium (e.g., 1 hour), and long-term (e.g., 4 hours) intervals.
Clear Trend Visualization: The indicator plots SMMA lines on the main chart, color-coded by timeframe for intuitive reading. It also displays an at-a-glance trend alignment table, showing the current trend direction (bullish, bearish, or neutral) for each timeframe.
Buy and Sell Signals: Alignment across all timeframes generates Buy and Sell signals, visualized on the chart with distinct markers to aid entry/exit timing.
Usage Notes
This indicator is best used for trend-following strategies. The SMMA-based design provides smoother trend transitions, reducing noise compared to standard moving averages. However, as with all indicators, it is not foolproof and should be combined with other analyses for robust decision-making.
How It Works
The indicator calculates SMMA values for each selected timeframe and tracks trend changes based on SMMA's direction. When all timeframes show a unified direction (either bullish or bearish), the indicator generates a Buy or Sell signal. A table displays real-time trend direction, with color codes to assist traders in quickly assessing the market's overall direction.
Indicator Settings
Timeframes: Customize each SMMA timeframe to align with personal trading strategies or market conditions.
SMMA Length: Adjust the length of the SMMA to control sensitivity. Lower values may increase signal frequency, while higher values provide smoother, more stable trend indicators.
Disclaimer: As with any trend-following tool, this indicator is most effective when used in trending markets and may be less reliable in sideways conditions. Past performance does not guarantee future results, and users should be cautious of market volatility.
Use it for educational purposes!
Arshtiq - Multi-Timeframe Trend StrategyMulti-Timeframe Setup:
The script uses two distinct timeframes: a higher (daily) timeframe for identifying the trend and a lower (hourly) timeframe for making trades. This combination allows the script to follow the larger trend while timing entries and exits with more precision on a shorter timeframe.
Moving Averages Calculation:
higher_ma: The 20-period Simple Moving Average (SMA) calculated based on the daily timeframe. This average gives a sense of the larger trend direction.
lower_ma: The 20-period SMA calculated on the hourly (current) timeframe, providing a dynamic level for detecting entry and exit points within the broader trend.
Trend Identification:
Bullish Trend: The script determines that a bullish trend is present if the current price is above the daily moving average (higher_ma).
Bearish Trend: Similarly, a bearish trend is identified when the current price is below this daily moving average.
Trade Signals:
Buy Signal: A buy signal is generated when the price on the hourly chart crosses above the hourly 20-period MA, but only if the higher (daily) timeframe trend is bullish. This ensures that buy trades align with the larger upward trend.
Sell Signal: A sell signal is generated when the price on the hourly chart crosses below the hourly 20-period MA, but only if the daily trend is bearish. This ensures that sell trades are consistent with the broader downtrend.
Plotting and Visual Cues:
Higher Timeframe MA: The daily 20-period moving average is plotted in red to help visualize the long-term trend.
Buy and Sell Signals: Buy signals appear as green labels below the price bars with the text "BUY," while sell signals appear as red labels above the bars with the text "SELL."
Background Coloring: The background changes color based on the identified trend for easier trend recognition:
Green (with transparency) when the daily trend is bullish.
Red (with transparency) when the daily trend is bearish.
WiseOwl Indicator - 1.0 The WiseOwl Indicator - 1.0 is a technical analysis tool designed to help traders identify potential entry points and market trends based on Exponential Moving Averages (EMAs) across multiple timeframes. It focuses on providing clear visual cues for bullish and bearish market conditions, as well as potential breakout opportunities.
Key Features
Multi-Timeframe EMA Analysis: Calculates EMAs on the current timeframe, Daily timeframe, and 15-minute timeframe to confirm trends.
Bullish and Bearish Market Identification: Determines market conditions based on the 200-period EMA on the Daily timeframe.
Directional Candle Coloring: Highlights candles based on their position relative to EMAs to provide immediate visual feedback.
Entry Signals: Plots buy and sell signals on the chart when specific conditions are met on the 1-hour and 4-hour timeframes.
Breakout Candle Highlighting: Colors candles differently when significant price movements occur, indicating potential breakout opportunities.
How It Works
Market Condition Determination:
Bullish Market: When the close price is above the 200-period EMA on the Daily timeframe.
Bearish Market: When the close price is below the 200-period EMA on the Daily timeframe.
Directional Candle Coloring:
Green Background: Applied when the close is above the 50-period EMA and the market is not bearish.
Red Background: Applied when the close is below the 50-period EMA and the market is not bullish.
Uses the Average True Range (ATR) to define a range threshold.
Suppresses signals when EMAs are within this range, indicating a sideways market.
Plotting Entry Signals:
Plots arrows on the chart for potential long and short entries on the 1-hour and 4-hour timeframes.
Breakout Candle Coloring:
Colors candles blue when a bullish breakout condition is met.
Colors candles orange when a bearish breakout condition is met.
How to Use
Trend Identification: Use the background coloring to quickly identify the overall market trend.
Green Background: Suggests bullish conditions; consider looking for long opportunities.
Red Background: Suggests bearish conditions; consider looking for short opportunities.
Entry Signals: Look for plotted arrows on the chart.
Green Upward Arrow: Indicates a potential long entry signal on the 1-hour or 4-hour timeframe.
Red Downward Arrow: Indicates a potential short entry signal on the 1-hour or 4-hour timeframe.
Breakout Opportunities: Watch for candles colored blue or orange.
Blue Candles: Highlight significant upward price movements.
Orange Candles: Highlight significant downward price movements.
Avoiding Ranging Markets: Be cautious when signals are suppressed due to ranging conditions; the market may not have a clear direction.
Example Usage
Identifying a Bullish Market:
The background turns green.
Price crosses above the 50 EMA.
A green upward arrow appears below a candle on the 1-hour or 4-hour chart.
Identifying a Bearish Market:
The background turns red.
Price crosses below the 50 EMA.
A red downward arrow appears above a candle on the 1-hour or 4-hour chart.
Notes
Open-Source Code: The script is open-source, allowing users to review and understand the logic behind the indicator.
Educational Purpose: This indicator is intended to aid in technical analysis and should not be used as the sole basis for trading decisions.
Disclaimer
This indicator is for educational purposes only and does not constitute financial advice. Trading involves risk, and you should consult with a qualified financial advisor before making any investment decisions.
Moving Average Simple Tool [OmegaTools]This TradingView script is a versatile Moving Average Tool that offers users multiple moving average types and a customizable overbought and oversold (OB/OS) sensitivity feature. It is designed to assist in identifying potential price trends, reversals, and momentum by using different average calculations and providing visual indicators for deviation levels. Below is a detailed breakdown of the settings, functionality, and visual elements within the Moving Average Simple Tool.
Indicator Overview
Indicator Name: Moving Average Simple Tool
Short Title: MA Tool
Purpose: Provides a choice of six moving average types with configurable sensitivity, which helps traders identify trend direction, potential reversal zones, and overbought or oversold conditions.
Input Parameters
Source (src): This option allows the user to select the data source for the moving average calculation. By default, it is set to close, but users can choose other options like open, high, low, or any custom price data.
Length (lnt): Defines the period length for the moving average. By default, it is set to 21 periods, allowing users to adjust the moving average sensitivity to either shorter or longer periods.
Average Type (mode): This input defines the moving average calculation type. Six types of averages are available:
SMA (Simple Moving Average)
EMA (Exponential Moving Average)
WMA (Weighted Moving Average)
VWMA (Volume-Weighted Moving Average)
RMA (Rolling Moving Average)
Middle Line: Calculates the average between the highest and lowest price over the period specified in Length. This is useful for a mid-range line rather than a traditional moving average.
Sensitivity (sens): This parameter controls the sensitivity of the overbought and oversold levels. The sensitivity value can range from 1 to 40, where a lower value represents a higher sensitivity and a higher value allows for smoother OB/OS zones.
Color Settings:
OS (Oversold Color, upc): The color applied to deviation areas that fall below the oversold threshold.
OB (Overbought Color, dnc): The color applied to deviation areas that exceed the overbought threshold.
Middle Line Color (midc): A gradient color that visually blends between overbought and oversold colors for smoother visual transitions.
Calculation Components
Moving Average Calculation (mu): Based on the chosen Average Type, this calculation derives the moving average or middle line value for the selected source and length.
Deviation (dev): The deviation of the source value from the moving average is calculated. This is useful to determine whether the current price is significantly above or below the average, signaling potential buying or selling opportunities.
Overbought (ob) and Oversold (os) Levels: These levels are calculated using a linear percentile interpolation based on the deviation, length, and sensitivity inputs. The higher the sensitivity, the narrower the overbought and oversold zones, allowing users to capture more frequent signals.
Visual Elements
Moving Average Line (mu): This line represents the moving average based on the selected calculation method and is plotted with a dynamic color based on deviation thresholds. When the deviation crosses into overbought or oversold zones, it shifts to the corresponding OB/OS colors, providing a visual indication of potential trend reversals.
Deviation Plot (dev): This plot visualizes the deviation values as a column plot, with colors matching the overbought, oversold, or neutral states. This helps users to quickly assess whether the price is trending or reverting back to its mean.
Overbought (ob) and Oversold (os) Levels: These levels are plotted as fixed lines, helping users identify when the deviation crosses into overbought or oversold zones.
M.Kiriti RSI with SMA & WMAThis script is a custom RSI indicator with added SMA and WMA moving averages to smooth RSI trends and improve analysis of momentum shifts.
1. RSI Calculation: Measures 14-period RSI of the closing price, default threshold levels at 70 (overbought) and 30 (oversold).
2. Moving Averages (SMA and WMA):
- SMA and WMA are applied to RSI for trend smoothing.
- SMA gives equal weight; WMA gives more weight to recent values, making it more responsive.
3.Overbought/Oversold Lines and Labels:
- Horizontal lines and scale labels at 70 (overbought) and 30 (oversold) make these levels easy to reference.
This indicator is useful for identifying potential reversal points and momentum trends when RSI crosses its moving averages.
Smoothed Heiken Ashi Trend FilterThis indicator applies the Heiken Ashi technique with added smoothing and trend filtering to help reduce noise and improve trend detection.
Components of the Indicator:
Heiken Ashi Calculations:
Heiken Ashi Close (ha_close): This is the smoothed average of the current bar’s open, high, low, and close prices, calculated with a simple moving average (SMA) to filter out noise.
Heiken Ashi Open (ha_open): This is the average of the previous Heiken Ashi Open and the current Heiken Ashi Close. It’s also initialized to smooth the transition on the first bar.
Heiken Ashi High (ha_high) and Low (ha_low): These values are calculated as the highest and lowest values among the high, Heiken Ashi Open, and Heiken Ashi Close for each bar.
Smoothing and Noise Reduction:
Smoothing Length: The indicator applies a smoothing length to the Heiken Ashi Close, calculated with an SMA. This reduces minor fluctuations, giving a clearer view of the price action.
Minimum Body Size Filter: This filter calculates the body size of each Heiken Ashi candle and compares it to a percentage of the Average True Range (ATR). Only significant candles (those with larger bodies) are plotted, reducing weak or indecisive signals.
Trend Filtering with Moving Average:
The indicator uses a simple moving average (SMA) as a trend filter. By comparing the Heiken Ashi Close to the moving average:
Bullish Trend: The Heiken Ashi candle is green when it’s above the moving average.
Bearish Trend: The Heiken Ashi candle is red when it’s below the moving average.
How to Use This Indicator:
Trend Identification:
Green candles signify a bullish trend, while red candles signify a bearish trend.
The smoothing and trend filtering make it easier to identify sustained trends and avoid reacting to short-term fluctuations.
Filtering Out Noise:
Minor price fluctuations and small-bodied candles (often resulting in indecisive signals) are filtered out, leaving only significant signals.
Adjustable Parameters:
Smoothing Length: Controls the degree of smoothing applied to the Heiken Ashi Close value. Increasing this value will make the Heiken Ashi candles smoother.
Minimum Body Size: This is a percentage of the ATR, used to filter out small or indecisive candles.
Trend Moving Average Length: Controls the period of the moving average used as a trend filter.
This Smoothed Heiken Ashi Trend Filter indicator is useful for identifying trends and filtering out noisy signals. By smoothing and filtering, it helps traders focus on the overall trend rather than minor price movements.
Let me know if there’s anything more you’d like to add or adjust!
Granular Candle-by-Candle VWAPGranular Candle-by-Candle VWAP is a customizable Volume Weighted Average Price (VWAP) indicator designed for TradingView. Unlike traditional VWAP indicators that operate on the chart's primary timeframe, this script enhances precision by incorporating lower timeframe (e.g., 1-minute) data into VWAP calculations. This granular approach provides traders with a more detailed and accurate representation of the average price, accounting for intra-bar price and volume movements. The indicator dynamically adjusts to the chart's current timeframe and offers a range of customization options, including price type selection, visual styling, and alert configurations.
Customizable Features
Users have extensive control over various aspects of the Granular Candle-by-Candle VWAP indicator. Below are the key features that can be customized to align with individual trading preferences:
🎛️ Customizable Features
Users have extensive control over various aspects of the Granular Candle-by-Candle VWAP indicator. Below are the key features that can be customized to align with individual trading preferences:
🔢 Lookback Period
Description: Defines the number of lower timeframe bars used in the VWAP calculation.
Customization:
Input: VWAP Lookback Period (Number of Lower Timeframe Bars)
Default Value: 20 bars
Range: Minimum of 1 bar
Purpose: Allows traders to adjust the sensitivity of the VWAP. A smaller lookback period makes the VWAP more responsive to recent price changes, while a larger period smoothens out fluctuations.
📈 Price Type Selection
Description: Determines which price metric is used in the VWAP calculation.
Customization:
Input: Price Type for VWAP Calculation
Options:
Open: Uses the opening price of each lower timeframe bar.
High: Uses the highest price of each lower timeframe bar.
Low: Uses the lowest price of each lower timeframe bar.
Close: Uses the closing price of each lower timeframe bar.
OHLC/4: Averages the Open, High, Low, and Close prices.
HL/2: Averages the High and Low prices.
Typical Price: (High + Low + Close) / 3
Weighted Close: (High + Low + 2 × Close) / 4
Default Value: Close
Purpose: Offers flexibility in how the average price is calculated, allowing traders to choose the price metric that best fits their analysis style.
🕒 Lower Timeframe Selection
Description: Specifies the lower timeframe from which data is fetched for granular VWAP calculations.
Customization:
Input: Lower Timeframe for Granular Data
Default Value: 1 minute ("1")
Options: Any valid TradingView timeframe (e.g., "1", "3", "5", "15", etc.)
Purpose: Enables traders to select the granularity of data used in the VWAP calculation, enhancing the indicator's precision on higher timeframe charts.
🎨 VWAP Line Customization
Description: Adjusts the visual appearance of the VWAP line based on price position relative to the VWAP.
Customizations:
Color When Price is Above VWAP:
Input: VWAP Color (Price Above)
Default Value: Green
Color When Price is Below VWAP:
Input: VWAP Color (Price Below)
Default Value: Red
Line Thickness:
Input: VWAP Line Thickness
Default Value: 2
Range: Minimum of 1
Line Style:
Input: VWAP Line Style
Options: Solid, Dashed, Dotted
Default Value: Solid
Purpose: Enhances visual clarity, allowing traders to quickly assess price positions relative to the VWAP through color coding and line styling.
🔔 Alerts and Notifications
Description: Provides real-time notifications when the price crosses the VWAP.
Customizations:
Enable/Disable Alerts:
Input: Enable Alerts for Price Crossing VWAP
Default Value: Enabled (true)
Alert Conditions:
Price Crossing Above VWAP:
Trigger: When the closing price crosses from below to above the VWAP.
Alert Message: "Price has crossed above the Granular VWAP."
Price Crossing Below VWAP:
Trigger: When the closing price crosses from above to below the VWAP.
Alert Message: "Price has crossed below the Granular VWAP."
Purpose: Keeps traders informed of significant price movements relative to the VWAP, facilitating timely trading decisions.
📊 Plotting and Visualization
Description: Displays the calculated Granular VWAP on the chart with user-defined styling.
Customization Options:
Color, Thickness, and Style: As defined in the VWAP Line Customization section.
Track Price Feature:
Parameter: trackprice=true
Function: Ensures that the VWAP line remains visible even when the price moves far from the VWAP.
Purpose: Provides a clear and persistent visual reference of the VWAP on the chart, aiding in trend analysis and support/resistance identification.
⚙️ Performance Optimizations
Description: Ensures the indicator runs efficiently, especially on higher timeframes with large datasets.
Strategies Implemented:
Minimized Security Calls: Utilizes two separate request.security calls to fetch necessary data, balancing functionality and performance.
Efficient Calculations: Employs built-in functions like ta.sum for rolling calculations to reduce computational load.
Conditional Processing: Alerts are processed only when enabled, preventing unnecessary computations.
Purpose: Maintains smooth chart performance and responsiveness, even when using lower timeframe data for granular calculations.