HL RegressionLinear Regression on two intervals. Analysis is on the high and low relative to an SMA for the specific number of minutes look back. Importantly the analysis is locked in no matter your visual timeframe. The number of minutes determines the analysis not the number of candles.
Hareketli Ortalamalar
GoldTrend-[NDTECH]The ndtech-GrowthGenius indicator is a custom trading tool designed to enhance trading decisions, particularly when used in conjunction with the MACD (Moving Average Convergence Divergence) indicator. Below is a detailed explanation of how it works and how to use it effectively in trading:
Key Features of ndtech-GrowthGenius Indicator
MACD-Based Enhancement:
The ndtech-GrowthGenius indicator builds on the traditional MACD by adding additional layers of analysis, such as trend strength, momentum confirmation, and potential reversal signals.
It uses the MACD line, signal line, and histogram but incorporates advanced algorithms to filter out noise and improve accuracy.
Trend Identification:
The indicator helps identify strong trends by analyzing the slope and divergence of the MACD histogram.
It highlights potential trend continuations or reversals by combining MACD data with other technical factors.
Momentum Confirmation:
The ndtech-GrowthGenius indicator provides additional momentum signals, such as overbought/oversold conditions, to confirm MACD crossovers.
Custom Alerts:
It includes customizable alerts for MACD crossovers, histogram divergences, and trend changes, making it easier for traders to act on signals in real-time.
User-Friendly Visualization:
The indicator is designed to be visually intuitive, with color-coded histograms, arrows, or other markers to highlight key trading opportunities.
How to Use ndtech-GrowthGenius with MACD
Install the Indicator:
Add the ndtech-GrowthGenius indicator to your trading platform (e.g., TradingView, MetaTrader).
Ensure the MACD indicator is also applied to the chart for comparison.
Identify MACD Crossovers:
Look for the MACD line crossing above the signal line (bullish signal) or below the signal line (bearish signal).
Use the ndtech-GrowthGenius indicator to confirm the strength of the crossover.
Analyze Histogram Divergence:
Pay attention to divergences between the MACD histogram and price action.
The ndtech-GrowthGenius indicator will highlight significant divergences that may indicate potential reversals.
Check Momentum Levels:
Use the momentum confirmation feature to ensure the market is not overbought or oversold before entering a trade.
Set Alerts:
Configure alerts for key signals, such as MACD crossovers or histogram peaks/troughs, to stay updated on potential trading opportunities.
Combine with Other Indicators:
For better accuracy, combine the ndtech-GrowthGenius indicator with other tools like RSI, moving averages, or support/resistance levels.
Example Trading Strategy
Entry:
Enter a long position when:
The MACD line crosses above the signal line.
The ndtech-GrowthGenius indicator confirms strong bullish momentum.
The histogram shows increasing positive values.
Exit:
Exit the trade when:
The MACD line crosses below the signal line.
The ndtech-GrowthGenius indicator shows weakening momentum or a bearish divergence.
Stop Loss and Take Profit:
Place a stop loss below the recent swing low (for long positions) or above the recent swing high (for short positions).
Set a take profit level based on risk-reward ratio (e.g., 1:2 or 1:3).
Advantages of ndtech-GrowthGenius
Improved Accuracy: Reduces false signals by filtering out market noise.
Customizable: Can be tailored to suit different trading styles and timeframes.
Real-Time Alerts: Helps traders act quickly on emerging opportunities.
Limitations
Lagging Nature: Like MACD, the ndtech-GrowthGenius indicator is based on historical data and may lag during highly volatile market conditions.
Requires Confirmation: Should be used alongside other technical analysis tools for best results.
Chart Box Session Indicator [The Quant Science]This indicator allows highlighting specific time sessions within a chart by creating colored boxes to represent the price range of the selected session. Is an advanced and flexible tool for chart segmenting trading sessions. Thanks to its extensive customization options and advanced visualization features, it allows traders to gain a clear representation of key market areas based on chosen time intervals.
The indicator offers two range calculation modes:
Body to Body: considers the range between the opening and closing price.
Wick to Wick: considers the range between the session's low and high.
Body To Body
Wick to Wick
Key Features
1. Session Configuration
- Users can select the time range of the session of interest.
- Option to choose the day of the week for the calculation.
- Supports UTC timezone selection to correctly align data.
2. Customizable Visualization
- Option to display session price lines.
- Ability to show a central price line.
- Extension of session lines beyond the specified duration.
3. Design Display Configuration
- Three different background configurations to suit light and dark themes.
- Two gradient modes for session coloring:
- Centered: the color is evenly distributed.
- Off-Centered: the gradient is asymmetrical.
How It Works
The indicator determines whether the current time falls within the selected session, creating a colored box that highlights the corresponding price range. Depending on user preferences, the indicator draws horizontal lines at the minimum and maximum price levels and, optionally, a central line.
During the session:
- The lowest and highest session prices are dynamically updated.
- The range is divided into 10 bands to create a gradient effect.
- A colored box is generated to visually highlight the chosen session.
If the Extend Lines option is enabled, price lines continue even after the session ends, keeping the range visible for further analysis.
This indicator is useful for traders who want to analyze price behavior in specific timeframes. It is particularly beneficial for strategies based on market sessions (e.g., London or New York open) or for identifying accumulation and distribution zones.
4 EMAs with Labels4 EMAs with Labels
This simple, clean indicator displays four Exponential Moving Averages (EMAs) with customizable periods, each accompanied by a clear label directly on the chart.
Features:
Four pre-configured EMAs (21, 50, 100, and 200 periods)
Fully customizable periods, colors, and labels
Clear on-chart labels that identify each EMA
Option to show/hide individual EMAs
Compact label formatting with adjustable position
Perfect for traders who want to track key moving averages without having to remember which color represents which period. The default configuration includes the most commonly used EMAs for trend identification and support/resistance analysis.
Easily customize this indicator to fit your personal trading strategy and visual preferences while maintaining a clean, uncluttered chart.
Mark Minervini Buy Signal# Mark Minervini Buy Signal Indicator
This indicator implements Mark Minervini's "Stage 2 Uptrend" buy criteria from his SEPA (Specific Entry Point Analysis) methodology as described in his books "Trade Like a Stock Market Wizard" and "Think & Trade Like a Champion". The script identifies potential buy setups based on Minervini's technical criteria for stocks showing strong momentum characteristics.
## How It Works
The indicator evaluates various technical conditions to identify stocks in a Stage 2 uptrend according to Minervini's methodology:
1. **Moving Average Alignment**
- 150-day MA above 200-day MA (confirming overall uptrend)
- 200-day MA trending up (compared to 20 days ago)
- 50-day MA above both 150-day and 200-day MAs (showing recent strength)
- Price above all major moving averages (50, 150, 200-day MAs)
2. **Price Relative to 52-Week Range**
- Price at least 25% above 52-week low (showing strong recovery)
- Price within 75-95% of 52-week high (room for further upside)
3. **Relative Strength**
- Stock ranks in the top 30% based on 100-day price performance
- This implements Minervini's emphasis on buying only strong performers
4. **Volume Criteria**
- Volume above its 50-day moving average (showing increasing interest)
## How to Use This Indicator
When all conditions are met, the indicator displays a green triangle below the price bar and colors the background green. These signals identify potential candidates for further analysis. According to Minervini's methodology, you should:
1. Use this as a screening tool to identify potential candidates
2. Perform additional chart analysis to identify specific entry points
3. Look for decreased volatility and proper bases or consolidation patterns
4. Consider broader market conditions and sector strength before entering
## Sources and Credit
This indicator is based on Mark Minervini's trading methodology as outlined in:
1. Minervini, Mark. "Trade Like a Stock Market Wizard: How to Achieve Super Performance in Stocks in Any Market" (2013)
2. Minervini, Mark. "Think & Trade Like a Champion: The Secrets, Rules & Blunt Truths of a Stock Market Wizard" (2016)
3. Minervini, Mark. "Mindset Secrets for Winning: How to Bring Personal Power to Everything You Do" (2019)
4. Interviews and workshops where Minervini has described his SEPA methodology
The specific criteria implemented are derived from Minervini's "Stage Analysis" framework, particularly focusing on Stage 2 uptrends which he considers optimal for buying opportunities.
## Disclaimer
This indicator is provided for informational purposes only. It attempts to reproduce Minervini's published criteria but should be used as part of a complete trading strategy with proper risk management. Minervini's complete methodology includes additional subjective elements that cannot be fully automated.
EMA IndicatorThis indicator is optimized for traders seeking an edge in volatile markets, offering early entries on high-volume days like Tuesdays, where institutional activity is at its peak. It aligns with a systematic trading approach, minimizing subjectivity while maximizing consistency.
Sai Ema CrossoverSimple ema crossover indicator can be used to scalp ( 1min to 5min timeframes ) and
swing(1hr to 1 day timeframes). tight stop loss and decent take profit target can help a lot instead of actually waiting for a sell signal
5 EMA Lines with Monday LinesThis Pine Script indicator for TradingView plots five Exponential Moving Averages (EMAs), draws vertical lines at specific Mondays, and marks key price levels between them.
Investor ToolSummary of the investor tool Indicator The 2-Year MA Multiplier is a long-term investment tool for Bitcoin, designed to identify optimal buying and selling periods.
How It Works:
Buying below the 2-Year MA has historically led to high returns. Selling above 2-Year MA × 4 has been effective for taking profits.
Rolling Multi-Day EMA + VR1 DEMABarRolling Multi-Day EMA + VR1 DEMABar Indicator
This indicator combines rolling multi-day exponential moving averages (EMAs) with VR1 DEMABar logic to provide insights into price trends, volume dynamics, and potential reversal signals.
Section 1: Rolling Multi-Day EMA Logic
Purpose: Calculates EMAs based on a rolling trading day length, adapting to different timeframes and instrument types (Futures or Stocks).
Trading Day Lengths: Adjusts dynamically based on the chart timeframe:
1-minute, 3-minute, 5-minute, and 15-minute charts have pre-defined lengths for a "trading day."
Multi-day EMAs are calculated for Half-Day, 1-Day, 2-Day, 3-Day, 4-Day, and 5-Day periods.
The EMAs are color-coded with a gradient from green to purple for clear trend visualization.
Section 2: VR1 DEMABar Logic
Purpose: Identifies high-volume price movements and engulfing patterns that may signal potential reversals.
Volume-to-Range Ratio: Analyzes the ratio of volume to price range and applies two EMAs to detect significant activity.
Threshold-Based Bar Coloring: Highlights bars above a threshold in yellow to emphasize high-volume anomalies.
Engulfing Pattern Detection: Identifies bullish and bearish engulfing patterns, adjusting the background color:
Green Background: Bullish engulfing pattern (potential upward reversal).
Red Background: Bearish engulfing pattern (potential downward reversal).
This indicator provides a blend of trend-following and volume-based anomaly detection, helping traders spot potential trend shifts and key volume-driven movements efficiently.
VWAP Horizon Suite Optimized - CoffeeKillerVWAP Horizon Suite Optimized - User Guide
Overview
The VWAP Horizon Suite Optimized is a comprehensive technical analysis tool for TradingView designed to enhance your trading strategy with Volume Weighted Average Price (VWAP) analysis, standard deviation bands, and customizable Exponential Moving Averages (EMAs). This indicator provides a robust framework for identifying potential support and resistance levels, price momentum, and market trends.
Key Features
- **Daily VWAP with Session Reset**: Automatically resets at 17:00 (5:00 PM) each day
- **Customizable Standard Deviation/Percentage Bands**: Up to 3 bands above and below VWAP
- **High/Low Point Detection**: Visual markers for significant price levels
- **Multiple Customizable EMAs**: 8 different EMAs that can be individually toggled and styled
- **Visual Customization**: Adjustable colors, fills, and styles for all elements
VWAP Settings
- **Source**: Determines the price data used to calculate VWAP (default: HLC3 - High, Low, Close average)
Bands Settings
- **Bands Calculation Mode**: Choose between "Standard Deviation" or "Percentage" methods
- **Show Band #1, #2, #3**: Toggle visibility for each band
- **Band Multiplier #1, #2, #3**: Adjust the distance from VWAP (in standard deviations or percentage)
- **Show Fills**: Enable colored fills between bands for better visualization
Visualization Settings
- **Show High/Low Markers**: Display diamond markers for local high and low points relative to VWAP, these reset based on the price crossing the VWAP Line.
EMA Settings
The indicator provides 8 customizable EMAs (8, 13, 21, 26, 48, 50, 100, and 200) with individual controls:
- **Show EMA X**: Toggle visibility for each EMA
- **EMA X Period**: Adjust the period length for calculation
- **EMA X Color**: Customize the color of each EMA
- **EMA Line Width**: Set the width for all EMA lines
How to Use
Basic VWAP Analysis
The core VWAP line (blue) represents the average price weighted by volume since the start of the session (17:00 daily reset). This serves as a dynamic support/resistance level and reference point for intraday trading.
1. **Price above VWAP**: Generally bullish short-term sentiment
2. **Price below VWAP**: Generally bearish short-term sentiment
3. **Crosses of VWAP**: Potential shift in short-term momentum
Standard Deviation Bands
The bands surrounding VWAP help identify potential support, resistance, and volatility levels:
- **Band #1 (±1σ)**: Price often reverts to VWAP when reaching these levels
- **Band #2 (±2σ)**: Stronger support/resistance areas, possible reversal zones
- **Band #3 (±3σ)**: Extreme price levels, often indicating overbought/oversold conditions
High/Low Point Detection
Purple and yellow diamond markers identify significant swing highs and lows relative to VWAP, helping you recognize potential reversal points or continuation patterns. (These repaint in a effort to find the max high/low point from the VWAP Line)
EMA Strategy
The customizable EMAs can be used to:
- Find potential support/resistance levels
- Create crossover systems
- Analyze market structure
Common EMA combinations include:
- 8 & 21 for short-term trends
- 50 & 200 for long-term trends and the "Golden Cross/Death Cross"
- 13 & 48 for the "New Golden Cross" - a modern alternative gaining popularity among traders
- 8, 13, 21 for complex short-term momentum analysis
Advanced Usage Tips
For Day Traders
1. **Opening Range Analysis**: Watch how price reacts to VWAP in the first hour of trading
2. **VWAP Reversions**: Look for trades when price touches outer bands and reverses toward VWAP
3. **Band Breakouts**: Strong moves beyond Band #2 may indicate momentum for continuation
For Swing Traders
1. **Use alongside daily/weekly support-resistance levels**
2. **Combine with EMA crossovers for trend confirmation**
3. **Identify potential reversal zones where price reaches Band #3**
Combined Strategies
- **EMA + VWAP Confluence**: Strong signals occur when EMA lines and VWAP/bands align at the same price level
- **High/Low + Band Touch**: When a high/low marker appears near a band, it may indicate a stronger support/resistance level
Conclusion
The VWAP Horizon Suite Optimized provides a comprehensive set of tools for price analysis based on volume-weighted data and exponential averages. By understanding and properly configuring the various components, you can create a powerful visual framework for identifying potential trading opportunities across multiple timeframes.
Remember that no indicator provides perfect signals, and the VWAP Horizon Suite works best when used as part of a complete trading strategy that includes risk management, multiple confirmation tools, and proper analysis of market conditions.
DISCLAIMER
**DISCLAIMER: This indicator and its signals are intended solely for educational and informational purposes. They do not constitute financial advice. Trading involves significant risk of loss. Always conduct your own analysis and consult with financial professionals before making trading decisions.**
RSI Signal with filters by S.Kodirov📌 English
RSI Signal with Multi-Timeframe Filters
This TradingView indicator generates RSI-based buy and sell signals on the 15-minute timeframe with additional filtering from other timeframes (5M, 30M, 1M).
🔹 Signal Types:
✅ 15/5B & 15/5S – RSI 15M filtered by 5M
✅ 15/30/1B & 15/30/1S – RSI 15M filtered by 30M & 1M
✅ 15B & 15S – RSI 15M without filters
🔹 How It Works:
Signals are displayed as colored triangles on the chart.
Labels indicate the type of signal (e.g., 15/5B, 15S).
Alerts notify users when a signal appears.
🚀 Best for short-term trading with RSI confirmation from multiple timeframes!
📌 Русский
Индикатор RSI с мульти-таймфрейм фильтрами
Этот индикатор для TradingView генерирует сигналы покупки и продажи на 15-минутном таймфрейме, используя фильтрацию с других таймфреймов (5M, 30M, 1M).
🔹 Типы сигналов:
✅ 15/5B & 15/5S – RSI 15M с фильтром 5M
✅ 15/30/1B & 15/30/1S – RSI 15M с фильтрами 30M и 1M
✅ 15B & 15S – RSI 15M без фильтров
🔹 Как это работает:
Сигналы отображаются как цветные треугольники на графике.
Подписи показывают тип сигнала (например, 15/5B, 15S).
Алерты уведомляют трейдера о появлении сигнала.
🚀 Идеально для краткосрочной торговли с подтверждением RSI на нескольких таймфреймах!
📌 O'zbekcha
Ko'p vaqt oralig‘idagi RSI signallari
Ushbu TradingView indikatori 15 daqiqalik vaqt oralig‘ida RSI asosida sotib olish va sotish signallarini yaratadi. Bundan tashqari, boshqa vaqt oralig‘idagi (5M, 30M, 1M) RSI filtrlarini ham hisobga oladi.
🔹 Signal turlari:
✅ 15/5B & 15/5S – 5M bilan filtrlangan RSI 15M
✅ 15/30/1B & 15/30/1S – 30M va 1M bilan filtrlangan RSI 15M
✅ 15B & 15S – Filtrsiz RSI 15M
🔹 Qanday ishlaydi?
Signallar rangli uchburchaklar shaklida ko‘rsatiladi.
Yozuvlar signal turini ko‘rsatadi (masalan, 15/5B, 15S).
Xabarnomalar yangi signal paydo bo‘lganda treyderni ogohlantiradi.
🚀 Ko‘p vaqt oralig‘ida RSI tasdig‘i bilan qisqa muddatli savdo uchun ideal!
TRENDOGRAPH-GenAIIntroduction
Unlock the power of early trend detection with TRENDOGRAPH! This flexible and customizable indicator, developed with unique logic and AI support, leverages advanced prediction methods to provide early buy/sell signals, setting it apart from traditional indicators.
Key Features
MACD Histogram: Measures momentum changes.
MACD Reversal: Detects potential trend reversals.
RSI: Identifies overbought or oversold conditions.
Ichimoku: Analyzes support and resistance levels.
Stochastic: Highlights potential price reversals.
Supertrend: Confirms trend direction.
Customization
Adjust the weights of each indicator to find the most accurate combination for your trading strategy. Experiment with different parameters to optimize performance for various assets.
Warnings!
Each chart has unique characteristics.
Use different parameters for crypto and stocks for maximum accuracy.
Validate parameter weights and threshold levels with historical data for each asset.
This tool is designed to help you create your own unique indicator, not as a standalone solution.
Disclaimer: Use at your own risk. This indicator is for testing and comparison purposes only.
Price Above 20 DMA, 20 SMA, 200 SMA with Buy/Sell ConditionsGuyse Daily Indicator. Uses daily and weekly moving averages to provide buy conditions.
Estrategia RSI + EMAsIndicadores:
RSI: Calculado con un período de 14. Considera que está sobrecomprado cuando el valor es mayor a 70 y sobrevendido cuando es menor a 30.
EMA50 y EMA200: Son las medias móviles exponenciales con períodos de 50 y 200, respectivamente.
Condiciones de compra:
El RSI debe estar por debajo de 30 (condición de sobreventa).
La EMA 50 debe estar por encima de la EMA 200 (indica una tendencia alcista).
El precio debe cruzar hacia arriba la EMA 50.
Condiciones de venta:
El RSI debe estar por encima de 70 (condición de sobrecompra).
La EMA 50 debe estar por debajo de la EMA 200 (indica una tendencia bajista).
El precio debe cruzar hacia abajo la EMA 50.
Señales visuales:
Se muestra un label verde debajo de la barra cuando se genera una señal de compra (Long).
Se muestra un label rojo encima de la barra cuando se genera una señal de venta (Short).
Alertas:
El script también tiene configuradas alertas para que puedas configurar notificaciones cuando se cumplan las condiciones para compra o venta.
MOST with Filterswith various filters RSI, price, trend change
trying to filter fluctuations during consolidation periods
Daily separator, Open, HTF candlesScript Overview
This TradingView script is designed to enhance market structure analysis by providing a clear visual representation of key trading elements. It integrates multiple technical features that help traders assess price action, trend direction, and potential trade setups efficiently.
Main Features & Functionality
1. Daily Separator
• A vertical line is plotted to clearly mark the start of each trading day.
• Helps traders visually differentiate daily sessions, making it easier to analyze price action over different periods.
2. Exponential Moving Average (EMA) with EMA Continuity Table
• The script calculates an EMA of choice and displays whether the price is above or below it across five customizable timeframes.
• Use Case:
• Identifies if the price is in a retracement or a trend continuation phase.
• Helps determine trend strength—if price is consistently above the EMA across multiple timeframes, the trend is bullish; if below, it’s bearish.
• Aids in making trading decisions such as whether to go long or short.
3. Higher Timeframe (HTF) Candles
• Plots candles from a higher timeframe (HTF) onto the current chart.
• Use Case:
• Provides a macro view of price action while trading on a lower timeframe.
• Helps traders see if the price is interacting with HTF support/resistance levels.
• Useful for confirming entries/exits based on the HTF trend.
4. Opening Line
• Draws a daily opening price level, allowing traders to track price movement relative to the open.
• Use Case:
• Useful for intraday traders who analyze whether price is holding above or below the daily open.
• Helps in identifying key price behaviors, such as breakouts, fakeouts, or potential reversals.
Additional Considerations
• Customization: The script allows traders to adjust key parameters such as the EMA length, timeframes for EMA continuity, and HTF candle settings.
• Market Structure & Decision Making: By combining EMAs, HTF analysis, and the daily open, the script assists traders in determining whether price action aligns with their trade thesis.
• Potential Enhancements:
• Adding alerts for EMA crossovers or when price crosses the daily open.
• Incorporating color coding for the EMA table to improve readability.
Use Case Summary
This script is particularly beneficial for trend-following traders, intraday traders, and swing traders who want to:
1. Confirm market direction with EMA-based trend analysis.
2. Monitor HTF price action while trading on lower timeframes.
3. Track intraday price movement relative to the daily open.
4. Differentiate trading sessions for better structure analysis.
Yatin EMA VWAP Multiple Buy Sell SignalTHis is EMA special indicator with buy and sell indicator.
for intraday use time frame - 3 min
for scalper - use - 1 min time frame
WAVE(구름)시그널WAVE(구름) 시그널 - Volumatic VIDYA by BigBeluga
🔹 개요
WAVE(구름) 시그널은 변동성 기반의 VIDYA(Variable Index Dynamic Average) 지표를 활용하여 시장의 트렌드를 시각적으로 표현하는 맞춤형 인디케이터입니다. 변동성과 모멘텀을 고려한 스마트한 필터링을 통해 트렌드 반전, 지지/저항 레벨, 유동성 영역 등을 효과적으로 탐지할 수 있습니다.
🔹 기능 및 특징
✅ VIDYA 기반 트렌드 분석: 시장의 모멘텀을 반영하여 지속적인 상승/하락 트렌드를 감지
✅ 유동성 영역 시각화: 주요 지지/저항 구간을 표시하여 고액 거래 구역을 쉽게 식별 가능
✅ ATR(평균 진폭) 기반 밴드: 변동성을 반영한 상단/하단 밴드를 활용해 트렌드 강도 분석
✅ 트렌드 변화 감지: 상승/하락 전환 지점에 ▲▼ 마커를 배치하여 매매 타이밍 포착
✅ 볼륨 기반 필터링: 거래량 변화를 감지하여 매매 신호의 신뢰도를 보완
🔹 활용 방법
📌 트렌드 매매: VIDYA 라인이 상승 전환 시 매수, 하락 전환 시 매도 시그널로 활용
📌 유동성 분석: 주요 저항/지지선에서 거래량 분포를 확인하여 진입 및 청산 전략 수립
📌 과매수/과매도 감지: ATR 기반 상/하단 밴드를 돌파하는 움직임을 통해 변동성 분석
ترکیب اندیکاتورها برای سیگنالهای پیشرفته//@version=5
indicator("ترکیب اندیکاتورها برای سیگنالهای پیشرفته", overlay=true)
// تنظیمات پارامترهای اندیکاتورها
fast_length = input.int(9, title="طول دوره MA سریع")
slow_length = input.int(21, title="طول دوره MA کند")
rsi_length = input.int(14, title="طول دوره RSI")
macd_fast_length = input.int(12, title="طول دوره MACD سریع")
macd_slow_length = input.int(26, title="طول دوره MACD کند")
macd_signal_length = input.int(9, title="طول دوره سیگنال MACD")
// محاسبه میانگینهای متحرک
fast_ma = ta.sma(close, fast_length)
slow_ma = ta.sma(close, slow_length)
// محاسبه RSI
rsi = ta.rsi(close, rsi_length)
// محاسبه MACD
= ta.macd(close, macd_fast_length, macd_slow_length, macd_signal_length)
// شرایط برای سیگنالها
buy_condition = (ta.crossover(fast_ma, slow_ma)) and (rsi < 30) and (macd_line > signal_line)
sell_condition = (ta.crossunder(fast_ma, slow_ma)) and (rsi > 70) and (macd_line < signal_line)
// نمایش سیگنالها روی نمودار
plotshape(series=buy_condition, title="سیگنال خرید", location=location.belowbar, color=color.green, style=shape.labelup, text="خرید")
plotshape(series=sell_condition, title="سیگنال فروش", location=location.abovebar, color=color.red, style=shape.labeldown, text="فروش")
// هشدارها برای سیگنالها
alertcondition(buy_condition, title="سیگنال خرید", message="سیگنال خرید ایجاد شد!")
alertcondition(sell_condition, title="سیگنال فروش", message="سیگنال فروش ایجاد شد!")
SMA 20/50/150/2004 simple SMAs to detect the symbol's trend. The SMA 20 and 50 show you the short term trend. The SMA 150 and 200 show you the long term trend. SMA is preferred over EMA due to EMA being too fast.