BBWP + Stochastic with DivergencesBased on Eric Krown crypto course, on Crypto School. It plots the Bollinger Bands width percentile alongside Stochastic. This is good for gaging volatility and momentum, to be used on a trending motion strategy.
指標和策略
PVSRA - Auto Override -5 EMAs- Semperv1A combination of PVSRA coloured candles, 5 EMAs (10, 20, 50, 200, 800), initial high and low of the day, previous day high and low and previous week high and low.
Alerta de Vela de AltaEste script detecta o nascimento de uma nova vela verde no gráfico e gera um alerta sempre que isso ocorre. Ele é útil para traders que desejam identificar momentos de possível reversão ou continuação de tendência.
📌 Como funciona:
✅ O alerta dispara sempre que uma nova vela fechar verde (quando o fechamento for maior que a abertura).
✅ Pode ser usado em qualquer timeframe, mas é otimizado para gráficos de 3 horas.
✅ Exibe um ícone abaixo da vela verde para facilitar a visualização.
✅ Pode ser integrado a alertas do TradingView para envio de notificações ou execução de estratégias automatizadas.
💡 Indicação de uso:
Ideal para acompanhar tendências e abrir novas pools Curve com maior precisão, surfando pequenas movimentações de alta no mercado.
My script//@version=5
strategy("Adaptive Trend Flow Strategy", overlay=true)
// Trend Settings
length = input.int(10, "Main Length", minval=2)
smooth_len = input.int(14, "Smoothing Length", minval=2)
sensitivity = input.float(2.0, "Sensitivity", step=0.1)
// Trend Calculation
calculate_trend_levels() =>
typical = hlc3
fast_ema = ta.ema(typical, length)
slow_ema = ta.ema(typical, length * 2)
basis = (fast_ema + slow_ema) / 2
vol = ta.stdev(typical, length)
smooth_vol = ta.ema(vol, smooth_len)
upper = basis + (smooth_vol * sensitivity)
lower = basis - (smooth_vol * sensitivity)
get_trend_state(upper, lower, basis) =>
var float prev_level = na
var int trend = 0
if na(prev_level)
trend := close > basis ? 1 : -1
prev_level := trend == 1 ? lower : upper
if trend == 1
if close < lower
trend := -1
prev_level := upper
else
prev_level := lower
else
if close > upper
trend := 1
prev_level := lower
else
prev_level := upper
= calculate_trend_levels()
= get_trend_state(upper, lower, basis)
// Trading Logic
longCondition = trend == 1 and trend == -1
shortCondition = trend == -1 and trend == 1
if longCondition
strategy.entry("Long Entry", strategy.long, comment='entry', alert_message='67b868b47553b75e79967d0f')
if shortCondition
strategy.entry("Short Entry", strategy.short)
if trend == -1
strategy.close("Long Entry", comment='exit', alert_message='67b868b47553b75e79967d0f')
if trend == 1
strategy.close("Short Entry")
// Alerts
alertcondition(longCondition, title="Adaptive Trend Flow Long", message="Long Entry Signal")
alertcondition(shortCondition, title="Adaptive Trend Flow Short", message="Short Entry Signal")
Auto Support & Resistance//@version=5
indicator("Auto Support & Resistance", overlay=true)
// Input for Lookback Period
yearLookback = input.int(365, title="Lookback Days")
swingLength = input.int(10, title="Swing Length")
// Define the highest high and lowest low over the past year
var float highestLevel = na
var float lowestLevel = na
highestLevel := ta.highest(high, yearLookback)
lowestLevel := ta.lowest(low, yearLookback)
// Identify Swing Highs and Lows
swingHigh = ta.pivothigh(high, swingLength, swingLength)
swingLow = ta.pivotlow(low, swingLength, swingLength)
// Store swing points in arrays
var float resistanceLevels = array.new_float()
var float supportLevels = array.new_float()
if not na(swingHigh)
array.push(resistanceLevels, swingHigh)
if not na(swingLow)
array.push(supportLevels, swingLow)
// Function to filter significant levels
filterLevels(arr) =>
arrFiltered = array.new_float()
for i = 0 to array.size(arr) - 1
level = array.get(arr, i)
if array.size(arrFiltered) == 0 or math.abs(level - array.get(arrFiltered, array.size(arrFiltered) - 1)) > syminfo.mintick * 50
array.push(arrFiltered, level)
arrFiltered
// Filtered Levels
resistanceFiltered = filterLevels(resistanceLevels)
supportFiltered = filterLevels(supportLevels)
// Plot the levels
for i = 0 to array.size(resistanceFiltered) - 1
line.new(x1=bar_index - 500, y1=array.get(resistanceFiltered, i), x2=bar_index + 500, y2=array.get(resistanceFiltered, i), color=color.red, width=2)
for i = 0 to array.size(supportFiltered) - 1
line.new(x1=bar_index - 500, y1=array.get(supportFiltered, i), x2=bar_index + 500, y2=array.get(supportFiltered, i), color=color.green, width=2)
// Display Current Major Support and Resistance Levels
labelHigh = label.new(bar_index, highestLevel, text="Major Resistance: " + str.tostring(highestLevel), color=color.red, textcolor=color.white, style=label.style_label_down)
labelLow = label.new(bar_index, lowestLevel, text="Major Support: " + str.tostring(lowestLevel), color=color.green, textcolor=color.white, style=label.style_label_up)
Multi Asset & TF Stochastic
Multi Asset & TF Stochastic
This indicator allows you to compare the stochastic oscillator values of two different assets across multiple timeframes in a single pane. It’s designed for traders who want to analyse the momentum of one asset (by default, the chart’s asset) alongside a second asset of your choice (e.g., comparing EURUSD to the USD Index).
How It Works:
Main Asset:
The indicator automatically uses the chart’s asset for the primary stochastic calculation. You have the option to adjust the timeframe for this asset using a dropdown that includes TradingView’s standard timeframes, a "Chart" option (which automatically uses your chart’s timeframe), or a "Custom" option where you can type in any timeframe.
Second Asset:
You can enable the display of a second asset by toggling the “Display Second Asset” option. Choose the asset symbol (default is “DXY”) and select its timeframe from an identical dropdown. When enabled, the script calculates the stochastic oscillator for the second asset, allowing you to compare its momentum (%K and %D lines) with that of the main asset.
Stochastic Oscillator Settings:
Customize the %K length, the smoothing period for %K, and the smoothing period for %D. Both assets’ stochastic values are calculated using these parameters.
Visual Display:
The indicator plots the %K and %D lines for the main asset in prominent colours. If the second asset is enabled, its %K and %D lines are also plotted in different colours. Additionally, overbought (80) and oversold (20) levels are marked, with a midline at 50, making it easier to gauge market conditions at a glance.
%D line can be toggled off for a cleaner view if required:
Asset Information Table:
A table at the top-centre of the pane displays the active asset symbols—ensuring you always know which assets are being analysed.
How to Use:
Apply the Indicator:
Add the script to your chart. By default, it will use the chart’s current asset and timeframe for the primary stochastic oscillator.
Adjust the Main Asset Settings:
Use the “Main Asset Timeframe” dropdown to select a specific timeframe for the main asset or stick with the “Chart” option for automatic syncing with your current chart.
Enable and Configure the Second Asset (Optional):
Toggle on “Display Second Asset” if you wish to compare another asset. Select the desired symbol and adjust its timeframe using the provided dropdown. Choose “Custom” if you need a timeframe not listed by default.
Review the Plots and Table:
Observe the stochastic %K and %D lines for each asset. The overbought/oversold levels help indicate potential market turning points. Check the table at the top-centre to confirm the asset symbols being displayed.
This versatile tool is ideal for traders who rely on momentum analysis and need to quickly compare the stochastic signals of different markets or instruments. Enjoy seamless multi-asset analysis with complete control over your timeframe settings!
Fibonacci S/R + Filtru de Trend & RSIa nice fibonacci indicator, experiment and if it's useful to you, I'm glad I can help you
HTF CANDLES ( MY MADAM DIOR )MADAM DIOR'S HTF indicator displays HTF candles and pivot points.
The candles are displayed in a box and you can select Open-Close, High-Low or both.
You can show all of the past, or just "today only" or "previous day only".
You can also shift one previous candle to the current one.
The pivot point is the normal one.
There is an option to display CPR (Central pivot range).
MY MADAM DIOR...💃
Trading Sessions Background ColorTrading Sessions Background Color
This indicator provides a visual representation of the major trading sessions — Asia, London, and USA — by applying distinct background colors to the chart. It allows traders to easily identify active market hours and session overlaps.
Features:
Customizable Sessions: Users can modify time ranges, and colors according to their preferences.
Predefined Major Trading Sessions: The indicator includes Asia, London, and USA sessions by default.
Time Zone Adjustment: A configurable UTC offset ensures accurate session display.
Clear Visual Differentiation: Background colors indicate when each session is active.
Usage Instructions:
Apply the indicator to a TradingView chart.
Adjust session settings and time zone offset as needed.
The chart background will update dynamically to reflect the active trading session.
myc 15min//@version=5
strategy("MultiSymbol Smart Money EA sin Lotes ni Pares", overlay=true)
// Parámetros de la estrategia RSI
RSI_Period = input.int(14, title="RSI Periodo", minval=1)
RSI_Overbought = input.float(70, title="RSI sobrecompra")
RSI_Oversold = input.float(30, title="RSI sobreventa")
// Valores fijos para Stop Loss y Take Profit en porcentaje
FIXED_SL = input.float(0.2, title="Stop Loss en %", minval=0.0) / 100
FIXED_TP = input.float(0.6, title="Take Profit en %", minval=0.0) / 100
// Cálculo del RSI
rsi = ta.rsi(close, RSI_Period)
// Condiciones de compra y venta basadas en el RSI
longCondition = rsi <= RSI_Oversold
shortCondition = rsi >= RSI_Overbought
// Precio de entrada
longPrice = close
shortPrice = close
// Ejecutar las operaciones
if (longCondition)
strategy.entry("Compra", strategy.long)
if (shortCondition)
strategy.entry("Venta", strategy.short)
// Fijar el Stop Loss y Take Profit en base al porcentaje de la entrada
if (strategy.position_size > 0) // Si hay una posición larga
longStopLoss = longPrice * (1 - FIXED_SL)
longTakeProfit = longPrice * (1 + FIXED_TP)
strategy.exit("Salir Compra", from_entry="Compra", stop=longStopLoss, limit=longTakeProfit)
if (strategy.position_size < 0) // Si hay una posición corta
shortStopLoss = shortPrice * (1 + FIXED_SL)
shortTakeProfit = shortPrice * (1 - FIXED_TP)
strategy.exit("Salir Venta", from_entry="Venta", stop=shortStopLoss, limit=shortTakeProfit)
RSI Classic calculationClassic RSI with Moving Average
This script implements the Classic RSI (Relative Strength Index) method with the option to use either an Exponential Moving Average (EMA) or a Simple Moving Average (SMA) for smoothing the gains and losses. This custom implementation primarily aims to resolve a specific issue I encountered when cross-referencing RSI values with Python-based data, which is calculated differently than in Pine Script. However, the methodology here can benefit anyone who needs to align RSI calculations across different programming languages or platforms.
The Problem:
When working with Python for data analysis, the RSI values are calculated differently. The smoothing method, for example, can vary—RMA (Relative Moving Average) may be used instead of SMA or EMA, resulting in discrepancies when comparing RSI values across systems. To solve this problem, this script allows for the same type of smoothing to be applied (EMA or SMA) as used in Python, ensuring consistency in the data.
Why This Implementation:
The main goal of this approach was to align RSI calculations across Python and Pine Script so that I could cross-check the results accurately. By offering both EMA and SMA options, this script bridges the gap between Pine Script and Python, ensuring that the data is comparable and consistent. While this particular issue arose from my work with Python, this solution is valuable for anyone dealing with cross-platform RSI comparisons in different coding languages or systems.
Benefits:
Cross-Platform Consistency: This script ensures that RSI values calculated in Pine Script are directly comparable to those from Python (or any other platform), which is crucial for accurate analysis, especially in automated trading systems.
Flexibility: The ability to choose between EMA and SMA provides flexibility in line with the specific needs of your strategy or data source.
Ease of Use: The RSI is plotted with overbought and oversold levels clearly marked, making it easy to visualize and use in decision-making processes.
Limitations:
Calculation Differences: While this script bridges the gap between Pine Script and Python, if you're working with a different platform or coding language that uses variations like RMA, small discrepancies may still arise.
Sensitivity Trade-Off: The choice between EMA and SMA impacts the sensitivity of the RSI. EMA responds quicker to recent price changes, which could lead to faster signals, while SMA provides a more stable but slower response.
Conclusion:
This Classic RSI script, with its customizable moving average type (EMA or SMA), not only solves the issue I faced with Python-based calculations but also provides a solution for anyone needing consistency across different programming languages and platforms. Whether you're working with Pine Script, Python, or other languages, this script ensures that your RSI values are aligned for more accurate cross-platform analysis. However, always be mindful of the small differences that can arise when different smoothing techniques (like RMA) are used in other systems.
MACD+RSI Indicator Moving Average Convergence/Divergence or MACD is a momentum indicator that shows the relationship between two Exponential Moving Averages (EMAs) of a stock price. Convergence happens when two moving averages move toward one another, while divergence occurs when the moving averages move away from each other. This indicator also helps traders to know whether the stock is being extensively bought or sold. Its ability to identify and assess short-term price movements makes this indicator quite useful.
The Moving Average Convergence/Divergence indicator was invented by Gerald Appel in 1979.
Moving Average Convergence/Divergence is calculated using a 12-day EMA and 26-day EMA. It is important to note that both the EMAs are based on closing prices. The convergence and divergence (CD) values have to be calculated first. The CD value is calculated by subtracting the 26-day EMA from the 12-day EMA.
---------------------------------------------------------------------------------------------------------------------
The relative strength index (RSI) is a momentum indicator used in technical analysis. RSI measures the speed and magnitude of a security's recent price changes to detect overbought or oversold conditions in the price of that security.
The RSI is displayed as an oscillator (a line graph) on a scale of zero to 100. The indicator was developed by J. Welles Wilder Jr. and introduced in his seminal 1978 book, New Concepts in Technical Trading Systems.
In addition to identifying overbought and oversold securities, the RSI can also indicate securities that may be primed for a trend reversal or a corrective pullback in price. It can signal when to buy and sell. Traditionally, an RSI reading of 70 or above indicates an overbought condition. A reading of 30 or below indicates an oversold condition.
---------------------------------------------------------------------------------------------------------------------
By combining them, you can create a MACD/RSI strategy. You can go ahead and search for MACD/RSI strategy on any social platform. It is so powerful that it is the most used indicator in TradingView. It is best for trending market. Our indicator literally let you customize MACD/RSI settings. Explore our indicator by applying to your chart and start trading now!
Antony Moving Average (AMA)EMA 9 (Blue), EMA 20 (Red), SMA 65 (Green), and SMA 200 (Yellow). Most times the stock respects 65 instead of 50 and so choosing 65 helps in better results.
Fibonacci Rainbow EMAs & 55/144 CrossThe "Fibonacci Rainbow EMAs & 50/200 Cross" indicator is a powerful tool for visualizing price trends and identifying potential trading opportunities. It combines two key components: a Fibonacci-based EMA rainbow and a moving average crossover system.
Fibonacci Rainbow EMAs:
This indicator plots seven Exponential Moving Averages (EMAs) based on Fibonacci numbers: 8, 13, 21, 55, 89, 144, and 233. These EMAs are color-coded in a rainbow sequence (Red, Orange, Yellow, Green, Aqua, Blue, Purple) to provide a clear visual representation of the short-term, medium-term, and long-term price trends. The rainbow effect helps traders quickly assess the overall market direction and identify potential support and resistance levels. When the EMAs are aligned in the correct order (8 above 13, 13 above 21, etc.), it suggests a strong uptrend. The opposite order suggests a downtrend. Compression of the rainbow suggests consolidation, while expansion suggests increasing volatility.
55/144 EMA Cross Detection:
In addition to the rainbow, the script detects and visually highlights crossovers between the 55-period EMA and the 144-period EMA.
Bullish Cross: When the 55-period EMA crosses above the 144-period EMA, a green upward-pointing triangle is plotted below the bar. This signals a potential shift towards bullish momentum.
Bearish Cross: When the 55-period EMA crosses below the 144-period EMA, a red downward-pointing triangle is plotted above the bar. This signals a potential shift towards bearish momentum.
Alerts:
The indicator includes customizable alerts for both bullish and bearish crossovers. These alerts can be configured within TradingView to notify you when a crossover occurs, allowing you to react quickly to potential trading opportunities. The alert messages specifically state which EMAs have crossed (55 and 144).
Key Features:
Visual Trend Identification: The rainbow EMAs provide a clear, color-coded view of the trend.
Crossover Signals: The 55/144 EMA crossovers generate potential buy and sell signals.
Customizable Alerts: Real-time alerts keep you informed of significant market events.
Fibonacci Sequence: The use of Fibonacci numbers for EMA lengths adds a mathematical basis often considered significant in market analysis.
How to Use:
Use the EMA rainbow to identify the overall trend direction.
Look for 55/144 EMA crossovers as potential entry or exit points.
Combine the indicator with other technical analysis tools for confirmation.
Customize the alerts to fit your trading style.
Disclaimer: This indicator is for informational and educational purposes only and should not be considered financial advice. Trading involves risk, and 1 past performance is not indicative of future results. Always do your own research and consult with a qualified financial advisor before making any investment decision.
Enhanced Gold Strategy (15M)Enhanced Gold Trading Strategy (15M)
This Pine Script strategy is designed for gold trading on a 15-minute timeframe, optimizing trend and momentum signals for high-probability trades. It incorporates multiple technical indicators to filter out false signals and improve trade accuracy.
Key Features:
✅ Moving Average Crossovers – Uses a 20-period short MA and 50-period long MA to identify trend shifts.
✅ Relative Strength Index (RSI) – Helps confirm overbought and oversold conditions to time entries better.
✅ Bollinger Bands Expansion – Ensures trades occur only in high-volatility market conditions.
✅ ADX Trend Strength Filter – Filters out trades in weak or choppy markets by requiring a trend strength above 20.
✅ Dynamic Support & Resistance – Uses the last 50-period high/low levels instead of static price levels.
✅ ATR-Based Stop-Loss & Take-Profit – Adapts dynamically to market conditions for optimal risk management.
✅ London/New York Overlap Filter – Restricts trading to the most liquid market hours (1 PM - 4 PM GMT).
Trading Logic:
Long Entry:
Short MA crosses above Long MA (Bullish crossover).
RSI below oversold level (Potential reversal).
Bollinger Bands expansion (Confirming strong momentum).
Price near dynamic support level (Ensuring a key level is respected).
ADX above 20 (Validating a strong trend).
Short Entry:
Short MA crosses below Long MA (Bearish crossover).
RSI above overbought level (Potential reversal).
Bollinger Bands expansion (Confirming strong momentum).
Price near dynamic resistance level (Ensuring a key level is respected).
ADX above 20 (Validating a strong trend).
This strategy is built for high-probability gold trades by combining trend-following, momentum, and volatility factors. With adaptive risk management, it ensures controlled losses and optimized profit potential.
My script//@version=6
indicator("EMA VIP", shorttitle=".", format=format.price, precision=0, overlay=true, max_bars_back=481)
len1 = 5
src1 = close
out1 = ta.ema(src1, len1)
len2 = 10
src2 = close
out2 = ta.ema(src2, len2)
len3 = 21
src3 = close
out3 = ta.ema(src3, len3)
len4 = 50
src4 = close
out4 = ta.ema(src4, len4)
len5 = 100
src5 = close
out5 = ta.ema(src5, len5)
len6 = 200
src6 = close
out6 = ta.ema(src6, len6)
plot(out1, title="EMA5", color=color.green, linewidth=2)
plot(out2, title="EMA10", color=color.blue, linewidth=2)
plot(out3, title="EMA21", color=color.purple, linewidth=2)
plot(out4, title="EMA 50", color=color.orange, linewidth=2)
plot(out5, title="EMA 100", color=color.black, linewidth=2)
plot(out6, title="EMA 200", color=color.red, linewidth=2)
Ichimoku Cloud with SL TPIndikatornya agak aneh titik harganya harus di pilih resolusi chart yang tepat
Big Fish Small Fish Yummy (Forex)This indicator is a versatile, multi-functional tool built in Pine Script™ (v6) that blends volatility, price action, and risk management to help you spot key forex trading opportunities. Here’s what it offers:
Key Features:
ATR & Candle Analysis:
Utilizes the Average True Range (ATR) to gauge market volatility. It identifies “Big Fish” candles—those with significant bullish or bearish momentum—by comparing the current candle’s range against a multiple of the previous ATR. It also evaluates wick sizes to detect “yummy” pin bars, signaling potential reversals or precise entry/exit points.
Swing Detection:
Incorporates a swing detection system that examines recent price action over a user-defined lookback period. By confirming valid swing highs and lows through trend analysis and sequence validation, the script highlights potential shifts in market momentum.
Risk & Lot Size Calculator:
Features a built-in calculator that uses your capital, chosen risk percentage, and ATR-derived pip values to compute optimal lot sizes. The script adjusts calculations based on different symbols and currencies, ensuring proper sizing for various forex pairs.
Multi-Pair Data Integration:
Pulls daily price data from OANDA for several major currency pairs (e.g., USD/JPY, USD/CHF, AUD, GBP, NZD, CAD, EUR), which supports accurate cross-market analysis and risk adjustments.
SMA & Lookback Visualization:
Plots three Simple Moving Averages (SMAs) to provide additional trend context. A customizable lookback highlight further accentuates recent price movements, making it easier to identify relevant market conditions.
How It Works
ATR Calculation & Candle Evaluation:
The script computes the ATR over a user-specified period and uses it to determine whether a candle qualifies as a “Big Fish” based on its range. Both bullish and bearish conditions are assessed.
Swing & Pin Bar Identification:
Through a combination of swing range validation, linear regression for trend confirmation, and sequence checks, the indicator marks potential swing highs and lows. It then monitors subsequent bars for “yummy” pin bar patterns—small bodies with relatively large wicks—which may signal reversals.
Risk Management & Lot Sizing:
Once a qualifying candle is identified, the script calculates stop-loss levels and suggests a lot size tailored to your account balance and risk settings. This dynamic adjustment factors in the pip value differences among various currency pairs.
Visual Cues & Labels:
The indicator uses colored bars and plotted shapes to highlight swing changes and fish candle events. Informative labels display key metrics like ATR pips, calculated lot size, and account capital, providing a quick overview of potential trade setups.
Customization
Input Parameters:
Adjust ATR length, multipliers for both big and small fish, swing lookback periods, and wick size thresholds to suit your trading style.
Display Options:
Toggle visual elements such as ATR pip display, lot size, and capital information on labels.
SMA Settings:
Set the lengths for three SMAs to help visualize trend direction.