EMA Crossover StrategyThis is an indicator using the 9 EMA and 21 EMA when they crossover there is a buy and sell signal
圖表形態
Anchored VWAP- STKThis Pine Script (version 5) calculates and plots an **Anchored Volume Weighted Average Price (VWAP)** along with its **standard deviation bands** on a trading chart. The VWAP helps traders identify the average price of an asset, weighted by volume, starting from a specific date chosen by the user.
### Key Components:
1. **Indicator Setup:**
The script is set as an overlay indicator, meaning it will be displayed directly on the price chart.
2. **User Inputs:**
- **VWAP Start Date:** Allows the user to select the date from which the VWAP calculation should begin (default is January 1, 2022).
- **VWAP Data Source:** Users can choose which price data to use for the calculation (default is `hlc3`, which is the average of the high, low, and close prices).
3. **VWAP Calculation:**
- The script keeps track of the cumulative sum of (price × volume) and the cumulative volume starting from the selected date.
- The VWAP is calculated as:
\
4. **Standard Deviation Calculation:**
- The script calculates the variance using the formula:
\
This ensures the variance is not negative.
- The standard deviation is then derived by taking the square root of the variance.
5. **Plotting:**
- **VWAP Line:** Displayed in blue.
- **Upper Band:** Plotted in orange, representing VWAP + standard deviation.
- **Lower Band:** Also in orange, representing VWAP - standard deviation.
### Purpose:
This indicator helps traders analyze price movements relative to the VWAP, providing insights into potential support/resistance levels. The standard deviation bands help identify overbought or oversold conditions based on price volatility.
Mean reversion threshold levels//@version=5
indicator("Mean reversion threshold levels", overlay=true)
txt = input.string("", title="Input SPX reversion levels:", confirm=true)
color0 = input.color(defval=color.rgb(224, 10, 110))
color1 = input.color(defval=color.rgb(224, 10, 110))
color2 = input.color(defval=color.rgb(224, 10, 110))
color3 = input.color(defval=color.rgb(224, 10, 110))
color4 = input.color(defval=color.rgb(224, 10, 110))
color5 = input.color(defval=color.rgb(224, 10, 110))
color6 = input.color(defval=color.rgb(224, 10, 110))
color7 = input.color(defval=color.rgb(224, 10, 110))
color8 = input.color(defval=color.rgb(224, 10, 110))
color9 = input.color(defval=color.rgb(224, 10, 110))
color10 = input.color(defval=color.rgb(224, 10, 110))
TxtToArray(string origin, string divider) =>
Arr = array.new_string()
Arr := str.split(origin, divider)
Arr
Dividedstrings = TxtToArray(txt, ",")
color temporarycolor = na
plot(array.size(Dividedstrings) >= 2 ? str.tonumber(array.get(Dividedstrings, 1)) : na, title="first line", color=color0, display=display.price_scale)
plot(array.size(Dividedstrings) >= 4 ? str.tonumber(array.get(Dividedstrings, 3)) : na, title="second line", color=color1, display=display.price_scale)
plot(array.size(Dividedstrings) >= 6 ? str.tonumber(array.get(Dividedstrings, 5)) : na, title="third line", color=color2, display=display.price_scale)
plot(array.size(Dividedstrings) >= 8 ? str.tonumber(array.get(Dividedstrings, 7)) : na, title="fourth line", color=color3, display=display.price_scale)
plot(array.size(Dividedstrings) >= 10 ? str.tonumber(array.get(Dividedstrings, 9)) : na, title="fifth line", color=color4, display=display.price_scale)
plot(array.size(Dividedstrings) >= 12 ? str.tonumber(array.get(Dividedstrings, 11)) : na, title="sixth line", color=color5, display=display.price_scale)
plot(array.size(Dividedstrings) >= 14 ? str.tonumber(array.get(Dividedstrings, 13)) : na, title="seventh line", color=color6, display=display.price_scale)
plot(array.size(Dividedstrings) >= 16 ? str.tonumber(array.get(Dividedstrings, 15)) : na, title="eighth line", color=color7, display=display.price_scale)
plot(array.size(Dividedstrings) >= 18 ? str.tonumber(array.get(Dividedstrings, 17)) : na, title="ninth line", color=color8, display=display.price_scale)
plot(array.size(Dividedstrings) >= 20 ? str.tonumber(array.get(Dividedstrings, 19)) : na, title="tenth line", color=color9, display=display.price_scale)
nb_bars = ta.barssince(time == chart.right_visible_bar_time)
if barstate.islastconfirmedhistory and array.size(Dividedstrings) != 0
for i = 0 to array.size(Dividedstrings) - 1
if i % 2 == 0
if i == 0 or i == 1
temporarycolor := color0
if i == 2 or i == 3
temporarycolor := color1
if i == 4 or i == 5
temporarycolor := color2
if i == 6 or i == 7
temporarycolor := color3
if i == 8 or i == 9
temporarycolor := color4
if i == 10 or i == 11
temporarycolor := color5
if i == 12 or i == 13
temporarycolor := color6
if i == 14 or i == 15
temporarycolor := color7
if i == 16 or i == 17
temporarycolor := color8
if i == 18 or i == 19
temporarycolor := color9
if i % 2 == 0
if array.size(Dividedstrings) > i + 1
label.new(bar_index, str.tonumber(array.get(Dividedstrings, i + 1)), array.get(Dividedstrings, i), xloc=xloc.bar_index, color=color.new(color.white, 10), size=size.large, style=label.style_none, textcolor=temporarycolor, textalign=text.align_right)
if i % 2 != 0
if array.size(Dividedstrings) > i
line.new(bar_index, str.tonumber(array.get(Dividedstrings, i)), bar_index + 1, str.tonumber(array.get(Dividedstrings, i)), extend=extend.both, color=temporarycolor)
//Alma
B!!7 wtf dp want itis not midne am dtired cant spellIf I rejected or deleted your annotation, it’s nothing personal. Just doing my job and keeping up with the current Genius standards. Please do not send me angry messages, demanding to know why your annotation was deleted, otherwise, you will be ignored and action may be taken on your account. Send me a constructive and calm message, then we can talk.
EMA //@version=5
indicator("Shiba Inu EMA Crossover Alerts", overlay=true)
// Input Parameters
shortLength = input(9, title="Short EMA Length")
longLength = input(21, title="Long EMA Length")
// EMA Calculations
shortEMA = ta.ema(close, shortLength)
longEMA = ta.ema(close, longLength)
// Crossover Conditions
bullishCross = ta.crossover(shortEMA, longEMA)
bearishCross = ta.crossunder(shortEMA, longEMA)
// Plot EMAs
plot(shortEMA, color=color.blue, title="Short EMA", linewidth=2)
plot(longEMA, color=color.red, title="Long EMA", linewidth=2)
// Buy and Sell Signals
plotshape(series=bullishCross, location=location.belowbar, color=color.green, style=shape.labelup, title="Buy Signal")
plotshape(series=bearishCross, location=location.abovebar, color=color.red, style=shape.labeldown, title="Sell Signal")
// Alerts
alertcondition(bullishCross, title="Buy Alert", message="Shiba Inu Buy Signal: Short EMA crossed above Long EMA!")
alertcondition(bearishCross, title="Sell Alert", message="Shiba Inu Sell Signal: Short EMA crossed below Long EMA!")
Ultimate T3 Fibonacci for BTC Scalping. Look at backtest report!Hey Everyone!
I created another script to add to my growing library of strategies and indicators that I use for automated crypto trading! This strategy is for BITCOIN on the 30 minute chart since I designed it to be a scalping strategy. I calculated for trading fees, and use a small amount of capital in the backtest report. But feel free to modify the capital and how much per order to see how it changes the results:)
It is called the "Ultimate T3 Fibonacci Indicator by NHBprod" that computes and displays two T3-based moving averages derived from price data. The t3_function calculates the Tilson T3 indicator by applying a series of exponential moving averages to a combined price metric and then blending these results with specific coefficients derived from an input factor.
The script accepts several user inputs that toggle the use of the T3 filter, select the buy signal method, and set parameters like lengths and volume factors for two variations of the T3 calculation. Two T3 lines, T3 and T32, are computed with different parameters, and their colors change dynamically (green/red for T3 and blue/purple for T32) based on whether the lines are trending upward or downward. Depending on the selected signal method, the script generates buy signals either when T32 crosses over T3 or when the closing price is above T3, and similarly, sell signals are generated on the respective conditions for crossing under or closing below. Finally, the indicator plots the T3 lines on the chart, adds visual buy/sell markers, and sets alert conditions to notify users when the respective trading signals occur.
The user has the ability to tune the parameters using TP/SL, date timerames for analyses, and the actual parameters of the T3 function including the buy/sell signal! Lastly, the user has the option of trading this long, short, or both!
Let me know your thoughts and check out the backtest report!
Дивергенции Как этот скрипт будет отображаться на графике
1. Медвежьи дивергенции:
• Когда цена достигает нового максимума (обозначается стрелкой вниз с красным цветом), но RSI не подтверждает это движение (падает), вы увидите красную метку “🔻” над соответствующей свечой.
2. Бычьи дивергенции:
• Когда цена достигает нового минимума (обозначается стрелкой вверх с зеленым цветом), но RSI не подтверждает это движение (растет), вы увидите зеленую метку “🔺” под соответствующей свечой.
3. RSI:
• Индикатор RSI будет отображаться в отдельной панели под основным графиком. На этой панели будут горизонтальные линии для уровней перекупленности (70) и перепроданности (30).
Forex SessionsThis indicator displays the main Forex trading sessions on your chart, highlighting the New York, London, Tokyo, and Sydney sessions with custom background colors. You can toggle the visibility of each session to suit your strategy. Perfect for traders looking to optimize their analysis and time their trades according to the market’s peak liquidity hours. Enhance your decision-making with this visual tool!
SMA Crossover Strategy by AARYAN Buy Signal: When the 50-period SMA crosses above the 200-period SMA
Sell Signal: When the 50-period SMA crosses below the 200-period SMA
This script also includes:
✔️ Visual buy/sell markers on the chart
✔️ Alerts for buy and sell signals
✔️ Backtesting capability to analyze past performance
Estrategia: Cruce de EMAs con MACD Explicación
Entradas basadas en Cruce de EMAs y MACD:
Se utiliza ta.crossover(ema_fast_val, ema_slow_val) para detectar cuando la EMA rápida cruza al alza la EMA lenta. Además, se verifica que el histograma del MACD sea mayor que 0 para confirmar una tendencia alcista.
De manera similar, se utiliza ta.crossunder(ema_fast_val, ema_slow_val) y se comprueba que el histograma sea negativo para una señal bajista.
Salidas mediante pivotes:
Se define la resistencia (máximo en un lookback) y el soporte (mínimo en un lookback) para determinar las salidas, lo que simplifica la toma de ganancias o la salida de la posición.
Gestión de Riesgo:
Se calcula un nivel de stop loss y take profit basado en el ATR y se muestran mediante etiquetas en el gráfico.
SP500 Technical Analysis IndicatorOmówienie
Symbol S&P500: Wczytywany jest symbol (domyślnie "SPX:SPX"), a jego zamknięcia (spxClose) służą jako podstawa dalszych obliczeń.
Średnie kroczące: Używamy SMA50 i SMA200 do określenia trendu (np. cena poniżej SMA200 sugeruje tendencję spadkową).
RSI i MACD: Klasyczne wskaźniki do oceny wykupienia/wyprzedania oraz zmiany momentum.
ADX: Obliczany „od zera” – dzięki temu mamy pełną kontrolę nad sposobem wyliczenia siły trendu.
Filtr 3 sesji: Obliczamy procentową zmianę z ostatnich 3 sesji (cumReturn3). Warunki sygnałów są uzupełnione o ten filtr – dla kupna wymagamy spadku (poniżej –5%), a dla sprzedaży wzrostu (powyżej +5%).
Sygnały: Sygnały (buy, sell, strong buy, strong sell) są generowane na podstawie kombinacji wyżej wymienionych warunków.
Wizualizacja: Sygnały są wyświetlane jako strzałki (w górę dla kupna, w dół dla sprzedaży) umieszczone odpowiednio poniżej lub powyżej świecy.
Ten wskaźnik opiera się wyłącznie na analizie technicznej S&P500 i nie korzysta z żadnych danych z euro, WIG czy innych rynków. Możesz dostosować progi oraz okresy według własnych preferencji i warunków rynkowych.
Albin's Stradegy //@version=5
indicator("SMA Crossover Signal", overlay=true)
/**
* This indicator identifies trade signals based on the crossover of two simple moving averages (SMA) and the relative position of the price to a longer-term SMA.
*
* - It calculates the 5-period, 20-period, and 50-period SMAs.
* - A 'BUY SIGNAL' is displayed when the 5-period SMA crosses above the 20-period SMA, but only if the price is above the 50-period SMA (bullish trend confirmation).
* - A 'SELL SIGNAL' is displayed when the 5-period SMA crosses below the 20-period SMA, but only if the price is below the 50-period SMA (bearish trend confirmation).
* - The background color changes dynamically: green when the price is above the 50-period SMA, red when it is below.
*/
SOLUSDC Buy/Sell Signal - Optimized v6 - krizSOLUSDC Buy/Sell Signal - Optimized v6
The SOLUSDC Buy/Sell Signal - Optimized v6 is a powerful trend-following indicator designed for crypto traders who want to optimize their entry and exit points when trading SOL/USDC on a 3-minute timeframe.
This indicator utilizes a combination of Exponential Moving Averages (EMA), MACD, RSI, and Bollinger Bands to generate high-probability buy and sell signals. Additionally, it features historical signal tracking, allowing traders to view past buy and sell opportunities up to one week back for backtesting and strategy refinement.
🚀 Key Features:
✅ High-Accuracy Buy & Sell Signals – Based on EMA crossovers, MACD confirmation, RSI levels, and Bollinger Band positioning.
✅ Trend Filtering – Trades only in the direction of the 200 EMA to avoid weak or false signals.
✅ Historical Signal Tracking – Displays buy and sell signals from the past week, making it easier to analyze past performance.
✅ Optimized for Pine Script v6 – Fully compatible with the latest version of TradingView's scripting language.
✅ Visual Alerts on Chart – Clear green arrows for Buy signals and red arrows for Sell signals directly on the chart.
✅ Performance Success Rate Display – A dynamic success rate panel in the top-right corner helps gauge the effectiveness of the strategy.
📊 How It Works:
Buy Signal 📈 (Green Arrow)
9 EMA crosses above 21 EMA (bullish momentum)
MACD line is above the signal line
RSI is below 40 (indicating a possible oversold condition)
Price touches or breaks below the lower Bollinger Band
Price is above the 200 EMA (confirming an uptrend)
Sell Signal 📉 (Red Arrow)
9 EMA crosses below 21 EMA (bearish momentum)
MACD line is below the signal line
RSI is above 60 (indicating a possible overbought condition)
Price touches or breaks above the upper Bollinger Band
Price is below the 200 EMA (confirming a downtrend)
📌 Best Usage Practices:
Works best on SOLUSDC with a 3-minute timeframe.
Combine with volume analysis and market structure for optimal trade confirmation.
Avoid trading during highly volatile news events to reduce false signals.
Backtest using the historical signals feature to refine strategy execution.
🎯 How to Use in TradingView:
Open TradingView.
Go to Pine Editor (Bottom panel).
Copy and paste the script.
Click "Save" → "Add to Chart".
Switch to a 3-minute timeframe for the best results.
🔥 Why Use This Indicator?
✅ Minimizes False Signals – Uses multiple confirmations for precision.
✅ Works in Real-Time & Historical Data – See past signals up to one week back for better analysis.
✅ Custom-Tuned for SOLUSDC – Optimized specifically for crypto traders.
✅ Fully Compatible with Pine Script v6 – No errors, runs smoothly.
🚀 Take your trading to the next level with the SOLUSDC Buy/Sell Signal - Optimized v6! 🚀
Candle Gap ScannerThis code will compare the first candle with the second candle. If the highest value reached by the first candle is lower than the lowest value reached by the second candle, and this difference is greater than a percentage value that can be adjusted in the settings, it will place a red mark. Additionally, it will compare the first candle with the second candle again. If the lowest value reached by the first candle is higher than the highest value reached by the second candle, and this difference is greater than a percentage value that can be adjusted in the settings, it will place a red mark.
Yesterday's OHLCThis indicator is designed to provide traders with a visual representation of the previous day's key price levels on their charts. The script calculates and plots four critical price points: the open, high, low, and close from the previous trading day. Users can customize the resolution from which these values are pulled, with the default set to daily. Additionally, the script offers options to hide past prices, display tomorrow's projected values, and customize the colors of the plotted lines for better visibility. The script intelligently adjusts for extended trading sessions, ensuring that the displayed values remain accurate regardless of the current market conditions. By utilizing the request.security function, it fetches historical price data and plots the values using step line styles, making it easy for traders to identify significant price levels that may influence future price movements. This indicator serves as a valuable tool for traders looking to analyze market behavior based on historical data, enabling them to make informed trading decisions.
Trading Strategy Using This Indicator
Strategy Overview:
The "Yesterday's OHLC" indicator can be effectively integrated into a trading strategy focused on breakout and reversal patterns. By observing how the current price interacts with the previous day's key levels, traders can identify potential entry and exit points.
1. Breakout Strategy:
Entry Signal:
If the current price breaks above yesterday's high, it may indicate bullish momentum. Traders can enter a long position once the price closes above this level, confirming the breakout.
Conversely, if the price breaks below yesterday's low, it may signal bearish momentum. Traders can enter a short position upon a close below this level.
Stop Loss:
Set a stop loss just below yesterday's high for long positions or just above yesterday's low for short positions to manage risk.
Take Profit:
Target a risk-reward ratio of at least 1:2. Traders can use previous support and resistance levels or Fibonacci retracement levels to identify potential take profit areas.
2. Reversal Strategy:
Entry Signal:
If the price approaches yesterday's high or low but fails to break through, it may indicate a reversal. Traders can look for candlestick patterns (like pin bars or engulfing patterns) near these levels to signal a potential reversal.
For example, if the price tests yesterday's high and forms a bearish reversal pattern, traders can enter a short position.
Stop Loss:
Place a stop loss just above the high (for short positions) or below the low (for long positions) to protect against false breakouts.
Take Profit:
Similar to the breakout strategy, aim for a risk-reward ratio of at least 1:2, using previous price action levels to set targets.
3. Additional Considerations:
Volume Confirmation:
Look for increased trading volume during breakouts or reversals to confirm the strength of the move.
Market Context:
Always consider the broader market context, including economic news and events, which can impact price movements.
By incorporating the "Yesterday's OHLC" indicator into these strategies, traders can enhance their decision-making process, leveraging historical price levels to identify potential trading opportunities. This approach not only helps in managing risk but also allows traders to align their trades with market sentiment and price action.
Al-Sat İndikatörü//@version=5
indicator("Al-Sat İndikatörü", overlay=true)
// Parametreler
shortLength = input(9, title="Kısa EMA Periyodu")
longLength = input(21, title="Uzun EMA Periyodu")
// Hareketli Ortalamalar
shortEMA = ta.ema(close, shortLength)
longEMA = ta.ema(close, longLength)
// Al-Sat Sinyalleri
buySignal = ta.crossover(shortEMA, longEMA) // Kısa EMA, Uzun EMA'yı yukarı keserse AL
sellSignal = ta.crossunder(shortEMA, longEMA) // Kısa EMA, Uzun EMA'yı aşağı keserse SAT
// Grafikte gösterim
plot(shortEMA, color=color.blue, title="Kısa EMA")
plot(longEMA, color=color.red, title="Uzun EMA")
// İşaretler
plotshape(series=buySignal, location=location.belowbar, color=color.green, style=shape.labelup, title="AL")
plotshape(series=sellSignal, location=location.abovebar, color=color.red, style=shape.labeldown, title="SAT")
alertcondition(buySignal, title="AL Sinyali", message="Fiyat yukarı yönlü kesişti!")
alertcondition(sellSignal, title="SAT Sinyali", message="Fiyat aşağı yönlü kesişti!")
High-Frequency, HIGH RISK StrategyUse this primarily on penny stocks! Use alerts so it tells you when to buy and sell NASDAQ:CYN
4Hour Zone SeparatorThis custom TradingView indicator draws vertical lines on your chart to visually separate the 4-hour trading zones within a single trading day. The indicator helps traders identify key time intervals throughout the day for better market analysis and decision-making.
Features:
• Time-Based Zones: The indicator divides the day into six distinct 4-hour periods, starting from midnight (00:00) and continuing every 4 hours. Each zone is marked by a vertical line on the chart.
• User Customization: You can toggle the visibility of the lines for each 4-hour period (00:00, 04:00, 08:00, 12:00, 16:00, 20:00) based on your preference. This allows you to focus on specific zones that matter most for your analysis.
• Line Styling Options: Choose from three different line styles — Solid, Dashed, or Dotted — and adjust the thickness to your desired preference.
• Dynamic Time Adjustment: The indicator automatically adjusts for the time zone, ensuring that the 00:00 timestamp reflects the correct start of the day based on your chart’s time zone.
How It Works:
1. The indicator starts by calculating the beginning of the day at 00:00, then it sequentially places vertical lines every 4 hours.
2. Each line is color-coded for easy identification, and the lines stretch from the highest to the lowest point on the chart for that range.
3. The lines are drawn only when the chart enters a new 4-hour zone.
This tool is especially useful for day traders who want to track price action during specific times of the day and make informed decisions based on market behavior within each 4-hour period.
//@version=5 indicator("Supply and Demand Zones with Reversal Pa//@version=5 indicator("Supply and Demand Zones with Reversal Pa with shahidi
Crt indicator 2This indicator helps you trade crt with the knowledge of ict and key time and key levels
CRT Indicator 1This helps you trade crt with the help of ict and key time with key level from the higher time frame