Trend Following with Dynamic Price ZonesThis script provides a complete framework for following trends , especially on those assets which are sufficiently liquid and don't go through random spikes.
Since it is a trend-following system, it works well during trends only. However, I cannot claim any numbers since the execution requires some discretion at the user's end. This framework can also be combined with other technical tools such as trend lines to increase its efficacy.
Features:
Dynamic Price Zones:
• The Dynamic Price Zones (DPZ) are determined using a proprietary logic that incorporates price movement and certain other factors.
• These zones change more rapidly than conventional support and resistance (S/R) zones, which is why I have named them "Dynamic".
• DPZs can serve as support and resistance zones and help with trend identification to some extent.
• The upper boundary of a zone is called Dynamic Price Zone High (DPZ-H) , while the lower boundary is called Dynamic Price Zone Low (DPZ-L) .
Colour Bars:
• Candle colours are based on another proprietary logic, independent of dynamic price zones .
• These are not traditional moving average-based coloured bars, which is evident from the presence of uncoloured bars in between.
• The uncoloured bars indicate periods of uncertain trends .
• Colour functionality helps in smoothening the trend and assists in riding it for as long as possible.
Stats Table:
• RSI
• VWAP
• % Change from the previous day's closing
• Dynamic Price Zone High (DPZ-H) value
• Dynamic Price Zone Low (DPZ-L) value
Settings:
• DPZs are displayed as horizontal lines with background fill by default, but users can toggle lines and background fill on or off.
• Bar colours can be customized according to user preferences.
• The table can be enabled or disabled based on user input.
• The position of the table can be changed based on 4 available options: Top Left, Top Right, Bottom Left, and Bottom Right.
• Users can toggle individual table fields on or off . For example: If the user wants to hide "Vwap" and "%Change" values, he can turn them off. In that case, only 3 fields will be displayed on the table without occupying additional space.
• Background and text colours for each field of the table can be customized based on user preferences.
How to Use the Dynamic Price Zones:
• When the price is above a DPZ, it indicates a bullish trend , suggesting the possibility of higher prices. These zones are termed Bullish DPZs.
• Conversely, if the price is below a DPZ, it signals a bearish trend , with an expectation of lower prices. These zones are termed Bearish DPZs.
• In a trending market, when the price returns to a previous DPZ, it can present a trading opportunity in the direction of the prior trend (e.g., if the market is falling and the price returns to a previous DPZ, it is likely to reject it).
• Consecutive ascending DPZs indicate a shift in buyers from lower to higher levels and can provide buying opportunities. This also indicates a period of a strong bullish trend.
• Similarly, consecutive descending DPZs indicate a shift in sellers from higher to lower levels and can provide selling opportunities. This also indicates a period of a strong bearish trend.
• Please note that we must be flexible when determining the consecutive zones. For example: There may be a few smaller bearish DPZs in between the bullish DPZs but if the area is dominated by the bullish DPZs then we can consider the zones as consecutive. Similar is true for bearish consecutive zones.
• Closely stacked or adjacent zones suggest that prices will likely remain within a range, moving sideways.
• Wider zones act as big hurdles and, the price may struggle to cross them. They may also lead to a sideways movement.
• Zones that remain clean and untested for several sessions are likely to act as strong support or resistance when the price revisits them.
Bullish Examples:
Bearish Examples:
Some Examples of the Complete System
Trend follower system combined with Trendlines
Special Thanks
I would like to extend my special thanks to all the experts whose lectures and blogs I have studied to gain a limited yet significant knowledge of the Pine language.
Best regards,
Rajat Kumar Singh (@johntradingwick)
Community Manager (India), TradingView.
Cerca negli script per "trend"
Trend Tracer [Cloud] (Expo)█ Overview
The Trend Tracer (Expo) indicator identifies and predicts the future market direction. The cloud is designed to make it easier to see when a market is trending in one direction or another and to help traders identify potential entry and exit points, as well as trend changes. It is a visual representation of the price's momentum, price action, and volatility by using the trend range in a cloud-like pattern. The bigger the cloud, the more momentum the price has.
█ How is the trend tracer cloud calculated?
The primary function used in the code is an extension of traditional single-smoothed moving averages, using a more sophisticated weighting system to reduce the effect of short-term fluctuations and provide a clearer view of the underlying trend. Using this function, we get a unique leading trend tracer while maintaining a robust long-term trend tracer. This allows for more accurate trending signals and helps reduce the amount of noise in the data.
█ Trend Cloud Trading
Trend Cloud Trading is a type of trading based on technical analysis that uses a tool called a trend cloud. A trend cloud is a graphical representation of how a certain asset or instrument is trending over a specific period of time. The trend cloud will highlight areas where there is high volatility, low volatility, and the current trend direction and its strength.
█ How to use
One way of using the indicator is to look for a "cloud break," which is when the cloud turns from red to green (or vice versa) and indicates a change in the trend.
S/R Levels
The Trend Tracer Cloud can be used to find support in a bullish trend and resistance in a bearish trend. If the cloud is sloping downwards in a bearish trend, traders can look for potential resistance levels at the highs of the cloud. Similarly, if the cloud is sloping upwards in a bullish trend, traders can look for potential support levels at the lows of the cloud.
Volatility
The width of the cloud is used to determine if there is high or low volatility.
Strength
The deviation between the leading trend advisor line and the price determines whether a trend is strong or weak. The larger the deviation, the stronger the trend move.
█ Indicator Features
Trend Cloud
It highlights the trending range, current volatility, and trend direction.
Trend Advisor - leading and trending + cloud
The leading trend advisor highlights the short-term trend strength and momentum, while the trending trend advisor highlights the underlying long-term trend.
Trend Tracker
The Trend Tracker is a fast-moving trend-following line that combines long-term and short-term trend characteristics.
Trend Candlesticks
The Bar coloring uses momentum to highlight the current trend direction.
-----------------
Disclaimer
The information contained in my Scripts/Indicators/Ideas/Algos/Systems does not constitute financial advice or a solicitation to buy or sell any securities of any type. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
My Scripts/Indicators/Ideas/Algos/Systems are only for educational purposes!
TopTenAlgo 7. Linear Trend Tracking (Without Volume & Coloring)EN:
Dogrusal Trend Takipcisi is used in conjunction with Gosterge Trend. Both indicators are for approval of each other. While the Indicator looks at Logarithmic to prices, It looks at Linear. Although its mathematical function is stuck between two trend lines like Gösterge Trend, the Dogrusal Trend Takipcisi can also be used as the main histogram, the absolute value of the difference between the trend and the down trend line .
If the uptrend line is larger than the downtrend, histogram bars are light green or dark green areas. When the bullish trend line now crosses the down trend line , the bar is dark green. When the up trend line is larger than the down trend line and the up trend line increases, the bars also become dark green. This tendency starts to keep getting stronger. If the bullish trend line is larger than the bearish trend line but decreases, the bars are light green. This is when the bullish trend loses strength, So, Uptrend is weakening.
If the downtrend line is larger than the bullish trend line , a negative occur, and the bars become red or light red. If the bearish trend line has exceeded the bullish trend line or the value is increasing, the bar is in red. If the bearish trend line is larger than the bullish trend line but the value is decreasing, the bars are light red. This comes when the downward trend is losing power. So, Downtrend is weakening. For symbols for which the Volume Indicator cannot be read.
This algorithm is prepared with @Top10Algo ...
TR: Doğrusal Trend Takipçisi Gösterge Trendle ile beraber kullanılır. Her iki göstergede birbirinin onayını almak içindir. Gösterge Trend fiyatlara logaritmik bakarken, Doğrusal Tren Takipçisi Linear bakar. Matematiksel fonsiyonu Gösterge Trend gibi iki trend çizgisi arasına sıkışmış olsada Doğrusal Trend Takipçisi ayrıca ana histogram olarak gösterilen yukarı trend ve aşağı trend çizgisi arasındaki farkın mutlak değerini linear olarak hesaplayarak momentumun gücünü ölçer ve size zayıflayan trendleri haber eder.gösterir.
Yukarı trend çizgisi aşağı trendden büyükse (bu nedenle pozitif hareketi gösterir), histogram çubukları açık yeşil veya koyu yeşil olacaktır. Artış trendi çizgisi şimdi aşağı trend çizgisini geçtiğinde, çubuk koyu yeşil olacaktır. Yukarı trend çizgisi aşağı trend çizgisinden daha büyük olduğunda ve yukarı trend çizgisi arttığında çubuklar da koyu yeşil olur. Bu eğilimin güçlenmeye devam ettiği anlamına geliyor. Yükseliş trendi çizgisi düşüş trendi çizgisinden büyükse ancak azalıyorsa, çubuklar açık yeşil olacaktır. Bu yükseliş eğiliminin güç kaybettiği anlamına gelir.Yani yükseliş trendi zayıflıyordur.
Düşüş trendi çizgisi yükseliş trendi çizgisinden büyükse, olumsuz bir eğilim oluşur ve çubuklar kırmızı veya açık kırmızı olur. Düşüş trendi çizgisi yükseliş trendi çizgisini aştıysa veya değer artıyorsa, çubuk kırmızı olacaktır. Düşüş trendi çizgisi yükseliş trendi çizgisinden büyükse, ancak değer azalıyorsa, çubuklar açık kırmızı olacaktır. Bu düşüş eğiliminin güç kaybettiği anlamına gelir. Yani düşüş trendi zayıflıyordur. Hacim Göstergesinin okunamadığı semboller içindir.
Bu algoritma @Top10Algo ile beraber hazırlanmıştır...
TopTenAlgo 7. Linear Trend Tracking (Include Volume & Coloring)EN:
Dogrusal Trend Takipcisi is used in conjunction with Gosterge Trend. Both indicators are for approval of each other. While the Indicator looks at Logarithmic to prices, It looks at Linear. Although its mathematical function is stuck between two trend lines like Gösterge Trend, the Dogrusal Trend Takipcisi can also be used as the main histogram, the absolute value of the difference between the trend and the down trend line .
If the uptrend line is larger than the downtrend, histogram bars are light green or dark green areas. When the bullish trend line now crosses the down trend line , the bar is dark green. When the up trend line is larger than the down trend line and the up trend line increases, the bars also become dark green. This tendency starts to keep getting stronger. If the bullish trend line is larger than the bearish trend line but decreases, the bars are light green. This is when the bullish trend loses strength, So, Uptrend is weakening.
If the downtrend line is larger than the bullish trend line , a negative occur, and the bars become red or light red. If the bearish trend line has exceeded the bullish trend line or the value is increasing, the bar is in red. If the bearish trend line is larger than the bullish trend line but the value is decreasing, the bars are light red. This comes when the downward trend is losing power. So, Downtrend is weakening.
This algorithm is prepared with @Top10Algo ...
TR: Doğrusal Trend Takipçisi Gösterge Trendle ile beraber kullanılır. Her iki göstergede birbirinin onayını almak içindir. Gösterge Trend fiyatlara logaritmik bakarken, Doğrusal Tren Takipçisi Linear bakar. Matematiksel fonsiyonu Gösterge Trend gibi iki trend çizgisi arasına sıkışmış olsada Doğrusal Trend Takipçisi ayrıca ana histogram olarak gösterilen yukarı trend ve aşağı trend çizgisi arasındaki farkın mutlak değerini linear olarak hesaplayarak momentumun gücünü ölçer ve size zayıflayan trendleri haber eder.gösterir.
Yukarı trend çizgisi aşağı trendden büyükse (bu nedenle pozitif hareketi gösterir), histogram çubukları açık yeşil veya koyu yeşil olacaktır. Artış trendi çizgisi şimdi aşağı trend çizgisini geçtiğinde, çubuk koyu yeşil olacaktır. Yukarı trend çizgisi aşağı trend çizgisinden daha büyük olduğunda ve yukarı trend çizgisi arttığında çubuklar da koyu yeşil olur. Bu eğilimin güçlenmeye devam ettiği anlamına geliyor. Yükseliş trendi çizgisi düşüş trendi çizgisinden büyükse ancak azalıyorsa, çubuklar açık yeşil olacaktır. Bu yükseliş eğiliminin güç kaybettiği anlamına gelir.Yani yükseliş trendi zayıflıyordur.
Düşüş trendi çizgisi yükseliş trendi çizgisinden büyükse, olumsuz bir eğilim oluşur ve çubuklar kırmızı veya açık kırmızı olur. Düşüş trendi çizgisi yükseliş trendi çizgisini aştıysa veya değer artıyorsa, çubuk kırmızı olacaktır. Düşüş trendi çizgisi yükseliş trendi çizgisinden büyükse, ancak değer azalıyorsa, çubuklar açık kırmızı olacaktır. Bu düşüş eğiliminin güç kaybettiği anlamına gelir. Yani düşüş trendi zayıflıyordur.
Bu algoritma @Top10Algo ile beraber hazırlanmıştır...
Goersch TrendENGLISH:
Goersch Trend Indicator for TradingView is a trend indicator that shows the actual trend and the trend strength based on the price movement of the past. The indicator can be used for any underlying and trading timeframe. The special feature is that it is extremely easy to interpret and that it works "out-of-the-box". The calculation automatically adjusts to the displayed timeframe. The interpretation of the Goersch Trned indicator is always the same - whether you are looking at a stock, a currency, an index or a commodity. Regardless of whether you work in the 5-minute chart, hourly, daily or even weekly chart. It is extremely simple to judge whether an underlying is running in a trend, whether this trend strength is currently increasing (stable) or decreasing (when the trend is weakening), or whether the trend is currently changing direction. The indicator shows you the important information at a glance.
The interpretation of the Goersch Trend indicator is very simple. Red bars represent a downward trend, green bars appear during an upward trend. The change from red to green signals a change from a downward to an upward trend and vice versa. The height of the bars represents the trend strength. The trend strength decreases when the bars become shorter. The change from red to green then signals a completed trend change.
For the calculation of the bar height, the fluctuation of a price change index is used as a basis in the Goersch Trend Indicator. The price change index is calculated from the respective candle closing price and the true high or true low of the previous candle, which is added or subtracted accordingly. From this price change index, a long-term moving average is calculated, the difference between this average and the price change index is visualized by means of the red and green bars.
To get access to the script, please PM, or send a message to the email address in the signature.
DEUTSCH:
Beim Goersch Trend Indikator für TradingView handelt es sich um einen Trend-Indikator, der anhand der Preisbewegung der Vergangenheit den Trend sowie die Trendstärke anzeigt. Verwendet werden kann der Indikator für jegliche Basiswerte und Zeiteinheiten. Das Besondere ist, dass er extrem leicht zu interpretieren ist und dass er "out-of-the-box" arbeitet. Die Berechnung passt sich automatisch auf die dargestellte Zeitebene an. So ist eine Interpretation immer gleich – egal ob Sie eine Aktie, eine Währung, einen Index oder einen Rohstoff betrachten. Unabhängig davon, ob Sie im 5-Minuten-Chart, Stunden-, Tages- oder gar Wochen-Chart arbeiten. Dabei ist es äußerst simpel zu beurteilen, ob ein Wert in einem Trend läuft, ob diese Trendstärke gerade zunimmt (also stabil ist) oder abnimmt (der Trend also schwächer wird), oder ob der Trend gerade kippt. Der Indikator zeigt Ihnen die wichtigen Informationen auf einen Blick.
Die Interpretation des Goersch Trend Indikators ist denkbar einfach. Rote Balken stehen für einen Abwärtstrend, grüne Balken erscheinen während eines Aufwärtstrends. Der Wechsel von Rot auf Grün signalisiert einen Wechsel vom Abwärts- in einen Aufwärtstrend und umgekehrt. Die Höhe der Balken repräsentiert die Trendstärke. Dadurch ergibt es sich schon, dass beispielsweise die Trendstärke abnimmt, wenn die Balken kürzer werden. Der Wechsel von Rot auf Grün signalisiert dann einen vollendeten Trendwechsel.
Für die Berechnung der Balkenhöhe wird im Goersch Trend Indikator die Schwankung eines Preisveränderungsindex zugrunde gelegt. Dieser errechnet sich aus dem jeweiligen Kerzen-Schlusskurs und dem True-High bzw. True-Low der vorhergehenden Kerze, das entsprechend hinzugerechnet oder abgezogen wird. Von diesem Preisveränderungsindex wird ein langfristiger gleitender Durchschnitt errechnet, die Differenz dieses Durchschnittes und des Preisveränderungsindex wird mittels der roten und grünen Balken visualisiert.
Um Zugang zum Skript zu erhalten, bitte eine PM, oder eine Nachricht an die Emailadresse in der Signatur.
Trend & Contrarian (Expo)Trend & Contrarian (Expo) is a powerful trend tool with adaptive contrarian- signals. A strong trend is displayed by the background color and the unique Trend dots/line can be used to confirm a strong trend or to identify early trend reversals. The contrarian-signals are adapting dynamically to price moves and should be used as 'preparation' or 'warning' prior to trigger, should be confirmed by a trend reversals signal or by other indicators.
The contrarian signals should only be used if the user fully understands how they work, please test the feature before entering a trade based on it. However, these signals can be very valuable if used correctly.
Green background color ➞ Strong Positive Trend
Red background color ➞ Strong Negative Trend
No background color? ➞ No strong trend. The Trend Dots/line determine the trend
HOW TO USE
Identify strong trends
Identify trend reversals
Identify contrarian signals
INDICATOR IN ACTION
4-hour chart
I hope you find this indicator useful , and please comment or contact me if you like the script or have any questions/suggestions for future improvements. Thanks!
I will continually work on this indicator, so please share your experience and feedback as it will enable me to make even better improvements. Thanks to everyone that has already contacted me regarding my scripts. Your feedback is valuable for future developments!
-----------------
Disclaimer
Copyright by Zeiierman.
The information contained in my scripts/indicators/ideas does not constitute financial advice or a solicitation to buy or sell any securities of any type. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, or individual’s trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
My scripts/indicators/strategies/ideas are only for educational purposes!
ACCESS THE INDICATOR
• Contact me on TradingView or use the links below
Xtreme TrendDisclaimer: This base Script is derived and tweaked from Half Trend. But unlike halftrend, it doesn't repaint and signals come at different logic.
Background:
I was using this script and trading with this for a while. Few weeks back I had come across a similar Script being sold as premium in Tradingview for $100 per month. The seller has a lots of videos in youtube and claims that he has created this script by investing lakhs and it also takes consideration of price action !!! . No doubt he is a successful trader but if you watch his other videos you will realize that he trades with S/R, trendlines and price action. He speaks quite well, and the morphed videos give impressions that all his profits are from using this indicator. I fell for it, but then after using for a few days I had realized that both the indicators are almost same, but giving signals at different time. When I edited my indicator for a few settings, it appeared that now signals are also coming exactly at same point. I never wanted to publish this script, but this person was going on and on fooling people. So, I have decided to publish it here, as a protected code. Again this is no holy grail. Works well in trending market and hell in sideways.
How to Use:
PLEASE WAIT TILL CANDLE CLOSE, take entry in the beginning of next candle. Time frame: 5 mins for index, 15 mins - 30 mins for stocks
Add 200 EMA over it ( Personally I love using 50 MA) and buy when signal and price both are on same side. Example, buy when there is buy signal + price is above 200 EMA
Sell: When price is below 200 EMA and there is a sell signal on the indicator.
Seems better when you mix it with pivots, S/R etc.
please comment, if you find this useful.
Trend Analysis IndicatorThe Trend Analysis Indicator was created by Adam White (Stocks & Commodities V. 10:8 (358-360)) and this is not to be confused with the Trend Analysis Index which was also created by Adam White. The stock is trending when it is above the signal and loses steam when it falls below the signal. Generally you should buy when it is above it's signal and sell when it goes below the signal.
Let me know if you would like me to write more scripts!
Trend Following MAs 3DHello All,
This is Moving Averages Trend Following 3D indicator. The idea is based on direction of MAs and relation between 20 moving averages (5 to 100 period).
Option to show different type of MAs: EMA, SMA, RMA, WMA, VWMA.
As I haved tested it looks succesful at calculating trend direction and trend strength.
For a better look I tried to make it 3D, it looks good I think, waiting comments ;)
Some screenshots:
By using RMA type:
When it gets tiny it means there is no trend:
An example for down trend:
ENJOY!
Simply Trendy RasterChartThis is my "Simply Trendy RasterChart" using PSv4.0 freely available to ALL! Simply Trendy, shown with the multiple color schemes on the bottom portion of the chart, is an indicator that differentiates with color between trending moments up and down, but is also effective at identifying trend reversals clearly. The bottom of the indicator is most reactive and indicates reversals, while the upper portion of the indicator commonly shows enduring trends. I included a horizontal rule to approximately gauge at what level you may wish to have before entering/exiting a trade upon identifying a trend change. This gizmo functions on all assets on time frames ranging from one second bars up to the "All" chart having monthly bars. Possible uses are quickly identifying assets that are not only opportunistic towards buying, but also selling/shorting when that time arrives later.
I decided to release this freely so members can become familiar with how my RasterCharts function. However, it may serve as another tool in the trend analysis tool belt you may want to have. It's the most basic of RasterCharts that I may have, and it gives the user an opportunity to witness/grasp RasterChart fundamental theory and operation in real time. Underneath the hood, the code is truly VERY SIMPLE also, hence the entitled name given. This was originally an experiment that turned out to be impressive, exceeding my expectations of attempting it. It's behavior is similarly close to my "TrendSetter RasterChart" and may serve as a trainer before acquiring that, any other RasterCharts I have currently, or shall create in the future. With that said, I hope you find this "simply" handy , and I'm also wishful for it to potentially garner a "trendy" reputation among the many members who may discover it.
I provided multiple color schemes for those of you who may have color blindness vision impairments. You may contact me in private if these color schemes are not suitable for your diagnosed visual impairment, and you would wish to contribute to seeing the color schemes improved along with other future indicators I shall release.
Features List Includes:
"Color Scheme" selection (all displayed above)
"RasterChart Transparency" control
"Source" selection
"Horizontal Rule" adjustment
The comments section below is solely just for commenting and other remarks, ideas, compliments, etc... regarding only this indicator, not others. When available time provides itself, I will consider your inquiries, thoughts, and concepts presented below in the comments section if you do have any questions or comments regarding this indicator. When my indicators achieve more prevalent use by TV members, I may implement more ideas when they present themselves as worthy additions. As always, "Like" it if you simply just like it with a proper thumbs up, and also return to my scripts list occasionally for additional postings. Have a profitable future everyone!
BOSS Automatic TrendlinesTHE BEST FOREX, BINARY OPTIONS, AND CRYPTO INDICATORS FOR TRADINGVIEW.COM
Trendlines when drawn properly make an excellent tool for traders. Used improperly though, they become ineffective and even counterproductive, resulting in a belief that prices have made a reversal when they really haven't, or that a trend has strength when price action suggests it doesn't.
The Boss Auto Trendline Indicator draws the trendlines automatically, and now you can effectively use trendlines as part of your trading strategy.
Trendlines highlight a trend or range (sideways movement). A trendline connects swing lows, where the low is lower than the surrounding prices, and swing highs in price. When the price rises, the swing lows rise.
Red Lines & Dots.
Connecting these lows with a line results in an ascending trendline, showing you that the trend is up. A trendline can also be drawn along the swing highs. This shows the angle of ascent, and the strength of the price move, whether strongly higher or not.
Green Lines & Dots
When the price falls, the swing highs fall. Connecting these highs with a line results in a descending trendline, illustrating the downward trend. A trendline can also be drawn along the swing lows. This shows the angle of descent and the strength of the downward price movement.
Available at bosscripts.com
Website bosscripts.com
Gleeson Trend Tracker (GTT) IndicatorComprehensive Trend Trading System Indicator made up of the four components to help you successfully trade market trends:
Entry Signals (Green & Red Arrows)
The entry arrows indicate entry conditions are present. Green for long entries and red for short entries. If you already in position in the direction of an entry signal, ignore it. Switch to position maintenance mode for that market once trading a market.
Current Trend Status Channels (Red/Green Overlay)
The channel overlay is intended to indicate whether the market has recently trended up/down. Green if moving higher, Red if moving Lower. Channels make it easier to visualise current & previous price trajectory.
On Close Stop Loss (OCSL) / Price Average (40 MA) Blue line
This acts both as the "line in the sand" in relation to trend direction but also importantly as your (OCSL) or sometimes also known as mental stop. If price closes beyond this line in the opposite direction to your position, exit the position. It's important to wait for price to close (this methodology works best on weekly charts so make entry & exit decisions when the market is closed). This method works best if you risk 1% per trade using the distance from entry price to the OCSL as your pre-defined risk, back-analysis confirms this.
Hard Stop Loss Red line
This line is your circuit breaker intended to protect your capital from sudden adverse moves. This line serves as the price for your fixed or hard stop loss point that should be entered with the order. The formula behind this line is risk * 2 (so 2% if you risk 1% between entry price and OCSL). HSL is your safety net, always use it.
Some other advice on how to trade this methodology:
Analysis Sunday, entries & exits Monday (so you can also have a life)
Do not pyramid with this system, it works best with individual entries spread across a range of markets including FX, Indices, Commodities and Interest Rates.
Risk only 1% per trade
This methodology works best over weekly/monthly charts. You want to capture moves that last weeks/months/years. I would not advise day trading this system.
If you have any feedback or need further help, email me at me@jackgleeson.co.uk
Good Luck!
MN - Auto TrendlineMN - Auto Trendline
📊 Definition
MN - Auto Trendline is a powerful multi-system technical tool designed to automatically detect and draw trendlines, support & resistance levels, and Fibonacci retracements on any chart and timeframe.
This script intelligently combines both traditional and advanced algorithms to visualize key market structures — helping traders identify breakout zones, reversal points, and trend continuations without manual line drawing.
✨ Key Features
Dual Trendline Systems – Combines both Original (swing-based) and Advanced (multi-pivot optimized) methods.
Automatic Support & Resistance Zones – Detects and marks major swing-based levels dynamically.
Fibonacci Retracement Tool – Auto-plots Fib retracements based on detected swing highs/lows.
Smart Violation Detection – Identifies when a trendline or zone is broken.
Customizable Visuals – Colors, widths, extensions, labels, and alerts are fully adjustable.
Alerts System – Optional notifications when new pivots, supports, or resistances are formed or broken.
🧭 Quick Preset Modes
Preset Description
Both Systems Enables both Original and Advanced trendline systems + S/R detection. (Default)
Original Only Uses the simple pivot-based trendline system.
Advanced Only Uses optimized multi-pivot detection for refined trendlines.
Support/Resistance Only Displays only Support and Resistance zones.
All Off Turns off all systems for a clean chart reset.
⚙️ User Toggles Explained
🎛️ Main Toggles
Original Trendlines – Enables the base trendline system using pivot highs/lows.
Advanced Trendlines – Enables smart multi-pivot trend detection.
Support & Resistance – Enables automatic S/R zone plotting.
📏 Fibonacci Retracements
Enable Fib Retracements – Turns on automatic Fibonacci plotting based on major swing points.
Labels show key retracement percentages (23.6%, 38.2%, 50%, 61.8%, etc.).
🔹 Pivot Points
Pivot Length – Controls how far the script looks for pivot confirmation.
Mark Pivots – Displays small triangles at detected high/low pivots.
Alerts Enabled – Sends alerts for new pivot formation.
📈 Original Trend Lines
Points to Check – Number of pivots to analyze for trendline creation.
Maximum Violation – Number of candle violations allowed before a trendline is marked as invalid.
Excepted Last Bars – Excludes recent bars from validation (useful for live markets).
Show Violated Lines – Optionally display broken trendlines in a faded style.
Line Extension – Extends trendlines (Right, Left, Both, or None).
Show Labels – Adds trendline price labels.
🎯 Advanced Trendlines
Pivot Length – Defines the pivot calculation depth for advanced detection.
Max Pivots to Keep – Limits the number of historical pivots considered.
Show Pivot Points – Optionally visualize each pivot used for advanced line generation.
Line Width / Extension Bars – Adjust trendline style and how far it extends into the future.
🛡️ Support & Resistance
Enabled – Activates support/resistance zones.
Points to Check – Determines how many pivot levels to use.
Maximum Violation Allowed – Number of candles that can break a level before it’s removed.
Excepted Last Bars – Skips very recent data to avoid premature zone formation.
Show Labels – Displays support/resistance labels with price levels.
Alerts Enabled – Sends alerts when price breaks above resistance or below support.
🎨 Visual Style
High Color / Low Color – Custom color scheme for resistances, supports, and trendlines.
Line Width – Controls the overall visual thickness of lines.
📢 Alerts
The script supports multiple alert types:
New Pivot Detected
Trendline Violated
Support Broken
Resistance Broken
💡 Tips
Works best on 15m–1D timeframes for swing and positional trading.
Combine with RSI, volume, or price action for confirmation.
For intraday traders, reduce Pivot Length and Points to Check for faster updates.
📚 Credits
Developed by Muralitharan_n
License: Mozilla Public License 2.0
Lanxang V6 – Trend FollowingLanxang V6 – Trend Following
The Lanxang V6 is a clean and simple trend-following tool that helps traders stay aligned with the market’s direction and catch key momentum shifts.
🔑 Features
- Trend Direction – The system colors moving averages and chart areas to make bullish and bearish trends easy to spot at a glance.
- Clear Buy/Sell Tags – When the market shifts direction, the indicator plots Buy or Sell tags directly on the chart for quick confirmation.
- Pullback Highlights – Bars are marked to signal potential continuation setups during trending conditions.
- Custom Visuals – Traders can adjust tag size, padding, and colors to match their chart style.
- Alerts – Real-time alerts for Buy/Sell signals keep you notified of trend changes without watching the screen all the time.
📈 How to Use
- Follow the Trend: Use the trend color as your main directional bias (green for bullish, red for bearish).
- Entry Signals: Take Buy/Sell tags as confirmation points when the trend shifts.
- Pullback Opportunities: Highlighted bars may indicate continuation trades within the existing trend.
- Risk Management: Always confirm with your own analysis and manage risk properly.
⚠️ Disclaimer: This tool is for educational purposes only and does not guarantee results. Always test on demo before applying to live trading.
Lao Version below:
Lanxang V6 ແມ່ນເຄື່ອງມື ຕິດຕາມແນວໂນ້ມ ທີ່ອອກແບບມາໃຫ້ຊ່ວຍນັກລົງທຶນມອງເຫັນທິດທາງຂອງຕະຫຼາດ ແລະ ຈັບໂອກາດໃນການເຄື່ອນໄຫວສໍາຄັນໄດ້ຊັດເຈນຂຶ້ນ.
🔑 ຄຸນນະສົມບັດ
- ການກໍານົດແນວໂນ້ມ – ລະບົບຈະສະແດງສີເສັ້ນ Moving Average ແລະ ພື້ນຫຼັງໃນການຊັດເຈນທັນທີ (ຂຽວ = ແນວໂນ້ມຂຶ້ນ, ແດງ = ແນວໂນ້ມລົງ).
- ສັນຍານ Buy/Sell ຊັດເຈນ – ເມື່ອຕະຫຼາດປ່ຽນທິດທາງ ໂຕຊີ້ Buy ຫຼື Sell ຈະປາກົດໃນກາຟ.
- ການເນັ້ນແທ່ງ Pullback – ກ່ອນຈະໄປຕໍ່ແນວໂນ້ມ ບາງແທ່ງຈະຖືກເນັ້ນເພື່ອໃຫ້ເຫັນໂອກາດໃນການເຂົ້າ.
- ການປັບແຕ່ງຮູບແບບ – ປັບຂະໜາດ ແລະ ສີຂອງສັນຍານໄດ້ຕາມຄວາມຕ້ອງການ.
- Alert ແບບ Real-time – ຮັບແຈ້ງເຕືອນທັນທີເມື່ອມີສັນຍານ Buy/Sell.
📈 ວິທີໃຊ້
- ຕິດຕາມແນວໂນ້ມ: ໃຊ້ສີຂອງເສັ້ນເພື່ອກໍານົດທິດທາງ (ຂຽວ = ຂຶ້ນ, ແດງ = ລົງ).
- ສັນຍານເຂົ້າ: ຕິດຕາມສັນຍານ Buy/Sell ທີ່ປາກົດໃນກາຟ.
- ໂອກາດ Pullback: ແທ່ງທີ່ເນັ້ນອາດຈະບອກໂອກາດໃນການເຂົ້າຕໍ່ຕາມແນວໂນ້ມ.
- ຈັດການຄວາມສ່ຽງ: ຢ່າລືມກວດສອບກັບການວິເຄາະຂອງຕົນເອງ ແລະ ຈັດການຄວາມສ່ຽງໃຫ້ດີ.
⚠️ ຄໍາເຕືອນ: ເຄື່ອງມືນີ້ເປັນໄວ້ໃຊ້ເພື່ອການສຶກສາ ແລະ ບໍ່ຮັບປະກັນຜົນກໍາໄລ. ກ່ອນນໍາໃຊ້ໃນບັນຊີຈິງ ຄວນທົດສອບໃນ Demo ກ່ອນ.
TRAPPER TRENDLINES — PRICEDraws dynamic trendlines on price by connecting the two most recent confirmed swing points (highs to highs for resistance, lows to lows for support). Swings are defined with a symmetric left/right pivot window. Old anchors are ignored so lines stay attached to current structure. Optional break alerts are included.
How it works (plain language)
Pivots: A bar is a swing high (or low) only if it’s the most extreme point compared with a set number of bars on the left and the right.
Lines:
Support connects the last two confirmed swing lows.
Resistance connects the last two confirmed swing highs.
Lines can be extended right only or both left & right (toggle).
Recency filter: Only swings within the last N bars are kept. This avoids anchoring to very old pivots far from current price.
Alerts: Optional alerts fire when price closes above resistance or below support.
Inputs
Auto Settings
Auto pivot size by chart timeframe: When ON, the script picks a pivot size suitable for the current timeframe (you can scale it with Auto pivot multiplier). When OFF, the manual left/right inputs are used.
Auto pivot multiplier: Scales the auto pivot size (e.g., 1.5 makes pivots stricter).
Manual Pivots
Pivot Left / Pivot Right: Bars to the left/right required to confirm a swing. Example: Left=50 & Right=50 keeps only major swings.
Recency Filter
Use last N bars for pivots: Swings older than this window are discarded so trendlines stay relevant to current price.
Style
Support/Resistance color: Line colors.
Extend Left & Right: When ON, both endpoints extend; when OFF, lines extend to the right only.
Alerts
Enable Break Alerts: When ON, alert conditions are exposed:
Price: Break Up — close above resistance.
Price: Break Down — close below support.
Suggested settings
Higher timeframes (4H / 1D / 1W):
Manual: Pivot Left = 50, Pivot Right = 50, Use last N bars = 400–800.
Or enable Auto with Auto pivot multiplier = 1.0–1.5.
Intraday (15m / 30m / 1H):
Manual: Pivot Left = 30, Pivot Right = 30, Use last N bars = 300–500.
Or enable Auto with multiplier ≈ 1.0–1.2.
Pairing with RSI for confluence/divergence
This tool is designed to pair with a companion TRAPPER TRENDLINES — RSI (or any RSI trendline script):
To mirror swings, set RSI Pivot Lookback equal to the price Pivot Left/Right you use here.
Example: Price = 50/50 → RSI Pivot Lookback = 50.
Keep RSI at Length 14 with 70/30 channel for clarity.
Confluence: Price holds/rejects at a trendline while RSI trendline agrees.
Divergence: Price prints a higher high (resistance line rising) while RSI prints a lower high (RSI resistance line falling), or vice-versa for lows. Matching pivot windows makes these relationships clear and reduces false signals.
Reading the signals
Trendline touch/hold: Potential reaction area; wait for follow-through.
Break Up / Break Down (alerts): Close beyond the line. Consider retest behavior, higher-timeframe context, and volume/RSI confirmation.
Notes & limitations
Pivots require future bars to confirm (by design). Lines update as pivots confirm.
“Use last N bars” purposely ignores very old swings. Increase this value if you need legacy structure.
Lines are based on two most recent confirmed pivots per side; rapidly changing markets can replace anchors as new swings confirm.
This is a visual/analytical tool. No strategy entries/exits or performance claims are provided.
Compliance
This script is for educational purposes only and does not constitute financial advice. Trading involves risk. Past results do not guarantee future outcomes. No promises of profit, accuracy, or performance are made.
Alerts (titles/messages)
Price: Break Up — “Price broke above resistance trendline.”
Price: Break Down — “Price broke below support trendline.”
Quick start
Add the indicator to your chart.
Choose Auto or set Pivot Left/Right manually.
Set Use last N bars for how far back to consider swings.
Toggle Extend Left & Right to your preference.
(Optional) Add your RSI trendline indicator and match Pivot Lookback with your price pivot size for clean confluence/divergence.
Enable alerts if you want notifications on breaks.
Max Trend Points [BigBeluga]🔵 OVERVIEW
A clean and powerful tool for identifying major trend shifts and quantifying the strength of each move using dynamically calculated price extremes.
This indicator helps traders visualize the most significant trend changes by plotting trend direction lines and dynamically tracking the highest or lowest point within each trend leg. It’s ideal for identifying key price impulses and measuring their magnitude in real time.
🔵 CONCEPTS
Uses an adaptive trend-following logic based on volatility envelopes created from HMA of the price range (high - low).
Identifies trend direction and flips when price breaks above or below these dynamic envelopes.
Tracks swing highs and lows within the current trend leg to highlight trend extremes.
Calculates and displays the percentage gain or drop from trend start to trend peak/valley.
🔵 FEATURES
Trend Shift Detection:
Plots a colored trend line (uptrend or downtrend) that updates based on price action volatility.
Impulse Mapping:
Draws a dashed line between the point of trend change (close) and the current trend leg's extreme (highest high or lowest low).
Percentage Labeling:
Displays a floating label showing the exact percent change from the trend start to the current extreme.
Real-Time Adjustments:
As the trend progresses, the extreme point and the percent label update automatically to reflect new highs/lows.
🔵 HOW TO USE
Look for the trend color shift and circular marker to identify a new potential trend direction.
Use the dashed lines and percent label to evaluate the strength and potential maturity of each move.
Combine this tool with support/resistance levels or other indicators to identify confluence zones.
Adjust the "Factor" input to make the trend detection more or less sensitive depending on your timeframe.
🔵 CONCLUSION
Max Trend Points is an efficient visual indicator for understanding the structure and magnitude of trending moves. It provides essential feedback on how far a trend has traveled, where momentum may be peaking, and when a shift may be underway—all with real-time adaptability and clean presentation.
Trendline Breaks with Multi Fibonacci Supertrend StrategyTMFS Strategy: Advanced Trendline Breakouts with Multi-Fibonacci Supertrend
Elevate your algorithmic trading with institutional-grade signal confluence
Strategy Genesis & Evolution
This advanced trading system represents the culmination of a personal research journey, evolving from my custom " Multi Fibonacci Supertrend with Signals " indicator into a comprehensive trading strategy. Built upon the exceptional trendline detection methodology pioneered by LuxAlgo in their " Trendlines with Breaks " indicator, I've engineered a systematic framework that integrates multiple technical factors into a cohesive trading system.
Core Fibonacci Principles
At the heart of this strategy lies the Fibonacci sequence application to volatility measurement:
// Fibonacci-based factors for multiple Supertrend calculations
factor1 = input.float(0.618, 'Factor 1 (Weak/Fibonacci)', minval = 0.01, step = 0.01)
factor2 = input.float(1.618, 'Factor 2 (Medium/Golden Ratio)', minval = 0.01, step = 0.01)
factor3 = input.float(2.618, 'Factor 3 (Strong/Extended Fib)', minval = 0.01, step = 0.01)
These precise Fibonacci ratios create a dynamic volatility envelope that adapts to changing market conditions while maintaining mathematical harmony with natural price movements.
Dynamic Trendline Detection
The strategy incorporates LuxAlgo's pioneering approach to trendline detection:
// Pivotal swing detection (inspired by LuxAlgo)
pivot_high = ta.pivothigh(swing_length, swing_length)
pivot_low = ta.pivotlow(swing_length, swing_length)
// Dynamic slope calculation using ATR
slope = atr_value / swing_length * atr_multiplier
// Update trendlines based on pivot detection
if bool(pivot_high)
upper_slope := slope
upper_trendline := pivot_high
else
upper_trendline := nz(upper_trendline) - nz(upper_slope)
This adaptive trendline approach automatically identifies key structural market boundaries, adjusting in real-time to evolving chart patterns.
Breakout State Management
The strategy implements sophisticated state tracking for breakout detection:
// Track breakouts with state variables
var int upper_breakout_state = 0
var int lower_breakout_state = 0
// Update breakout state when price crosses trendlines
upper_breakout_state := bool(pivot_high) ? 0 : close > upper_trendline ? 1 : upper_breakout_state
lower_breakout_state := bool(pivot_low) ? 0 : close < lower_trendline ? 1 : lower_breakout_state
// Detect new breakouts (state transitions)
bool new_upper_breakout = upper_breakout_state > upper_breakout_state
bool new_lower_breakout = lower_breakout_state > lower_breakout_state
This state-based approach enables precise identification of the exact moment when price breaks through a significant trendline.
Multi-Factor Signal Confluence
Entry signals require confirmation from multiple technical factors:
// Define entry conditions with multi-factor confluence
long_entry_condition = enable_long_positions and
upper_breakout_state > upper_breakout_state and // New trendline breakout
di_plus > di_minus and // Bullish DMI confirmation
close > smoothed_trend // Price above Supertrend envelope
// Execute trades only with full confirmation
if long_entry_condition
strategy.entry('L', strategy.long, comment = "LONG")
This strict requirement for confluence significantly reduces false signals and improves the quality of trade entries.
Advanced Risk Management
The strategy includes sophisticated risk controls with multiple methodologies:
// Calculate stop loss based on selected method
get_long_stop_loss_price(base_price) =>
switch stop_loss_method
'PERC' => base_price * (1 - long_stop_loss_percent)
'ATR' => base_price - long_stop_loss_atr_multiplier * entry_atr
'RR' => base_price - (get_long_take_profit_price() - base_price) / long_risk_reward_ratio
=> na
// Implement trailing functionality
strategy.exit(
id = 'Long Take Profit / Stop Loss',
from_entry = 'L',
qty_percent = take_profit_quantity_percent,
limit = trailing_take_profit_enabled ? na : long_take_profit_price,
stop = long_stop_loss_price,
trail_price = trailing_take_profit_enabled ? long_take_profit_price : na,
trail_offset = trailing_take_profit_enabled ? long_trailing_tp_step_ticks : na,
comment = "TP/SL Triggered"
)
This flexible approach adapts to varying market conditions while providing comprehensive downside protection.
Performance Characteristics
Rigorous backtesting demonstrates exceptional capital appreciation potential with impressive risk-adjusted metrics:
Remarkable total return profile (1,517%+)
Strong Sortino ratio (3.691) indicating superior downside risk control
Profit factor of 1.924 across all trades (2.153 for long positions)
Win rate exceeding 35% with balanced distribution across varied market conditions
Institutional Considerations
The strategy architecture addresses execution complexities faced by institutional participants with temporal filtering and date-range capabilities:
// Time Filter settings with flexible timezone support
import jason5480/time_filters/5 as time_filter
src_timezone = input.string(defval = 'Exchange', title = 'Source Timezone')
dst_timezone = input.string(defval = 'Exchange', title = 'Destination Timezone')
// Date range filtering for precise execution windows
use_from_date = input.bool(defval = true, title = 'Enable Start Date')
from_date = input.time(defval = timestamp('01 Jan 2022 00:00'), title = 'Start Date')
// Validate trading permission based on temporal constraints
date_filter_approved = time_filter.is_in_date_range(
use_from_date, from_date, use_to_date, to_date, src_timezone, dst_timezone
)
These capabilities enable precise execution timing and market session optimization critical for larger market participants.
Acknowledgments
Special thanks to LuxAlgo for the pioneering work on trendline detection and breakout identification that inspired elements of this strategy. Their innovative approach to technical analysis provided a valuable foundation upon which I could build my Fibonacci-based methodology.
This strategy is shared under the same Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0) license as LuxAlgo's original work.
Past performance is not indicative of future results. Conduct thorough analysis before implementing any algorithmic strategy.
Trend Detection
#### *Description:*
This *Trend Detection* indicator is designed to help traders identify and confirm trends in the market using a combination of moving averages, volume analysis, and MACD filters. It provides clear visual signals for uptrends and downtrends, along with customizable settings to adapt to different trading styles and timeframes. The indicator is suitable for both beginners and advanced traders who want to improve their trend-following strategies.
---
#### *Key Features:*
1. *Trend Detection:*
- Uses *Moving Averages (MA)* to determine the overall trend direction.
- Supports multiple MA types: *SMA (Simple), **EMA (Exponential), **WMA (Weighted), and **HMA (Hull)*.
2. *Advanced Filters:*
- *MACD Filter:* Confirms trends using MACD crossovers.
- *Volume Filter:* Ensures trends are supported by above-average volume.
- *Multi-Timeframe Filter:* Validates trends using a higher timeframe (e.g., Daily or Weekly).
3. *Visual Signals:*
- Plots a *trend line* on the chart to indicate the current trend direction.
- Fills the background with *green* for uptrends and *red* for downtrends.
4. *Customizable Settings:*
- Adjust the *MA lengths, **MACD parameters, and **confirmation thresholds* to suit your trading strategy.
- Control the transparency of the background fill for better chart readability.
5. *Alerts:*
- Generates *buy/sell signals* when a trend is confirmed.
- Alerts can be set to trigger at the close of a candle for precise entry/exit points.
---
#### *How to Use:*
1. *Adding the Indicator:*
- Copy and paste the Pine Script code into the TradingView Pine Script editor.
- Add the indicator to your chart.
2. *Configuring the Settings:*
- *Trend Settings:*
- Choose the *MA type* (e.g., EMA for faster response, HMA for smoother trends).
- Set the *Trend MA Period* (e.g., 200 for long-term trends) and *Filter MA Period* (e.g., 100 for medium-term trends).
- *Advanced Filters:*
- Enable/disable the *MACD Filter* and adjust its parameters (Fast, Slow, Signal).
- Enable/disable the *Volume Filter* to ensure trends are supported by volume.
- *Multi-Timeframe Filter:*
- Enable this filter to validate trends using a higher timeframe (e.g., Daily or Weekly).
3. *Interpreting the Signals:*
- *Uptrend:* The trend line turns *green*, and the background is filled with a transparent green color.
- *Downtrend:* The trend line turns *red*, and the background is filled with a transparent red color.
- *Alerts:* Buy/sell signals are generated when the trend is confirmed.
4. *Using Alerts:*
- Set up alerts for *Buy Signal* (bullish reversal) and *Sell Signal* (bearish reversal).
- Alerts can be configured to trigger at the close of a candle for precise execution.
---
#### *Settings and Their Effects:*
1. *MA Type:*
- *SMA:* Smooth but lagging. Best for long-term trends.
- *EMA:* Faster response to price changes. Suitable for medium-term trends.
- *WMA:* Gives more weight to recent prices. Useful for short-term trends.
- *HMA:* Combines speed and smoothness. Ideal for all timeframes.
2. *Trend MA Period:*
- A longer period (e.g., 200) identifies long-term trends but may lag.
- A shorter period (e.g., 50) reacts faster but may produce false signals.
3. *Filter MA Period:*
- Acts as a secondary filter to confirm the trend.
- A shorter period (e.g., 50) provides tighter confirmation but may increase noise.
4. *MACD Filter:*
- Ensures trends are confirmed by MACD crossovers.
- Adjust the *Fast, **Slow, and **Signal* lengths to match your trading style.
5. *Volume Filter:*
- Ensures trends are supported by above-average volume.
- Reduces false signals during low-volume periods.
6. *Multi-Timeframe Filter:*
- Validates trends using a higher timeframe (e.g., Daily or Weekly).
- Increases reliability but may delay signals.
7. *Confirmation Value:*
- Sets the minimum percentage deviation from the trend MA required to confirm a trend.
- A higher value (e.g., 2.0%) reduces false signals but may delay trend detection.
8. *Confirmation Bars:*
- Sets the number of bars required to confirm a trend.
- A higher value (e.g., 5 bars) ensures sustained trends but may delay signals.
---
#### *Who Should Use This Indicator?*
1. *Trend Followers:*
- Traders who focus on identifying and riding long-term trends.
- Suitable for *swing traders* and *position traders*.
2. *Day Traders:*
- Can use shorter MA periods and faster filters (e.g., EMA, HMA) for intraday trends.
3. *Volume-Based Traders:*
- Traders who rely on volume confirmation to validate trends.
4. *Multi-Timeframe Traders:*
- Traders who use higher timeframes to confirm trends on lower timeframes.
5. *Beginners:*
- Easy-to-understand visual signals and alerts make it beginner-friendly.
6. *Advanced Traders:*
- Customizable settings allow for fine-tuning to match specific strategies.
---
#### *Example Use Cases:*
1. *Long-Term Investing:*
- Use a *200-period SMA* with a *Daily* higher timeframe filter to identify long-term trends.
- Enable the *Volume Filter* to ensure trends are supported by strong volume.
2. *Swing Trading:*
- Use a *50-period EMA* with a *4-hour* higher timeframe filter for medium-term trends.
- Enable the *MACD Filter* to confirm trend reversals.
3. *Day Trading:*
- Use a *20-period HMA* with a *1-hour* higher timeframe filter for short-term trends.
- Disable the *Volume Filter* for faster signals.
---
#### *Conclusion:*
The *Trend Detection* indicator is a versatile tool for traders of all levels. Its customizable settings and advanced filters make it suitable for various trading styles and timeframes. By combining moving averages, volume analysis, and MACD filters, it provides reliable trend signals with minimal lag. Whether you're a beginner or an advanced trader, this indicator can help you make better trading decisions by identifying and confirming trends in the market.
---
#### *Publishing on TradingView:*
- *Title:* Trend Detection with Advanced Filters
- *Description:* A powerful trend detection tool using moving averages, volume analysis, and MACD filters. Suitable for all trading styles and timeframes.
- *Tags:* Trend, Moving Averages, MACD, Volume, Multi-Timeframe
- *Category:* Trend-Following
- *Access:* Public or Private (depending on your preference).
---
Let me know if you need further assistance or additional features!
Range Filtered Trend Signals [AlgoAlpha]Introducing the Range Filtered Trend Signals , a cutting-edge trading indicator designed to detect market trends and ranging conditions with high accuracy. This indicator leverages a combination of Kalman filtering and Supertrend analysis to smooth out price fluctuations while maintaining responsiveness to trend shifts. By incorporating volatility-based range filtering, it ensures traders can differentiate between trending and ranging conditions effectively, reducing false signals and enhancing trade decision-making.
:key: Key Features
:white_check_mark: Kalman Filter Smoothing – Minimizes market noise while preserving trend clarity.
:bar_chart: Supertrend Integration – A dynamic trend-following mechanism for spotting reversals.
:fire: Volatility-Based Range Detection – Detects trending vs. ranging conditions with precision.
:art: Color-Coded Trend Signals – Instantly recognize bullish, bearish, and ranging market states.
:gear: Customizable Inputs – Fine-tune Kalman parameters, Supertrend settings, and color themes to match your strategy.
:bell: Alerts for Trend Shifts – Get real-time notifications when market conditions change!
:tools: How to Use
Add the Indicator – Click the star icon to add it to your TradingView favorites.
Analyze Market Conditions – Observe the color-coded signals and range boundaries to identify trend strength and direction.
Use Alerts for Trade Execution – Set alerts for trend shifts and market conditions to stay ahead without constantly monitoring charts.
:mag: How It Works
The Kalman filter smooths price fluctuations by dynamically adjusting its weighting based on market volatility. It helps remove noise while keeping the signal reactive to trend changes. The Supertrend calculation is then applied to the filtered price data, providing a robust trend-following mechanism. To enhance signal accuracy, a volatility-weighted range filter is incorporated, creating upper and lower boundaries that define trend conditions. When price breaks out of these boundaries, the indicator confirms trend continuation, while signals within the range indicate market consolidation. Traders can leverage this tool to enhance trade timing, filter false breakouts, and identify optimal entry/exit zones.
ZenAlgo - Crypto TrendThe ZenAlgo - Crypto Trend indicator is a unique tool for analyzing cryptocurrency market trends, combining data from multiple sources such as BTC , ETH , market caps, dominance metrics, and the DXY index . Unlike standalone indicators, it integrates these data points to deliver actionable insights on macro and micro market movements, helping traders better navigate complex market conditions.
Features
Multi-Asset Trend Analysis: Monitors trends across BTC , ETH , USDT dominance , DXY , SOL , ETHBTC and total market caps ( TOTAL , TOTAL2 , TOTAL3 ), providing a holistic market view.
Dynamic Labels: Real-time market conditions are summarized with labels such as "FIRE SELL," "BTC UP," or "ALT PUMP" for instant clarity.
Customizable Display: Options for dark mode, text size, and table position allow traders to personalize their experience.
Market Sentiment Table: Summarizes trends and percentage changes for multiple assets in a structured, easy-to-read table.
Composite Signals: Identifies unique states like "Mega Boost" or "Outflow" by analyzing the interplay of market trends.
Enhanced Heikin Ashi Analysis: Applies Heikin Ashi trends in a broader context, combining them with other metrics to overcome standalone limitations.
ZenAlgo Theme: A visually distinct and professional theme for enhanced usability.
Added Value: Why Is This Indicator Original/Why Shall You Pay for This Indicator?
The ZenAlgo - Crypto Trend indicator transcends the limitations of free tools in several ways:
Integrated Insights: While Heikin Ashi is freely available, this indicator applies it in tandem with market dominance, total market caps, and macroeconomic indicators like the DXY . This integration creates composite signals (e.g., "Mega Boost," "Defi Mega Boost") that standalone Heikin Ashi cannot provide.
Advanced Contextualization: Free Heikin Ashi indicators lack contextual data about dominance shifts, altcoin performance, and macroeconomic trends. Our indicator integrates these elements to give a broader market perspective.
Time-Saving: Instead of switching between multiple indicators, ZenAlgo - Crypto Trend combines them in one cohesive tool, offering a comprehensive market overview in a single glance.
Custom Features: Unlike generic Heikin Ashi indicators, this tool includes dynamic labels and a market sentiment table that summarize trends and provide immediate insights.
How It Works
1. Heikin Ashi Trend Detection
Calculates smoothed Heikin Ashi trends for BTC , ETH , USDT dominance , DXY , and total market caps ( TOTAL , TOTAL2 , TOTAL3 ).
Functionality: Heikin Ashi values are derived from the weighted average of open, high, low, and close prices. The "open" averages the previous bar's open and close, while the "close" averages the current bar's open, high, low, and close. A trend is assigned as Up (+1) or Down (-1) based on whether the close exceeds the open.
2. Market Metrics Analysis
Tracks daily percentage changes and trends for key metrics like BTC dominance and total market caps.
Outputs: Displays trends (Up/Down) and percentage changes for each asset, helping assess market strength and sentiment.
3. Composite Signal Generation
Combines individual asset trends to define broader market states such as "Mega Boost" or "Outflow."
Logic: Signals are triggered by predefined conditions, e.g., "Mega Boost" occurs when DXY trends down, market caps ( TOTAL , TOTAL2 , TOTAL3 ) trend up, and BTC dominance trends down.
4. Dynamic Labels and Sentiment Table
Displays real-time labels (e.g., "FIRE SELL," "BTC + ALT PUMP") directly on the chart for actionable insights.
A market sentiment table summarizes trends and percentage changes, with customizable display options (position, text size, theme).
Usage Examples
Spotting Bullish Momentum: Use "BTC + ALT PUMP" signals to identify synchronized bullish trends in BTC and altcoins.
Avoiding Bearish Trends: React to "CRYPTO DOWN" or "FIRE SELL" signals to minimize exposure during downturns.
Evaluating Altcoin Opportunities: Identify "ALT PUMP" or "ALTS DUMP" signals to time entries and exits in altcoin markets.
Tracking Dominance Shifts: Monitor "BTC.D UP" or "BTC.D DOWN" trends to assess shifts in market dominance between BTC and altcoins.
Macro Market Awareness: Use "Mega Boost" or "Mega Outflow" states to align with macroeconomic trends, such as dollar strength or weakness.
Seasonal Trends: Observe "ETH PUMP" or "BTC DOWN + ALT PUMP" states to understand specific altcoin or BTC-led market cycles.
Settings
ZenAlgo Theme: Enable a custom ZenAlgo visual style for improved clarity.
Table Text Size: Adjust text size (options: tiny, small, normal, large, huge) for better visibility.
Dark Mode: Toggle dark mode for improved viewing in low-light environments.
Table Position: Choose table placement (e.g., Top Left, Bottom Center) based on your preferences.
Important Notes
Synthetic and Lagging Nature of Heikin Ashi: Heikin Ashi values are synthetic and inherently lagging. They provide smoothed trends but do not represent precise entry or exit points. This indicator does not produce buy or sell signals.
Limitations in Low-Volume Markets: The indicator may underperform in low-liquidity markets or during periods of high volatility, where data discrepancies can distort trends.
Trend Reversals in Choppy Markets: In sideways or choppy markets, the composite signals may lag behind sudden reversals, potentially resulting in delayed recognition of trend changes.
False Positives During Macro News Events: Abrupt macroeconomic news or policy changes can cause the indicator to emit signals (e.g., "Mega Boost") that may not align with sustained market movements.
Dominance Metrics Sensitivity: Heavy reliance on BTC.D or TOTAL3 can sometimes result in misleading insights when these metrics are influenced by atypical events, such as large-scale liquidations or isolated token movements.
Use in Conjunction with Other Tools: While powerful, this indicator should be combined with other technical and fundamental analysis tools for a comprehensive trading strategy.
No Guaranteed Results: Trading involves risk. This tool is designed to support decision-making, not to guarantee trading success.
Trend Filter (2-pole) [BigBeluga]Trend Filter (2-pole)
The Trend Filter (2-pole) is an advanced trend-following indicator based on a two-pole filter, which smooths out market noise while effectively highlighting trends and their strength. It incorporates color gradients and support/resistance dots to enhance trend visualization and decision-making for traders.
SP500:
🔵What is a Two-Pole Filter?
A two-pole filter is a digital signal processing technique widely used in electronics, control systems, and time series data analysis to smooth data and reduce noise.
//@function Two-pole filter
//@param src (series float) Source data (e.g., price)
//@param length (float) Length of the filter (higher value means smoother output)
//@param damping (float) Damping factor for the filter
//@returns (series float) Filtered value
method two_pole_filter(float src, int length, float damping) =>
// Calculate filter coefficients
float omega = 2.0 * math.pi / length
float alpha = damping * omega
float beta = math.pow(omega, 2)
// Initialize the filter variables
var float f1 = na
var float f2 = na
// Update the filter
f1 := nz(f1 ) + alpha * (src - nz(f1 ))
f2 := nz(f2 ) + beta * (f1 - nz(f2 ))
f2
It operates using two cascaded smoothing stages (poles), allowing for a more refined and responsive output compared to simple moving averages or other basic filters.
Two-pole filters are particularly valued for their ability to maintain smooth transitions while reducing lag, making them ideal for applications where precision and responsiveness are critical.
In trading, this filter helps detect trends by smoothing price data while preserving significant directional changes.
🔵Key Features of the Indicator:
Gradient-Colored Trend Filter Line: The main filter line dynamically changes color based on trend strength and direction:
- Green: Strong uptrend.
- Red: Strong downtrend.
- Yellow: Indicates a transition phase, signaling potential trend shifts.
Support and Resistance Dots with Signals:
- Dots are plotted below the filter line during uptrends and above it during downtrends.
- These dots represent consecutive rising or falling conditions of the filter line, which traders can set in the settings (e.g., the number of consecutive rises or falls required).
- The dots often act as dynamic support or resistance levels, providing valuable guidance during trends.
- Trend Signals:
Customizable Sensitivity: The indicator allows traders to adjust the filter length, damping factor, and the threshold for rising/falling conditions, enabling it to adapt to different trading styles and timeframes.
Bar Color Option: The indicator can optionally color bars to match the gradient of the filter line, enhancing visual clarity of trends directly on the price chart.
🔵How It Works:
The Trend Filter (2-pole) smooths price data using a two-pole filter, which reduces noise and highlights the underlying trend.
The gradient coloring of the filter line helps traders visually assess the strength and direction of trends.
Rising and falling conditions of the filter line are tracked, and dots are plotted when consecutive conditions meet the threshold, acting as potential support or resistance levels during trends.
The yellow transition color signals periods of indecision, helping traders anticipate potential reversals or consolidations.
🔵Use Cases:
Identify and follow strong uptrends and downtrends with gradient-based visual cues.
Use the yellow transition color to anticipate trend shifts or consolidation zones.
Leverage the plotted dots as dynamic support and resistance levels to refine entry and exit strategies.
Combine with other indicators for confirmation of trends and reversals.
This indicator is perfect for traders who want a visually intuitive and highly customizable tool to spot trends, gauge their strength, and make informed trading decisions.
Trend Matrix - XTrend Matrix - X: Advanced Market Trend Analysis
Introduction: Trend Matrix - X is a powerful indicator designed to provide a comprehensive view of market trends, state transitions, and dynamics. By integrating advanced algorithms, statistical methods, and smoothing techniques, it identifies Bullish, Bearish, or Ranging market states while offering deep insights into trend behavior.
This indicator is ideal for traders seeking a balance between noise reduction and real-time responsiveness, with configurations that adapt dynamically to market conditions.
How It Works?
The indicator combines K-Median Clustering, Kalman Filtering, Fractal Dimension Analysis, and various regression techniques to provide actionable insights.
Market State Detection
- Divides data into three clusters: Bullish, Bearish, and Ranging.
- Uses K-Median Clustering to partition data based on medians, ensuring robust state classification even in volatile markets.
- Slope-Based Trend Analysis: Calculates trend slopes using Linear, Polynomial, or Exponential Regression. The slope represents the trend direction and strength, updated dynamically based on market conditions. It can apply Noise Reduction with Kalman Filter to balance stability and sensitivity
Dynamic Lookback Adjustment
- Automatically adjusts the analysis window length based on market stability, volatility, skewness, and kurtosis.
- This feature ensures the indicator remains responsive in fast-moving markets while providing stability in calmer conditions.
Fractal Dimension Measurement
- Calculates Katz Fractal Dimension to assess market roughness and choppiness.
- Helps identify periods of trend consistency versus noisy, range-bound markets.
Why Use Trend Matrix - X?
- Actionable Market States: Quickly determine whether the market is Bullish, Bearish, or Ranging.
- Advanced Smoothing: Reduces noise while maintaining trend-following precision.
- Dynamic Adaptation: Automatically adjusts to market conditions for consistent performance across varying environments.
- Customization: Configure regression type, lookback dynamics, and smoothing to suit your trading style.
- Integrated Visualization: Displays trend states, fractal dimensions, and cluster levels directly on the chart.
Configuration Options
Matrix Type (Raw or Filtered)
- Raw shows the unfiltered slope for real-time precision.
- Filtered applies Kalman smoothing for long-term trend clarity.
Regression Type
- Choose Linear, Polynomial, or Exponential Regression to calculate slopes based on your market strategy.
Dynamic Lookback Adjustment
- Enable Gradual Adjustment to smoothly adapt lookback periods in response to market volatility.
Noise Smoothing
- Toggle Smooth Market Noise to apply advanced filtering, balancing stability with responsiveness.
Cluster State Detection
- Visualize the current state of the market by coloring the candles to match the detected state.
How to Use the Trend Matrix - X Indicator
Step-by-Step Guide
Add the Indicator to Your Chart
- Once applied, it will display: Trend line (Trend Matrix) for identifying market direction, A state table showing the current market state (Bullish, Bearish, or Ranging), Cluster levels (High, Mid, and Low) for actionable price areas, Fractal dimension metrics to assess market choppiness or trend consistency.
Configure Your Settings
- Matrix Source (Raw vs. Filtered): Raw Matrix : Displays real-time, unsmoothed slope values for immediate precision. Ideal for fast-moving markets where rapid changes need to be tracked. Filtered Matrix : Applies advanced smoothing (Kalman Filter) for a clearer trend representation. Recommended for longer-term analysis or noisy markets
- Regression Type (Choose how the trend slope is calculated): Linear Regression : Tracks the average linear rate of change. Best for stable, straightforward trends. Polynomial Regression : Captures accelerating or decelerating trends with a curved fit. Ideal for dynamic, cyclical markets. Exponential Regression : Highlights compounding growth or decay rates. Perfect for parabolic trends or exponential moves.
- Market Noise Smoothing: Applies an adaptive (no lag) smoothing technique to the Matrix Source.
- Gradual Lookback Adjustment: Enable "Gradually Adjust Lookback" to allow the indicator to dynamically adapt its analysis window. (Indicator already does an automatic window, this just refines it).
Read the Outputs
- Trend Matrix Line: Upward Line (Bullish): Market is trending upward; look for buy opportunities. Downward Line (Bearish): Market is trending downward; look for sell opportunities.
- Cluster Levels: High Level (Cluster 0): Represents the upper bound of the trend, often used as a resistance level. Mid Level (Cluster 2): Serves as a key equilibrium point in the trend. Low Level (Cluster 1): Indicates the lower bound of the trend, often used as a support level.
- Market State Table: Displays the current state of the market. Bullish State: Strong upward trend, suitable for long positions. Bearish State: Strong downward trend, suitable for short positions. Ranging State: Sideways market, suitable for range-bound strategies.
- Fractal Dimension Analysis: Low Fractal Dimension (< 1.6): Indicates strong trend behavior; look for trend-following setups. High Fractal Dimension (> 1.6): Suggests choppy, noisy markets; focus on range-trading strategies.
Advanced Usage
- Adaptive Clustering: The indicator uses K-Median Clustering to dynamically identify Bullish, Bearish, and Ranging states based on market data. For traders interested in state transitions, monitor the cluster levels and the state table for actionable changes.
Trading Strategies
- Trend-Following: Use the Filtered Matrix and Fractal Dimension (< 1.6) to identify and follow strong trends. Enter long positions in Bullish States and short positions in Bearish States.
Disclaimer
I am not a professional market analyst, financial advisor, or trading expert. This indicator, Trend Matrix - X, is the result of personal research and development, created with the intention of contributing something that the trading community might find helpful.
It is important to note that this tool is experimental and provided "as-is" without any guarantees of accuracy, profitability, or suitability for any particular trading strategy. Trading involves significant financial risk, and past performance is not indicative of future results.
Users should exercise caution and use their own discretion when incorporating this indicator into their trading decisions. Always consult with a qualified financial advisor before making any financial or trading decisions.
By using this indicator, you acknowledge and accept full responsibility for your trading activities and outcomes. This tool is intended for educational and informational purposes only.