MA ExtensionThis indicator measures the vertical distance form the current close to the MA of your choice. I find that it does not work best as an oscillator, but it works well for providing early signals for taking profits when trend continuating. For example, if you go short due to a retracement to the MA (of your choice) take profits when a bearish trendline is broken (signalling the start of a bullish correction) that corresponds to the highs of the chart. The logic behind this indicator is that the breakouts of trendlines of an assets difference from an MA will precede corresponding breakouts of trendlines drawn on raw price. Kind of like Momentum, except it takes trend into account. Momentum has the same leading feature when it comes to drawing trendlines , but trendlines will be harder to draw due to the Momentum indicators oscillatory behavior.
Cerca negli script per "trendline"
MA ExtensionThis indicator measures the vertical distance form the current close to the MA of your choice. I find that it does not work best as an oscillator, but it works well for providing early signals for taking profits when trend continuating. For example, if you go short due to a retracement to the MA (of your choice) take profits when a bearish trendline is broken (signalling the start of a bullish correction) that corresponds to the highs of the chart. The logic behind this indicator is that the breakouts of trendlines of an assets difference from an MA will precede corresponding breakouts of trendlines drawn on raw price. Kind of like Momentum, except it takes trend into account. Momentum has the same leading feature when it comes to drawing trendlines , but trendlines will be harder to draw due to the Momentum indicators oscillatory behavior.
Center of Candle Trendline### **Center of Candle Trendline**
This script dynamically plots a trendline through the center of each candlestick's body. The "center" is calculated as the average of the open and close prices for each candle. The trendline updates in real-time as new candles form, providing a clean and straightforward way to track the market's midline movement.
#### **Features:**
1. **Dynamic Trendline:** The trendline connects the center points of consecutive candlestick bodies, giving a clear visual representation of price movements.
2. **Accurate Center Calculation:** The center is determined as `(open + close) / 2`, ensuring the trendline reflects the true midpoint of each candlestick body.
3. **Real-Time Updates:** The trendline updates automatically as new bars form, keeping your chart up to date with the latest price action.
4. **Customization-Ready:** Adjust the line’s color, width, or style easily to fit your chart preferences.
#### **How to Use:**
- Add this script to your chart to monitor the price movement relative to the center of candlestick bodies.
- Use the trendline to identify trends, reversals, or price consolidation zones.
#### **Applications:**
- **Trend Analysis:** Visualize how the market trends around the center of candlesticks.
- **Reversal Identification:** Detect potential reversal zones when the price deviates significantly from the trendline.
- **Support and Resistance Zones:** Use the trendline as a dynamic support or resistance reference.
This tool is perfect for traders who want a clean and minimalistic approach to tracking price action. Whether you're a beginner or an experienced trader, this script provides valuable insights without overwhelming your chart.
#### **Note:**
This is not a standalone trading strategy but a visual aid to complement your analysis. Always combine it with other tools and techniques for better trading decisions.
---
Feel free to tweak this description based on your preferences or style!
RSI based support resistance levelsThis indicator draws support line and resistance lines in the price chart.
How ?
For drawing the support/resistance line we need to first determine the demand and supply.
We are using too-familiar indicator RSI to determine when the script is oversold and overbought.
Now oversold (in RSI) is not a point, it’s a zone. The RSI indicator comes below 30, stays there and goes up above 30. Similarly for overbought.
Now if you carefully look at the oversold region – the lowest point of the oversold region is the place where the demand came (for surety) and push the indicator (and price) up.
Similarly: the highest point of overbought is the place where (for surety) the supply came and push the indicator (and price) down.
So that’ the supply / demand line (for surety).
In this indicator, based on the RSI we are just drawing support and resistance lines in the chat. That’s all.
What is unique ?
Trendline concept is not new. RSI is not new. RSI overbought/oversold is not new.
There are indicators exist to draw trendlines. Some of them works beautifully.
However, none of these, we are aware of, uses RSI to determine it. And, we believe, the most logical way to determine support/resistance is RSI.
Note: We are not responsible for any trading/investment decision you are taking out of the outcome of this indicator.
Price Action in action
What?
Price Action in Action is an indicator to help Price Action learners and practitioners to get everything related for Price Action in one place.
Price Action is:
Price + Volume = Action
In this indicator, we have the following features available:
Support/Resistance
Using the RSI with different periods in a multiple of 7 (7, 14, 21, 28), we first determine the overbought (above 70, customizable) and oversold (below 30, customizable) regions. Then we pick up the highest point and lowest point in the RSI values in the overbought and oversold regions, respectively. These are the point, historically supply/demand emerged for surety to push down/up the RSI indicator and the corresponding price. So, these are the most accurate way, we believe, to draw support/resistance (or demand/supply) in the chart. By default, the Support is green color and Resistance is red color. To give a visual representation, we differentiate the different shades of green and red. For example, for Level-1 (i.e. 7 by default) we use the darkest shade (0 transparency) and Level-4 (i.e. 28 by default) we use lighter shade (60 transparency). Note please: you can customize the color of support and resistance lines (say if you want resistance as green and support as red). The respective shades (transparency) will be automatically adjusted accordingly. But those shade (transparency) levels are not customizable, they are fixed (please bear with it for version-1 at least).
Strength of Support/Resistance
In the chart above/below the Resistance / Support lines you can see the tiny labels with some numbers like 1, 2.
We found out how many times a particular support/resistance is appearing across multiple RSI periods. E.g. if price P1 appears 2 times among 4 different RSI periods, the number will be 2 for that calculation, and so on.
There can be multiple presence of these numbers in a support/resistance line (i.e. multiple tiny labels). Something like: 1, 1, 2 (into different candles). This means the same support/resistance is tested so many times in different occasion (means there is a RSI max/min coincides in this level over multiple occasions) at different candles.
This will help you to intuitionally gauge the “strength” of a support/resistance line.
The more the marrier, unworthy to mention.
Candle Stick Patterns
Well: we don’t need to tell anything about the Candlestick. All of you know it better than us. And it’s a time proven, zero-lag mechanism to judge the Price-Action is unfolding in the market. We do not know if there is anything better possible than this time tested patterns to judge the prevailing sentiments of market.
Price-Action does not complete without finding out the Candlestick Patterns correctly.
And in this indicator your will get all of these: Single Candle such as Doji (default off), Marubozu, Spinner, hammers, inverted-hammer etc. ; 2 candles like Tweezer, Inside Candle, Engulfing; 3 candles like morning star/evening star.
In the multi candle patterns (2/3 candles), we are grouping the candles with a dotted rectangle such that it is clear which 2/3 candles are part of the pattern. E.g. Morning Star: 3 candles are grouped in a dotted rectangle and the Morning Star label will come to the latest candle (3rd most – as the pattern is detected reliably only on the completion of the 3rd final candle).
Of course, any program can not eliminate your trained eyes and brain to capture the patterns. But we have provided sufficient knobs to adjust various parameters to tweak the candle-pattern detection. Such as Strict Inside Candle(Harami) Boolean knob where the whole current candle including wicks will be inside the body part of the previous big candle. For non-strict mode, the current candle just inside the previous candle, possibly by wicks.
To make it better usable, for every such knobs (which are not obvious) we have added user-friendly tooltip (just mouse hover the question mark (?) besides the control/switch). There are plenty of it.
Volume
Here we have a rudimentary (yet effective) way to judge the volumes.
We find out the Volume Weighted Moving Average (VMWA) of the 20-period (default, but customizable) and the latest volume. If the latest volume is more than the 20 period vwma, we just add a grey diamond on the top of the candle to denote it’s attracting volumes. Of course, we provide a Weight coefficient (default is set to 1). So if the current bar’s volume on bar’s completion is more than the 20 period volume vmwa times the weigh-cofficient, we mark it with a tiny grey diamond.
Points to be noted:
In all places we mark the indication only on the completion of the bar (technically speaking we have checks, as far as possible, with barstate.isconfirmed). However, if you wish, you can turn it off for Candlestick (as some experts may want to check candlestick on the real time, even before the closing of bars).
In case if you see the chart looks cluttered (because of many information, specially in smaller timeframes like 5 min), there are controls given in the settings to toggle each and every features.
By default, we turn off Doji candles (all 3 types of Doji’s – normal, Gravestone & Dragonfly) as they are mainly indecision. However, you can toggle it to turn it on.
It does not give you any Buy/Sell call. The interpretation it does not have.
Why?
What’s unique in it?
As we already mentioned our intention is to include Price (in forms of Support / Resistance), Volume and Action (sentiments in terms of Candlestick patterns) into a single place. And so far, to the best of our knowledge, we could not come across a single indicator provides all of these.
There were works available to determine the RSI based support / resistance zones. Those are great piece works at that time (lets say 3 years back when PineScript was in earlier versions). To the best of our knowledge those does not cover up finding out the lowest / highest point of RSI and the corresponding price to get the simplistic and distinct support/resistance lines.
We have the intuitive support/resistance strength included which we could not found out in current set of available indicators.
To the best of our knowledge, there seems no indicator can detect 3-candle patterns which are extremely popular to detect trend reversals (such as Morning Star or Evening Star). Moreover for the multi-candle patterns we are grouping the candles part of the pattens (2-candles or 3-candles) using a dotted rectangle such that it’s visually clearly (and a well educative material for Price-Action learners also).
Mentions:
There are many works which inspire us along the way. Honestly: we sometimes forgot which all indicators we experimented with. We are sincerely apologetic in case we forgot to mention. A few note-worthy:
There is an indicator from user “repo32” named as “Candlestick Patterns Identified (updated 3/11/15)”. (We could not be able to contact “repo32”). We are inspired from his work that it’s feasible to detect Candlestick patterns.
There is an awesome work done by “RSI Based Automatic Demand and Supply” by user “shtcoinr”. The idea of consulting multiple RSI levels to find out the demand/supply zone we inspired from him. (We did contact “shtcoinr” and got his kind permission to use the concept.)
We are greatly thankful to these abovementioned wizards for their pioneering a-prior work in this front.
And of course, this TradingView platform to provide this abstraction, facilitates and felicitates collaborative contributions.
Ultimately, what’s for you?
That’s the main question. What’s for you?
Price-action comprises of following 3 tasks (at least):
Draw support/resistance lines in the chart.
Once price reaches at the support/resistance line, you fervently look out the candles’ formation to mentally map to the candle patterns. Your aim is divine: You want to judge if the price-action will continue or take a rejection/reversal.
Then you double-confirm with the volume (in a non-overlaid chart below).
Finally take a trade.
For a price-action newbie or seasoned, expert practitioner, you must be doing all the above tasks regularly and manually, in a mechanical, mundane way. There come the humanly subjectivity & the inevitable emotions . This indicator, being a piece of program/code in PineScript latest version v5 , eliminates (or at least, reduces to a great extend) that subjectivity & emotions out of the way of decision making . Thus resulting better yield.
Of course, you can argue that you draw slanted trend lines also. We recommend an already existing indicator by user LuxAlgo named as “Trendlines with Breaks ”, if you wish so.
Disclaimer:
This piece of software does not come up with any warrantee or any rights of not changing it over the future course of time.
We are not responsible for any trading/investment decision you are taking out of the outcome of this indicator.
Happy trading.
Auto TrendLines [HeWhoMustNotBeNamed]I started off with the intention of creating script to identify Wolfe wave projection. But, soon ran into problem with loops. Realized drawing wedge is more difficult than drawing converging triangle. Hence, took a step back and started working on wedges and triangle identification. Ended up with a messy output which looked like this.
Had to take another step back and hence decided to make Trendlines detection script and here we are :)
⬜ Process
▶ Scan pivots which are in trend. This means, series of pivot Highs or pivot lows either in ascending order or descending order.
▶ Draw trend line between each of the pivots in the trend series. For example, if there are 5 pivot high uptrend pivots, draw mXn lines between each of these points.
▶ Select the trend line which is more accurate or stronger. Accuracy is measured by number of candles/wicks touching the line and number of candles which fall outside the line. Stronger trendlines will touch more candles and pivots with less overflow.
▶ Remove all lines except the most accurate one for each direction.
At any point of time, you will see upto 4 trend lines in this script.
▶ Trendline joining pivot highs in uptrending condition
▶ Trendline joining pivot lows in uptrending condition
▶ Trendline joining pivot highs in downtrending condition
▶ Trendline joining pivot lows in downtrending conditions
The older line will remain until the new one comes through of same type. Hence, you will still be able to see uptrending high and low trend lines for downtrending instruments which are created way back!! Also, new trendlines replace old ones only if they are more stronger (connect to more pivots with less overflow)
⬜ Settings
Settings are simple.
User can select preferred Zigzag Length and Search Depth. Higher numbers for these two parameters will present longer term trends whereas lower numbers will display shorter ones.
Trend Lines controlls will allow users to enable/disable specific type of trend line, set color and line style to it.
⬜ Few Examples
▶ Uptrending Market : NASDAQ:NDX
▶ Downtrending Market : NYSE:BABA
▶ Ranging Market : NYSE:PLTR
XGBoost Approximation Indicator with HTF Filter Ver. 3.2XGBoost Approx Indicator with Higher Timeframe Filter Ver. 3.2
What It Is
The XGBoost Approx Indicator is a technical analysis tool designed to generate trading signals based on a composite of multiple indicators. It combines Simple Moving Average (SMA), Relative Strength Index (RSI), MACD, Rate of Change (ROC), and Volume to create a composite indicator score. Additionally, it incorporates a higher timeframe filter (HTF) to enhance trend confirmation and reduce false signals.
This indicator helps traders identify long (buy) and short (sell) opportunities based on a weighted combination of trend-following and momentum indicators.
How to Use It Properly
Setup and Configuration:
Add the indicator to your TradingView chart.
Customize input settings based on your trading strategy. Key configurable inputs include:
HTF filter (default: 1-hour)
SMA, RSI, MACD, and ROC lengths
Custom weightings for each component
Thresholds for buy and sell signals
Understanding the Signals:
Green "Long" Label: Appears when the composite indicator crosses above the buy threshold, signaling a potential buy opportunity.
Red "Short" Label: Appears when the composite indicator crosses below the sell threshold, signaling a potential sell opportunity.
These signals are filtered by a higher timeframe SMA trend to improve accuracy.
Alerts:
The indicator provides alert conditions for long and short entries.
Traders can enable alerts in TradingView to receive real-time notifications when a new signal is triggered.
Safety and Best Practices
Use in Conjunction with Other Analysis: Do not rely solely on this indicator. Combine it with price action, support/resistance levels, and fundamental analysis for better decision-making.
Adjust Settings for Your Strategy: The default settings may not suit all markets or timeframes. Test different configurations before trading live.
Backtest Before Using in Live Trading: Evaluate the indicator’s past performance on historical data to assess its effectiveness in different market conditions.
Avoid Overtrading: False signals can occur, especially in low volatility or choppy markets. Use additional confirmation (e.g., trendlines or moving averages).
Risk Management: Always set stop-loss levels and position sizes to limit potential losses.
Ehlers Instantaneous Trendline ATR LevelsOverview
This sophisticated technical analysis tool merges John Ehlers' cutting-edge Instantaneous Trendline methodology with a dynamic ATR-based bands system. The indicator is designed to provide traders with a comprehensive view of market trends while accounting for volatility, making it suitable for both trending and ranging markets. Works on all timeframes and chart types.
Key Features in Detail
1. Ehlers Instantaneous Trendline Implementation
- Advanced algorithm that reduces lag typically associated with moving averages
- Built-in volatility filtering system to minimize false signals
- Adaptive to market conditions through dynamic calculations
- Real-time trend direction identification
2. Multi-layered ATR Band System
- Hierarchical band structure with 18 total bands (9 upper, 9 lower)
- Color-coded visualization system:
Upper bands: Red gradient (darker = further from trendline)
Lower bands: Green gradient (darker = further from trendline)
Central trendline: Yellow for optimal visibility
- Customizable multipliers for each band level
- Independent visibility controls for each band
Configuration Options
Trendline Settings:
- Lower values: More responsive to price changes and faster reacting to break in ATR filter
- Higher values: Smoother trendline with less noise and slower reacting to break in ATR filter
ATR Configuration:
Period: Customizable from 1 to any positive integer
- Longer periods: More stable volatility measurement
- Shorter periods: More reactive to recent volatility changes
Filter Multiplier: Fine-tune volatility filtering
- Higher values: More filtered signals leading to less shift in bands
- Lower values: More sensitive to price movements leading to more band shifts
Practical Applications
1. Trend Analysis
Use the central trendline for primary trend direction
Monitor band crossovers for trend strength confirmation
Track price position relative to bands for trend context
2. Volatility Assessment
Band spacing indicates current market volatility
Width between bands helps identify consolidation vs. expansion phases
Price Extremes
3. Support and Resistance
Each band acts as a dynamic support/resistance level
Multiple timeframe analysis possible adjusting for different timeframe ATR
[S] Rolling TrendlineThe Rolling Linear Regression Trendline is a sophisticated technical analysis tool designed to offer traders a dynamic view of market trends over a selectable period. This indicator employs linear regression to calculate and plot a trendline that best fits the closing prices within a specified window, either defined by a number of bars or a set period in days, independent of the chart's timeframe.
Key Features:
Dynamic Window Selection: Users can choose the calculation window based on a fixed number of bars or days, providing flexibility to adapt to different trading strategies and timeframes. For the 'days' option, the indicator calculates the equivalent number of bars based on the chart's timeframe, ensuring relevance across various market conditions and trading sessions.
Linear Regression Analysis: At its core, the indicator uses linear regression to identify the trend direction by calculating the slope and intercept of the trendline. This method offers a statistical approach to trend analysis, highlighting potential uptrends or downtrends based on the positioning and direction of the trendline.
Customizable Period: Traders can input their desired period (N), allowing for tailored analysis. Whether it's short-term movements or longer-term trends, the indicator can adjust to focus on specific time horizons, enhancing its utility across different trading styles and objectives.
Applications:
Trend Identification: By plotting a trendline that mathematically fits the closing prices over the chosen period, traders can quickly identify the prevailing market trend, aiding in bullish or bearish decision-making.
Support and Resistance: The trendline can also serve as a dynamic level of support or resistance, offering potential entry or exit points based on the price's interaction with the trendline.
Strategic Planning: With the ability to adjust the calculation window, traders can align the indicator with their trading strategy, whether focusing on intraday movements or broader swings.
Using this indicator with other parameters can widen you view of the market and help identifying trends
StDev Based Trendlines - JDAs a second alternatively based trendline script this is the Standard Deviation vesrion.
This script draws trendlines from the pivot points in the price chart.
The angle of the trendlines is determined by (a percentage of) the Standard Deviation.
The angle follows the change in price, compared to the StDev at the moment where the pivot point is detected
The StDev percentage determines if the trendline follows the rate of change of the StDev or a fraction ( value < 100) or a multiple ( value > 100) of that
JD.
#NotTradingAdvice #DYOR
Disclaimer.
I AM NOT A FINANCIAL ADVISOR.
THESE IDEAS ARE NOT ADVICE AND ARE FOR EDUCATION PURPOSES ONLY.
ALWAYS DO YOUR OWN RESEARCH!
Mitsos4 RSI + BB + Dispersion + Trendlines + VIX Fix Mitsos4 RSI + BB + Dispersion + Trendlines + VIX Fix
This powerful custom indicator combines two analytical tools into one view:
RSI-based Bollinger Bands with Dispersion and the Vix Fix volatility spike detector.
It is designed for traders who want early volatility signals and precision RSI insights, all in a single pane.
🧩 What's Included:
✅ 1. RSI + BB (EMA) + Dispersion
RSI-Based Bollinger Bands: Tracks the RSI with Bollinger Bands using an EMA as the basis.
Dispersion Zone: A buffer zone around the moving average band for more sensitive overbought/oversold detection.
Dynamic RSI Coloring:
🟢 Green: RSI breaks above the dispersion zone.
🔴 Red: RSI breaks below the dispersion zone.
🟡 Yellow: RSI inside the zone (neutral).
Trendlines at RSI levels: 40 (green), 50 (yellow), 60 (red).
Alerts when RSI crosses dispersion zones.
✅ 2. CM_Williams_Vix_Fix
Designed to simulate VIX-like volatility spikes on non-VIX instruments.
Detects potential market bottoms by measuring price deviation from recent highs.
Includes:
Bollinger Band range on WVF.
Percentile high/low zones to detect significant volatility moves.
Histogram plot of WVF for quick visual alerts.
Color-coded spikes (green when above upper thresholds).
⚙️ User Controls:
Adjustable RSI, Bollinger Band, and dispersion settings.
Toggle options for:
Viewing high/low VIX percentiles.
Showing standard deviation bands for WVF.
Custom trendline display levels at RSI key areas.
📌 Best Use Cases:
Detect early market reversals and volatility spikes.
Combine RSI strength with volatility-based bottom signals.
Layer dispersion-based logic on top of classic RSI strategies.
Williams Percent Range with Trendlines and BreakoutsHere is my "Williams Percent Range with Trendlines and Breakouts" indicator, a simple yet powerful tool for traders. This indicator combines the classic Williams %R oscillator, which helps identify overbought and oversold levels, with added trendlines for easier trend analysis at a glance.
It's designed to make spotting potential breakouts easier by drawing attention to significant price movements. With customizable settings for the Williams %R period and trendline sensitivity, it's a flexible tool for various symbols and trading styles.
Whether you're looking to refine your trading strategy or just need a clearer view of market trends, this indicator should offer a straight forward approach to hopefully enhance your trading decisions.
Disclaimer: This indicator is intended for educational and informational purposes only. Always conduct your own research and analysis before making trading decisions.
Dynamic Auto Trendline and S/R BlocksAuto TL & S/R Blocks by Nostalgic_92
This powerful TradingView indicator automatically identifies trendlines and support/resistance levels with dynamic transparency blocks, helping traders make informed decisions. Easily customizable, it offers adjustable parameters for lookback periods and transparency, allowing you to adapt it to your trading style.
Key Features:
Lookback Period for Extremes: The lookback period for identifying highs and lows is adjustable, allowing you to fine-tune the indicator to suit your trading strategy.
Maximum Transparency: Set the maximum transparency level to control the visibility of dynamic blocks, ensuring they adapt to market volatility.
Trend Block Color: Choose your preferred color for trendline blocks to visually highlight trend direction.
Support/Resistance Block Color: Customize the color for support and resistance blocks, making them easily distinguishable on your chart.
How it Works:
This indicator calculates the highest high and lowest low over the specified lookback period. It then draws dynamic blocks on your chart with changing transparency levels, depending on the proximity of the current price to these extremes. This visual representation helps you identify trend changes and key support/resistance levels at a glance.
Usage:
Use it in conjunction with your existing trading strategy to confirm trends and support/resistance levels.
Adjust the input parameters to match your preferred trading style and time frame.
Enhance your trading experience with the Auto Trendlines and Support/Resistance with Dynamic Blocks indicator. It's a valuable tool for traders seeking an edge in the market.
Disclaimer: This indicator is intended for educational and informational purposes only. Always conduct your own research and analysis before making trading decisions.
Linear Average PriceWhat is "Linear Average Price"?
"Linear Average Price" is both a trend and an overbought oversold indicator .
What it does?
it creates a trendline and trading zones.
How it does it?
To create the trend line, it averages the difference between each data and chooses it as the slope of the line it creates. then it positions this line so that it passes right through the middle of the data at hand. It uses standard deviation to create trading zones.
How to use it?
It can be used both to have an idea about the trend direction and to determine buy-sell zones. You can choose how many candles the indicator will calculate from the "lenght" section. The "range" part is the coefficient of the standard deviation and can be used to expand or collapse zones.
Fibonacci + Support/Resistant + Trendline (Price action)This is opening source code version: Fibonacci + Support/Resistant + Trendline (One of Advanced Price action Analysis).
How it works:
It find entry Long/Short by combining: Fibonacci + Support/Resistant + Trendline
1. Find Impulse wave:
To findind Impulse wave, It uses Pivot High/Low to find Impulse wave. In case find entry Long, If having Pivot High higher Pivot High before, it will draw an Impulse wave.
2. Find entry at Fibonacci levels:
Draw Fibonacci fibonacci retracement from Pivot Low to Pivot High. A Fibonacci retracement forecast is created by taking two extreme points on a chart and dividing the vertical distance by important Fibonacci ratios. 0% is considered to be the start of the retracement, while 100% is a complete reversal to the original price before the move. Horizontal lines are drawn in the chart for these price levels to provide support and resistance levels. Common levels are 23.6%, 38.2%, 50%, and 61.8%
3. Find entry at Support/Resistant Zone:
Support/Resistant Zone drawed from Pivot High before, which price just breaken and return to retest.
4. Find entry at Trendline:
Trendline drawed from Pivot High/Low before, which price just breaken and return to retest.
How do use it:
+ You can customize the thickness of the lines.
+ You can set up an alert when the price touchs important areas.
ATR Based Trendlines - JDThis script draws trendlines from the pivot points in the price chart.
The angle of the trendlines is determined by (a percentage of) the atr.
The angle follows the change in price, dictated by the atr at the moment where the pivot point is detected.
The atr percentage determines if the trendline follows the rate of change of the atr or a fraction ( value < 100) or a multiple ( value > 100) of that
JD.
#NotTradingAdvice #DYOR
Disclaimer.
I AM NOT A FINANCIAL ADVISOR.
THESE IDEAS ARE NOT ADVICE AND ARE FOR EDUCATION PURPOSES ONLY.
ALWAYS DO YOUR OWN RESEARCH!
strategy of RSI with trendlines and S/RBefore I go through this chart I want to acknowledge the great programmers who spent much of their time and effort to assist many TV users and traders.
Thank you to LunaOwl for the RSI American lines her script made me realize the need to have trendlines, supports, and resistance on RSI charts.
Also, a copy of Lij_MC code from was taken which had been credited to Duyck. Thank you Duyck.
The BB was copied from morpheus747
As I researched different strategies one strategy seemed to assist the trader for entry and exits. It was the combination of Support and resistance on the RSI. In addition, diagonal lines (Recently introduced in pine script V4) assists in the direction and reversals that may occur. What is supplied is only a graphical representation and no trade entry or exit points are selected.
On the chart you can use;
• RSI line or bar;
• Bollinger High / Low support line;
• Diagonal trend lines. A primary and a secondary group of trendlines; and
• Trendline candle highlighter.
I am hoping people with great skills could assist to develop this to the next level.
I hope this graphical strategy may help until further development. Enjoy.
Linear Regression Trendline on Close
This indicator draws a linear regression trendline that connects the closing prices of the last N candles, where N is a user-defined input.
🔹 Key Features:
Uses least-squares linear regression to fit a straight line to recent closes
Automatically adapts to any timeframe (5min, 1h, daily, etc.)
Input lets you select how many recent candles to include
Helps identify short-term trend direction and momentum
🔸 How to Use:
Set the "Number of Candles" input to choose how far back the regression line should look
The line updates in real time as new candles form
Use it to gauge short-term bias, or combine with support/resistance/zones for confirmation
🧠 Tip: Increase the number of candles for smoother trends; decrease for more reactive trendlines.
Instantaneous Trendline with Cloud Instantaneous Trendline with Cloud
Introduction & History
The Instantaneous Trendline was introduced by John Ehlers, a well-known figure in the field of technical analysis, particularly for applying digital signal processing concepts to financial markets. Ehlers aimed to create an indicator that reacts to market price changes more quickly than traditional moving averages, yet remains smooth enough to avoid excessive noise. By incorporating concepts from digital filtering, he devised a formula that calculates a trendline with minimal lag—hence the term “instantaneous.”
Purpose
The primary purpose of the Instantaneous Trendline with Cloud is to provide traders and analysts with a responsive, smoothed line that closely follows market price movements. Additionally, this script enhances the visual cues by adding a cloud fill to highlight bullish and bearish zones:
Trend Identification
The ITL (Instantaneous Trendline) is plotted alongside the price. When price consistently stays above the ITL, it may signal an uptrend. Conversely, when price dips below the ITL, it can suggest a downtrend.
Signal Generation
Crossover points between the price and the ITL can serve as potential entry or exit signals. A bullish crossover (price moving above the ITL) often indicates the start of upward momentum, while a bearish crossover (price dropping below the ITL) may point to downward momentum.
Noise Reduction
By applying digital filtering concepts and smoothing through the alpha (smoothing coefficient), the ITL reduces noise while still responding relatively quickly to price changes. Traders can adjust alpha to make the trendline more reactive (higher alpha) or smoother (lower alpha).
Clarity via Cloud Fill
A color-coded cloud between the price and the ITL provides an at-a-glance view of market bias. The green cloud highlights potentially bullish phases, while the red cloud highlights potentially bearish phases.
Experiment with the alpha value (commonly between 0.2 and 0.3) to find a balance that suits your preference for responsiveness versus smoothness.
This indicator implements John Ehlers’ Instantaneous Trendline concept and plots a smoothed trendline (ITL) alongside the price. The trendline is controlled by a user-defined smoothing coefficient (alpha). A higher alpha makes the trendline respond more quickly to price changes, while a lower alpha produces a smoother line.
A color-filled cloud helps traders identify bullish and bearish conditions:
Green cloud if the price is above the ITL (bullish potential).
Red cloud if the price is below the ITL (bearish potential).
Key Benefits
Trend Visualization: Quickly see if the market is in an uptrend or downtrend based on the position of the price relative to the trendline.
Crossover Signals: Identify potential shifts in trend or momentum when the price crosses the ITL.
Customizable Sensitivity: Adjust the alpha parameter to make the ITL more or less reactive to price moves. Use this tool to better visualize short-term trend changes and potential entry/exit signals in conjunction with other technical analysis methods.
Time Anchored Intraday High/Low TrendlineOftentimes, intraday trendlines that are started at specific times, e.g. 8:00am or market open 9:30am, are well respected throughout the trading day.
This indicator draws up tp 3 intraday trendlines that are anchored at user defined times, respectively at the corresponding candle's high and low points.
From there, the line*s xy2 are connected in a way that all following candles are enclosed.
Pivot TrendLineThe simplest version of the indicator automatically draws trendLine on your charts, with build-in functions only.
You can change the looking back length settings to get more proper lines you want.
There is also a switch to turn off the historical trendlines.
You can use this to build more advanced indicators or strategies.
Pivot TrendLine with typeIntro
The simplest version of the indicator automatically draws trendLine on your charts, with newest Type syntax.
Type is some thing like type or interface in typescript or Structure in Clang.
with type key word you can write more clear code in pinescript.
Usage
You can change the looking back length settings to get more proper lines you want.
There is also a switch to turn off the historical trendlines .
You can use this to build more advanced indicators or strategies.
[_ParkF]Linreg & Trendlines* The script has been uploaded again.
Linear regression and trendline not only facilitate trend identification,
but also identify support and resistance within it,
and linear regression and trendline departure can detect trend changes, which are useful in trading.
Linear regression and trend lines are shown in the chart.
It offers a variety of options, length, color, thickness, on/off switch, etc.
I hope it will help you with your trading.
hope you become rich!
---------------------------------------------------------------------------------------------------------------------------
* 스크립트가 다시 업로드 되었습니다.
선형 회귀(채널) 및 추세선은 추세 식별을 용이하게 할 뿐만 아니라,
또한 그 안에서 지지와 저항을 식별하고,
선형 회귀(채널) 및 추세선 이탈은 거래에 유용한 추세 변화를 감지할 수 있습니다.
선형 회귀(채널) 및 추세선이 차트에 표시됩니다.
길이, 색상, 두께, 온/오프 스위치 등 다양한 옵션을 제공합니다.
거래에 도움이 되셨으면 합니다.
부자되세요!
---------------------------------------------------------------------------------------------------------------------------
* I would like to express my gratitude to zdmre for revealing the linear regression source.