Auto trendlines Indicator
- Indicators
-
Van Tuan Hinh Nguyen
Hi 👋, I'm Hinh
A passionate backend developer from VietNam
- 👨💻 All of my projects are available at [facebook.com/hinh630](facebook.com/hinh630)
- 💬 Ask me about **laravel , ruby on rails**
- 📫 How to reach me **vanhinh2003@gmail.com**
Connect with me:
Languages and Tools: - Version: 2.0
- Activations: 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.
