OPEN-SOURCE SCRIPT
Regression Pulse Trend Suite [Crypto_Zombianz]

# Regression Pulse Trend Suite [Crypto_Zombianz]
## Overview
Regression Pulse Trend Suite is a multi-purpose trend-following and market-structure indicator designed to help traders identify trend direction, dynamic support and resistance areas, potential reversal points, and long or short trading opportunities.
The indicator combines a Linear Regression Channel, volatility-based deviation bands, an EMA trend ribbon, peak and trough detection, risk-management levels, and customizable alerts in one complete trading tool.
It can be used on cryptocurrencies, forex, stocks, indices, commodities, and other liquid markets across multiple timeframes.
## Main Features
### Linear Regression Trend Channel
The indicator calculates a Linear Regression Channel using the selected lookback period.
The channel includes:
* A central regression line representing the prevailing price trend.
* Upper and lower deviation bands representing dynamic resistance and support.
* Intermediate dotted levels that help identify potential reaction and pullback areas.
* Optional channel extension to project the current trend structure forward.
The channel automatically adjusts as new price data becomes available.
### EMA Trend Ribbon
The indicator displays five Exponential Moving Averages:
* EMA 8
* EMA 12
* EMA 16
* EMA 20
* EMA 24
The EMA ribbon provides a visual representation of short-term trend direction and momentum.
A properly aligned and expanding ribbon may indicate strengthening momentum, while a compressed or frequently crossing ribbon may indicate consolidation or an uncertain market.
### Peak and Trough Detection
The indicator identifies potential market turning points using candle-direction changes and previous threshold levels.
* A red cross represents a detected peak.
* A blue diamond represents a detected trough.
* A red circle represents a potential short signal when signal visibility is enabled.
* A blue circle represents a potential long signal when signal visibility is enabled.
Peak and trough markers are not guaranteed reversal signals. They should be confirmed using the regression channel, EMA ribbon, market structure, volume, or another confirmation method.
### Long and Short Signals
A potential long signal is generated when a detected trough is followed by price crossing above the lower regression deviation band.
A potential short signal is generated when a detected peak is followed by price crossing below the upper regression deviation band.
The Position setting can be used to control which trade directions are allowed.
## How to Use the Indicator
### Long Setup
Consider a potential long setup when:
1. The price is near or below the lower regression channel.
2. A trough is detected.
3. The price crosses back above the lower deviation band.
4. The EMA ribbon supports bullish momentum.
5. The selected Position mode allows long trades.
The blue diamond identifies a trough, while the optional blue circle represents a potential long entry signal.
Avoid entering only because a trough appears. Waiting for candle-close confirmation and additional trend confirmation may help reduce false signals.
### Short Setup
Consider a potential short setup when:
1. The price is near or above the upper regression channel.
2. A peak is detected.
3. The price crosses back below the upper deviation band.
4. The EMA ribbon supports bearish momentum.
5. The selected Position mode allows short trades.
The red cross identifies a peak, while the optional red circle represents a potential short entry signal.
Avoid entering only because a peak appears. Waiting for candle-close confirmation and additional trend confirmation may help reduce false signals.
### Trend-Following Method
The indicator may also be used for trend-following entries.
During a bullish trend, traders can monitor the central regression line, lower intermediate level, or lower channel boundary for pullback opportunities.
During a bearish trend, traders can monitor the central regression line, upper intermediate level, or upper channel boundary for potential short opportunities.
A wider and clearly aligned EMA ribbon generally represents stronger momentum. A narrow or mixed ribbon can indicate consolidation.
### Support and Resistance Method
The regression levels can act as dynamic support and resistance zones:
* The upper deviation band may act as dynamic resistance.
* The lower deviation band may act as dynamic support.
* The central regression line may act as a trend equilibrium level.
* The intermediate dotted levels may act as pullback or partial profit-taking zones.
These levels should be treated as areas rather than exact prices.
## Indicator Settings
### Position
Controls the permitted trade direction:
* **Auto:** Allows long and short signals according to the regression trend filter.
* **Auto Long:** Allows only trend-filtered long signals.
* **Auto Short:** Allows only trend-filtered short signals.
* **Fixed:** Allows both long and short signals without the automatic trend-direction filter.
* **Fixed Long:** Allows only long signals.
* **Fixed Short:** Allows only short signals.
### Quantity
Sets the quantity value included in the indicator’s dynamic alert message.
This setting does not automatically place or execute an order.
### Take Profit
Controls the reward-to-risk multiplier used to calculate the projected take-profit level.
For example, a value of 1.2 calculates a target approximately 1.2 times the defined risk distance.
### Stop Loss
Available stop-loss calculation methods:
* **ATR:** Adds or subtracts one ATR from the recent three-bar high or low.
* **ATR x 2:** Adds or subtracts two ATR values from the recent three-bar high or low.
* **HHLL:** Uses the highest high or lowest low of the latest three candles without an additional ATR offset.
### Deviation
Controls the width of the Linear Regression Channel.
A higher value creates wider bands and fewer potential channel-crossing signals. A lower value creates narrower bands and may produce more frequent signals.
### Period
Defines the number of candles used in the Linear Regression calculation.
Lower periods react faster to recent price changes but may generate more market noise. Higher periods create smoother channels but react more slowly.
### Spread Percentages
Displays the percentage movement between detected peaks and troughs.
This can help traders estimate the size of recent market swings.
### Extend Trendlines
Extends the regression channel to the right side of the chart.
The projected lines represent the continuation of the current regression structure and will change as new candles are added.
### Visible Signals
Shows or hides the circular long and short signal markers.
Disabling this option does not disable the alert conditions.
## Alerts
The indicator provides alert conditions for:
* Long entry
* Short entry
* Peak detected
* Trough detected
Dynamic long and short alerts may also include:
* Ticker symbol
* Current price
* Quantity
* Stop-loss level
* Take-profit level
To create an alert, add the indicator to the chart, open TradingView’s alert menu, select the indicator, and choose the required alert condition.
For more reliable confirmation, alerts may be configured to trigger once per bar close.
## Recommended Usage
The indicator may be more effective when used with:
* Higher-timeframe trend analysis
* Support and resistance levels
* Volume confirmation
* Market structure
* Appropriate position sizing
* Candle-close confirmation
It is recommended to test different Period and Deviation settings because every market and timeframe has different volatility characteristics.
## Important Notes
The projected stop-loss and take-profit levels are visual reference levels only. The indicator does not automatically execute trades or manage positions.
Regression channels and signals can change as new market data becomes available. Projected trendlines should not be treated as fixed future levels.
No indicator can predict every market movement or eliminate false signals. Always test the indicator using historical data, paper trading, and your own trading plan before using it in live markets.
## Disclaimer
This indicator is provided for educational and informational purposes only. It does not constitute financial, investment, or trading advice. Trading involves substantial risk, and past performance does not guarantee future results. Users are responsible for their own trading decisions and risk management.
## Overview
Regression Pulse Trend Suite is a multi-purpose trend-following and market-structure indicator designed to help traders identify trend direction, dynamic support and resistance areas, potential reversal points, and long or short trading opportunities.
The indicator combines a Linear Regression Channel, volatility-based deviation bands, an EMA trend ribbon, peak and trough detection, risk-management levels, and customizable alerts in one complete trading tool.
It can be used on cryptocurrencies, forex, stocks, indices, commodities, and other liquid markets across multiple timeframes.
## Main Features
### Linear Regression Trend Channel
The indicator calculates a Linear Regression Channel using the selected lookback period.
The channel includes:
* A central regression line representing the prevailing price trend.
* Upper and lower deviation bands representing dynamic resistance and support.
* Intermediate dotted levels that help identify potential reaction and pullback areas.
* Optional channel extension to project the current trend structure forward.
The channel automatically adjusts as new price data becomes available.
### EMA Trend Ribbon
The indicator displays five Exponential Moving Averages:
* EMA 8
* EMA 12
* EMA 16
* EMA 20
* EMA 24
The EMA ribbon provides a visual representation of short-term trend direction and momentum.
A properly aligned and expanding ribbon may indicate strengthening momentum, while a compressed or frequently crossing ribbon may indicate consolidation or an uncertain market.
### Peak and Trough Detection
The indicator identifies potential market turning points using candle-direction changes and previous threshold levels.
* A red cross represents a detected peak.
* A blue diamond represents a detected trough.
* A red circle represents a potential short signal when signal visibility is enabled.
* A blue circle represents a potential long signal when signal visibility is enabled.
Peak and trough markers are not guaranteed reversal signals. They should be confirmed using the regression channel, EMA ribbon, market structure, volume, or another confirmation method.
### Long and Short Signals
A potential long signal is generated when a detected trough is followed by price crossing above the lower regression deviation band.
A potential short signal is generated when a detected peak is followed by price crossing below the upper regression deviation band.
The Position setting can be used to control which trade directions are allowed.
## How to Use the Indicator
### Long Setup
Consider a potential long setup when:
1. The price is near or below the lower regression channel.
2. A trough is detected.
3. The price crosses back above the lower deviation band.
4. The EMA ribbon supports bullish momentum.
5. The selected Position mode allows long trades.
The blue diamond identifies a trough, while the optional blue circle represents a potential long entry signal.
Avoid entering only because a trough appears. Waiting for candle-close confirmation and additional trend confirmation may help reduce false signals.
### Short Setup
Consider a potential short setup when:
1. The price is near or above the upper regression channel.
2. A peak is detected.
3. The price crosses back below the upper deviation band.
4. The EMA ribbon supports bearish momentum.
5. The selected Position mode allows short trades.
The red cross identifies a peak, while the optional red circle represents a potential short entry signal.
Avoid entering only because a peak appears. Waiting for candle-close confirmation and additional trend confirmation may help reduce false signals.
### Trend-Following Method
The indicator may also be used for trend-following entries.
During a bullish trend, traders can monitor the central regression line, lower intermediate level, or lower channel boundary for pullback opportunities.
During a bearish trend, traders can monitor the central regression line, upper intermediate level, or upper channel boundary for potential short opportunities.
A wider and clearly aligned EMA ribbon generally represents stronger momentum. A narrow or mixed ribbon can indicate consolidation.
### Support and Resistance Method
The regression levels can act as dynamic support and resistance zones:
* The upper deviation band may act as dynamic resistance.
* The lower deviation band may act as dynamic support.
* The central regression line may act as a trend equilibrium level.
* The intermediate dotted levels may act as pullback or partial profit-taking zones.
These levels should be treated as areas rather than exact prices.
## Indicator Settings
### Position
Controls the permitted trade direction:
* **Auto:** Allows long and short signals according to the regression trend filter.
* **Auto Long:** Allows only trend-filtered long signals.
* **Auto Short:** Allows only trend-filtered short signals.
* **Fixed:** Allows both long and short signals without the automatic trend-direction filter.
* **Fixed Long:** Allows only long signals.
* **Fixed Short:** Allows only short signals.
### Quantity
Sets the quantity value included in the indicator’s dynamic alert message.
This setting does not automatically place or execute an order.
### Take Profit
Controls the reward-to-risk multiplier used to calculate the projected take-profit level.
For example, a value of 1.2 calculates a target approximately 1.2 times the defined risk distance.
### Stop Loss
Available stop-loss calculation methods:
* **ATR:** Adds or subtracts one ATR from the recent three-bar high or low.
* **ATR x 2:** Adds or subtracts two ATR values from the recent three-bar high or low.
* **HHLL:** Uses the highest high or lowest low of the latest three candles without an additional ATR offset.
### Deviation
Controls the width of the Linear Regression Channel.
A higher value creates wider bands and fewer potential channel-crossing signals. A lower value creates narrower bands and may produce more frequent signals.
### Period
Defines the number of candles used in the Linear Regression calculation.
Lower periods react faster to recent price changes but may generate more market noise. Higher periods create smoother channels but react more slowly.
### Spread Percentages
Displays the percentage movement between detected peaks and troughs.
This can help traders estimate the size of recent market swings.
### Extend Trendlines
Extends the regression channel to the right side of the chart.
The projected lines represent the continuation of the current regression structure and will change as new candles are added.
### Visible Signals
Shows or hides the circular long and short signal markers.
Disabling this option does not disable the alert conditions.
## Alerts
The indicator provides alert conditions for:
* Long entry
* Short entry
* Peak detected
* Trough detected
Dynamic long and short alerts may also include:
* Ticker symbol
* Current price
* Quantity
* Stop-loss level
* Take-profit level
To create an alert, add the indicator to the chart, open TradingView’s alert menu, select the indicator, and choose the required alert condition.
For more reliable confirmation, alerts may be configured to trigger once per bar close.
## Recommended Usage
The indicator may be more effective when used with:
* Higher-timeframe trend analysis
* Support and resistance levels
* Volume confirmation
* Market structure
* Appropriate position sizing
* Candle-close confirmation
It is recommended to test different Period and Deviation settings because every market and timeframe has different volatility characteristics.
## Important Notes
The projected stop-loss and take-profit levels are visual reference levels only. The indicator does not automatically execute trades or manage positions.
Regression channels and signals can change as new market data becomes available. Projected trendlines should not be treated as fixed future levels.
No indicator can predict every market movement or eliminate false signals. Always test the indicator using historical data, paper trading, and your own trading plan before using it in live markets.
## Disclaimer
This indicator is provided for educational and informational purposes only. It does not constitute financial, investment, or trading advice. Trading involves substantial risk, and past performance does not guarantee future results. Users are responsible for their own trading decisions and risk management.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
For any questions or concerns, please contact
Telegram: t.me/Crypto_Zombian
Whatsapp: +84-56-705-0757
Whatsapp Group Link:
chat.whatsapp.com/JNgn2PpDHhoDa5hKIVzVpi
Telegram: t.me/Crypto_Zombian
Whatsapp: +84-56-705-0757
Whatsapp Group Link:
chat.whatsapp.com/JNgn2PpDHhoDa5hKIVzVpi
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
For any questions or concerns, please contact
Telegram: t.me/Crypto_Zombian
Whatsapp: +84-56-705-0757
Whatsapp Group Link:
chat.whatsapp.com/JNgn2PpDHhoDa5hKIVzVpi
Telegram: t.me/Crypto_Zombian
Whatsapp: +84-56-705-0757
Whatsapp Group Link:
chat.whatsapp.com/JNgn2PpDHhoDa5hKIVzVpi
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.