Bull Bear Candles with Volume ProfileUser Guide for Bull Bear Candles Indicator with Keltner Channels
Author: NellyN
Introduction
This indicator helps identify potential bullish and bearish trends in the market by analyzing buying and selling volume over two configurable timeframes. It calculates the percentage of buying and selling volume and displays the current market condition based on two moving averages for 2 periods.
Key Features
• Volume Analysis : Calculates Buy and Sell Volume for two configurable timeframes (e.g., 5 min, 15 min, 15 min. and 1 hour, etc.) and displays them as percentages.
• Moving Averages : Uses one Moving Average (MA) for two different time periods to identify trends (uptrend when shorter-term MA is above longer-term MA). You can also choose other Moving Average types like SMA, EMA, WMA, RMA, VWMA, or HMA.
• Colored Candles : Candles are colored green for bullish conditions, red for bearish conditions, and gray for neutral conditions.
• Market Condition Labels : Displays labels in table-view indicating the current market condition based on Buy and Sell Volume (Very Bullish, Very Bearish, Bullish/Bearish Retracement, Chop).
• Alerts: Generates alerts for potential buy and sell signals based on indicator conditions (Note: Enable alerts in the indicator settings).
• Visual Signals: Provides visual signals through colored candles and market condition labels in addition to alerts.
Input Parameters
• Source: Close price (default) or Heikin Ashi
• Timeframe: Select the timeframe for price and volume data used in the indicator (e.g., Daily, Hourly).
• Colored Candles On: Enable (True) or disable (False) coloring candles based on market conditions.
• Enable Alerts: Enable (True) or disable (False) alerts for buy/sell signals.
• Length of MA: Sets the length for the MAs used in trend identification (minimum 1).
• Lookback Period Vol. 1 & 2: Define the timeframes used to calculate buying and selling volume and the MA calculation (e.g., 5 min, 15 min).
Understanding the Outputs
• Cloud Fill: The area between two MAs is filled with a color that reflects the trend (green for uptrend, red for downtrend).
• Table: Shows Buy Volume, Sell Volume, Buy Percentage, Sell Percentage, and the current Market Condition Labels. (If you decide to see them uncomment them from the code simply removing the // in front of the code)
• Colored Candles and Market Condition Labels: Look for green candles and bullish labels for potential buying opportunities, and vice versa for red candles and bearish labels.
Bullish green label appears when short-term MA is above long-term MA AND Buy Volume percentage is greater than 50%.
Red cross for exiting long entry appears when we have bearish volume OR bearish crossover of the MA for the 2 periods.
Bearish red label appears when short-term MA is below long-term MA AND Buy Volume percentage is less than 50%.
Green cross for exiting short entry appears when we have bullish volume OR bullish crossover of the MA for the 2 periods.
• Bullish/Bearish Retracement: The moving averages indicate a potential trend reversal, while the Buy Volume percentage suggests a continuation of the prior trend. The candle color may be green, red, or gray depending on the current price position relative to the moving averages.
• Chop (Gray Candle): The moving averages are flat and the Buy Volume percentage is not significantly above or below 50%.
• Buy/Sell Alerts: The indicator generates alerts based on specific conditions, but these should be used in conjunction with other trading strategies and careful risk management.
Important Notes
• This indicator is for informational purposes only and should not be considered financial advice. Back-test the indicator with historical data to understand its performance before using it for live trading.
• Combine this indicator with other technical analysis tools.
Indicateurs et stratégies
Volume Volatility and Delta Indicator (HN)This Volume Volatility Indicator with Overall Average from Hossein.N helps you visualize the volatility of volume on different timeframes and compares it to the average volume over a given period. It includes several components:
Volume Volatility Indicator (Blue Line): This shows the volatility of volume relative to its moving average over a specified period. Higher values indicate more volatile trading conditions.
Long-Term Volatility Average (Orange Line): This line shows the moving average of the volume volatility indicator over a longer period. It acts as a benchmark for comparing the current volume volatility with historical trends.
Average Volume on Up Days (Green Line): Displays the average volume on days when the price is going up (green).
Average Volume on Down Days (Red Line): Displays the average volume on days when the price is going down (red).
Delta in Percentage (Blue Line): This shows the difference between the average volume of up days and down days, expressed as a percentage of the overall moving average of volume. It can be used to identify bullish or bearish volume imbalances. For example:
Positive values indicate that the volume on up days is stronger than on down days, which could suggest a bullish trend.
Negative values suggest that volume on down days is stronger than on up days, potentially indicating a bearish trend.
Zero Line (Gray Dotted Line): A reference line at 0 that helps you identify when the delta is positive or negative, and visualize the neutral point where volume is balanced between up and down days.
How to Use This Indicator:
Add to Your Chart: Copy the script above and paste it into TradingView's Pine Script editor. Click "Add to Chart" to visualize the indicator.
Interpret the Indicator:
Volume Volatility: A higher value suggests high market volatility. When volume is highly volatile, it may indicate more significant price movements or market uncertainty.
Long-Term Average of Volatility: Use this line as a reference to see whether current volatility is above or below average over a longer period.
Delta in Percentage: This is particularly useful to compare the strength of buying and selling volume. A positive delta percentage suggests strong buying pressure, while a negative delta suggests strong selling pressure. The closer the delta is to zero, the more balanced the volume between up and down days.
Use for Trend Confirmation: The indicator can help confirm trends. If the delta percentage is positive and increasing, and the volume volatility is above average, it could signal strong bullish momentum. Conversely, if the delta is negative and the volume volatility is rising, it may suggest bearish sentiment.
Risk Disclaimer:
Important: This indicator is a tool designed to help analyze market conditions. It does not guarantee success in trading and should not be used as the sole basis for making trading decisions. Always do your own research, consider other factors (e.g., price action, market news, fundamentals), and manage your risk appropriately. Trading involves significant risk, and you should only trade with money you can afford to lose. Always ensure you understand the risks involved in trading and use risk management strategies.
By using this tool, you accept full responsibility for any trading decisions and the outcomes thereof. The information presented is for educational and informational purposes only.
Multi-Timeframe ATRsThis Multi-Timeframe ATR Indicator displays the Average True Range (ATR) values from multiple timeframes on a single chart, allowing traders to assess market volatility across different time periods. The indicator calculates and plots the ATR for the 1-hour, 3-hour, 4-hour, 1-day, and 2-day timeframes, with the option to toggle each timeframe on or off based on user preferences. By visualizing these ATR values, traders can identify potential price movement expectations for various timeframes and better understand how volatility is shifting across the market. This tool is handy for traders who want to gauge volatility over different time periods and incorporate it into their trading strategies.
By evaluating higher timeframes when entering trades, a trader can better understand market conditions. This insight helps the trader make informed decisions about whether to remain in the trade for a longer period.
The indicator is fully customizable, with color-coded plots for each timeframe and optional labels that display the ATR values directly on the chart. It is ideal for traders looking to add volatility insights to their technical analysis without cluttering their charts.
TechniTrend: Volatility and MACD Trend Highlighter🟦 Overview
The "Candle Volatility with Trend Prediction" indicator is a powerful tool designed to identify market volatility based on candle movement relative to average volume while also incorporating trend predictions using the MACD. This indicator is ideal for traders who want to detect volatile market conditions and anticipate potential price movements, leveraging both price changes and volume dynamics.
It not only highlights candles with significant price movements but also integrates a trend analysis based on the MACD (Moving Average Convergence Divergence), allowing traders to gauge whether the market momentum aligns with or diverges from the detected volatility.
🟦 Key Features
🔸Volatility Detection: Identifies candles that exceed normal price fluctuations based on average volume and recent price volatility.
🔸Trend Prediction: Uses the MACD indicator to overlay trend analysis, signaling potential market direction shifts.
🔸Volume-Based Analysis: Integrates customizable moving averages (SMA, EMA, WMA, etc.) of volume, providing a clear visualization of volume trends.
🔸Alert System: Automatically notifies traders of high-volatility situations, aiding in timely decision-making.
🔸Customizability: Includes multiple settings to tailor the indicator to different market conditions and timeframes.
🟦 How It Works
The indicator operates by evaluating the price volatility in relation to average volume and identifying when a candle's volatility surpasses a threshold defined by the user. The key calculations include:
🔸Average Volume Calculation: The user selects the type of moving average (SMA, EMA, etc.) to calculate the average volume over a set period.
🔸Volatility Measurement: The indicator measures the body change (difference between open and close) and the high-low range of each candle. It then calculates recent price volatility using a standard deviation over a user-defined length.
🔸Weighted Index: A unique index is created by dividing price change by average volume and recent volatility.
🔸Highlighting Volatility: If the weighted index exceeds a customizable threshold, the candle is highlighted, indicating potential trading opportunities.
🔸Trend Analysis with MACD: The MACD line and signal line are plotted and adjusted with a user-defined multiplier to visualize trends alongside the volatility signals.
🟦 Recommended Settings
🔸Volume MA Length: A default of 14 periods for the average volume calculation is recommended. Adjust to higher periods for long-term trends and shorter periods for quick trades.
🔸Volatility Threshold Multiplier: Set at 1.2 by default to capture moderately significant movements. Increase for fewer but stronger signals or decrease for more frequent signals.
🔸MACD Settings: Default MACD parameters (12, 26, 9) are suggested. Tweak based on your trading strategy and asset volatility.
🔸MACD Multiplier: Adjust based on how the MACD should visually compare to the average volume. A multiplier of 1 works well for most cases.
🟦 How to Use
🔸Volatile Market Detection:
Look for highlighted candles that suggest a deviation from typical price behavior. These candles often signify an entry point for short-term trades.
🔸Trend Confirmation:
Use the MACD trend analysis to verify if the highlighted volatile candles align with a bullish or bearish trend.
For example, a bullish MACD crossover combined with a highlighted candle suggests a potential uptrend, while a bearish crossover with volatility signals may indicate a downtrend.
🔸Volume-Driven Strategy:
Observe how volume changes impact candle volatility. When volume rises significantly and candles are highlighted, it can suggest strong market moves influenced by big players.
🟦 Best Use Cases
🔸Trend Reversals: Detect potential trend reversals early by spotting divergences between price and MACD within volatile conditions.
🔸Breakout Strategies: Use the indicator to confirm price breakouts with significant volume changes.
🔸Scalping or Day Trading: Customize the indicator for shorter timeframes to capture rapid market movements based on volatility spikes.
🔸Swing Trading: Combine volatility and trend insights to optimize entry and exit points over longer periods.
🟦 Customization Options
🔸Volume-Based Inputs: Choose from SMA, EMA, WMA, and more to define how average volume is calculated.
🔸Threshold Adjustments: Modify the volatility threshold multiplier to increase or decrease sensitivity based on your trading style.
🔸MACD Tuning: Adjust MACD settings and the multiplier for trend visualization tailored to different asset classes and market conditions.
🟦 Indicator Alerts
🔸High Volatility Alerts: Automatically triggered when candles exceed user-defined volatility levels.
🔸Bullish/Bearish Trend Alerts: Alerts are activated when highlighted volatile candles align with bullish or bearish MACD crossovers, making it easier to spot opportunities without constantly monitoring the chart.
🟦 Examples of Use
To better understand how this indicator works, consider the following scenarios:
🔸Example 1: In a strong uptrend, observe how volume surges and volatility highlight candles right before price consolidations, indicating optimal exit points.
🔸Example 2: During a downtrend, see how the MACD aligns with volume-driven volatility, signaling potential short-selling opportunities.
EMAs CrossThis script generates a line that changes color when evaluating the values and intersections of the 7-, 14-, and 42-day exponential averages, indicating possible entry and exit points.
In general, yellow indicates the beginning of an uptrend, green confirms an uptrend, and brown indicates a downtrend.
Using this script together with the RSI can help you make decisions about the best times to enter and exit positions.
The script was created to generate an indicator in a separate window from the main chart, but adding this indicator to the main window can help you visualize and interpret market movements.
Non-repainting ticker
The objective here is to provide a "non-repainting" source to indicators, meaning being sure that data is stable and will not affect the results, w/o having to make any change into the indicators
To use it :
1- include this "NRT" indicators onto your page : nothing will be displayed, just keep it.
2- as an exemple, when running any other indicator onto this page, and willing to select "close" as a source, just select instead " NRT: close" into source input; your indicator will then run "non-repainting"
Available sources : open, high, low , close, hl2, hlc3, ohlc4, hlcc4
Daily MAs on Intraday ChartsThis is a very simple, yet powerful indicator, for intraday and swing traders.
The indicator plots price levels of key daily moving averages as horizontal lines onto intraday charts.
The key daily moving averages being:
5-day EMA
10-day EMA
21-day EMA
50-day SMA
100-day SMA
200-day SMA
The moving averages above can be toggled on and off to the users liking and different colours selected to show the locations of daily moving average price levels on intraday charts.
Below is a chart of the SPY on the 30-minute timeframe. The black line represents the price level of the SPY's 10-day EMA, and the blue line represents the price level of the SPY's 21-day EMA.
Key daily moving averages like those mentioned above can be areas of support or resistance for major indexes, ETFs, and individual stocks. Therefore, when using multiple timeframe analysis combining daily charts and intraday charts, it's useful to be aware of these key daily moving average levels for potential reversals.
This indicator clearly shows where the key daily moving average price levels are on intraday charts for the chosen ticker symbol, thus helping traders to identify potential points of interest for trading ideas - i.e., going long or pullbacks into key daily moving averages, or short on rallies into key daily moving averages subject to the trader's thoughts at the time.
By using the 'Daily MAs on Intraday Charts' the trader can now have a multi-chart layout and be easily aware of key price levels from daily moving averages when looking at various intraday timeframe charts such as the 1-minute, 5-minute, 15-minute, 30-minute, 1-hour etc. This can be essential information for opening long and short trading ideas.
ORB Screener with Trailing SLThis is an extension to our already published script ORB with ATR Trailing SL indicator
Many people requested to add screener to the existing indicator but since it's slowing down the performance heavily, we decided to add this as a separate screener.
Note: This screener does NOT plot the chart and so you want to have both plotting and screener, use both scripts together.
Overview:
The ORB Screener is a TradingView indicator designed to assist traders in identifying breakout opportunities based on the Opening Range Breakout (ORB) strategy. It features multi-symbol screening, customizable session timeframes, and a detailed table for quick visual reference and stock scanning.
The ORB Screener utilizes the ORB strategy to calculate breakout levels for multiple symbols. It identifies the high and low during a specified session (e.g., first 5 minutes after market open) and provides insights on whether the price is above the high (bullish), below the low (bearish), or between the range (neutral).
Additionally, the script calculates and displays the RSI values for each symbol, aiding traders in assessing momentum alongside breakout status.
Note: One can add up to 40 symbols for screening the stocks.
Key Features and Inputs:
ORB Session Time: Define a specific timeframe (e.g., "0915-0920") during which the ORB high and low are calculated. This serves as the foundation for identifying breakouts.
Multi-Symbol Screening: Screen up to 40 symbols at once, enabling you to monitor multiple opportunities without switching charts.
Breakout Validation:
Select from two methods for confirming a breakout: Close (based on closing prices) or Touch (based on intraday highs/lows).
Breakout Status Indicators:
Above High: Indicates a current bullish breakout when the price exceeds the ORB high.
Below Low: Indicates a current bearish breakout when the price falls below the ORB low.
Between Range: Indicates no breakout (price remains within the range).
RSI Integration : Calculates the RSI for each symbol to help traders evaluate momentum alongside breakout signals.
Customizable Table Display:
Position: Place the data table at the top, middle, or bottom of the chart and align it left, center, or right.
Size: Choose from multiple table size options for optimal visibility (Auto, Huge, Large, Normal, Small, Tiny).
Visual Feedback:
Green Background: Indicates a breakout happened at least once above the ORB high.
Red Background: Indicates a breakout happened at least once below the ORB low.
Gray Background: Indicates price is within the ORB range.
Eze Profit - Advanced Trade FilterThe Eze Profit - Advanced Trade Filter is a versatile indicator designed to help traders identify and follow trends while minimizing market noise. By utilizing a dual smooth range filtering approach, this script highlights directional bias and potential reversal points, making it an excellent tool for both trend-following and breakout strategies.
How It Works:
Dual Smooth Range Filtering:
The indicator calculates two smooth ranges: a fast range and a slow range, based on user-defined periods and multipliers.
These smooth ranges are combined to create a robust range filter that adapts to price movements.
Range Filtering Logic:
The filtered price moves only when the price exceeds a dynamic range threshold, helping to reduce false signals caused by market noise.
Trend Detection:
Upward Trend: When the filtered price rises, an upward counter tracks the trend duration.
Downward Trend: When the filtered price falls, a downward counter tracks the trend duration.
Long and Short Signal Conditions:
Long Signal: Triggered when the price is above the filter and exhibits upward momentum.
Short Signal: Triggered when the price is below the filter and exhibits downward momentum.
Features:
Customizable Inputs:
Configure fast and slow periods, range multipliers, and source price to tailor the indicator to different assets and timeframes.
Visualization Enhancements:
Trend Filter Line: A dynamic line showing the filtered price for trend direction.
High and Low Bands: Optional upper and lower bands to visualize the range of price movements.
Buy and Sell Labels: Clearly marked labels for long and short signals.
Real-Time Alerts:
Alerts for long and short signals help traders stay updated on potential trading opportunities.
Background Color Highlighting:
Green and red background colors visually indicate bullish and bearish conditions, enhancing clarity.
How to Use:
Trend Following:
Use the trend filter line to identify the overall direction of the market.
Enter long positions when the price is above the filter line and upward momentum is detected.
Enter short positions when the price is below the filter line and downward momentum is detected.
Breakout Trading:
Watch for price movements that breach the high or low bands to identify potential breakout opportunities.
Custom Settings:
Adjust the fast and slow periods, as well as the range multipliers, to optimize the indicator for different timeframes and asset classes.
Confirmation:
Combine this indicator with additional tools like volume analysis, support/resistance zones, or oscillators for greater confidence in signals.
Customization Options:
Smooth Range Settings:
Fast Period and Multiplier.
Slow Period and Multiplier.
Visualization:
Toggle visibility of the trend line, bands, and labels.
Customize line colors and widths.
Credits:
This script is inspired by range filtering techniques and utilizes custom logic for dual smooth range filtering. It builds upon open-source concepts while adding unique features for enhanced usability.
Notes:
The Eze Profit - Advanced Trade Filter is intended for educational purposes and should be used alongside a comprehensive trading strategy. It is not financial advice.
Divides company with IndexOverview:
This indicator simplifies the comparison of a stock's performance against a specified index, such as the Nifty 50. By calculating and plotting the ratio between the two, it provides a clear visual representation of relative strength.
Key Features:
-Direct Comparison: Easily compare any stock against a selected index.
-Customizable Index: Choose from a dropdown menu or input a custom index symbol.
-Visual Clarity: Maximizing the chart provides a clear view of the relative performance.
-SMA Overlay: Add a Simple Moving Average (SMA) to identify trends and potential entry/exit
points.
-Customizable Appearance: Adjust background color, text color, and label size for personalized
visualization.
How to Use:
Add the Indicator: Add the indicator to your chart.
Select the Index: Choose the desired index from the dropdown menu or input a custom symbol.
Analyze the Ratio:
-A rising ratio indicates the stock is outperforming the index.
-A falling ratio suggests underperformance.
-The SMA can help identify potential trends and momentum.
Customize the Appearance: Adjust the background color, text color, and label size to suit your preferences.
Benefits:
-Improved Decision Making: Gain insights into a stock's relative strength.
-Faster Analysis: Quickly compare multiple stocks against a benchmark index.
-Enhanced Visualization: Customize the chart for better understanding.
-By leveraging this indicator, you can make informed trading decisions and gain a deeper
understanding of market dynamics.
Ichimoku Cloud +Ichimoku Cloud Plus - Advanced Technical Analysis Indicator
Ichimoku Cloud Plus is an advanced technical analysis tool that combines the traditional Ichimoku Cloud system with Pearson correlation analysis and multi-timeframe momentum tracking. This innovative approach provides traders with a comprehensive view of market trends, momentum, and potential reversal points across multiple time frames.
Core Components
Enhanced Ichimoku Cloud Analysis
The traditional Ichimoku Cloud components have been preserved and enhanced with customizable visual parameters:
The indicator includes:
- Conversion Line (Tenkan-sen) - Short-term trend identifier
- Base Line (Kijun-sen) - Medium-term trend identifier
- Leading Span A and B (Senkou Span A and B) - Future cloud projections
- Lagging Span (Chikou Span) - Historical price momentum confirmation
The cloud (Kumo) formations provide dynamic support and resistance levels, with color-coding to instantly identify bullish and bearish market conditions.
Pearson Correlation Analysis
A sophisticated Pearson correlation coefficient calculation has been integrated to provide statistical validation of trend strength and direction. This component:
- Calculates correlation between price movement and time
- Provides real-time correlation coefficients
- Identifies trend strength through correlation thresholds
- Generates signals for trend changes and potential reversals
Multi-Timeframe Momentum Tracking
The indicator incorporates a unique multi-timeframe analysis system that:
- Displays momentum calculations across five timeframes (15m, 30m, 1h, 4h, 1d)
- Provides percentage-based momentum values
- Includes volatility adjustment capabilities
- Offers volume-weighted calculations for enhanced accuracy
Advanced Features
Statistical Analysis Panel
A comprehensive statistical panel provides real-time analysis including:
- Current Pearson coefficient value
- Correlation strength classification
- Trend direction identification
- Analysis period information
Dynamic Alert System
The indicator includes sophisticated alert conditions for:
- Bearish trend initiation (positive correlation threshold breach)
- Bullish trend initiation (negative correlation threshold breach)
- Trend direction changes (zero-line crossovers)
Visual Optimization
Advanced visualization features include:
- Customizable color schemes for all components
- Adjustable label sizes and positions
- Transparency controls for better chart visibility
- Warning indicators for potential trend weakening
Technical Implementation
The indicator combines multiple calculation methods:
- Donchian Channel calculations for Ichimoku components
- Pearson correlation coefficient computation with customizable periods
- EMA smoothing for momentum calculations
- Volume-weighted averaging capabilities
- Volatility adjustment mechanisms
Trading Applications
This indicator is particularly effective for:
1. Trend Direction Confirmation
- Multiple timeframe analysis provides comprehensive trend validation
- Pearson correlation adds statistical confidence to trend identification
- Ichimoku cloud formations confirm support and resistance levels
2. Entry and Exit Point Identification
- Cloud breakouts combined with correlation strength indicate potential entry points
- Multi-timeframe momentum alignment helps identify high-probability trades
- Warning indicators assist in timing market exits
3. Risk Management
- Dynamic support and resistance levels from the cloud
- Statistical trend strength measurement
- Multi-timeframe confirmation reduces false signals
Performance Considerations
The indicator uses efficient calculations to maintain good performance while providing comprehensive analysis. The smoothing parameters and analysis periods can be adjusted to balance between responsiveness and reliability.
Future Applications and Research
This combination of indicators opens possibilities for:
- Machine learning integration for pattern recognition
- Additional statistical measures for trend validation
- Enhanced alert systems based on multiple condition combinations
- Further optimization of calculation methods
The innovative combination of traditional Ichimoku analysis with modern statistical methods and multi-timeframe momentum tracking provides traders with a powerful tool for market analysis and decision-making.
Modified Bollinger, 1-to-3 Strategy bullish ungli1hr time frame bullish strategy
comparing adx dmi rsi bb rsi
Trend Runner
Heiken Ashi Candles Smoothed Indicator With Color Change Alerts.
Very useful indicator to identify potential trends.
Using a bar chart with grey or black bars helps to see the indicator better.
Day Pattern IndicatorDay Pattern Indicator
The Day Pattern Indicator is designed to help traders analyze daily trends and patterns in their selected markets. This tool highlights specific days of the week on the chart with unique, semi-transparent colored bars. Each day is customizable, allowing users to toggle the visibility of Monday through Sunday to focus on days most relevant to their trading strategy. Ideal for identifying potential patterns in cryptocurrency, forex, or stock markets, the indicator is perfect for traders seeking insights into weekday or weekend market behavior. Simple, effective, and visually intuitive!
Custom RSI with Big Trades (Triangles)
Созданы переменные overboughtBg и oversoldBg, чтобы сначала вычислить нужный цвет.
Теперь bgcolor используется в глобальной области видимости, где выполняется непосредственно.
График RSI и уровни:
Уровни перекупленности и перепроданности (overboughtLevel и oversoldLevel) отображаются через hline.
Треугольники на графике цены:
Зеленый треугольник под свечой для крупных покупок.
Красный треугольник над свечой для крупных продаж.
Фоновые полосы:
Фон отображается в зоне перекупленности (красный) и перепроданности (зеленый).
Gold CFD EMA Divergenceこれは、ゴールドCFD取引用のインジケータです。
EMAの短期と長期の距離を測り、その差異によって、サインの強度を変えます。
1時間足による使用を推奨しております。
何か問題があれば、ご連絡ください。
役に立った。こんな改善がしてほしい、等のご意見がある方は、コメント欄にコメントをのこしてください。よろしくお願いします。
5/22 MA Strategy with Dynamic Channel + AL/SAT//@version=5
indicator("5/22 MA Strategy with Dynamic Channel + AL/SAT", overlay=true)
// === Parametreler ===
length = input.int(50, title="Kanal Uzunluğu (Bar Sayısı)")
offset = input.int(2, title="Kanal Genişliği Çarpanı") // ATR ile kanal genişliği
// === Hareketli Ortalamalar (5 ve 22) ===
ma_fast = ta.ema(close, 5) // Hızlı EMA (5)
ma_slow = ta.ema(close, 22) // Yavaş EMA (22)
// === RSI Hesaplama ===
rsi = ta.rsi(close, 14)
// === MACD Hesaplama ===
= ta.macd(close, 12, 26, 9)
// === ATR (Volatilite için) ===
atr = ta.atr(14)
// === Üst ve Alt Seviyelerin Hesaplanması (Kanal) ===
highest_high = ta.highest(high, length) // Son 'length' barın en yüksek değeri
lowest_low = ta.lowest(low, length) // Son 'length' barın en düşük değeri
middle = (highest_high + lowest_low) / 2
upper_band = highest_high + offset * atr
lower_band = lowest_low - offset * atr
// === Kanal Çizgilerinin Gösterimi ===
plot(highest_high, title="Üst Kanal", color=color.blue, linewidth=1)
plot(lowest_low, title="Alt Kanal", color=color.blue, linewidth=1)
plot(middle, title="Orta Çizgi", color=color.orange, linewidth=1)
plot(upper_band, title="Üst Genişlik", color=color.green, linewidth=1)
plot(lower_band, title="Alt Genişlik", color=color.red, linewidth=1)
// === Al/Sat Sinyalleri (5/22 MA Stratejisi) ===
ma_crossover = ta.crossover(ma_fast, ma_slow) // 5 MA, 22 MA'yı yukarı kesiyor
ma_crossunder = ta.crossunder(ma_fast, ma_slow) // 5 MA, 22 MA'yı aşağı kesiyor
// Al Sinyali: 5/22 MA kesişimi + RSI düşük (momentum onayı) + MACD pozitif kesişim
buy_signal = ma_crossover and rsi < 50 and ta.crossover(macdLine, signalLine)
// Sat Sinyali: 5/22 MA kesişimi + RSI yüksek (momentum onayı) + MACD negatif kesişim
sell_signal = ma_crossunder and rsi > 50 and ta.crossunder(macdLine, signalLine)
// === Grafikte Al/Sat İşaretleme ===
plot(ma_fast, color=color.blue, title="Fast EMA (5)")
plot(ma_slow, color=color.orange, title="Slow EMA (22)")
// === Al ve Sat Yazıları Ekleyin ===
if buy_signal
label.new(bar_index, low, text="AL", style=label.style_label_up, color=color.green, textcolor=color.white, size=size.small)
if sell_signal
label.new(bar_index, high, text="SAT", style=label.style_label_down, color=color.red, textcolor=color.white, size=size.small)
// === Alarm Koşulları ===
alertcondition(buy_signal, title="Buy Signal Alert", message="5/22 MA + RSI + MACD Buy Signal Detected!")
alertcondition(sell_signal, title="Sell Signal Alert", message="5/22 MA + RSI + MACD Sell Signal Detected!")
// === Risk Yönetimi: ATR ile Stop-Loss Seviyeleri ===
long_stop_loss = buy_signal ? close - 1.5 * atr : na // Al pozisyonu için stop-loss
short_stop_loss = sell_signal ? close + 1.5 * atr : na // Sat pozisyonu için stop-loss
// Stop-loss çizgileri
if buy_signal
line.new(x1=bar_index , y1=long_stop_loss, x2=bar_index, y2=long_stop_loss, color=color.red, width=1, extend=extend.right, style=line.style_dashed)
if sell_signal
line.new(x1=bar_index , y1=short_stop_loss, x2=bar_index, y2=short_stop_loss, color=color.red, width=1, extend=extend.right, style=line.style_dashed)
Weekly & Monthly RSI Strategy with Buy/Sell SignalsrtrtrRSI signal when buy or when sell if above 40 RSI then buy