DK STRATSStrategy is based on the RSI and stochastic RSI to enter and exit trades based on overbought or oversold conditions, variable lookback and optimization features included.
Indicators and strategies
Счёт свечей от выбраннойЭтот скрипт позволяет автоматически отсчитывать 89 и 144 свечей назад от текущей либо заданной пользователем свечи. Гибкость настройки позволяет анализировать исторические данные, отслеживать ключевые уровни и находить важные точки на графике. Незаменимый инструмент для трейдеров, использующих глубокий технический анализ! 🚀📈
Price Projector [MacAlgo] Description:
The “Price Projector ” is a Pine Script indicator designed to project possible future price movements based on historical price action. It allows you to select specific historical periods (up to two different reference dates) from which it extracts price change patterns and then applies a user-defined growth factor to create forward projections on your chart.
Key Features:
Dual Projection Capability: Define two distinct reference dates and periods to generate two separate projections.
Customizable Growth Factor: Apply a percentage-based drift or growth rate to your projections.
Adjustable Projection Length: Control how many bars into the future the script will visualize the projected price path.
Connector Lines: Optionally display lines connecting the historical reference points to the current chart position for easy visualization.
Debug Mode: Provides detailed information in a table for troubleshooting and transparency of internal calculations.
How it Works:
1. Reference Date & Data Collection
For each of the two projections, you select a reference date (e.g., 2022-01-01) and a period (number of bars).
Once the script reaches that reference date in the chart’s historical data, it begins storing the daily (or bar-based) price change percentages over the specified period.
2. Price Change Array
These price changes (ratios) are stored in arrays. For instance, if today’s close is 1% higher than yesterday’s, that ratio is recorded as 1.01.
3. Growth Factor Application
When projecting forward, the script replays the collected price change patterns starting from the current close and adjusts each step by a user-defined growth factor (percentage drift).
4. Drawing the Projection
The script creates a series of points (up to the chosen projection length) that represent the possible future price path.
It then draws polylines on the chart to visualize these forward projections.
5. Visualization & Debugging
Optional connector lines can be displayed to illustrate where the script started referencing data.
A debug table (when enabled) shows the validity of each projection, the number of data points collected, and other diagnostic details.
Customization Options:
1. Reference Dates & Periods
Projection 1 Reference Date, Projection 2 Reference Date
Period (bars) for each reference date
2. Growth Factor:
Growth Factor (%) for each projection to simulate additional drift over time
3. Projection Display:
Show Projection 1, Show Projection 2 toggle switches
Projection 1 Color, Projection 2 Color for line styling
Projection Length (bars) to specify how far out the script projects
Line Width to adjust the thickness of the projection lines
Show Connector Lines to connect historical reference points to current price
Debug Mode for displaying extra diagnostic information
Visual Components:
Projection Polylines: Colored lines showing the projected future price path for each reference date.
Connector Lines (Optional): Lines from the historical reference points to the current chart location, aiding in visualization of the historical data range used.
Debug Table (Optional): Displays internal state information such as validity checks, the size of data arrays, and reference bar indices.
Warning Table: Appears if the script fails to find the user-defined reference date in the available data, alerting you to input issues.
How to Use:
1. Add the Script: In TradingView, open the Pine Editor or the Indicators dialog, then add this script to your chart.
2. Configure Inputs:
Set “Projection 1 Reference Date” (and optionally “Projection 2 Reference Date”).
Specify how many bars (Period) you want to analyze for each reference date.
Adjust the “Growth Factor (%)” if you wish to introduce a drift in the projection.
Toggle display options and colors under “Display Settings.”
3. Observe Historical Data: The script will begin collecting price change data once it reaches the defined reference dates in the historical chart.
4. View Projections: As new bars print, the script will calculate and eventually render forward projections when you reach the end of your available chart data or are viewing live bars.
5. Enable Debug Mode (Optional): Check the “Debug Mode” box to see detailed information that can help verify the logic and data collection process.
Important Notes:
The projections are purely a replay of historical percentage changes, optionally scaled by a growth factor. They do not guarantee future performance or price levels.
If the script does not find your specified reference date within the visible or loaded chart data, it will display an error message.
Because it relies on historical data, the script’s behavior and drawn lines can change when chart data updates, or if the data for the reference period is missing.
Disclaimer:
This indicator is for informational and educational purposes only. It is not financial advice or a recommendation to buy or sell any securities or assets. Always conduct your own analysis and/or consult a qualified financial professional before making investment decisions. Use at your own risk.
9:15 High Low Lines9: 15 High and low Line and with Alert which tells market trend which side market will go which helps to analyze the trend
Optimized Target Trend Strategy v2This script works well for 15 min timeframe on NQ chart with with rate over 74 percent and profit factor 2.4
Price Action Volume ReversalThis TradingView strategy identifies potential trend reversals using a combination of price action, volume analysis, and reversal patterns. It detects high-probability trade setups by confirming bullish and bearish signals with increased volume.
Key Features:
Volume Confirmation: Uses a dynamic volume threshold (SMA-based) to filter strong price moves.
Engulfing Patterns: Recognizes bullish and bearish engulfing formations that indicate trend shifts.
Pin Bar Detection: Identifies reversal candlesticks (pin bars) to enhance entry precision.
Trade Entries:
Long Entry: When a bullish engulfing or pin bar forms with high volume.
Short Entry: When a bearish engulfing or pin bar forms with high volume.
Visual Signals: Buy and sell signals are plotted directly on the chart for easy identification.
This strategy is designed for traders looking to capitalize on strong momentum shifts and reversal points with volume-backed confirmations.
MACD Divergence all in oneMACD Divergence all in one
It can also be named as MACD dual divergence detector pro !
A sophisticated yet user-friendly tool designed to identify both bullish and bearish divergences using the MACD (Moving Average Convergence Divergence) indicator. This advanced script helps traders spot potential trend reversals by detecting hidden momentum shifts in the market, offering a comprehensive solution for divergence trading.
🎯 Key Features:
• Automatic detection of bullish and bearish divergences
• Clear visual signals with color-coded lines (Green for bullish, Red for bearish)
• Smart filtering system to eliminate false signals
• Customizable parameters to match your trading style
• Clean, uncluttered chart presentation
• Optimized performance for real-time analysis
• Easy-to-read labels showing divergence types
• Built-in signal spacing to avoid clustering
📊 How it works:
The indicator uses an advanced algorithm to analyze the relationship between price action and MACD momentum to identify:
Bullish Divergences:
- Price makes higher lows while MACD shows lower lows
- Signals potential trend reversal from bearish to bullish
- Marked with green lines and upward labels
Bearish Divergences:
- Price makes lower highs while MACD shows higher highs
- Signals potential trend reversal from bullish to bearish
- Marked with red lines and downward labels
⚙️ Customizable Settings:
1. MACD Parameters:
- Fast Length (default: 12)
- Slow Length (default: 26)
- Signal Length (default: 9)
2. Divergence Detection:
- Left/Right Pivot Bars
- Divergence Lookback Period
- Minimum/Maximum Divergence Length
- Divergence Strength Filter
3. Visual Settings:
- Clear color coding for easy identification
- Adjustable line thickness
- Customizable label size
💡 Best Practices:
- Most effective on higher timeframes (1H, 4H, Daily)
- Combine with support/resistance levels
- Use with trend lines and price action
- Consider volume confirmation
- Best results during trending markets
- Use appropriate stop-loss levels
🎓 Trading Tips:
1. Look for bullish divergences near support levels
2. Watch for bearish divergences near resistance zones
3. Confirm signals with other technical indicators
4. Consider market context and overall trend
5. Use proper position sizing and risk management
⚠️ Important Notes:
- Past performance doesn't guarantee future results
- Always use proper risk management
- Test settings on historical data first
- Different timeframes may require parameter adjustments
- Not all divergences lead to reversals
Created by: Anmol-max-star
Last Updated: 2025-02-25 16:15:08 UTC
📌 Regular updates and improvements planned!
Disclaimer:
This indicator is for informational purposes only. Always conduct your own analysis and use proper risk management techniques. Trading involves risk of loss, and past performance does not guarantee future results.
🤝 Support:
Feel free to leave comments for:
- Suggestions
- Improvements
- Feature requests
- Bug reports
- General feedback
Your feedback helps make this tool better for everyone!
Happy Trading and May the Trends Be With You! 📈
9:15 Open and Low Linesthis is 9: 15 open and low line with the alert whenever it breach high or low of 15 minutes resistance or support we will get an alert it is very useful for trend analysis and direction of market.
lib_input_enumLibrary "lib_input_enum"
some enum wrappers for style identifiers, that can be used in input.enum calls to have nicer dropdown names
to_size(select)
converts Size enum to builtin size.tiny / size.small / etc., ideally used around input: to_size(input.enum(Size.SMALL, ....))
Parameters:
select (series Size)
to_size(select)
converts a string key to builtin size.tiny / size.small / etc., ideally used around input: to_size(input.string('small', ...., ))
Parameters:
select (string)
reduce_size(select)
converting a builtin size identifier to one instance smaller (except tiny and auto)
Parameters:
select (string)
to_linestyle(select)
converts LineStyle enum to builtin line.style_solid / line.style_dashed / line.style_dotted, ideally used around input: to_linestyle(input.enum(LineStyle.SOLID, ....))
Parameters:
select (series LineStyle)
to_linestyle(select)
converts a string key to builtin line.style_solid / line.style_dashed / line.style_dotted, ideally used around input: to_linestyle(input.string('solid', ...., ))
Parameters:
select (string)
to_labelstyle(select)
converts LineStyle enum to builtin line.style_solid / line.style_dashed / line.style_dotted, ideally used around input: to_linestyle(input.enum(LineStyle.SOLID, ....))
Parameters:
select (series LabelStyle)
to_labelstyle(select)
converts a string key to builtin line.style_solid / line.style_dashed / line.style_dotted, ideally used around input: to_linestyle(input.string('solid', ...., ))
Parameters:
select (string)
Breakout with Dynamic Line Color By RIYADynamic Breakout with EMA/SMA and Color Shifts
This indicator is designed to help traders identify key breakout levels and visualize market trends using a combination of dynamic breakout lines and moving averages. It is highly customizable, allowing users to adapt it to their trading style and preferences.
Key Features:
Dynamic Breakout Line:
The breakout line is calculated as the midpoint between the previous day's open and close.
The line dynamically changes color based on the current candle's close:
Green: If the candle closes above the breakout line (bullish signal).
Red: If the candle closes below the breakout line (bearish signal).
The colors for above and below the breakout line are fully customizable.
EMA/SMA Line:
An optional moving average (EMA or SMA) is plotted to help identify the overall trend.
Users can choose between EMA (Exponential Moving Average) and SMA (Simple Moving Average).
The length of the moving average is adjustable.
Customizable Timeframe:
The breakout line can be calculated based on any timeframe (e.g., daily, hourly, etc.).
This allows users to analyze breakouts on different timeframes without switching charts.
Clean and Intuitive Visualization:
The breakout line and moving average are plotted with clear, customizable colors and line widths.
The dynamic color shifts make it easy to identify bullish and bearish conditions at a glance.
How to Use:
Add the Indicator:
Apply the indicator to your chart in TradingView.
Customize the inputs to suit your trading strategy.
Set the Timeframe:
Choose the timeframe for the breakout line calculation (e.g., "D" for daily, "H" for hourly).
Adjust the Moving Average:
Select the MA type (EMA or SMA) and set the length (e.g., 14, 21, 50).
Customize Colors:
Choose the colors for the breakout line when the candle closes above or below it.
Analyze the Chart:
Breakout Line: Watch for color changes to identify bullish or bearish conditions.
Moving Average: Use the MA line to confirm the overall trend direction.
Input Parameters:
Close Time Frame: Timeframe for calculating the breakout line (default is "D" for daily).
MA Length: Length of the moving average (default is 14).
MA Type: Choose between EMA or SMA (default is EMA).
Color for Close Above Breakout: Color for when the candle closes above the breakout line (default is green).
Color for Close Below Breakout: Color for when the candle closes below the breakout line (default is red).
Why Use This Indicator?:
Dynamic Visualization: The color-changing breakout line provides instant feedback on market conditions.
Trend Confirmation: The optional moving average helps confirm the overall trend direction.
Customizable: Tailor the indicator to your preferred timeframe, colors, and moving average settings.
Multi-Timeframe Analysis: Analyze breakouts on different timeframes without switching charts.
Ideal For:
Day Traders: Identify intraday breakouts and trends.
Swing Traders: Spot key breakout levels on higher timeframes.
Trend Followers: Use the moving average to confirm trend direction.
Example Use Case:
A trader notices that the breakout line turns green, indicating a bullish signal. They confirm the trend using the EMA line and enter a long position. The breakout line remains green as the price continues to rise, providing confidence in the trade.
This indicator is a powerful tool for traders who want to identify breakouts, confirm trends, and make informed trading decisions. Its dynamic and customizable features make it suitable for a wide range of trading strategies and timeframes.
Disclaimer:
The Dynamic Breakout with EMA/SMA and Color Shifts indicator is a tool designed to assist traders in identifying potential breakout levels and market trends. However, it is important to understand the following:
Not Financial Advice:
This indicator is for educational and informational purposes only. It does not constitute financial, investment, or trading advice. Always conduct your own research and consult with a licensed financial advisor before making any trading decisions.
No Guarantees:
Trading in financial markets involves significant risk, and there is no guarantee of profits. Past performance is not indicative of future results. The indicator is based on historical data and may not accurately predict future price movements.
Use at Your Own Risk:
You are solely responsible for any trades or decisions you make using this indicator. The creator of this tool is not liable for any losses or damages resulting from its use.
Limitations:
The indicator relies on technical analysis and may not account for fundamental factors, news events, or other market-moving variables. Always use it in conjunction with other analysis tools and risk management strategies.
Customization:
While the indicator is highly customizable, improper settings may lead to inaccurate signals. Ensure you understand the inputs and adjust them according to your trading strategy.
Test Before Use:
Before using this indicator in live trading, test it thoroughly in a demo account or backtest it to ensure it aligns with your trading style and objectives.
By using this indicator, you acknowledge and agree to the above disclaimer. Trade responsibly and always prioritize risk management.
Nobitadqt trading systemXác nhận có quán tính hoặc cấu trúc đỉnh đáy
Xác định xu hướng chính trên khung D1/D2
Điều kiện vào lệnh Long & Short
EMA Crossover Strategy 50 - 21 filtro adx para //@version=6
indicator("EMA Crossover Strategy - Señales Simples", overlay=true)
// Parámetros para EMAs, SMA y VWAP
emaLengthFast = input.int(21, "EMA Rápida", minval=1)
emaLengthSlow = input.int(50, "EMA Lenta", minval=1)
smaLength = input.int(200, "SMA", minval=1)
// Desactivar filtros por defecto para generar más señales
useRsiFilter = input.bool(false, "Usar filtro RSI")
useMacdFilter = input.bool(false, "Usar filtro MACD")
useAdxFilter = input.bool(false, "Usar filtro ADX")
// Cálculo de EMAs, SMA y VWAP
emaFast = ta.ema(close, emaLengthFast)
emaSlow = ta.ema(close, emaLengthSlow)
sma200 = ta.sma(close, smaLength)
vwap = ta.vwap(close)
// Cálculo básico: sólo cruces de EMA sin filtros
crossUp = ta.crossover(emaFast, emaSlow)
crossDown = ta.crossunder(emaFast, emaSlow)
// Filtros opcionales (desactivados por defecto)
if (useRsiFilter)
rsi = ta.rsi(close, 14)
crossUp := crossUp and rsi < 30
crossDown := crossDown and rsi > 70
if (useMacdFilter)
= ta.macd(close, 12, 26, 9)
crossUp := crossUp and macdLine > signalLine
crossDown := crossDown and macdLine < signalLine
if (useAdxFilter)
= ta.dmi(14, 14)
crossUp := crossUp and adx > 20
crossDown := crossDown and adx > 20
// Visualización de las medias móviles
plot(emaFast, "EMA 21", color=color.blue, linewidth=2)
plot(emaSlow, "EMA 50", color=color.red, linewidth=2)
plot(sma200, "SMA 200", color=color.purple, linewidth=2)
plot(vwap, "VWAP", color=color.orange, linewidth=2)
// Visualización de señales - Tamaño normal y solo triángulos
plotshape(crossUp, title="Compra", location=location.belowbar, color=color.green, style=shape.triangleup, size=size.small)
plotshape(crossDown, title="Venta", location=location.abovebar, color=color.red, style=shape.triangledown, size=size.small)
// Alertas
alertcondition(crossUp, title="Alerta de Compra", message="Señal de Compra - Cruce de EMA")
alertcondition(crossDown, title="Alerta de Venta", message="Señal de Venta - Cruce de EMA")
3D Clock | Live Time [CHE] Presentation: 3D Clock | Live Time
Slide 1 – Title & Introduction
🔹 Title: *3D Clock | Live Time *
🔹 Technology: TradingView Pine Script (Version 6)
🔹 Purpose:
✔️ A visually appealing 3D clock indicator displaying live time in real-time.
✔️ Customizable clock face, hands, colors, and time zones for a unique trading experience.
✔️ A cutting-edge tool for traders who value both functionality and aesthetics.
Slide 2 – The Power of a 3D Clock in Trading
💡 Why do traders need a 3D clock?
✔️ Time awareness: Know the exact moment markets open, close, or react to news.
✔️ Visual clarity: A dynamic and easy-to-read display enhances market timing strategies.
✔️ Customization & personalization: Make it fit your unique trading style!
🚀 Stand out with a beautifully designed, interactive clock while keeping precision at your fingertips!
Slide 3 – Fully Customizable Input Parameters
🎨 Personalize your trading clock!
✔️ Clock Size (`CLOCK_RADIUS`): From 50 to 500 pixels for ultimate flexibility.
✔️ Camera Angle (`CAMERA_ANGLE`): Adjust from 0° (top-down) to 90° (flat-side) for the best perspective.
✔️ Resolution (`SEGMENTS`): Up to 64 segments for a smooth and detailed clock face.
💡 Your clock, your way – optimized for any screen and trading setup!
Slide 4 – Custom Hands & Colors for Maximum Visibility
⏳ Perfectly Calibrated Hands:
✔️ Hour Hand Length (`HOUR_HAND_LENGTH`) – 10 to 200 pixels.
✔️ Minute Hand Length (`MINUTE_HAND_LENGTH`) – 10 to 200 pixels.
✔️ Second Hand Length (`SECOND_HAND_LENGTH`) – 10 to 200 pixels.
🎨 Color Customization:
✔️ Clock Face (`CLOCK_COLOR`) – Choose your preferred tone.
✔️ Hour Hand (`HOUR_COLOR`) – Default: 🔴 Red (can be changed).
✔️ Minute Hand (`MINUTE_COLOR`) – Default: 🟢 Green (can be changed).
✔️ Second Hand (`SECOND_COLOR`) – Default: 🟡 Yellow (can be changed).
🚀 Enhance clarity and style—match the clock to your trading theme!
Slide 5 – Advanced Time Zone & DST Support
🌍 Trade in any time zone, effortlessly!
✔️ Select from 24 time zones – from New York to Tokyo to London.
✔️ Enable Daylight Saving Time (DST) with just one click.
✔️ Stay in sync with global markets without manually adjusting your clock!
💡 Never miss a trade due to incorrect time settings again!
Slide 6 – Cutting-Edge 3D Visualization
🖥️ How does it work?
✔️ Real-time 3D rendering: Simulates depth & perspective for an authentic look.
✔️ Mathematical precision: Uses trigonometric calculations for accurate rotation.
✔️ Dynamic perspective adjustment: Rotate and scale for the best viewing angle.
💡 A next-level, interactive experience for traders who demand excellence!
Slide 7 – Smart Labeling & Digital Time Display
🕒 Stay focused with clear hour markers!
✔️ Hour Labels (`LABEL_SIZE`) – Small, Normal, Large, Huge.
✔️ Digital Time Display (`DIGITAL_SIZE`) – Keep track of HH:MM:SS at a glance.
✔️ Custom Vertical Offset (`DIGITAL_OFFSET`) – Adjust the digital time position.
🚀 Designed for readability, clarity, and precision!
Slide 8 – Seamless Integration with Your TradingView Setup
✔️ Works flawlessly with all TradingView charts.
✔️ Adjustable scaling and overlay options for a clutter-free interface.
✔️ Enhances professional and beginner traders' experiences alike.
💡 Your trading environment should be as powerful as your strategy!
Slide 9 – The Future of Time Visualization in Trading
✅ Precision-engineered for professional traders.
✅ Highly customizable to match any trading workflow.
✅ Designed to keep you ahead of the market—always on time.
🚀 Take your trading to the next level with the ultimate 3D clock!
💡 Available now – integrate it into your TradingView setup today!
Slide 10 – Questions & Next Steps
❓ Want a custom version for your strategy?
📩 Let’s discuss how this can be tailored for your needs!
🌍 Join the future of trading tools – upgrade your TradingView experience today!
🔥 3D Clock | Live Time – The Ultimate Timekeeping Solution for Traders!
This sales-oriented presentation highlights the benefits, features, and real-world impact of your 3D Trading Clock, making it an attractive solution for traders looking for precision, style, and functionality. 🚀
Volume Percentage//@version=5
indicator("Volume Percentage", overlay=false)
// Input for the length of the period to calculate average volume
length = input.int(20, title="Average Volume Length", minval=1)
// Calculate the average volume over the specified length
avg_volume = ta.sma(volume, length)
// Calculate the volume percentage
volume_percent = (volume / avg_volume) * 100
// Plot the volume percentage
plot(volume_percent, title="Volume %", color=color.blue, linewidth=2)
// Optional: Add a horizontal line for 100% (baseline)
hline(100, title="100% Baseline", color=color.gray, linestyle=hline.style_dotted)
// Display the volume percentage value on the chart
label_text = "Vol %: " + str.tostring(volume_percent, "#.##") + "%"
label.new(bar_index, volume_percent, label_text, style=label.style_label_down, color=color.blue, textcolor=color.white)
Wick Reversal Strategy with Body ConditionThe Wick Reversal strategy identifies potential trend reversals by analyzing candlestick patterns, focusing on wick length and body closure. When a candle closes near its high or low after forming a long wick, it signals a possible reversal. A long upper wick with a close near the low suggests bearish reversal potential, while a long lower wick with a close near the high indicates bullish reversal potential. This code automates the detection of such patterns, enabling traders to capitalize on early reversal signals. By incorporating body closure direction, it enhances accuracy, providing actionable insights for both uptrend and downtrend scenarios.
It is recommended to use this on 15 minutes, 30 minutes and 1hr time frames.
EMA20 50 100 200 timeframe adjustableEMA 20 50 100 200 with timeframe adjustable,easier to focus reaction when 1m price touched bigger timeframe,like 15m or 1H
Dynamic EMAs
This indicator provides a flexible approach to technical analysis by allowing users to customize the periods of Exponential Moving Averages (EMAs) directly within PineScript. Unlike static EMAs, this dynamic version adapts to different market conditions based on user-defined inputs, offering a tailored perspective on trend analysis.
What Are EMAs?
Exponential Moving Averages (EMAs) are a type of moving average that assigns greater weight to recent price data. This makes them more responsive to new information compared to simple moving averages (SMAs). EMAs are commonly used to:
Identify Trend Direction: By smoothing out price data, EMAs help traders discern the overall direction of the market.
Generate Trading Signals: Crossovers between different EMAs, or between an EMA and the price, can indicate potential buy or sell opportunities.
Assess Dynamic Support and Resistance: EMAs often act as dynamic levels of support and resistance, adjusting as the market moves.
By incorporating dynamic user inputs, the indicator allows traders to select the specific EMA lengths that best suit their strategies, ensuring a more adaptable and personalized analysis tool.
Alden Trading SystemĐây là một chỉ báo kết hợp RSI,để xác định tín hiệu giao dịch chính xác hơn nobitadinhquoctuan
Black Rhino : EMA and SMAUsed to determine the underlying trend direction.
Day Trade - 5 EMA over 10 EMA
Short Term Uptrend - 20 EMA over 40 EMA
Medium Term Uptrend - 50 SMA over 150 SMA
Long Term Uptrend - Price over 200 SMA
Long Term Uptrend Order
50 SMA over 100 SMA; 100 SMA over 150 SMA, 150 SMA over 200 SMA
Watch for Dip on Uptrend - Price bounce of 50/100/150 or 200 SMA
Alden Trading SystemĐây là một chỉ báo kết hợp RSI, EMA, WMA, SMC, FVG và CVD để xác định tín hiệu giao dịch chính xác hơn - nobitadinhquoctuan
Elite Quadro Stochastic RSIIndicator is Combining 4 different timeframe Stochastic RSI and show buy signal when all of them are oversold and sell signal when all of them are overbought.
Default settings are set up for 15 minute timeframe:
K1 - 15M (period = 14)
K2 - 30M (period = 28)
K3 - 1H (period = 56)
K4 - 2H (period = 112)
It indicates top and bottoms of given period.
Its good to use as a confirmation indicator.
Feel free to comment and use it.
Greetings!
EMA Crossover with VWAP and SMA//@version=5
// Indicator: EMA Crossover with VWAP and SMA 200
indicator("EMA Crossover with VWAP and SMA", overlay=true)
// Definir las EMAs
ema21 = ta.ema(close, 21)
ema50 = ta.ema(close, 50)
// Definir VWAP y SMA 200
vwap_line = ta.vwap(hlc3)
sma200 = ta.sma(close, 200)
// Detectar cruces
crossOver = ta.crossover(ema21, ema50)
crossUnder = ta.crossunder(ema21, ema50)
// Plotear las líneas
plot(ema21, color=color.blue, title="EMA 21", linewidth=2)
plot(ema50, color=color.red, title="EMA 50", linewidth=2)
plot(vwap_line, color=color.purple, title="VWAP", linewidth=1)
plot(sma200, color=color.orange, title="SMA 200", linewidth=2)
// Señales de compra y venta
plotshape(crossOver, title="Compra", location=location.belowbar, color=color.green, style=shape.triangleup, size=size.small)
plotshape(crossUnder, title="Venta", location=location.abovebar, color=color.red, style=shape.triangledown, size=size.small)
// Alertas
alertcondition(crossOver, title="Señal de Compra", message="EMA 21 cruza por encima de EMA 50 - Posible Compra")
alertcondition(crossUnder, title="Señal de Venta", message="EMA 21 cruza por debajo de EMA 50 - Posible Venta")