Description: The Moving Average Cycles indicator is a versatile tool designed to help traders identify and analyze bullish and bearish cycles based on price movements relative to a moving average. This indicator offers valuable insights into market trends and potential reversal points.
Key Features:
Customizable Moving Average: Users can adjust the MA period and resolution (Daily, Weekly, Monthly) to suit their trading style.
Cycle Identification: The indicator tracks bull and bear cycles, providing visual cues through color-coded histograms.
Comprehensive Metrics: A detailed table displays crucial cycle statistics, including:
Current cycle information (candles and % distance from MA)
Maximum and average cycle lengths (in candles)
Maximum and average percentage distances from the MA
How to Use: Apply the indicator to your chart and adjust the MA period and resolution as needed. Green histograms represent bullish cycles, while red histograms indicate bearish cycles. Use the metrics table to gain insights into historical cycle behavior and current market positioning.
This indicator is designed to complement your existing trading strategy by providing a clear visual representation of market cycles and detailed statistical information. It can be particularly useful for identifying potential trend reversals and gauging the strength of current trends compared to the past.
Note: Past performance does not guarantee future results. This indicator is meant for informational purposes only and should not be considered as financial advice. Always combine multiple analysis tools and conduct your own research before making trading decisions.
This script is published as open-source under the Mozilla Public License 2.0. Feel free to use and modify it, but please provide appropriate credit if you build upon this work. I hope you find this Moving Average Cycles indicator helpful in your trading journey. If you have any questions or suggestions for improvement, please feel free to leave a comment below.
릴리즈 노트
Fixed the Current % Dist calculation to use the max % distance within the cycle.
릴리즈 노트
Decreased the font size of the historical data.
릴리즈 노트
Fixed the % Distance calculation so it calculates the distance between the crossover point and the high/low of that cycle (it was being understated).
Removed cycles of less than 3 in length from the average calculations.
릴리즈 노트
Added input for customization of table font sizes.
릴리즈 노트
Fixed the histogram to show the percentage distance from the MA crossover price to the current high (for bull cycles) or low (for bear cycles).
릴리즈 노트
Added the option for cycle smoothing (number of candles across the MA required to start/end a cycle).
릴리즈 노트
Added horizontal dashed lines for reference.
릴리즈 노트
- Updated to Pinescript v6 - % from crossover histogram now shows the max per cycle rather than current % distance - Minor formatting improvements
오픈 소스 스크립트
진정한 트레이딩뷰 정신에 따라 이 스크립트 작성자는 트레이더가 기능을 검토하고 검증할 수 있도록 오픈소스로 공개했습니다. 작성자에게 찬사를 보냅니다! 무료로 사용할 수 있지만 코드를 다시 게시할 경우 하우스 룰이 적용된다는 점을 기억하세요.
차트에서 빠르게 액세스하려면 이 스크립트를 즐겨찾기에 추가하세요 — 여기에서 자세히 알아보기.