LongTrend

447
LongTrend

Overlay indicator for TradingView that combines an adaptive, clustering-based trend following engine, PVSRA volume analysis and three moving averages, with a summary dashboard and confluence signals.

HOW IT WORKS

1) LongTrend AI
The script calculates in parallel multiple variants of an ATR-based trailing stop, each with a different multiplier (from Min to Max, according to the Step setting). Each variant is scored with an exponential moving average of its performance (Performance Memory). A K-Means algorithm splits the variants into three clusters: Best, Average and Worst. The average multiplier of the selected cluster (Source Cluster) drives the final trailing stop and the trend state (BULL/BEAR).

2) PVSRA and volume
Candles are colored according to volume relative to its moving average:
- Climax (green/magenta): volume equal to or above 2.7 times the average
- Rising (soft green/magenta): volume equal to or above 1.8 times the average
- Normal: white if bullish, red if bearish
All colors and multipliers can be changed from the settings menu.

3) Moving averages
SMA 20, 50 and 200 with dynamic color based on slope.

4) SUPER CONFLUENCE signals
A BUY or SELL signal appears only when all of the following occur together:
- the LongTrend trailing stop crosses the SMA 20
- the LongTrend trend agrees with the direction
- volume is at least Rising
- the candle closes in the direction of the signal
Alerts are available for both signals.

5) Dashboard
Table showing the AI trend status, PVSRA volume, SMA 20/50 relationship, price position relative to the SMA 200 and the AI multiplier in use. Position and size are configurable.

DISCLAIMER

This indicator is provided for informational and educational purposes only and does not constitute financial advice, an investment recommendation or a solicitation to buy or sell any instrument. Trading, especially in cryptocurrencies, involves a high level of risk and may result in the partial or total loss of the invested capital. Past performance does not guarantee future results. Signals may be wrong or late, and the indicator is not a substitute for your own analysis or proper risk management. The user is solely responsible for their own trading decisions. Use this script at your own risk and, if needed, consult a qualified financial advisor.

إخلاء المسؤولية

لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.