tantisch

Trend lines

tantisch Zaktualizowano   
This script aims to identify and plot trend lines and pivot points on a price chart, with the aim of facilitating technical analysis for trading.

The script allows users to configure a number of parameters including the period for Pivot Points, the maximum number of pivots, and the maximum number of trend lines.

Pivot points (local highs and lows in the price data) are identified using TradingView's built-in pivot high and pivot low functions. The identified pivot points are then stored in arrays. The script also optionally plots these points on the chart.

The main goal of the script is to find and plot trend lines based on the pivot points. For each pair of pivot points, it computes the slope of the line connecting them. If all the other pivot points are below this line (for downward trends) or above this line (for upward trends), the line is considered a valid trend line.

The script also includes a feature that suggests potential "buy" or "sell" points along the trend lines. When the price touches the trend line, a label indicating a potential trading action (buy or sell) is created on the chart.
Informacje o Wersji:
fixed a problem where the line crosses the price and doesnt dissapear.
Informacje o Wersji:
changed reference image
Informacje o Wersji:
changes to make it a little bit faster
Informacje o Wersji:
- removed signals because this indicator does not need them
- updated logic
- added different colors for lines
Skrypt open-source

Zgodnie z prawdziwym duchem TradingView, autor tego skryptu opublikował go jako open-source, aby traderzy mogli go zrozumieć i zweryfikować. Brawo dla autora! Możesz używać go za darmo, ale ponowne wykorzystanie tego kodu w publikacji jest regulowane przez Dobre Praktyki. Możesz go oznaczyć jako ulubione, aby użyć go na wykresie.

Wyłączenie odpowiedzialności

Informacje i publikacje przygotowane przez TradingView lub jego użytkowników, prezentowane na tej stronie, nie stanowią rekomendacji ani porad handlowych, inwestycyjnych i finansowych i nie powinny być w ten sposób traktowane ani wykorzystywane. Więcej informacji na ten temat znajdziesz w naszym Regulaminie.

Chcesz użyć tego skryptu na wykresie?