Sharpe Ratio Indicator (180)Meant to be used on the 1D chart and on BTC.
The Sharpe Ratio Indicator (180 days) is a tool for evaluating risk-adjusted returns, designed for investors who want to assess whether BTC is overvalued, undervalued, or in a neutral state. It plots the Sharpe Ratio over the past 180 days, color-coded to indicate valuation states:
- Red: Overvalued (Sharpe Ratio > 5).
- Green: Undervalued (Sharpe Ratio < -1).
-Blue: Critically Undervalued (Sharpe Ratio <-3).
- Yellow: Neutral (between -1 and 5).
Note that you can change those values yourself in the settings of the indicator.
Strengths:
- Real-time feedback on risk-adjusted returns helps in making timely investment decisions.
- Color-coded signals (red, green, blue and yellow) provide an intuitive, visual indication of the asset's valuation.
- Flexible: Easily adjustable to different subjective valuation levels and risk-free rates.
All hail to Professor Adam and The Real World Community!
Cicli
Simple Parallel Channel TrackerThis script will automatically draw price channels with two parallel trends lines, the upper trendline and lower trendline. These lines can be changed in terms of appearance at any time.
The Script takes in fractals from local and historic price action points and connects them over a certain period or amount of candles as inputted by the user. It tracks the most recent highs and lows formed and uses this data to determine where the channel begins.
The Script will decide whether to use the most recent high, or low, depending on what comes first.
Why is this useful?
Often, Traders either have no trend lines on their charts, or they draw them incorrectly. Whichever category a trader falls into, there can only be benefits from having Trend lines and Parallel Channels drawn automatically.
Trends naturally occur in all Markets, all the time. These oscillations when tracked allow for a more reliable following of Markets and management of Market cycles.
Support, Resistance & FibonacciKey Features
1. Support and Resistance Detection:
◦ Automatically identifies support and resistance levels based on recent price patterns.
◦ Draws lines and optional labels to highlight these levels on the chart.
2. Fibonacci Levels:
◦ Calculates and draws standard Fibonacci retracement levels (23%, 38%, 50%, 61%, 78%).
◦ Supports customization of colors, line thickness, and transparency.
3. Fibonacci Extensions:
◦ Draws extension levels (e.g., 127%, 141%, 161%,200%,227%,241%) after a breakout to predict possible price targets.
4. Breakout Alerts:
◦ Sends alerts when the price breaks a support or resistance level.
Key Points and Settings
• Settings: Users can adjust colors, transparency, line thickness, lengths, and label positions.
• Support/Resistance Logic:
◦ A support level is defined when the price reverses at a low point.
◦ A resistance level is detected when the price reverses at a high point.
• Fibonacci Drawing:
◦ Retracements are calculated within the support and resistance range.
◦ Extensions are based on the distance between the last support and resistance.
Code Explanation
1. Settings:
◦ Sections like input.bool and input.color allow users to configure the indicator.
◦ Example: show_support_label toggles the display of support labels.
2. Fibonacci Levels:
◦ The fibo_draw() function calculates retracement levels and plots horizontal lines on the chart.
◦ Extensions are drawn using the fibo_extend() function for breakouts.
3. Support/Resistance Detection:
◦ Logic is based on lows and highs from the past 4 candles.
◦ Lines and labels are dynamically created and updated.
4. Alerts:
◦ The alert() function triggers notifications during breakouts.
How to Use
1. Click "Add to Chart" to display the indicator on your chart.
2. Customize the settings via the right-hand panel (colors, alerts, Fibonacci levels).
3. Observe how support and resistance lines, as well as Fibonacci levels, are displayed on your chart.
Bollinger Bands movement detectThis indicator, which is my first code to be shared, uses Bollinger bands to identify trend movement. also uses color coding to identify flat markets.
Enhanced Custom Ichimoku Wave OscillatorThis script is a time cycle and wave-based custom oscillator designed to effectively detect trend changes and entry/exit signals across multiple timeframes. By integrating RSI, MACD, volume filters, and dynamic thresholds, this tool significantly enhances the accuracy of trading signals.
1. Key Features
Multi-Timeframe Analysis
Provides integrated signals based on user-defined timeframes (Daily, Weekly, Monthly).
Detects divergences by comparing oscillator values across multiple timeframes.
Dynamic Thresholds
Automatically adjusts thresholds based on market volatility, enabling better adaptability.
Customizable Wave Analysis
Allows users to define wave length and smoothing methods (WMA, SMA, EMA, TEMA).
Visualizes wave start and end points with distinct colors, while highlighting uptrend and downtrend phases.
Integrated Filters
RSI Filter: Filters signals based on overbought/oversold levels.
MACD Filter: Confirms trends using MACD signals.
Volume Filter: Enhances signal reliability by analyzing volume conditions.
Trend Filter: Compares against a long-term SMA to validate trend direction.
Divergence Detection
Identifies bullish and bearish divergences by comparing oscillator values with multi-timeframe averages.
Highlights divergences visually with background colors.
Entry and Exit Signals
Provides entry signals (blue) when crossing up from oversold zones.
Generates exit signals (orange) when crossing down from overbought zones.
Custom alerts notify users of signal occurrences.
2. How to Use
Basic Setup
Select your desired timeframes (e.g., Daily, Weekly) in the settings.
Choose smoothing methods (WMA, SMA, EMA, TEMA) and define wave length.
Filter Configuration
Enable or disable RSI, MACD, volume, and trend filters based on your strategy.
Enabling filters increases signal accuracy but may reduce the number of signals.
Analyze Divergences
Compare oscillator values against multi-timeframe averages to detect bullish or bearish divergences.
Divergences are visually displayed with background colors for easy identification.
Entry/Exit Signals
Use the oscillator's movements in overbought/oversold zones to confirm entry and exit opportunities.
Set up alerts to get notified instantly when a signal occurs.
Visual Optimization
Adjust line styles, colors, and thresholds to keep your chart clean and easy to read.
3. Originality
This script stands out from traditional oscillators due to the following features:
Multi-Timeframe Integration: Combines data from multiple timeframes into one chart for comprehensive analysis.
Dynamic Thresholds: Automatically adjusts sensitivity to adapt to changing market conditions.
Divergence Detection: Real-time identification of bullish and bearish divergences.
Unified Filters: Integrates RSI, MACD, volume, and trend filters to maximize signal reliability.
4. Tips for Effective Use
Short-Term Trading: Use on 15-minute or 1-hour charts to track quick market fluctuations, ideal for scalping strategies.
Mid-Term Analysis: Combine daily and weekly timeframes to identify medium-term trend shifts.
Combine with Other Indicators: Pair this oscillator with Bollinger Bands or moving averages for more robust trading signals.
5. Conclusion
This script is a wave-based custom oscillator that delivers high-confidence signals through integrated filters and multi-timeframe analysis. Its dynamic adaptability and precision in detecting overbought/oversold levels make it an excellent tool for traders seeking accurate entry and exit timing.
이 스크립트는 **시간 주기(Time Cycle)**와 파동 기반 분석을 결합한 맞춤형 오실레이터로, 여러 시간 프레임에서 추세의 변화와 진입/이탈 신호를 효과적으로 탐지할 수 있도록 설계되었습니다. 추가적으로 RSI, MACD, 거래량 필터 등을 통합하여 신호의 정확성을 높였습니다.
1. 주요 기능
다중 시간 프레임 분석 (Multi-Time Frame Analysis)
사용자가 설정한 여러 시간 프레임(일봉, 주봉, 월봉)에서 데이터를 통합하여 신호를 제공합니다.
설정한 시간 프레임의 평균 오실레이터 값을 기반으로 다이버전스를 탐지합니다.
동적 임계값 적용 (Dynamic Thresholds)
시장의 변동성을 고려해 임계값을 자동으로 조정하여, 다양한 시장 조건에 적응할 수 있습니다.
사용자 정의 가능한 파동 분석
파동 길이와 스무딩 방식을 선택 가능 (WMA, SMA, EMA, TEMA).
파동의 시작과 끝을 시각적으로 표시하며, 상승/하락 추세를 색상으로 구분합니다.
필터 통합
RSI 필터: 과매수/과매도 상태를 기반으로 잘못된 신호를 제거.
MACD 필터: MACD 신호선을 기반으로 추세를 확인.
거래량 필터: 거래량 데이터와 비교하여 신호의 신뢰도를 향상.
추세 필터: 장기 이동평균선(SMA)과 비교하여 추세 방향 확인.
다이버전스 탐지
다중 시간 프레임 평균값과 비교하여 강세/약세 다이버전스를 탐지하고 차트에 배경 색상으로 표시합니다.
진입 및 이탈 신호
과매도 구간에서 상승 전환 시 진입 신호(파란색).
과매수 구간에서 하락 전환 시 이탈 신호(주황색).
알림(Alert) 설정 가능: 주요 신호 발생 시 사용자에게 알림을 보냅니다.
2. 사용 방법
기본 설정
시간 프레임: 원하는 시간 프레임(일봉, 주봉 등)을 선택합니다.
파동 길이와 스무딩 방식: 스무딩 방식(WMA, SMA, EMA, TEMA)과 파동 길이를 설정합니다.
필터 적용
필요에 따라 RSI, MACD, 거래량, 추세 필터를 활성화하거나 비활성화할 수 있습니다.
필터를 활성화하면 신호의 신뢰도가 향상되지만, 과도한 필터링은 신호 수를 줄일 수 있습니다.
다이버전스 확인
다중 시간 프레임 평균값과의 교차를 통해 강세/약세 다이버전스를 탐지합니다.
차트 배경색으로 표시되므로 시각적으로 쉽게 확인할 수 있습니다.
진입/이탈 신호 확인
오실레이터가 과매도 또는 과매수 구간에서 교차할 때 진입/이탈 신호를 제공합니다.
알림(Alert) 설정을 통해 신호 발생 시 즉시 확인할 수 있습니다.
시각적 설정
수직선 스타일, 색상, 임계값 등을 사용자 정의하여 차트를 깔끔하게 유지할 수 있습니다.
3. 독창성
이 스크립트는 기존 오실레이터와 달리 다음과 같은 독창적인 기능을 제공합니다:
다중 시간 프레임 통합: 하나의 차트에서 여러 시간 프레임 데이터를 결합하여 분석.
동적 임계값: 변동성에 따라 신호 감도를 자동으로 조정.
다이버전스 탐지: 강세 및 약세 다이버전스를 실시간으로 시각화.
통합 필터: RSI, MACD, 거래량, 추세 필터를 결합하여 신호의 신뢰성을 향상.
4. 유용한 팁
단기 매매: 15분~1시간 차트에서 단기 추세를 확인하며 스캘핑 전략에 유리.
중기 분석: 일봉과 주봉 데이터를 통합하여 중기 추세 전환을 탐지.
결합 사용: 볼린저 밴드, 이동평균선과 같은 다른 지표와 함께 사용하면 신뢰도가 더욱 높아집니다.
5. 결론
이 스크립트는 파동 기반의 맞춤형 오실레이터로, 다양한 필터와 다중 시간 프레임 분석 기능을 통해 높은 신뢰도의 신호를 제공합니다. 시장 조건에 따라 동적으로 조정 가능하며, 과매수/과매도 상태에서의 정확한 진입/이탈 타이밍을 탐지할 수 있습니다.
Kutty magicKey Features:
Combines Ichimoku-based strategies with trend-based levels.
Highlights market trends and key price levels.
Dynamically adjusts visuals to show strength and direction of trends.
Provides gradient-colored candles to reflect momentum.
MVRV by Age ApproximationDescription:
The "MVRV by Age Approximation" indicator provides a simplified version of the Market Value to Realized Value (MVRV) ratio for different holding periods, or "age cohorts." MVRV is a popular metric in on-chain analysis that compares the current market value to the realized value (i.e., the cost basis of held assets). In this approximation, the script categorizes assets into three main cohorts—short-term, mid-term, and long-term—by calculating MVRV ratios based on different moving averages of the closing price, serving as proxies for the acquisition cost of each cohort.
This tool helps to visualize how different holding periods contribute to the overall unrealized profit or loss in the market, which can indicate potential overvaluation or undervaluation across various investor groups. By using overvaluation and undervaluation threshold lines, traders can assess market conditions more clearly, potentially helping to identify areas of buyer or seller interest based on holding duration.
Note: This indicator serves as an approximation for the MVRV by Age metric, typically used in on-chain analytics, and is designed for educational and illustrative purposes within the limitations of TradingView’s platform.
Features:
Customizable periods for short-term, mid-term, and long-term cohorts.
Visual MVRV ratios for each cohort, enabling easy comparison.
Threshold lines for potential overvaluation and undervaluation levels.
Shaded background to highlight zones of high or low valuation.
This indicator is useful for traders interested in on-chain metrics and can be adapted to various asset types where holding duration analysis is relevant.
HOW to use:
The "MVRV by Age Approximation" indicator can help identify potential overvaluation and undervaluation in an asset by providing insights into the unrealized profit and loss held by different age cohorts of holders. Here’s a practical guide on how to use this indicator for trading:
1. Identify Overvaluation and Undervaluation Zones
Overvaluation Zone: When any MVRV ratio (e.g., short-term, mid-term, or long-term) is significantly above 1 (e.g., 1.5 or higher), it indicates that the cohort is holding assets at a profit, potentially close to a local high. This can signal that holders in this group may soon start realizing profits, which could lead to selling pressure.
Undervaluation Zone: When the MVRV ratio for any cohort falls below 1 (e.g., 0.5 or lower), it suggests that these holders are at an unrealized loss. Historically, undervalued zones often indicate a bottoming signal, as selling pressure may decrease, and long-term holders may start accumulating.
2. Trading Strategies Based on MVRV Ratios
Mean Reversion Strategy:
If the short-term MVRV ratio is in the overvaluation zone (e.g., above 1.5), this could indicate an overbought condition for recent buyers, suggesting a possible correction or reversal. Traders might consider selling or shorting if other indicators align.
Conversely, if the short-term MVRV is in the undervaluation zone (e.g., below 0.5), this could indicate an oversold condition, where short-term holders are likely at a loss. Traders could consider buying or scaling into a position, anticipating a reversion to the mean.
Long-term Accumulation and Distribution:
When the long-term MVRV ratio enters an undervaluation zone, it often signals that long-term holders (e.g., 200-day) may be under water, suggesting a potential accumulation phase. This zone could be favorable for long-term investments or entry positions, as selling pressure typically reduces here.
If the long-term MVRV ratio rises well above 1, it indicates long-term holders are sitting on profits, which might lead to increased distribution. If both short-term and long-term MVRV ratios are high, it may indicate an overheated market, suggesting a good time to take profits or reduce exposure.
3. Divergence Analysis Between Cohorts
Bullish Divergence: When the price of the asset is falling or consolidating, but the short-term MVRV rises above its undervaluation threshold (0.5) while long-term MVRV also increases, this suggests that short-term holders are regaining confidence, potentially signaling an upcoming reversal or rally.
Bearish Divergence: When the price is rising but the short-term MVRV shows signs of flattening or declining in the overvaluation zone, it may indicate that short-term traders are starting to exit positions, which could foreshadow a price pullback.
4. Combine with Other Indicators
Moving Averages: Use moving averages or other trend indicators alongside MVRV to confirm entry and exit points. For example, an overvalued short-term MVRV paired with a price cross below a major moving average can be a stronger sell signal.
Volume and Momentum Indicators: Indicators like RSI or MACD can add further context. For instance, if the MVRV indicates undervaluation but RSI is also oversold, it may confirm a strong buying opportunity.
Example Trading Signals
Buy Signal: The short-term MVRV ratio is below 0.5 (undervalued), and the price is showing signs of support with additional bullish signals from other indicators. Consider buying in anticipation of mean reversion.
Sell Signal: The short-term and long-term MVRV ratios are both above 1.5, and momentum indicators are showing divergence or overbought conditions. This setup may suggest a strong overvaluation, suitable for taking profits or initiating short positions.
Risk Management
Use stop-loss orders to manage risk, especially if trading based on the shorter-term MVRV values, as these may fluctuate more rapidly.
Adjust position sizes based on the cohort's timeframe; positions on the long-term MVRV signals may be held longer, while short-term MVRV signals might call for quicker trades.
By combining the MVRV by Age Approximation with other trading tools, you can add a unique layer of on-chain-like analysis to your trading strategy, helping gauge market sentiment across different holding periods.
Auto Support/Resistance & Ichimoku Trendlines1. Description (스크립트 설명)
This script combines trend-following support/resistance zones with Ichimoku-inspired trend lines and multi-timeframe analysis. It includes advanced filters such as Bollinger Bands, RSI, and volume analysis to enhance signal accuracy. The automatic detection of overlapping levels and customizable visual settings makes it ideal for traders looking for dynamic and reliable market insights.
2. Key Features (주요 기능)
Dynamic Support/Resistance Detection
Automatically calculates short-term, medium-term, long-term, and very long-term support/resistance levels.
Highlights overlapping zones with distinct colors for stronger levels.
Ichimoku-Inspired Trend Lines (N, V, E, NT, F)
Incorporates Ichimoku price theories to calculate dynamic trend lines.
Each trend line is customizable in terms of calculation method (SMA, EMA, TEMA, etc.), length, color, and style.
Bollinger Band Integration
Adds Bollinger Bands based on the middle of selected trend lines (E and NT values).
Visually displays market volatility with fill colors and upper/lower bands.
Multi-Timeframe Support/Resistance
Analyzes multiple timeframes (e.g., hourly, 4-hour, daily) for support/resistance levels.
Distinct colors and styles differentiate levels from different timeframes.
Advanced Filters
RSI Filter: Removes invalid signals when RSI is overbought or oversold.
Volume Filter: Ensures signals are only generated during significant volume activity.
Trend Breakout Alerts
Detects when the price breaks above resistance or below support and triggers alerts.
Provides "LONG" or "SHORT" labels on the chart for breakout signals.
Customization Options
Fully adjustable settings for colors, line thickness, styles, and thresholds.
Dynamic overlap threshold for detecting strong zones.
3. How to Use (사용 방법)
Setup
Support/Resistance Levels: Adjust short-term, medium-term, long-term, and very long-term levels to suit your trading strategy.
Ichimoku Trend Lines: Enable or disable N, V, E, NT, and F trend lines and customize their parameters.
Filters
Activate RSI or volume filters to refine signals.
Recommended settings: Use RSI with a length of 14 and volume filter based on 20-period SMA.
Multi-Timeframe Analysis
Enable multiple timeframes for broader market context.
Example: Use 1-hour, 4-hour, and daily timeframes for intraday and swing trading.
Bollinger Bands
Enable Bollinger Bands to visualize volatility.
Adjust the length and multiplier to fit your market analysis.
Interpreting Signals
Breakout Signals:
A breakout above resistance triggers a "SHORT" label.
A breakout below support triggers a "LONG" label.
Overlapping Zones:
Stronger levels are highlighted with distinct colors to indicate high-confidence zones.
Alerts
Set alerts for support/resistance breakouts to get notified of key price movements.
4. Originality (독창성)
This script stands out by integrating multiple advanced features:
Ichimoku Price Theory: Introduces N, V, E, NT, and F values in a fully customizable format.
Dynamic Multi-Timeframe Analysis: Consolidates support/resistance from multiple timeframes for comprehensive market insights.
Bollinger Band Customization: Combines Bollinger Bands with Ichimoku-inspired trend lines for enhanced volatility analysis.
Advanced Filters: Includes RSI and volume filters to improve the reliability of signals.
5. Practical Tips (활용 팁)
Scalping: Use short-term levels (5 and 15) and lower timeframes (1H, 4H).
Swing Trading: Focus on medium and long-term levels (15, 60, 240) with daily timeframes.
Trend Confirmation: Combine this script with moving averages or MACD for additional confirmation of trends.
6. Alerts (알림 설정)
This script provides breakout alerts when the price crosses key support or resistance levels. Set up alerts using the built-in alertcondition for automated notifications.
Support/Resistance Lines Based on Highs and Lows
Low: Support lines are generated based on the lowest price within a specified number of candles.
Example: Lowest price over the last 5, 15, 60, or 240 candles.
High: Resistance lines are generated based on the highest price within a specified number of candles.
Example: Highest price over the last 5, 15, 60, or 240 candles.
Multi-Time Frame (MTF)
Displays support/resistance levels from other timeframes on your current chart.
Example: On a 1-hour chart, you can view levels based on 4-hour or 1-day timeframes.
Lines from different timeframes are differentiated by colors and styles.
Ichimoku Trendlines (N, F, V, E, NT)
N (9): Displays short-term trendlines.
F (17): Displays mid-term trendlines.
V (26): Baseline (similar to the Ichimoku Kijun-sen).
E (52): Mid-to-long-term trendlines.
NT (76): Long-term trendlines for a broader view of the market.
Bollinger Band Channel
The upper and lower bands are used as dynamic support/resistance levels.
Useful for identifying breakout potential in high-volatility zones.
This script automatically generates support/resistance lines based on recent highs/lows. It analyzes levels from short-term to very long-term. Additionally, it provides Ichimoku-based trendlines (N, F, V, E, NT) and Bollinger Bands to help visualize market trends. Alerts are displayed when price breaks key support or resistance levels, providing potential trading signals.
Personally, I created this script based on Bollinger Bands and moving averages derived from Ichimoku price theory, but I often turn those features off as they are not always practical for my use case. For support and resistance lines, multi-timeframe analysis can get too cluttered. Instead, I focus on overlapping levels, which are displayed with adjusted transparency to highlight significant zones.
Feel free to test this script thoroughly and use it in your own analysis. I hope it’s helpful, and I’d appreciate any feedback you might have!
1. 설명 (Description)
이 스크립트는 지지/저항 구간과 일목균형표 기반 추세선을 결합하여, 자동으로 시장의 동적 지지/저항 레벨을 탐지하고 다중 시간 프레임 분석을 제공합니다. Bollinger Bands, RSI, 거래량 필터 등 다양한 필터를 통합하여 신호의 정확도를 높였으며, 중첩된 지지/저항 레벨을 강조하여 더 신뢰도 높은 구간을 시각적으로 표시합니다.
2. 주요 기능 (Key Features)
자동 지지/저항 탐지
단기, 중기, 장기, 초장기 구간의 지지/저항 레벨을 자동 계산.
중첩된 지지/저항 레벨을 색상으로 강조하여 신뢰도 높은 구간을 표시.
일목균형표 기반 추세선 (N, V, E, NT, F)
일목 가격론에 기반한 추세선을 추가 계산.
각 추세선은 계산 방식(SMA, EMA, TEMA 등), 길이, 색상, 스타일을 사용자 정의 가능.
Bollinger Bands 통합
선택한 추세선(E 및 NT 값)을 중심으로 Bollinger Bands를 추가.
상단/하단 밴드와 채널을 시각화하여 변동성을 한눈에 파악 가능.
다중 시간 프레임 지지/저항 분석
다중 시간 프레임(예: 1시간, 4시간, 1일)을 기반으로 지지/저항 레벨을 표시.
각 시간 프레임의 색상과 스타일을 구분하여 명확히 표현.
고급 필터링 기능
RSI 필터: RSI 과매수/과매도 구간에서 잘못된 신호를 제거.
거래량 필터: 거래량이 낮을 때 신호를 제거하여 신뢰도 개선.
추세 돌파 알림
가격이 지지선을 하향 돌파하거나 저항선을 상향 돌파할 경우 알림 제공.
"LONG" 또는 "SHORT" 라벨을 차트에 표시하여 실시간 확인 가능.
사용자 맞춤 설정
색상, 선 두께, 스타일, 중첩 거리 임계값 등 모든 요소를 조정 가능.
3. 사용 방법 (How to Use)
기본 설정
지지/저항 레벨: 단기, 중기, 장기, 초장기 레벨의 길이를 전략에 맞게 조정합니다.
추세선 활성화: N, V, E, NT, F 추세선을 활성화하거나 비활성화할 수 있습니다.
Bollinger Bands: 길이와 배수를 조정하여 변동성을 분석합니다.
필터 설정
RSI 필터와 거래량 필터를 활성화하여 신호 품질을 개선합니다.
기본값: RSI 길이 14, 거래량 필터는 20기간 이동평균 기반.
다중 시간 프레임 분석
다중 시간 프레임(1시간, 4시간, 1일)을 활성화하여 더 넓은 시장 상황을 분석합니다.
설정한 시간 프레임별 지지/저항 레벨이 차트에 표시됩니다.
Bollinger Bands 활용
E와 NT 값을 기반으로 한 Bollinger Bands를 활성화하여 시장 변동성을 분석합니다.
신호 해석
돌파 신호:
저항선을 돌파하면 "SHORT" 라벨 생성.
지지선을 돌파하면 "LONG" 라벨 생성.
중첩된 구간:
중첩된 지지/저항 구간은 더 강력한 레벨로 간주됩니다.
알림 설정
지지/저항 구간 돌파 시 알림(Alert)을 설정하여 실시간으로 시장 변화를 추적합니다.
4. 독창성 (Originality)
이 스크립트는 다음과 같은 독창적인 기능을 제공합니다:
일목 가격론 통합: N, V, E, NT, F 추세선을 도입하여 더 심층적인 시장 분석 제공.
다중 시간 프레임 분석: 하나의 차트에서 다양한 시간 프레임을 통합하여 전체적인 시장 상황을 파악 가능.
Bollinger Bands 통합: Bollinger Bands와 추세선을 결합하여 시장 변동성을 직관적으로 확인.
중첩된 레벨 강조: 중첩된 지지/저항 구간을 자동으로 탐지하고 표시하여 신뢰도를 극대화.
5. 활용 팁 (Practical Tips)
단기 매매: 5~15레벨과 1시간 차트를 사용하여 스캘핑 전략에 적합.
스윙 트레이딩: 60~240레벨과 일봉 차트를 사용하여 중기 추세 변화를 포착.
추세 확인: 이동평균선(MA) 또는 MACD와 결합하여 추가적인 추세 확인 가능.
6. 알림 설정 (Alerts)
스크립트는 지지선 또는 저항선 돌파 시 알림(Alert)을 제공합니다.
TradingView의 alertcondition 기능을 활용하여 주요 신호를 실시간으로 확인할 수 있습니다.
1. 저점/고점 기반 지지/저항선
저점: 지정된 기간 동안의 최저가를 기준으로 지지선을 생성합니다.
예: 최근 5봉, 15봉, 60봉, 240봉 동안의 최저가.
고점: 지정된 기간 동안의 최고가를 기준으로 저항선을 생성합니다.
예: 최근 5봉, 15봉, 60봉, 240봉 동안의 최고가.
2. 다중 시간 프레임(MTF)
현재 차트 외에도 다른 시간 프레임에서 지지/저항선을 표시합니다.
예: 1시간 차트에서 4시간, 1일 기준의 지지/저항 확인.
각 시간 프레임의 선은 색상과 스타일로 구분됩니다.
3. 일목균형표 추세선 (N, F, V, E, NT)
N (9): 단기 추세선을 표시.
F (17): 중기 추세선을 표시.
V (26): 기준선(일목 기준선 역할).
E (52): 중장기 추세.
NT (76): 장기 추세로 큰 그림 확인.
4. 볼린저 밴드 채널
상단 밴드와 하단 밴드를 지지/저항으로 활용.
변동성이 큰 구간에서 추세 돌파 가능성 확인.
저점/고점으로 자동 지지/저항선을 생성합니다.
단기부터 초장기까지 레벨을 분석합니다.
일목 추세선(N, F, V, E, NT)과 볼린저 밴드로 추세를 확인합니다.
추세 돌파 시 알림으로 매매 신호를 제공합니다.
저 같은경우는 볼밴 이랑 이평선들 일목산인 가격론 기반으로 만들었으나 사용처가 애매해서 off 하고 쓰고있습니다. 그리고 지지 저항 선들은 다중프레임 까지 하면 너무 지저분해서 지지 저항선들이 모여있으면 중첩 돼는데 중첩됀 선만 투명도 조절해서 중첩됀선만 표현 하고 쓰고있습니다. 테스트 충분히 해보시고 사용하시면됍니다. 도움됄까 싶긴한데. 피드백 도 주시면 감사합니다~
IndiecatorThis indicators paints the chart if translated moving averages is lower than the current price
STRATIFYFX PIVOT POINTS STRATIFYFX Pivot Points
The STRATIFYFX Pivot Points indicator is designed to help traders identify key levels of support and resistance based on the previous day's price action. Using a well-known pivot point calculation, this indicator plots key levels on your chart, including the Pivot Point itself, Resistance 1, Resistance 2, Resistance 3, Support 1, Support 2, and Support 3. These levels are critical for identifying potential price reversal zones and breakout points, making them useful for intraday trading strategies.
OHLC/GAP/EMA/VWAPInstructions for Use
Step 1: Insert the Script
Open TradingView and select the desired chart.
Click "Indicators" → "New Pine Script Indicator".
Copy the code from the script and paste it into the Pine Editor.
Click "Add to Chart".
Step 2: Chart Interpretation
OHLC Levels:
Yellow lines mark the current Open and previous Close.
White lines show the previous High and Low.
Observe the fill between Open and Close:
Green: Bullish gap (Open above Close).
Red: Bearish gap (Open below Close).
Moving Averages:
MA10, MA20, MA50, EMA200:
Line color green: Price is above the average (bullish).
Line color red: Price is below the average (bearish).
The EMA200 indicates the long-term trend:
Green: Long-term bullish.
Red: Long-term bearish.
VWAP:
The VWAP line indicates the volume-weighted average price.
Green: VWAP is above the price (buying pressure).
Red: VWAP is below the price (selling pressure).
Step 3: Make Adjustments
Change Settings:
Click the gear icon next to the indicator on the chart.
Choose whether to use exponential (EMA) or simple (SMA) moving averages.
Adjust transparency or colors as desired.
Add More Periods:
Edit the code in the Pine Editor to calculate additional moving averages or new periods.
Strategies with This Script
1. Gap Trading:
Observe bullish gaps (green fill) and bearish gaps (red fill).
Trade in the direction of the gap if the price breaks above or below the High or Low.
2. EMA Crossover:
Use the combination of MA10, MA20, and EMA200 to spot trend reversals.
Example:
MA10 crosses above MA20 → Bullish signal.
Price rises above EMA200 → Long-term uptrend.
3. VWAP Trading:
The VWAP acts as dynamic support or resistance.
Example:
Price falls below VWAP → Opportunity for short positions.
Price rises above VWAP → Opportunity for long positions.
Summary
This script is a versatile tool for analyzing key market levels, trends, and momentum. With clear colors and lines, it provides an intuitive way to make quick trading decisions. Traders can customize it to suit their specific strategies and preferences.
Mark First Candle High/Low Breach (Single Mark per Day)orb breakout
marked the day open high and low of first candle and on the breakout it makes a trade
Optimized Future Time Cycles V2Time Cycle-Based Indicator Overview
This script utilizes Time Cycles to visually display the periodic fluctuations of the past and future, helping to predict key market turning points and trend shifts.
The indicator is fully customizable and marks periodic vertical lines and labels on the chart based on a specified reference date.
1. Key Features
Time Cycle Settings
Displays various user-defined time cycles (e.g., 9 days, 17 days, 26 days) visually on the chart.
Each cycle is distinguished by unique colors and labels for clear identification.
Allows users to set a reference date, from which past and future cycles are calculated.
Past and Future Cycle Visualization
Future Cycles:
Predicts potential points of market fluctuations or trend changes in the future.
Vertical lines represent future turning points based on the defined time cycles.
Past Cycles:
Displays how cyclical patterns manifested in historical market data.
Helps identify recurring patterns and similar historical market conditions.
Customizable Visuals
Adjust line styles (solid, dashed, etc.) and label spacing for a cleaner chart, even with multiple cycles displayed.
Separately toggle the visibility of past and future cycles for a more tailored analysis experience.
2. How to Use and Interpret the Indicator
Setting the Reference Date
The reference date is crucial for this indicator and works best when set to significant market events or turning points.
Both past and future cycles are calculated based on the reference date, and overlapping cycles may indicate periods of high volatility or strong trend shifts.
Cycle Analysis
Interpretation by Cycle Duration:
Short-term Cycles (9, 17 days): Useful for predicting quick market fluctuations.
Mid- to Long-term Cycles (26, 52, 200 days): Ideal for identifying major trend changes.
Overlapping Cycles:
When multiple cycles converge, significant turning points or strong market movements are likely.
Importance of Past Cycles
Past cycles are invaluable for identifying repetitive patterns in the market.
For example, analyzing strong turning points from past cycles can help anticipate similar scenarios in the future.
3. Tips for Using the Indicator
Optimize Line Styles:
When displaying both past and future cycles, charts may become cluttered. Adjusting line styles or colors can help maintain visual clarity.
Short-term vs. Long-term Cycles:
Short-term Cycles: Best suited for strategies like scalping or day trading.
Long-term Cycles: Useful for capturing major trend shifts or identifying macroeconomic changes.
Recommended Combination with Other Indicators:
Combine the Time Cycle indicator with moving averages, wave indicators, RSI, or Bollinger Bands for better results.
The time cycle identifies the timing of turning points, while tools like moving averages or RSI provide insights into trend direction during these critical moments.
4. Conclusion
This Time Cycle indicator visualizes past and future periodic fluctuations, enabling effective predictions of market trends and turning points.
The reference date and overlapping cycles are essential for pinpointing critical turning points.
The newly added past cycle visualization feature enhances the ability to recognize recurring patterns and leverage historical data for more accurate predictions.
시간 주기(Time Cycle) 기반 지표 소개
이 스크립트는 **시간 주기(Time Cycle)**를 활용해 과거와 미래의 주기적 변동을 시각적으로 보여주어, 시장의 추세 변화 시점과 변곡점을 예측하는 데 도움을 줍니다.
지표는 사용자 정의가 가능하며, 설정된 기준 날짜를 기반으로 주기적인 수직선과 레이블을 차트에 표시합니다.
1. 주요 기능
시간 주기 설정
사용자가 설정한 다양한 시간 주기(예: 9일, 17일, 26일 등)를 시각적으로 표시.
각 주기는 고유한 색상과 레이블로 구분되어 명확하게 차트에 나타납니다.
**기준 날짜(reference date)**를 설정하여, 해당 날짜를 기준으로 과거와 미래의 주기를 계산합니다.
미래와 과거 주기 표시
미래 주기:
미래의 시장 변동 시점이나 추세 변화 가능성이 높은 지점을 예측할 수 있습니다.
설정된 시간 주기에 따라 미래 변곡점을 차트에 수직선으로 나타냅니다.
과거 주기:
과거 시장에서 주기적 변동이 어떻게 나타났는지 확인 가능합니다.
이를 통해 반복되는 패턴이나 과거와 유사한 시장 상황을 파악할 수 있습니다.
시각적 사용자 설정
수직선 스타일(실선, 점선 등)과 레이블 간격을 조정하여, 복잡한 차트에서도 깔끔하게 정보를 확인할 수 있습니다.
과거와 미래의 주기 표시를 개별적으로 조정 가능하여 사용자 맞춤형 분석이 가능합니다.
2. 지표 사용 및 해석 방법
기준 날짜 설정
**기준 날짜(reference date)**는 시장에서 중요한 변동이 있었던 날을 기준으로 설정하는 것이 가장 효과적입니다.
기준 날짜를 기반으로 과거와 미래 주기가 계산되며, 주기가 겹치는 시점에서 강한 변동성이 나타날 가능성이 높습니다.
주기 분석
주기별 해석:
단기 주기 (9일, 17일): 빠른 변동성을 예측.
중·장기 주기 (26일, 52일, 200일): 큰 추세 변화를 예측.
주기가 겹치는 시점은 중요한 변곡점이 될 가능성이 크며, 추세 전환의 신호로 볼 수 있습니다.
과거 주기의 중요성
과거 주기는 시장의 반복 패턴을 찾는 데 유용합니다.
예를 들어, 과거 주기에서 강한 변곡점이 나타났던 시점을 분석하면, 미래에도 유사한 상황이 발생할 가능성을 예측할 수 있습니다.
3. 지표 활용 팁
수직선 스타일 최적화:
과거와 미래 주기를 모두 표시하면 차트가 복잡해질 수 있으므로, 선 스타일이나 색상을 조정하여 시각적으로 덜 혼란스럽게 설정하세요.
단기 vs. 장기 주기:
단기 주기는 스캘핑과 같은 빠른 매매 전략에 유용하며,
장기 주기는 대세 추세 변화를 포착하는 데 유리합니다.
결합 사용 추천:
시간 주기(Time Cycle) 지표는 이평선 파동 지표 또는 RSI, 볼린저 밴드와 함께 사용하면 더욱 효과적입니다.
시간 주기는 변곡점의 시점을 알려주고, 이평선 파동이나 RSI는 그 시점에서의 추세 방향성을 보완해 줍니다.
4. 결론
이 시간 주기(Time Cycle) 지표는 과거와 미래의 주기적 변동을 시각화하여, 시장의 추세 변화와 변곡점을 효과적으로 예측할 수 있습니다.
특히, 기준 날짜 설정과 주기적 겹침은 중요한 변곡점을 파악하는 핵심입니다.
새롭게 추가된 과거 주기 표시 기능은 반복 패턴을 확인하고 과거 데이터를 바탕으로 더 정교한 예측을 가능하게 합니다.
XAUUSD Weekly Gap Indicator (oberlunar)The XAUUSD Weekly Gap Indicator is a technical tool designed specifically for tracking weekly price gaps in the XAUUSD (gold) market. It identifies and visualizes the price difference between the Friday close and the Monday open, providing valuable insights into market dynamics over the weekend.
Gap Detection:
Measures the price difference between Friday's closing price and Monday's opening price.
Highlights whether the gap is bullish (Monday opens above Friday’s close) or bearish (Monday opens below Friday’s close).
Visualization:
Draws a line or rectangle to connect the Friday close and the Monday open, clearly marking the gap on the chart.
Displays an indicator label with the gap value, often in pips or points, to quantify the gap size.
Color Coding:
Green: Bullish gap (positive price movement).
Red: Bearish gap (negative price movement).
Market Sentiment:
Large gaps can indicate significant market sentiment shifts due to weekend events, such as economic reports or geopolitical news.
Support and Resistance:
Weekly gaps often act as temporary support or resistance levels, as the market may attempt to revisit or "fill" the gap.
Trading Strategies:
Gap Filling: XAUUSD often tends to "fill" these gaps, providing trading opportunities.
Continuation or Reversal: The reaction to the gap can signal whether the trend is likely to continue or reverse.
LALALALALALLalala lala la l ao a"Lalala lala la l ao a"Lalala lala la l ao a"Lalala lala la l ao a"Lalala lala la l ao a"Lalala lala la l ao a"Lalala lala la l ao a"Lalala lala la l ao a"
RSI con Bandas de BollingerExplicación:
Parámetros de Entrada: Los usuarios pueden ajustar la longitud del RSI, los niveles de sobrecompra/sobreventa, y la longitud y el multiplicador de desviación estándar para las Bandas de Bollinger.
Cálculo del RSI: Se calcula el RSI con la longitud especificada para identificar condiciones de mercado de sobrecompra o sobreventa.
Cálculo de las Bandas de Bollinger: Se calculan las bandas usando la longitud y el multiplicador de desviación estándar especificados, proporcionando un indicador de la volatilidad del mercado.
Condiciones de Trading:
Compra: Se genera una señal de compra cuando el RSI está por debajo del nivel de sobreventa y el precio está en o por debajo de la banda inferior de Bollinger, indicando una posible reversión hacia una tendencia alcista.
Venta/Cierre de Posición Larga: Se cierra la posición cuando el RSI está por encima del nivel de sobrecompra y el precio está en o por encima de la banda superior de Bollinger, sugiriendo una posible reversión o fin de la tendencia alcista.
EMA y MACD StrategyExplicación:
Parámetros de Entrada: Permiten a los usuarios personalizar la longitud de la EMA rápida y lenta, y los parámetros del MACD.
Cálculos: Se calculan la EMA rápida y lenta, y las líneas del MACD y su señal.
Condiciones de Trading:
LongCondition: Se abre una posición larga cuando la EMA rápida cruza por encima de la EMA lenta y la línea del MACD cruza por encima de la línea de señal.
ShortCondition: Aquí, se cierra la posición larga cuando la EMA rápida cruza por debajo de la EMA lenta y la línea del MACD cruza por debajo de la línea de señal. En este ejemplo, no se abre una posición corta automáticamente.
Entradas y Salidas: Basadas en las condiciones de trading definidas.
Visualización: Las EMAs y las líneas del MACD se trazan en el gráfico para facilitar el seguimiento visual.
Notas:
Gestión de Riesgo: No se ha incluido gestión de riesgo como stop loss o take profit, lo cual es crucial para una estrategia de trading efectiva.
Backtesting: Antes de usar esta estrategia en vivo, asegúrate de hacer un backtest exhaustivo para entender su rendimiento histórico.
Adaptación: Los mercados pueden cambiar, por lo que es importante revisar y ajustar la estrategia según sea necesario.
MegaGas Bollinger Bands with Divergence and Circle SignalsIndicator: MegaGas Bollinger Bands with Divergence and Circle Signals
This script provides a powerful combination of Bollinger Bands, RSI Divergence detection, and signal visualization tools. Designed with flexibility and precision in mind, it aims to assist traders in identifying trend reversals, volatility zones, and divergence-based trading opportunities. The script is well-suited for swing trading, momentum trading, and even scalping when adapted to lower timeframes.
How It Works:
Bollinger Bands:
Bollinger Bands are used to detect price volatility and overbought/oversold conditions. The script calculates:
Basis Line: A 34-period Simple Moving Average (SMA) as the core trend line.
Upper Bands: Bands positioned 1x and 2x the standard deviation above the SMA.
Lower Bands: Bands positioned 1x and 2x the standard deviation below the SMA. These levels provide dynamic support and resistance zones, highlighting breakout and reversion opportunities.
RSI Divergence Detection:
The indicator detects bullish divergence (when RSI forms a higher low while price forms a lower low) and bearish divergence (when RSI forms a lower high while price forms a higher high). These divergences often precede significant reversals or momentum shifts.
Bullish divergence is displayed with blue triangles (up).
Bearish divergence is displayed with orange triangles (down).
Buy and Sell Signals:
Circle Signals are generated when price crosses key Bollinger Bands levels:
A green circle appears when the price crosses above the lower band (potential buy signal).
A red circle appears when the price crosses below the upper band (potential sell signal).
These signals help identify potential entry and exit points for trades, particularly in trend-following or mean-reversion strategies.
Trend Reference (Moving Average):
A 50-period Simple Moving Average (SMA) is included as a trend reference, helping traders gauge the overall market direction. Use this to confirm divergence signals and avoid trades against the prevailing trend.
Why This Indicator Is Unique:
This script integrates multiple tools in a meaningful way, emphasizing contextual trading signals. Unlike standalone Bollinger Bands or RSI indicators, it introduces:
Advanced Divergence Analysis: Enhancing traditional RSI with divergence-based alerts.
Dynamic Signal Filtering: Preventing repetitive signals by introducing state-based logic for circles and divergence signals.
Trend Alignment: Combining Bollinger Bands with an SMA to filter trades based on the prevailing trend.
How to Use:
Setup:
Apply the indicator to any chart and timeframe. For swing trading, higher timeframes like 4H or 1D are recommended.
Adjust the RSI, Bollinger Bands, and Moving Average lengths to match your strategy and asset.
Signals:
Look for divergence signals (triangles) as early warnings of trend reversals. Confirm these with price action or other tools.
Use circle signals (green/red) to time potential entries/exits around Bollinger Band extremes.
Confirmation:
Combine divergence and circle signals with the SMA line to avoid counter-trend trades. For example, take bullish signals when the price is above the SMA and bearish signals when it is below.
Chart Clarity:
The script is published with a clean chart for clarity. It visualizes all signals with distinct shapes (triangles and circles) and colors, ensuring they are easily recognizable. Bollinger Bands and the SMA are plotted with transparency to avoid clutter.
Originality:
This script is a thoughtful blend of Bollinger Bands and RSI divergence detection, carefully designed to provide traders with actionable insights. It introduces state-based logic to manage repetitive signals and seamlessly integrates trend filtering, making it a valuable tool for both novice and experienced traders.
Custom Ratio IndicatorThis indicator allows users to compare the price ratio of two customizable trading pairs. By dividing the closing price of the first trading pair by the second, it calculates and plots the resulting ratio on the chart. It is designed for traders who want to analyze correlations or relative performance between two assets. The default pairs are ETHUSDT and BTCUSDT, and users can customize these inputs. The indicator supports high precision to ensure accurate representation of small or large ratios. Additionally, the current ratio is dynamically displayed on the chart for easy reference.
Cycle-Based Trading Strategy//@version=5
strategy("Cycle-Based Trading Strategy", overlay=true)
// Input Parameters
cycle_length = input.int(50, title="Cycle Length", minval=1)
rsi_length = input.int(14, title="RSI Length")
rsi_buy_threshold = input.int(30, title="RSI Buy Threshold")
rsi_sell_threshold = input.int(70, title="RSI Sell Threshold")
ma_length = input.int(50, title="Moving Average Length")
// Calculate Predicted Cycles and Indicators
cycle = ta.sma(close, cycle_length)
rsi = ta.rsi(close, rsi_length)
moving_avg = ta.sma(close, ma_length)
// Generate Buy/Sell Signals
buy_signal = ta.crossover(close, cycle) and rsi < rsi_buy_threshold
sell_signal = ta.crossunder(close, cycle) and rsi > rsi_sell_threshold
// Plot Cycle and Indicators
plot(cycle, color=color.blue, title="Cycle")
plot(moving_avg, color=color.orange, title="Moving Average")
plotshape(series=buy_signal, style=shape.labelup, color=color.green, title="Buy Signal", location=location.belowbar, text="BUY")
plotshape(series=sell_signal, style=shape.labeldown, color=color.red, title="Sell Signal", location=location.abovebar, text="SELL")
// Strategy Execution
if (buy_signal)
strategy.entry("Buy", strategy.long)
if (sell_signal)
strategy.close("Buy")
THE STRATEGIE//@version=5
strategy("XAU/USD Advanced Strategy with BOS & Patterns", overlay=true)
// === Paramètres utilisateur ===
rsi_length = input.int(14, title="RSI Length")
ema_length = input.int(50, title="EMA Length")
pivot_length = input.int(5, title="Pivot Length for BOS")
use_patterns = input.bool(true, title="Use Chart Patterns?")
// === Calculs de base ===
rsi = ta.rsi(close, rsi_length)
ema = ta.ema(close, ema_length)
// === Détection des tendances ===
trend_up = close > ema
trend_down = close < ema
// === Détection des divergences RSI ===
divergence_bullish = ta.lowest(low, 2) < ta.lowest(low , 2) and ta.rising(rsi, 2)
divergence_bearish = ta.highest(high, 2) > ta.highest(high , 2) and ta.falling(rsi, 2)
// === Détection des Break of Structure (BOS) ===
hh = ta.pivothigh(high, pivot_length, pivot_length)
ll = ta.pivotlow(low, pivot_length, pivot_length)
bos_bullish = close > hh and trend_up
bos_bearish = close < ll and trend_down
// === Détection des figures chartistes ===
triangle_pattern = use_patterns and (high > high and low < low)
double_top = use_patterns and (high == high and high > high )
double_bottom = use_patterns and (low == low and low < low )
// === Conditions pour signaux ===
long_condition = (divergence_bullish or bos_bullish or double_bottom) and trend_up
short_condition = (divergence_bearish or bos_bearish or double_top) and trend_down
// === Entrées et alertes ===
if long_condition
strategy.entry("Long", strategy.long)
alert("Signal d'achat détecté : Tendance haussière avec confirmation", alert.freq_once_per_bar_close)
if short_condition
strategy.entry("Short", strategy.short)
alert("Signal de vente détecté : Tendance baissière avec confirmation", alert.freq_once_per_bar_close)
// === Affichage des indicateurs ===
plot(ema, title="EMA", color=color.yellow, linewidth=2)
plot(rsi, title="RSI", color=color.blue, linewidth=2)
// === Affichage des zones RSI ===
hline(70, "RSI Overbought", color=color.red, linestyle=hline.style_dotted)
hline(30, "RSI Oversold", color=color.green, linestyle=hline.style_dotted)
// === Affichage des Break of Structure ===
plotshape(bos_bullish, style=shape.triangleup, location=location.belowbar, color=color.green, size=size.small, title="BOS Bullish")
plotshape(bos_bearish, style=shape.triangledown, location=location.abovebar, color=color.red, size=size.small, title="BOS Bearish")
// === Affichage des Figures Chartistes ===
bgcolor(triangle_pattern ? color.new(color.orange, 80) : na, title="Triangle Pattern")
bgcolor(double_top ? color.new(color.red, 80) : na, title="Double Top Pattern")
bgcolor(double_bottom ? color.new(color.green, 80) : na, title="Double Bottom Pattern")