Auto Fibonacci Retracement by YilmazerBelirtilen bar sayısı ve fibonacci değerlerine göre fibonacci düzeltme seviyelerini grafik üzerinde çizer. Eğer grafikte belirtilenden daha az bar var ise bu durumda grafikte yer alan max bar sayısını dikkate alarak çizim yapar.
Draws Fibonacci retracement levels on the chart based on the specified number of bars and Fibonacci values. If the chart has fewer bars than specified, it uses the maximum number of bars available on the chart for drawing.
Wstęgi i Kanały
Jakes main INDICATOR really great tool still a work in progress. I'm fine tunning this still mostly around false signals and volitility
RSI Guppy ATR Direnç/Kanal SinyaliRSI ve ATR: RSI ve ATR hesaplamaları standart şekilde yapılır.
Sinyaller: RSI aşırı alım/aşırı satım seviyeleri ve Guppy MMA'lar kullanılarak alım/satım sinyalleri oluşturulur.
alım sinyalleri çok iyi bence ve değişik değerler vererek kendi stratejinize göre kullanabilirsiniz
Half-Trend Channel [BigBeluga]Half Trend Channel is a powerful trend-following indicator designed to identify trend direction, fakeouts, and potential reversal points. The combination of upper/lower bands, midline coloring, and specific signals makes it ideal for spotting trend continuation and market reversals.
The base of the channel is calculated using smoothed half-trend logic.
// Initialize half trend on the first bar
if barstate.isfirst
hl_t := close
// Update half trend value based on conditions
switch
closeMA < hl_t and highestHigh < hl_t => hl_t := highestHigh
closeMA > hl_t and lowestLow > hl_t => hl_t := lowestLow
=> hl_t := hl_t
// Smooth
float s_hlt = ta.hma(hl_t, len)
🔵 Key Features:
Upper and Lower Bands:
The bands adapt dynamically to market volatility.
Price movements toward the bands help identify areas of overextension and potential reversal points.
Midline Trend Signal:
The midline changes color to reflect the current trend:
Green Midline: Indicates an uptrend.
Purple Midline: Signals a downtrend.
Fakeout Signals ("X"):
"X" markers appear when price briefly breaches the outer bands but fails to sustain the move.
Fakeouts help traders identify areas where price momentum weakens.
Reversal Signals (Triangles):
Triangles (▲ and ▼) mark potential tops and bottoms:
▲ Up Triangles: Suggest a potential bottom and a reversal to the upside.
▼ Down Triangles: Indicate a potential top and a reversal to the downside.
Dynamic Trend Labels:
At the last bar, the indicator displays labels like "Trend Up" or "Trend Dn" , reflecting the current trend direction.
🔵 Usage:
Use the colored midline to determine the overall trend direction.
Monitor "X" fakeout signals to spot failed breakouts or momentum exhaustion near the bands.
Watch for reversal triangles (▲ and ▼) to identify potential trend reversals at tops or bottoms.
Combine the bands and midline signals to confirm trade entries and exits:
Enter long trades when price bounces off the lower band with a green midline.
Consider short trades when price reverses from the upper band with a purple midline.
Use the trend label (e.g., "Trend Up" or "Trend Dn") for quick confirmation of the current market state.
The Half Trend Channel is an essential tool for traders who want to follow trends, avoid fakeouts, and identify reliable tops and bottoms to optimize their trading decisions.
3 Candle Strategy with HighlightIt has a very good accuracy of 70% across any stock or Indices it is very useful to understand the trend reversal easily and tackle the sudden shift of the market very easily
Strategy by Nachi Chennai//@version=5
indicator("EMA Scalping Strategy", overlay=true)
// Input for EMA settings
ema_short = input.int(9, title="Short EMA", minval=1)
ema_medium = input.int(21, title="Medium EMA", minval=1)
ema_long = input.int(50, title="Long EMA", minval=1)
// EMA calculations
shortEMA = ta.ema(close, ema_short)
mediumEMA = ta.ema(close, ema_medium)
longEMA = ta.ema(close, ema_long)
// Input for RSI settings
rsi_length = input.int(14, title="RSI Length", minval=1)
rsi_overbought = input.int(70, title="RSI Overbought Level", minval=50)
rsi_oversold = input.int(30, title="RSI Oversold Level", minval=1)
// RSI calculation
rsi = ta.rsi(close, rsi_length)
// MACD settings
= ta.macd(close, 12, 26, 9)
// Conditions for Buy and Sell
buyCondition = ta.crossover(shortEMA, mediumEMA) and close > longEMA and rsi > 50 and macdLine > signalLine
sellCondition = ta.crossunder(shortEMA, mediumEMA) and close < longEMA and rsi < 50 and macdLine < signalLine
// Plotting EMAs
plot(shortEMA, color=color.new(color.blue, 0), title="Short EMA (9)")
plot(mediumEMA, color=color.new(color.orange, 0), title="Medium EMA (21)")
plot(longEMA, color=color.new(color.red, 0), title="Long EMA (50)")
// Plot Buy and Sell signals
plotshape(series=buyCondition, title="Buy Signal", location=location.belowbar, color=color.new(color.green, 0), style=shape.labelup, text="BUY")
plotshape(series=sellCondition, title="Sell Signal", location=location.abovebar, color=color.new(color.red, 0), style=shape.labeldown, text="SELL")
// Background Highlighting
bgcolor(buyCondition ? color.new(color.green, 90) : na, title="Buy Highlight")
bgcolor(sellCondition ? color.new(color.red, 90) : na, title="Sell Highlight")
Moving Average Crossoverchatgpt testing script
New to pine script trading and copied this script from chatgpt and just want to see what it does \.
No idea what the words mean even though i'm a python programmer
sl for pro tradersThis script calculates the Average True Range (ATR) of a financial instrument, which measures market volatility. The ATR value is smoothed using one of four moving average methods chosen by the user: RMA (default), SMA, EMA, or WMA. Here's a breakdown of the functionality:
Inputs:
Length: Determines the period over which the ATR is calculated (default is 14).
Smoothing: Allows the user to select the smoothing method for the ATR from options like RMA, SMA, EMA, or WMA.
Smoothing Logic:
A function ma_function is defined to apply the selected smoothing method (RMA, SMA, EMA, or WMA) to the true range (ta.tr(true)) over the specified length.
Dividing the ATR by 2:
The calculated ATR is divided by 2 before being displayed. This adjustment ensures that if the original ATR value is 10, the script will now output 5.
Plot:
The modified ATR value (original ATR divided by 2) is displayed on a separate panel as a line chart, using a red color (#B71C1C).
Purpose of Update: The division by 2 scales down the ATR values for specific use cases where such an adjustment is desired. This could be for custom strategies or better alignment with other indicators.
13/21 EMA Cloud//@version=5
indicator(title="13/21 EMA Cloud", shorttitle="EMA Cloud", overlay=true)
// Inputs for the EMA lengths
short_ema_length = input.int(title="Short EMA Length", defval=13)
long_ema_length = input.int(title="Long EMA Length", defval=21)
// Calculating the 13-period and 21-period EMAs
short_ema = ta.ema(close, short_ema_length)
long_ema = ta.ema(close, long_ema_length)
// Plotting the EMAs
plot(short_ema, title="13 EMA", color=color.green, linewidth=2)
plot(long_ema, title="21 EMA", color=color.red, linewidth=2)
// Plotting the Cloud
fill(plot(short_ema), plot(long_ema), color=short_ema > long_ema ? color.green : color.red, transp=80)
// Alert Conditions
alertcondition(short_ema > long_ema, title="Bullish Crossover", message="13 EMA has crossed above 21 EMA")
alertcondition(short_ema < long_ema, title="Bearish Crossover", message="13 EMA has crossed below 21 EMA")
RSI Divergence with Bullish CandleKey Concepts in the Script:
RSI Calculation: The RSI is calculated with the user-defined period (rsiLength). The script uses the default 14-period RSI but you can adjust it.
Bullish Divergence:
Price Low: The script checks for the lowest price over the last 20 bars (ta.lowest(close, 20)).
RSI Low: The script checks for the lowest RSI over the same 20 bars.
Divergence Condition: Bullish divergence is identified when the price forms a lower low (priceLow1 < priceLow2), while the RSI forms a higher low (rsiLow1 > rsiLow2), and the RSI is below the oversold level (typically 30).
Bullish Candle Pattern:
A Bullish Engulfing pattern is defined as the current candle closing higher than it opened, and the close being above the previous candle's high.
A Hammer pattern is defined as a candlestick where the close is higher than the open, and the low is the lowest of the last 5 bars.
Buy Signal: The script generates a buy signal when both the bullish divergence and bullish candle are confirmed at the same time.
Fartcoin log line bot and topThe first script for bitcoin went perfect. Lets see if the same works for fartcoin, because we all know, hot air rises...
YOUFX.ADR.V1"YOUFX.ADR.V1 is a comprehensive indicator that provides advanced analytical tools. Specifically designed for forex traders and financial markets. Add the indicator and choose the settings that best suit your trading strategy.
(Note: This indicator is for educational purposes only and is not an investment recommendation.)"
YOUFX.V3"YOUFX ALL IN ONE V2 is a comprehensive indicator that provides advanced analytical tools. Specifically designed for forex traders and financial markets. Add the indicator and choose the settings that best suit your trading strategy.
(Note: This indicator is for educational purposes only and is not an investment recommendation.)"
Levels from All-Time HighJust an easy script to track percentage distance from recent all time highs. You can customize the color and the percentages from the all time highs. These zones can mark great opportunities to buy.
Donchian Channels based on highsDonchian Channels based on highs: its calculation is not based on highs and lows but just on highs
RSI Bands with Volume and EMAThis script is a comprehensive technical analysis tool designed to help traders identify key market signals using RSI bands, volume, and multiple Exponential Moving Averages (EMAs). It overlays the following on the chart:
RSI Bands: The script calculates and plots two bands based on the Relative Strength Index (RSI), indicating overbought and oversold levels. These bands act as dynamic support and resistance zones:
Resistance Band (Upper Band): Plotted when the RSI exceeds the overbought level, typically indicating a potential sell signal.
Support Band (Lower Band): Plotted when the RSI falls below the oversold level, typically indicating a potential buy signal.
Midline: The average of the upper and lower bands, acting as a neutral reference.
Buy/Sell Labels: Labels are dynamically added to the chart when price reaches the overbought or oversold levels.
A "Buy" label appears when the price reaches the oversold (lower) band.
A "Sell" label appears when the price reaches the overbought (upper) band.
Volume Indicator: The script visualizes trading volume as histograms, with red or green bars representing decreasing or increasing volume, respectively. The volume height is visually reduced for better clarity and comparison.
Exponential Moving Averages (EMAs): The script calculates and plots four key EMAs (12, 26, 50, and 200) to highlight short-term, medium-term, and long-term trends:
EMA 12: Blue
EMA 26: Orange
EMA 50: Purple
EMA 200: Green
The combined use of RSI, volume, and EMAs offers traders a multi-faceted view of the market, assisting in making informed decisions about potential price reversals, trends, and volume analysis. The script is particularly useful for identifying entry and exit points on charts like BTC/USDT, although it can be applied to any asset.
Drawdown from 22-Day High (Daily Anchored)This Pine Script indicator, titled "Drawdown from 22-Day High (Daily Anchored)," is designed to plot various drawdown levels from the highest high over the past 22 days. This helps traders visualize the performance and potential risk of the security in terms of its recent high points.
Key Features:
Daily High Data:
Fetches daily high prices using the request.security function with a daily timeframe.
Highest High Calculation:
Calculates the highest high over the last 22 days using daily data. This represents the highest price the security has reached in this period.
Drawdown Levels:
Computes various drawdown levels from the highest high:
2% Drawdown
5% Drawdown
10% Drawdown
15% Drawdown
25% Drawdown
45% Drawdown
50% Drawdown
Dynamic Line Coloring:
The color of the 2% drawdown line changes dynamically based on the current closing price:
Green (#02ff0b) if the close is above the 2% drawdown level.
Red (#ff0000) if the close is below the 2% drawdown level.
Plotting Drawdown Levels:
Plots each drawdown level on the chart with specific colors and line widths for easy visual distinction:
2% Drawdown: Green or Red, depending on the closing price.
5% Drawdown: Orange.
10% Drawdown: Blue.
15% Drawdown: Maroon.
25% Drawdown: Purple.
45% Drawdown: Yellow.
50% Drawdown: Black.
Labels for Drawdown Levels:
Adds labels at the end of each drawdown line to indicate the percentage drawdown:
Labels display "2% WVF," "5% WVF," "10% WVF," "15% WVF," "25% WVF," "45% WVF," and "50% WVF" respectively.
The labels are positioned dynamically at the latest bar index to ensure they are always visible.
Explanation of Williams VIX Fix (WVF)
The Williams VIX Fix (WVF) is a volatility indicator designed to replicate the behavior of the VIX (Volatility Index) using price data instead of options prices. It helps traders identify market bottoms and volatility spikes.
Key Aspects of WVF:
Calculation:
The WVF measures the highest high over a specified period (typically 22 days) and compares it to the current closing price.
It is calculated as:
WVF
=
highest high over period
−
current close
highest high over period
×
100
This formula provides a percentage measure of how far the price has fallen from its recent high.
Interpretation:
High WVF Values: Indicate increased volatility and potential market bottoms, suggesting oversold conditions.
Low WVF Values: Suggest lower volatility and potentially overbought conditions.
Usage:
WVF can be used in conjunction with other indicators (e.g., moving averages, RSI) to confirm signals.
It is particularly useful for identifying periods of significant price declines and potential reversals.
In the script, the WVF concept is incorporated into the drawdown levels, providing a visual representation of how far the price has fallen from its 22-day high.
Example Use Cases:
Risk Management: Quickly identify significant drawdown levels to assess the risk of current positions.
Volatility Monitoring: Use the WVF-based drawdown levels to gauge market volatility.
Support Levels: Utilize drawdown levels as potential support levels where price might find buying interest.
This script offers traders and analysts an efficient way to visualize and track important drawdown levels from recent highs, helping in better risk management and decision-making. The dynamic color and label features enhance the readability and usability of the indicator.
Bollingers Bands Fibonacci ratios_copy of FOMOBollinger Bands Fibonacci Ratios (FiBB)
This TradingView script is a powerful tool that combines the classic Bollinger Bands with Fibonacci ratios to help traders identify potential support and resistance zones based on market volatility.
Key Features:
Dynamic Fibonacci Levels: The script calculates additional levels around a Simple Moving Average (SMA) using Fibonacci ratios (default: 1.618, 2.618, and 4.236). These levels adapt to market volatility using the Average True Range (ATR).
Customizable Parameters: Users can modify the length of the SMA and the Fibonacci ratios to fit their trading strategy and time frame.
Visual Representation: The indicator plots three upper and three lower bands, with color-coded transparency for easy interpretation.
Central SMA Line: The core SMA line provides a baseline for price movement and trend direction.
Shaded Range: The script visually fills the area between the outermost bands to highlight the overall range of price action.
How to Use:
Use the upper bands as potential resistance zones and the lower bands as potential support zones.
Look for price interactions with these levels to identify opportunities for breakout, trend continuation, or reversal trades.
Combine with other indicators or price action analysis to enhance decision-making.
This script is ideal for traders who want a unique blend of Fibonacci-based analysis and Bollinger Bands to better navigate market movements.
RSI Volatility Suppression Zones [BigBeluga]RSI Volatility Suppression Zones is an advanced indicator that identifies periods of suppressed RSI volatility and visualizes these suppression zones on the main chart. It also highlights breakout dynamics, giving traders actionable insights into potential market momentum.
🔵 Key Features:
Detection of Suppression Zones:
Identifies periods where RSI volatility is suppressed and marks these zones on the main price chart.
Breakout Visualization:
When the price breaks above the suppression zone, the box turns aqua, and an upward label is drawn to indicate a bullish breakout.
If the price breaks below the zone, the box turns purple, and a downward label is drawn for a bearish breakout.
Breakouts accompanied by a "+" label represent strong moves caused by short-lived, tight zones, signaling significant momentum.
Wave Labels for Consolidation:
If the suppression zone remains unbroken, a "wave" label is displayed within the gray box, signifying continued price stability within the range.
Gradient Intensity Below RSI:
A gradient strip below the RSI line increases in intensity based on the duration of the suppressed RSI volatility period.
This visual aid helps traders gauge how extended the low volatility phase is.
🔵 Usage:
Identify Breakouts: Use color-coded boxes and labels to detect breakouts and their direction, confirming potential trend continuation or reversals.
Evaluate Market Momentum: Leverage "+" labels for strong breakout signals caused by short suppression phases, indicating significant market moves.
Monitor Price Consolidation: Observe gray boxes and wave labels to understand ongoing consolidation phases.
Analyze RSI Behavior: Utilize the gradient strip to measure the longevity of suppressed volatility phases and anticipate breakout potential.
RSI Volatility Suppression Zones provides a powerful visual representation of RSI volatility suppression, breakout signals, and price consolidation, making it a must-have tool for traders seeking to anticipate market movements effectively.
Relative Risk MetricOVERVIEW
The Relative Risk Metric is designed to provide a relative measure of an asset's price, within a specified range, over a log scale.
PURPOSE
Relative Position Assessment: Visualizes where the current price stands within a user-defined range, adjusted for log scale.
Logarithmic Transformation: Utilizes the natural log to account for a log scale of prices, offering a more accurate representation of relative positions.
Calculation: The indicator calculates a normalized value via the function Relative Price = / log(UpperBound) − log(LowerBound) . The result is a value between 0 and 1, where 0 corresponds to the lower bound and 1 corresponds to the upper bound on a log scale.
VISUALIZATION
The indicator plots three series:
Risk Metric - a plot of the risk metric value that’s computed from an asset's relative price so that it lies within a logarithmic range between 0.0 & 1.0.
Smoothed Risk Metric - a plot of the risk metric that’s been smoothed.
Entry/Exit - a scatter plot for identified entry and exit. Values are expressed as percent and are coded as red being exit and green being entity. E.g., a red dot at 0.02 implies exit 2% of the held asset. A green dot at 0.01 implies use 1% of a designated capital reserve.
USAGE
Risk Metric
The risk metric transformation function has several parameters. These control aspects such as decay, sensitivity, bounds and time offset.
Decay - Acts as an exponent multiplier and controls how quickly dynamic bounds change as a function of the bar_index.
Time Offset - provides a centering effect of the exponential transformation relative to the current bar_index.
Sensitivity - controls how sensitive to time the dynamic bound adjustments should be.
Baseline control - Serves as an additive offset for dynamic bounds computation which ensures that bounds never become too small or negative.
UpperBound - provides headroom to accomodate growth an assets price from the baseline. For example, an upperbound of 3.5 accommodates a 3.5x growth from the baseline value (e.g., $100 -> $350).
LowerBound - provides log scale compression such that the overall metric provides meaningful insights for prices well below the average whilst avoiding extreme scaling. A lowerbound of 0.25 corresponds to a price that is approx one quarter of a normalised baseline in a log context.
Weighted Entry/Exit
This feature provides a weighted system for identifying DCA entry and exit. This weighting mechanism adjusts the metric's interpretation to highlight conditions based on dynamic thresholds and user-defined parameters to identify high-probability zones for entry/exit actions and provide risk-adjusted insights.
Weighting Parameters
The weighting function supports fine-tuning of the computed weighted entry/exit values
Base: determines the foundational multiplier for weighting the entry/exit value. A higher base amplifies the weighting effect, making the weighted values more pronounced. It acts as a scaling factor to control the overall magnitude of the weighting.
Exponent: adjusts the curve of the weighting function. Higher exponent values increase sensitivity, emphasizing differences between risk metric values near the entry or exit thresholds. This creates a steeper gradient for the computed entry/exit value making it more responsive to subtle shifts in risk levels.
Cut Off: specifies the maximum percentage (expressed as a fraction of 1.0) that the weighted entry/exit value can reach. This cap ensures the metric remains within a meaningful range and avoids skewing
Exit condition: Defines a threshold for exit. When the risk metric is below the exit threshold (but above the entry threshold) then entry/exit is neutral.
Entry condition: Defines a threshold for entry. When the risk metric is above the entry threshold (but below the exit threshold) then entry/exit is neutral.
Weighting Behaviour
For entry conditions - value is more heavily weighted as the metric approaches the entry threshold, emphasizing lower risk levels.
For exit conditions - value is more heavily weighted as the metric nears the exit threshold, emphasizing increased risk levels.
USE-CASES
Identifying potential overbought or oversold conditions within the specified logarithmic range.
Assisting in assessing how the current price compares to historical price levels on a logarithmic scale.
Guiding decision-making processes by providing insights into the relative positioning of prices within a log context
CONSIDERATIONS
Validation: It's recommended that backtesting over historical data be done before acting on any identified entry/exit values.
User Discretion: This indicator focus on price risk. Consider other risk factors and general market conditions as well.
NIFTY BANKNIFTY MIDCAP SENSEX FINNIFTY LEVELS)this indicator uses Gann's methods which are based on the idea that markets move in predictable geometric patterns and are influenced by time and price.
Key Concepts of Gann Levels:
Gann Angles:
Gann believed that specific angles could indicate the trend of a market. The most notable is the 45-degree angle, which he called the "1x1" or "45-degree line."
Angles are drawn from a significant price point, such as a high or low, and represent the speed or slope of the price movement.
Gann Square of 9:
A mathematical tool that calculates support and resistance levels based on the square root of numbers and their geometric relationships.
It aligns numbers in a spiral format, starting from a central point, and helps identify key price levels at certain degrees.
Gann Fan:
A series of lines drawn at specific angles from a significant high or low. Common angles include 1x1 (45°), 2x1 (26.25°), and 1x2 (63.75°).
These angles help traders identify potential areas where the trend might accelerate, decelerate, or reverse.
Gann Retracements:
Levels based on key price ratios derived from natural laws and geometric principles. Common Gann retracement levels include 12.5%, 25%, 50%, and 75%.
Time Analysis:
Gann emphasized the importance of time cycles. He believed markets move in time-based patterns, such as yearly cycles, seasonal cycles, or specific time intervals.