Trades-AI

Trendlines [TradesAI]

Trades-AI Mis à jour   
What is it?

This indicator allows the user to pick any Candle (preferably a Pivot, for better results) to draw the most relevant Trendlines from it as Origin, while keeping track of candle closes across these Trendlines to adjust or invalidate accordingly.

It allows for up to 2 Origins to be picked on chart. Remember to pick a Bullish candle to draw Downtrends, and a Bearish candle to draw Uptrends. The algorithm will draw the most suitable Active Trendlines from those Origin points.

How does it do it?

The indicator takes the Origin point as the first point of the Trendline, then starts looking for the immediate next same-type candle (Bullish to Bullish or Bearish to Bearish), to draw the Trendline between the Origin candle and this newer candle.

An Uptrend is a ray connecting two Bearish candles, as long as the second candle has a Low higher than the Low of the Origin (first) candle. A Downtrend is a ray connecting two Bullish candles, as long as the second candle has a High lower than the High of the Origin (first) candle.

Upon drawing, the indicator then starts monitoring and adjusting this Trendline, by keeping the Origin always the same, but changing the second point. The goal is to keep reducing the slope of the Trendline till it is at 0 degrees (horizontal line). That then makes the Trendline "Final".

So, the algorithm has 3 States for the Trendlines:

  1. Initial: not tested, meaning price hasn't yet broken through it and closed a candle beyond it, to cause a re-adjustment of this Trendline.
  2. Broken: candle Hard Closed (its Open and Close) across it but still the direction of the Trend is maintained with a new Trendline from the same Origin – could be replaced (or kept on chart as "Backside", which is what we call a Broken Trendline to be tested from the opposite side) with a new Trendline from the same Origin, to the newest candle that caused the break to happen, as then it becomes the new second point of that trendline.
  3. Final: candle Hard Closed across it and can't draw a new Trendline from the same Origin maintaining the direction of the Trend (so an uptrend becomes a downtrend or a downtrend becomes an uptrend at this point, which is not allowed). This marks the end of Trendline adjustment for that Origin.

To summarize the algorithm, imagine starting from a candle and drawing the trendline, then keep re-adjusting it to make its slope less and less, till it becomes a horizontal line. That's the final state.

Unlike traditional trendline tools, this indicator takes into account numerous rules for each candlestick to determine valid support and resistance levels, which act as Liquidity Zones.

What does it do differently?

Unlike conventional trendline tools, this indicator allows the user to pick the Pivot point as Origin, then automatically recognizes and extends lines from them as Liquidity Zones where a reaction is expected. Moreover, the indicator monitors those trendlines in real-time to switch them from Buying to Selling zones, and vice-versa, as price structure changes.

Features

Log vs. Linear scale switch to show different trendlines accordingly. When updating the Trendlines, or deciding whether Touches/Hard Closes are met, it makes a difference.
Ability to show all forms of Trendlines, Final Trendlines or just Backside Trendlines.

Why is it used?

For experienced traders, it offers the advantage of time-efficiency, while new traders can bypass the steep learning curve of drawing trendlines manually, which could practically be drawn between any two candlesticks on the chart (unlimited variations).
Notes de version:
- Improved Default Settings

Get Access to TradesAI indicators: www.tradesai.com

FREE Telegram Signals: t.me/trades_ai

Discord Community: discord.gg/UVFekaqVhA

All scripts & content provided by TradesAI are for informational & educational purposes only.
Script protégé
Ce script est publié en code source fermé et vous pouvez l'utiliser librement. Vous pouvez le préférer pour l'utiliser sur un graphique. Vous ne pouvez pas visualiser ou modifier son code source.
Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.

Vous voulez utiliser ce script sur un graphique ?