OPEN-SOURCE SCRIPT

60-Day Cycle Long-Only Indicator

PeakInvestmentStrategies의
The following indicator generates ‘Buy’ signals based on rotating 60-day cycles. The general theory is that when buying strong, growth-oriented assets, 60-day micro-cycles culminate into larger macro-cycles.

Summary:
Explaining the Upper and Lower Bounds in the 60-Day Cycle Strategy:

1. Cycle High (Upper Bound):
The cycle high is the highest closing price of the asset over the past 60 days. This value acts as the upper boundary of the 60-day cycle, indicating the peak price level during this period. When the current closing price is above this boundary, it suggests a potential distribution phase, where the asset might be overbought, and larger players may be selling off their positions. In the strategy, the cycle high is plotted as a red line on the chart, helping traders visually identify the upper limit of the 60-day trading range.

2. Cycle Low (Lower Bound):
The cycle low is the lowest closing price of the asset over the past 60 days. This value acts as the lower boundary of the 60-day cycle, indicating the trough price level during this period. When the current closing price is below this boundary, it suggests a potential accumulation phase, where the asset might be oversold, and larger players may be accumulating positions at lower prices. In the strategy, the cycle low is plotted as an orange line on the chart, helping traders visually identify the lower limit of the 60-day trading range.

How These Bounds Are Calculated:

• Cycle High: Calculated using the highest closing price over the last 60 trading days. In Pine Script, this is achieved with the function ta.highest(close, cycle_length), where cycle_length is set to 60 days.
• Cycle Low: Calculated using the lowest closing price over the last 60 trading days. In Pine Script, this is achieved with the function ta.lowest(close, cycle_length), where cycle_length is set to 60 days.

Interpretation and Application:

• Buy Signal: A buy signal is generated when the closing price crosses above the cycle low. This indicates a potential end to the bearish phase and the start of a bullish trend.
• Distribution Phase: When the closing price crosses above the cycle high, it suggests the market is in a distribution phase, potentially signaling a bearish trend or a sell-off period.

Example:
On a trading chart, the cycle high and cycle low are plotted as horizontal lines, with their colors distinguishing them (red for cycle high and orange for cycle low). These lines create a visual range within which the asset's price has moved over the last 60 days, helping traders quickly assess whether the current price is near the upper or lower bound.

By identifying and plotting these upper and lower bounds, traders can better understand the current market phase and make more informed trading decisions based on the 60-day cycle strategy. This indicator can be used across various assets.
Bands and ChannelsChart patternsCycles

오픈 소스 스크립트

진정한 TradingView 정신에 따라, 이 스크립트의 저자는 트레이더들이 이해하고 검증할 수 있도록 오픈 소스로 공개했습니다. 저자에게 박수를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰에 의해 관리됩니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

차트에 이 스크립트를 사용하시겠습니까?

면책사항