Auto trendlines Indicator
- 지표
- Van Tuan Hinh Nguyen
- 버전: 2.0
- 활성화: 10
Indicator Name: Auto Trend Line
Description: Automatically draws trend lines with optimized and enhanced trend direction detection.
Main Features:
1. Automatic Trend Line Drawing:
-
Two main lines are plotted:
-
Support Line – color: Magenta
-
Resistance Line – color: Cyan
-
-
Lines are calculated based on:
-
Two extremums (highs/lows)
-
or an extremum and a delta (custom offset)
-
2. Trend Direction Detection:
-
The indicator determines the current trend as:
-
TREND_UP (Uptrend value = 1)
-
TREND_DOWN (Downtrend value = 0)
-
TREND_NEUTRAL (Sideways value = -1)
-
-
It can optionally display the trend information on the chart.
3. User Input Parameters:
| Parameter | Description |
|---|---|
| InpLineType | Method for calculating lines (by extremums or delta) |
| InpLeftExmSide | Number of bars to the left used to find extremums |
| InpRightExmSide | Number of bars to the right for extremum detection |
| InpFromCurrent | Offset from the current bar (used in delta method) |
| InpPrevExmBar | Whether to include the bar before the extremum |
| InpShowObjects | Whether to display graphical trendline objects |
| InpExtendLines | Extend the trendlines to the right side of the chart |
| InpTrendThreshold | Angle threshold for determining trend direction |
| InpShowTrendInfo | Display text trend info (enabled/disabled) |
| InpMaxBarsToProcess | Maximum number of bars to process |
4. Customization Options:
-
Support and resistance line colors and line width are customizable.
