Multi-Period % Change Bands (Extreme Dots)Multiple Period Percentage Change Extreme Dots
This indicator visualizes percentage changes across three different timeframes (8, 13, and 21 days), highlighting extreme movements that break out of a user-defined band. It's designed to identify which timeframe is showing the most significant percentage change when prices make notable moves.
Features:
- Tracks percentage changes for 8-day, 13-day, and 21-day periods
- Customizable upper and lower bands to define significant moves
- Shows dots only for the most extreme moves (highest above band or lowest below band)
- Color-coded for easy identification:
- Blue: 8-day changes
- Green: 13-day changes
- Red: 21-day changes
- Includes current values display for all timeframes
Usage Tips:
- Shorter timeframes (8-day) are more sensitive to price changes and should use narrower bands (e.g., ±3%)
- Medium timeframes (13-day) work well with moderate bands (e.g., ±5%)
- Longer timeframes (21-day) can use wider bands (e.g., ±8%)
- Dots appear only when a timeframe shows the most extreme move above/below bands
- Use the gray zone between bands to identify normal price action ranges
The indicator helps identify which lookback period is showing the strongest momentum in either direction, while filtering out normal market noise within the bands.
Note: This is particularly useful for:
- Identifying trend strength across different timeframes
- Spotting which duration is showing the most extreme moves
- Filtering out minor fluctuations through the band system
- Comparing relative strength of moves across different periods
Индикаторы и стратегии
Lower and Higher Timeframe Candles with Labels-AYNETHow It Works
Input Parameters:
Users define:
LTF timeframe (e.g., 5m, 15m, 1H).
Time range (e.g., 9 AM to 5 PM) for candle visibility.
Candle colors for bullish, bearish, and wick.
Data Fetching:
The script fetches LTF candle data (open, high, low, close) using request.security.
Conditional Plotting:
Candles are plotted only if the current time falls within the specified range.
Dynamic Label:
A label with the LTF name is created and updated dynamically as the chart progresses.
Use Cases
Multi-Timeframe Analysis:
Analyze LTF price action within the context of a higher timeframe chart.
Session-Specific Focus:
Limit candle visibility to specific trading hours for better insights.
This script combines LTF visualization and a dynamic label for clear and actionable multi-timeframe analysis.
MA Kesişimi - Alım/Satım Sinyalleri//@version=5
indicator("MA Kesişimi - Alım/Satım Sinyalleri", overlay=true)
// Hareketli Ortalamalar
shortMA = ta.sma(close, 50) // 50 periyotluk hareketli ortalama
longMA = ta.sma(close, 200) // 200 periyotluk hareketli ortalama
// Altın Kesişimi (Golden Cross) ve Ölüm Kesişimi (Death Cross) sinyalleri
goldenCross = ta.crossover(shortMA, longMA) // 50 MA 200 MA'yı yukarı keserse
deathCross = ta.crossunder(shortMA, longMA) // 50 MA 200 MA'yı aşağı keserse
// Alım ve Satım sinyallerini göstermek için etiketler
plotshape(goldenCross, title="Altın Kesişimi (Alım Sinyali)", location=location.belowbar, color=color.green, style=shape.labelup, text="AL", textcolor=color.white, size=size.small)
plotshape(deathCross, title="Ölüm Kesişimi (Satım Sinyali)", location=location.abovebar, color=color.red, style=shape.labeldown, text="SAT", textcolor=color.white, size=size.small)
// MA çizgilerini grafikte göstermek
plot(shortMA, color=color.blue, title="50 MA")
plot(longMA, color=color.orange, title="200 MA")
Previous Day High & LowPre-Market : Previous Day High & Low
This indicator is used to mark out the previous Days High & Low.
STRATEGY Fibonacci Levels with High/Low Criteria - AYNET
Here is an explanation of the Fibonacci Levels Strategy with High/Low Criteria script:
Overview
This strategy combines Fibonacci retracement levels with high/low criteria to generate buy and sell signals based on price crossing specific thresholds. It utilizes higher timeframe (HTF) candlesticks and user-defined lookback periods for high/low levels.
Key Features
Higher Timeframe Integration:
The script calculates the open, high, low, and close values of the higher timeframe (HTF) candlestick.
Users can choose to calculate levels based on the current or the last HTF candle.
Fibonacci Levels:
Fibonacci retracement levels are dynamically calculated based on the HTF candlestick's range (high - low).
Users can customize the levels (0.000, 0.236, 0.382, 0.500, 0.618, 0.786, 1.000).
High/Low Lookback Criteria:
The script evaluates the highest high and lowest low over user-defined lookback periods.
These levels are plotted on the chart for visual reference.
Trade Signals:
Long Signal: Triggered when the close price crosses above both:
The lowest price criteria (lookback period).
The Fibonacci level 3 (default: 0.5).
Short Signal: Triggered when the close price crosses below both:
The highest price criteria (lookback period).
The Fibonacci level 3 (default: 0.5).
Visualization:
Plots Fibonacci levels and high/low criteria on the chart for easy interpretation.
Inputs
Higher Timeframe:
Users can select the timeframe (default: Daily) for the HTF candlestick.
Option to calculate based on the current or last HTF candle.
Lookback Periods:
lowestLookback: Number of bars for the lowest low calculation (default: 20).
highestLookback: Number of bars for the highest high calculation (default: 10).
Fibonacci Levels:
Fully customizable Fibonacci levels ranging from 0.000 to 1.000.
Visualization
Fibonacci Levels:
Plots six customizable Fibonacci levels with distinct colors and transparency.
High/Low Criteria:
Plots the highest and lowest levels based on the lookback periods as reference lines.
Trading Logic
Long Condition:
Price must close above:
The lowest price criteria (lowcriteria).
The Fibonacci level 3 (50% retracement).
Short Condition:
Price must close below:
The highest price criteria (highcriteria).
The Fibonacci level 3 (50% retracement).
Use Case
Trend Reversal Strategy:
Combines Fibonacci retracement with recent high/low criteria to identify potential reversal or breakout points.
Custom Timeframe Analysis:
Incorporates higher timeframe data for multi-timeframe trading strategies.
Cup Finder with Fibonacci-AYNETExplanation of Changes
Fibonacci Levels Integration:
Adds Fibonacci retracement levels based on a user-defined lookback (fib_length).
Retracement levels (0.0, 0.236, 0.382, 0.5, 0.618, 1.0) are calculated and drawn as horizontal lines.
Combined Visualization:
Cup patterns are visualized with dashed lines and optional channels.
Fibonacci levels are added as visual reference points on the same chart.
Customization:
Users can toggle Fibonacci levels, adjust colors, and define lookback periods.
This script combines the power of cup pattern
Dynamic Gradient Filter - AYNETExplanation of the Code:
Weight Array for the Filter:
The b array stores weights based on a beta distribution formula.
The weights are normalized using the sum (den) to ensure the filter operates properly.
Filter Calculation:
The filt value is calculated using the source (src) values weighted by the b array.
The filter smooths the data based on the input length and lag parameters.
Dynamic Gradient Colors:
The css array stores 200 gradient colors from red to green.
Each gradient step is dynamically calculated using RGB values:
Red (r) decreases as green (g) increases.
Blue (b) remains constant at 0 for simplicity.
Dynamic Color Selection:
The RSI of the filtered value (filt) is normalized to a 0-1 range.
The normalized RSI is used to pick a color from the css array, which gives the dynamic gradient effect.
Filter Plot:
The filt value is plotted with the dynamically selected color based on the gradient.
Features:
Customizable Gradient:
The gradient can be adjusted by modifying the r, g, and b formulas.
Currently transitions from red (low RSI) to green (high RSI).
Lag Parameters:
alpha and beta control the lag distribution, providing flexibility in smoothing the data.
Efficient and Compact:
The code dynamically generates the gradient and computes the filter without manually defining large arrays.
Example Use:
Apply this script to a chart to visualize a smoothed line (filt) with a gradient color representing its relative strength (RSI-based).
This code is now concise, dynamic, and easier to customize. Test it on different timeframes and let me know if you need additional features or enhancements! 😊
EMA 5/20/26/50/200 and RSI [AdarshOfficial74]EMA 5/20/26/50/200 and RSI
Ema 5
Ema 20
Ema 26
Ema 50
Ema 200
Rsi 70
Rsi 30
AdarshOfficial74
BoS yellow candleThe "BoS Yellow Candle" indicator identifies and highlights the first candle that breaks a Break of Structure (BoS) in a given look-back period. A BoS occurs when the price either breaks above the highest high or below the lowest low within a user-defined look-back range (default set between 7 and 12 candles).
Bullish Break of Structure: The first candle to break above the previous high is marked with a yellow body.
Bearish Break of Structure: The first candle to break below the previous low is also marked with a yellow body.
This visual aid helps traders quickly identify potential structural breakouts for further analysis or strategy development.
Proximity indicator **What This Script Does**
This script is a unified, multi-dimensional tool designed for traders to analyze critical price dynamics and trends. It calculates and displays the following key metrics:
1. **Proximity to 52-Week Price**: Highlights the percentage distance of the current price from long-term support and resistance levels.
2. **Deviation from Key Moving Averages**: Measures how far the current price is from significant moving averages to provide insight into short-, medium-, and long-term trends.
3. **Average Daily Range Percentage (ADR%)**: Tracks price volatility over a 14-day period, helping traders gauge market activity and risk.
4. **3-Month Low Rebound Percentage**: Calculates the percentage rebound from the lowest price of the past three months, giving mid-term trend perspective.
This combination provides a holistic view of a stock’s position in the market and its current trend strength, making it easier to assess momentum, reversals, and volatility at a glance.
#### **How It Works**
1. **52-Week Proximity**:
- The script calculates the highest and lowest daily prices over the past 252 trading days (approx. 1 year) and compares them to the current closing price.
- It expresses the distance as a percentage, with proximity to the high indicating strength and proximity to the low suggesting weakness or oversold conditions.
2. **Moving Average Deviation**:
- You can select between **Simple Moving Average (SMA)** or **Exponential Moving Average (EMA)** for the calculations.
3. **ADR% (Volatility)**:
- It calculates the average daily price range (high - low) over the last 14 trading days and expresses it as a percentage of the current closing price.
- This metric helps traders understand current market volatility.
4. **3-Month Low Rebound**:
- It identifies the lowest price over the last 66 trading days (approx. 3 months) and calculates how much the price has rebounded from this level, expressed as a percentage.
.####**Interpretation**:
- Combine metrics for richer insights:
- A small deviation from the 10-day MA with high ADR% might indicate short-term momentum.
- A price near the 52-week high with a wide gap from the 200-day MA may signal a strong bullish trend but could also be overextended.
####**Purpose-Driven Consolidation**:
- Unlike individual indicators, this script integrates **trend**, **momentum**, and **volatility** measures in a single, cohesive framework. It’s specifically designed to complement how these elements interact in real-world trading scenarios.
Candle Spread
Candle Spread is an indicator that helps traders measure the range of price movement within each candle over a specified time period. It calculates the range of the candle between the High and Low (High - Low) and displays it in a separate window below the chart as columns.
Key Features:
Colored Bars: The bars are colored based on the candle's direction:
Bullish Candle: Bars are Green.
Bearish Candle: Bars are Red.
Moving Average: The indicator includes a 30-period Simple Moving Average (SMA), which represents the overall average range of the candles.
Helps Identify Market Volatility: This indicator helps traders identify wide-range candles (signaling high volatility in the market), which could indicate a surge in momentum or potential trend reversals.
Momentum and EMA20 Indicator//@version=5
indicator("Momentum and EMA20 Indicator", overlay=true)
// Inputs
momentumLength = input.int(14, minval=1, title="Momentum Length")
emaLength = input.int(20, minval=1, title="EMA Length")
// Calculations
momentum = ta.rsi(close, momentumLength)
ema = ta.ema(close, emaLength)
// Buy and Sell Signals
buySignal = ta.crossover(momentum, ema)
sellSignal = ta.crossunder(momentum, ema)
// Plotting
plot(momentum, color=color.blue, linewidth=2, title="Momentum")
plot(ema, color=color.red, linewidth=2, title="EMA 20")
// Plotting Buy and Sell Signals
plotshape(buySignal, style=shape.triangleup, location=location.belowbar, color=color.green, size=size.small)
plotshape(sellSignal, style=shape.triangledown, location=location.abovebar, color=color.red, size=size.small)
// Coloring the Background
bgcolor(momentum > ema ? color.gray : na)
LTF Fisher Transform - AYNETJohn F. Ehlers is a renowned figure in the field of financial markets and technical analysis. With a strong background in engineering and digital signal processing (DSP), Ehlers has applied his expertise to the development of innovative technical indicators and trading systems. His work focuses on using mathematical concepts, particularly those from signal processing, to analyze financial data. THANKS.
Detailed Explanation of Code: "LTF Fisher Transform"
This code calculates the Fisher Transform on a lower timeframe (LTF) and visualizes it on the current timeframe. It includes bands to identify overbought/oversold conditions, fills the area between these bands for visualization, and generates momentum signals (bullish or bearish) based on the Fisher Transform's position relative to the bands.
Key Features of the Code
Fisher Transform Calculation on a Lower Timeframe
Applies Fisher Transform on a user-specified lower timeframe.
Captures short-term momentum shifts.
Overbought and Oversold Levels
Defines custom thresholds for momentum analysis using user-defined bands.
Visual Enhancements
Visualizes momentum zones (neutral, bullish, bearish) using filled areas and dynamic shapes.
Momentum Signal Generation
Identifies bullish and bearish momentum conditions when Fisher Transform exceeds bands.
EMA 200 Daily Trend ZoneThis indicator creates a dynamic colored zone between two 200-period EMAs (based on highs and closes) to visually represent the trend:
Green zone: Daily candle closes above both EMAs (uptrend).
Red zone: Daily candle closes below both EMAs (downtrend).
Gray zone: Price is between the two EMAs (neutral trend).
The zone is semi-transparent, providing a clean visual representation of market conditions without cluttering the chart.
HMM Regime IndicatorHMM Regime Indicator
Overview:
The HMM Regime Indicator is designed to help traders identify market regimes by analyzing trend strength, momentum, and price deviation. It uses a combination of the Average Directional Index (ADX), Relative Strength Index (RSI), and Commodity Channel Index (CCI) to classify market conditions into three distinct regimes: Bullish, Bearish, and Sideways.
Key Features:
ADX (Average Directional Index): Measures the strength of a trend. A high ADX value indicates a strong trend, while a low value suggests a weak or non-existent trend.
RSI (Relative Strength Index): Identifies overbought or oversold conditions. An RSI above 70 typically indicates overbought conditions, while an RSI below 30 suggests oversold conditions.
CCI (Commodity Channel Index): Evaluates the price deviation from its average. High CCI values indicate that prices are well above their average, while low values suggest prices are below their average.
Regime Detection:
Bullish Regime: Identified when the ADX indicates a strong trend, and both RSI and CCI suggest overbought conditions. This regime is marked with a green background on the chart.
Bearish Regime: Detected when the ADX shows a strong trend, and both RSI and CCI indicate oversold conditions. This regime is highlighted with a red background.
Sideways Regime: Occurs when neither bullish nor bearish conditions are met, suggesting a lack of strong directional movement. This regime is shown with a blue background.
Usage:
This indicator is useful for traders looking to understand the current market environment and adjust their strategies accordingly. By identifying the prevailing market regime, traders can make more informed decisions about entering or exiting trades.
Customization:
Users can adjust the input parameters for ADX, RSI, and CCI to better fit their trading style and the specific asset being analyzed. The default settings are optimized for general use but can be tailored to suit individual preferences.
RHR_CANDLELibrary "RHR_CANDLE"
Library for Expansion Contraction Indicator, a zero-lag dual perspective indicator based on Jake Bernstein’s principles of Moving Average Channel system.
calc(shortLookback, longLookback)
Calculates Expansion Contraction values.
Parameters:
shortLookback (int) : Integer for the short lookback calculation, defaults to 8
longLookback (int) : Integer for the long lookback calculation, defaults to 32
@return Returns array of Expansion Contraction values
stdevCalc(positiveShort, negativeShort, positiveLong, negativeLong, stdevLookback)
Calculates standard deviation lines based on Expansion Contraction Long and Short values.
Parameters:
positiveShort (float) : Float for the positive short XC value from calculation
negativeShort (float) : Float for the negative short XC value from calculation
positiveLong (float) : Float for the positive long XC value from calculation
negativeLong (float) : Float for the negative long XC value from calculation
stdevLookback (int) : Integer for the standard deviation lookback, defaults to 500
@return Returns array of standard deviation values
trend(positiveShort, negativeShort, positiveLong, negativeLong)
Determines if trend is strong or weak based on Expansion Contraction values.
Parameters:
positiveShort (float) : Float for the positive short XC value from calculation
negativeShort (float) : Float for the negative short XC value from calculation
positiveLong (float) : Float for the positive long XC value from calculation
negativeLong (float) : Float for the negative long XC value from calculation
@return Returns array of boolean values indicating strength or weakness of trend
Last Freemans Ver1This script is a technical indicator for TradingView that combines three popular tools for analyzing price movements:
Relative Strength Index (RSI): This measures the momentum of recent price changes and indicates potential overbought or oversold conditions. The script allows you to adjust the RSI length (default 14) and define overbought (default 70) and oversold (default 30) levels.
Moving Average Convergence Divergence (MACD): This indicator helps identify trend direction and potential turning points. It uses two moving averages (fast and slow) and a signal line. The script lets you customize the lengths of the MACD lines (fast: 12, slow: 26, signal: 9).
Exponential Moving Average (EMA): This is a smoothing indicator used to identify the underlying trend by filtering out price noise. You can adjust the EMA length (default 200) in the script.
Additionally, the script generates Buy/Sell signals based on the following conditions:
Buy Signal:
MACD line crosses above the signal line (indicating a potential uptrend).
RSI is below the oversold level (suggesting room for price increase).
Closing price is below the EMA (potentially indicating a price pullback before an upswing).
Sell Signal:
MACD line crosses below the signal line (indicating a potential downtrend).
RSI is above the overbought level (suggesting potential for a price decrease).
Closing price is above the EMA (potentially indicating a price breakout before a decline).
Visualization:
The script plots the following on the chart:
RSI line (blue) with overbought and oversold levels as dashed lines (red and green, respectively).
MACD line (red) and signal line (blue).
EMA line (orange).
Green triangle up (below the bar) for Buy signals.
Red triangle down (above the bar) for Sell signals.
Important Note:
This script provides trading signals based on technical indicators, but keep in mind that these are not guaranteed predictions of future price movements. Always conduct your own research and consider other factors before making trading decisions.
Vesica Piscis Visualization-Secret Geometry-AYNETExplanation
Customization Options:
circle_radius: Adjust the size of the circles.
line_color: Choose the color of the circles.
line_width: Adjust the thickness of the circle lines.
segments: Increase or decrease the smoothness of the circles (higher values make smoother circles but use more computational resources).
Placement:
The first circle is centered at circle1_x and the second is offset horizontally by 2 * circle_radius to ensure their centers intersect each other's circumference.
Intersection Highlight:
The intersection area is visually emphasized with a semi-transparent background (bgcolor), which can be customized or removed if unnecessary.
Smoothness:
The segments input determines how many points are used to create each circle. Higher values create smoother curves.
Adjustments
Ensure the circles fit within the visible chart area by adjusting circle1_x and circle_radius.
If needed, you can add additional features, such as drawing lines to connect the centers or labeling the Vesica Piscis region.
Let me know if you want further refinements or additional features!
Sri Yantra-Scret Geometry - AYNETExplanation of the Script
Inputs:
periods: Number of bars used for calculating the moving average and standard deviation.
yloc: Chooses the display location (above or below the bars).
Moving Average and Standard Deviation:
ma: Moving average of the close price for the specified period.
std: Standard deviation, used to set the range for the Sri Yantra triangle points.
Triangle Points:
p1, p2, and p3 are the points for constructing the triangle, with p1 and p2 set at two standard deviations above and below the moving average, and p3 at the moving average itself.
Sri Yantra Triangle Drawing:
Three lines form a triangle, with the moving average line serving as the midpoint anchor.
The triangle pattern shifts across bars as new moving average values are calculated.
Moving Average Plot:
The moving average is plotted in red for visual reference against the triangle pattern.
This basic script emulates the Sri Yantra pattern using price data, creating a spiritual and aesthetic overlay on price charts, ideal for users looking to incorporate sacred geometry into their technical analysis.
Fibonacci Levels Strategy with High/Low Criteria-AYNETThis code represents a TradingView strategy that uses Fibonacci levels in conjunction with high/low price criteria over specified lookback periods to determine buy (long) and sell (short) conditions. Below is an explanation of each main part of the code:
Explanation of Key Sections
User Inputs for Higher Time Frame and Candle Settings
Users can select a higher time frame (timeframe) for analysis and specify whether to use the "Current" or "Last" higher time frame (HTF) candle for calculating Fibonacci levels.
The currentlast setting allows flexibility between using real-time or the most recent closed higher time frame candle.
Lookback Periods for High/Low Criteria
Two lookback periods, lowestLookback and highestLookback, allow users to set the number of bars to consider when finding the lowest and highest prices, respectively.
This determines the criteria for entering trades based on how recent highs or lows compare to current prices.
Fibonacci Levels Configuration
Fibonacci levels (0%, 23.6%, 38.2%, 50%, 61.8%, 78.6%, and 100%) are configurable. These are used to calculate price levels between the high and low of the higher time frame candle.
Each level represents a retracement or extension relative to the high/low range of the HTF candle, providing important price levels for decision-making.
HTF Candle Calculation
HTF candle data is calculated based on the higher time frame selected by the user, using the newbar check to reset htfhigh, htflow, and htfopen values.
The values are updated with each new HTF bar or as prices move within the same HTF bar to track the highest high and lowest low accurately.
Set Fibonacci Levels Array
Using the calculated HTF candle's high, low, and open, the Fibonacci levels are computed by interpolating these values according to the user-defined Fibonacci levels.
A fibLevels array stores these computed values.
Plotting Fibonacci Levels
Each Fibonacci level is plotted on the chart with a different color, providing visual indicators for potential support/resistance levels.
High/Low Price Criteria Calculation
The lowest and highest prices over the specified lookback periods (lowestLookback and highestLookback) are calculated and plotted on the chart. These serve as dynamic levels to trigger long or short entries.
Trade Signal Conditions
longCondition: A long (buy) signal is generated when the price crosses above both the lowest price criteria and the 50% Fibonacci level.
shortCondition: A short (sell) signal is generated when the price crosses below both the highest price criteria and the 50% Fibonacci level.
Executing Trades
Based on the longCondition and shortCondition, trades are entered with the strategy.entry() function, using the labels "Long" and "Short" for tracking on the chart.
Strategy Use
This strategy allows traders to utilize Fibonacci retracement levels and recent highs/lows to identify trend continuation or reversal points, potentially providing entry points aligned with larger market structure. Adjusting the lowestLookback and highestLookback along with Fibonacci levels enables a customizable approach to suit different trading styles and market conditions.
Star of David Drawing-AYNETExplanation of Code
Settings:
centerTime defines the center time for the star pattern, defaulting to January 1, 2023.
centerPrice is the center Y-axis level for positioning the star.
size controls the overall size of the star.
starColor and lineWidth allow customization of the color and thickness of the lines.
Utility Function:
toRadians converts degrees to radians, though it’s not directly used here, it might be useful for future adjustments to angles.
Star of David Drawing Function:
The drawStarOfDavid function calculates the position of each point on the star relative to the center coordinates (centerTime, centerY) and size.
The pattern has six key points that form two overlapping triangles, creating the Star of David pattern.
The time offsets (offset1 and offset2) determine the horizontal spread of the star, scaling according to size.
The line.new function is used to draw the star lines with the calculated coordinates, casting timestamps to int to comply with line.new requirements.
Star Rendering:
Finally, drawStarOfDavid is called to render the Star of David pattern on the chart based on the input parameters.
This code draws the Star of David on a chart at a specified time and price level, with customizable size, color, and line width. Adjust centerTime, centerPrice, and size as needed for different star placements on the chart.