OPEN-SOURCE SCRIPT

Long-Term Trend Detector

Cập nhật
The Long-Term Trend Detector is a powerful tool designed to identify sustainable trends in price movements, offering significant advantages for traders and investors.

Key Benefits:

1. Projection Confidence: This indicator leverages Pearson's R, a statistical measure that indicates the strength of the linear relationship between price and trend projection. A higher Pearson's R value reflects a stronger correlation, providing increased confidence in the identified trend direction.

2. Adaptive Channel Detection: By calculating deviations and correlations over varying lengths, the indicator dynamically adapts to changing market conditions. This adaptive nature ensures robust trend detection across different time frames.

3. Visual Clarity: The indicator visually displays long-term trend channels on the chart, offering clear insights into potential price trajectories. This visualization aids in decision-making by highlighting periods of strong trend potential.

4. Flexibility and Customization: Users can customize parameters such as deviation multiplier, line styles, transparency levels, and display preferences. This flexibility allows traders to tailor the indicator to their specific trading strategies and preferences.

5. Historical Analysis: The indicator can analyze extensive historical data (up to 5000 bars back) to provide comprehensive trend insights. This historical perspective enables users to assess trends over extended periods, enhancing strategic decision-making.

In summary, the Long-Term Trend Detector empowers traders with accurate trend projections and confidence levels, facilitating informed trading decisions. Its adaptive nature and customizable features make it a valuable tool for identifying and capitalizing on long-term market trends.
Phát hành các Ghi chú
Tooltip added:
If the channel is not visible, scroll back on the chart for additional historical data.
Phát hành các Ghi chú
Minor Update: I've added the ability to choose the color of the Mid Line.
Phát hành các Ghi chú
The Annualized Return corresponding to the period of the Selected Trend drawn by the indicator has been added. This feature is currently displayed only in the Daily timeframe.
Phát hành các Ghi chú
Major Update:
This update introduces the 'Most Active Levels' feature.
Users can now visualize the price level with the highest trading activity within the trend channel.
This level is calculated based on either the number of price touches or trading volume.
To achieve this, the indicator divides the trend channel into multiple levels (user-defined).
Linear RegressionregressionsTrend Analysis

Mã nguồn mở

Theo tinh thần TradingView thực sự, tác giả của tập lệnh này đã xuất bản dưới dạng nguồn mở để các nhà giao dịch có thể hiểu và xác minh. Chúc mừng tác giả! Bạn có thể sử dụng miễn phí. Tuy nhiên, bạn cần sử dụng lại mã này theo Quy tắc nội bộ. Bạn có thể yêu thích nó để sử dụng nó trên biểu đồ.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?


The trend is your friend, until it's not
Ngoài ra, trên:

Thông báo miễn trừ trách nhiệm