Support Resistance Major/Minor [TradingFinder] Market Structure🔵 Introduction 
Support and resistance levels are key concepts in technical analysis, serving as critical points where prices pause or reverse due to the interaction of supply and demand. These foundational elements in price action and classical technical analysis assist traders in understanding market behavior and making better trading decisions. 
Support levels are zones where demand is strong enough to prevent further price declines, while resistance levels act as barriers that hinder price increases.
Support and resistance levels are divided into two main types: static and dynamic. Static levels are fixed horizontal lines on charts, formed based on historical price points, and are crucial due to repeated price reactions in these areas. 
Dynamic levels, on the other hand, move with market trends and are often identified using tools like moving averages and trendlines. These levels are particularly useful for analyzing dynamic trends and identifying potential reversal points in financial markets.
The importance of support and resistance in technical analysis lies in their ability to pinpoint price reversal or continuation points. Professional traders use these levels to determine optimal entry and exit points and combine them with tools such as Fibonacci retracements or moving averages for precise strategies.
Detailed analysis of price behavior at these levels provides insights into trend strength and the likelihood of price breaks or reversals. By understanding these concepts, technical analysts can forecast future price movements and optimize their trading decisions using tools such as indicators and price action. Support and resistance levels, as a cornerstone of technical analysis, form the foundation for many trading strategies.
  
🔵 How to Use 
The Static Support and Resistance Indicator is a vital tool for identifying significant price zones in financial markets. It automatically detects major and minor support and resistance levels in both short-term and long-term intervals, enabling traders to analyze price behavior accurately and develop optimal entry and exit strategies.
🟣 Major Long-Term Support and Resistance 
 Major Long-Term Support : The lowest price points recorded over long-term intervals that prevent further declines.
 Major Long-Term Resistance : The highest price points in long-term intervals that limit further price increases.
🟣 Minor Long-Term Support and Resistance 
 Minor Long-Term Support : Temporary halts in price decline within a downtrend over long-term intervals.
 Minor Long-Term Resistance : Short-term zones within long-term intervals where prices react negatively in an uptrend.
  
🟣 Major Short-Term Support and Resistance 
 Major Short-Term Support : The lowest price points in short-term intervals that act as barriers against sharp price drops.
 Major Short-Term Resistance : The highest points in short-term intervals that prevent further price surges.
🟣 Minor Short-Term Support and Resistance 
 Minor Short-Term Support : Temporary halts in price decline within short-term downtrends.
 Minor Short-Term Resistance : Zones where price reacts quickly and reverses in short-term uptrends.
  
🔵 Settings 
 Long Term S&R Pivot Period : Defines the interval for identifying long-term support and resistance levels (default: 21).
 Short Term S&R Pivot Period : Defines the interval for identifying short-term support and resistance levels (default: 5).
🟣 Long-Term Lines 
 Major Line Display : Enable/disable major long-term lines.
 Minor Line Display : Enable/disable minor long-term lines.
 Major Line Colors : Green for support, red for resistance (long-term major levels).
 Minor Line Colors : Light green for support, light red for resistance (long-term minor levels).
 Major Line Style : Choose between solid, dotted, or dashed lines for major long-term levels.
 Minor Line Style : Choose between solid, dotted, or dashed lines for minor long-term levels.
 Major Line Width : Adjust the thickness of major long-term lines.
 Minor Line Width : Adjust the thickness of minor long-term lines.
🟣 Short-Term Lines 
 Major Line Display : Enable/disable major short-term lines.
 Minor Line Display : Enable/disable minor short-term lines.
 Major Line Colors : Gray-green for support, gray-red for resistance (short-term major levels).
 Minor Line Colors : Dark green for support, dark red for resistance (short-term minor levels).
 Major Line Style : Choose between solid, dotted, or dashed lines for major short-term levels.
 Minor Line Style : Choose between solid, dotted, or dashed lines for minor short-term levels.
 Major Line Width : Adjust the thickness of major short-term lines.
 Minor Line Width : Adjust the thickness of minor short-term lines.
🔵 Conclusion 
Static support and resistance levels are among the most critical tools in technical analysis, helping traders identify key reversal or continuation points. 
This indicator simplifies and enhances the analysis process by automatically detecting major and minor levels in both short-term and long-term intervals. It allows traders to customize settings to suit their trading strategies and analyze different market levels effectively.
Using this indicator improves price action analysis, enhances market understanding, and identifies trading opportunities. Applicable to all trading styles, from day trading to long-term investing, it is an essential tool for technical analysis.
Combining this indicator with other tools like trendlines, Fibonacci retracements, and moving averages enables comprehensive analysis and allows traders to navigate financial markets with greater confidence.
In den Scripts nach "TRENDLINES" suchen
Trend Line XrossTrend Line Xross (TLX) Uses User Input Points to draw trendlines and displays the exact intersection point of those trendlines.
This is the public indicator of the practical application for this intersection method included in my entry for Pinefest #1.
To determine the exact intersection point I am using the y-intercept method as seen below.
  
The code is notated for more information on the technical workings.
One difference to note between this version and the pinefest version is that I had to change the line drawings to use bar_index values so that I can use line.get_price() to grab the current value of the line to make alerts from.
Additionally, there are alerts built-in to this version for every type of cross on all of the visible lines.
Enjoy!
Trend Lines [AstroHub]1. Understand the basics of technical analysis: to fully utilize this system, you need to understand the fundamentals of technical analysis, such as identifying high and low prices, trendlines, etc. This will help you effectively use indicators and make more informed trading decisions.
2. Study the internal parameters: the system has input parameters, such as "Period," etc. Study their values and understand how they impact the indicator's performance. This will allow you to customize the system to fit your needs and trading strategies.
3. Pay attention to bars of different colors: the system marks bars with different colors depending on the price's position relative to trendlines. Pay close attention to these color changes as they can serve as entry or exit signals.
4. Be ready to adapt: the market is constantly changing, and the system may not always provide accurate signals. Be prepared to adapt and make decisions based on other factors, such as trading volume, news, etc.
5. Practice on historical data: before using this system in real-time, conduct some tests on historical data. This will help you understand how the system works and what results it can produce in different market conditions.
6. Be patient: the system may not always provide instant entry or exit signals. Be patient and wait for signal confirmation before entering or closing a trade.
7. Learn and discuss: trading knowledge and the use of this system are continuous learning processes. Be open to learning new strategies and discussing your experiences with other traders. This will help you improve your skills and better utilize this system.
Swiss Knife [MERT]Introduction 
The  Swiss Knife   indicator is a comprehensive trading tool designed to provide a multi-dimensional analysis of the market. By integrating a wide array of technical indicators across multiple timeframes, it offers traders a holistic view of market sentiment, momentum, and potential reversal points. This indicator is particularly useful for traders looking to combine trend analysis, momentum indicators, volume data, and price action into a single, easy-to-read format.
---
 Key Features 
 
 Multi-Timeframe Analysis : Evaluates indicators on  Daily ,  4-Hour ,  1-Hour , and  15-Minute  timeframes.
 Comprehensive Indicator Suite : Incorporates  MACD ,  Awesome Oscillator (AO) ,  Parabolic SAR ,  SuperTrend ,  DPO ,  RSI ,  Stochastic Oscillator ,  Bollinger Bands ,  Ichimoku Cloud ,  Chande Momentum Oscillator (CMO) ,  Donchian Channels ,  ADX , volume-based momentum indicators,  Fractals , and divergence detection.
 Market Sentiment Scoring : Aggregates signals from multiple indicators to provide an overall sentiment score.
 Visual Aids : Displays EMA lines, trendlines, divergence signals, and a sentiment table directly on the chart.
 Super Trend Reversal Signals : Identifies potential market reversal points by assessing the momentum of automated trading bots.
 
---
 Explanation of Each Indicator 
 
 Moving Average Convergence Divergence (MACD) 
   -  Purpose : Measures the relationship between two moving averages of price.
   -  Interpretation : A positive histogram suggests bullish momentum; a negative histogram indicates bearish momentum.
 Awesome Oscillator (AO) 
   -  Purpose : Gauges market momentum by comparing recent market movements to historic ones.
   -  Interpretation : Above zero indicates bullish momentum; below zero indicates bearish momentum.
 Parabolic SAR (SAR) 
   -  Purpose : Identifies potential reversal points in price direction.
   -  Interpretation : Dots below price suggest an uptrend; dots above price suggest a downtrend.
 SuperTrend 
   -  Purpose : Determines the prevailing market trend.
   -  Interpretation : Provides buy or sell signals based on price movements relative to the SuperTrend line.
 Detrended Price Oscillator (DPO) 
   -  Purpose : Removes trend from price to identify cycles.
   -  Interpretation : Values above zero suggest price is above the moving average; values below zero indicate it is below.
 Relative Strength Index (RSI) 
   -  Purpose : Measures the speed and change of price movements.
   -  Interpretation : Values above 50 indicate bullish momentum; values below 50 indicate bearish momentum.
 Stochastic Oscillator 
   -  Purpose : Compares a particular closing price to a range of its prices over a certain period.
   -  Interpretation : Values above 50 indicate bullish conditions; values below 50 indicate bearish conditions.
 Bollinger Bands (BB) 
   -  Purpose : Measures market volatility and provides relative price levels.
   -  Interpretation : Price above the middle band suggests bullishness; below the middle band suggests bearishness.
 Ichimoku Cloud 
   -  Purpose : Provides support and resistance levels, trend direction, and momentum.
   -  Interpretation : Bullish signals when price is above the cloud; bearish signals when price is below the cloud.
 Chande Momentum Oscillator (CMO) 
   -  Purpose : Measures momentum on both up and down days.
   -  Interpretation : Values above 50 indicate strong upward momentum; values below -50 indicate strong downward momentum.
 Donchian Channels 
   -  Purpose : Identifies volatility and potential breakouts.
   -  Interpretation : Price above the upper band suggests bullish breakout; below the lower band suggests bearish breakout.
 Average Directional Index (ADX) 
   -  Purpose : Measures the strength of a trend.
   -  Interpretation : DI+ above DI- indicates bullish trend; DI- above DI+ indicates bearish trend.
 Volume Momentum Indicators (VolMom, CumVolMom, POCMom) 
   -  Purpose : Analyze volume to assess buying and selling pressure.
   -  Interpretation : Positive values suggest bullish volume momentum; negative values indicate bearish volume momentum.
 Fractals 
   -  Purpose : Identify potential reversal points in the market.
   -  Interpretation : Up fractals may indicate a future downtrend; down fractals may indicate a future uptrend.
 Divergence Detection 
   -  Purpose : Identifies divergences between price and various indicators (RSI, MACD, Stochastic, OBV, MFI, A/D Line).
   -  Interpretation : Bullish divergences suggest potential upward reversal; bearish divergences suggest potential downward reversal.
   -  Note : This functionality utilizes the library from  Divergence Indicator .
 
---
 Coloring Scheme 
 Background Color 
-  Purpose : Reflects the overall market sentiment by combining sentiment scores from all indicators across different timeframes.
-  Interpretation :
   -  Green Shades : Indicate bullish market sentiment.
   -  Red Shades : Indicate bearish market sentiment.
   -  Intensity : The strength of the color corresponds to the strength of the sentiment score.
 Sentiment Table 
-  Purpose : Displays the status of each indicator across different timeframes.
-  Interpretation :
   -  Green Cell : The indicator suggests a bullish signal.
   -  Red Cell : The indicator suggests a bearish signal.
   -  Percentage Score : Indicates the overall bullish or bearish sentiment on that timeframe.
 Exponential Moving Averages (EMAs) 
-  Purpose : Provide dynamic support and resistance levels.
-  Colors :
   -  EMA 10 : Lime
   -  EMA 20 : Yellow
   -  EMA 50 : Orange
   -  EMA 100 : Red
   -  EMA 200 : Purple
 Trendlines 
-  Purpose : Visual representation of support and resistance levels based on pivot points.
-  Interpretation :
   -  Upward Trendlines : Colored  green , indicating support levels.
   -  Downward Trendlines : Colored  red , indicating resistance levels.
-  Note : Trendlines are drawn using the library from  Simple Trendlines .
---
 Utility of Market Sentiment 
The indicator aggregates signals from multiple technical indicators across various timeframes to compute an overall  market sentiment score . This comprehensive approach helps traders understand the prevailing market conditions by:
 
 Confirming Trends : Multiple indicators pointing in the same direction can confirm the strength of a trend.
 Identifying Reversals : Divergences and fractals can signal potential turning points.
 Timeframe Alignment : Aligning signals across different timeframes can enhance the probability of successful trades.
 
---
 Divergences 
 Divergence  occurs when the price of an asset moves in the opposite direction of a technical indicator, suggesting a potential reversal.
-  Bullish Divergence : Price makes a lower low, but the indicator makes a higher low.
-  Bearish Divergence : Price makes a higher high, but the indicator makes a lower high.
The indicator detects divergences for:
 
 RSI 
 MACD 
 Stochastic Oscillator 
 On-Balance Volume (OBV) 
 Money Flow Index (MFI) 
 Accumulation/Distribution Line (A/D Line) 
 
By identifying these divergences, traders can spot early signs of trend reversals and adjust their strategies accordingly.
---
 Trendlines 
Trendlines are essential tools for identifying support and resistance levels. The indicator automatically draws trendlines based on pivot points:
-  Upward Trendlines (Support) : Connect higher lows, indicating an uptrend.
-  Downward Trendlines (Resistance) : Connect lower highs, indicating a downtrend.
These trendlines help traders visualize the trend direction and potential breakout or reversal points.
---
 Super Trend Reversals (ST Reversal) 
The core idea behind the  Super Trend Reversals  indicator is to assess the momentum of automated trading bots (often referred to as 'Supertrend bots') that enter the market during critical turning points. Specifically, the indicator is tuned to identify when the market is nearing bottoms or peaks, just before it shifts direction based on the triggered Supertrend signals. This approach helps traders:
 
 Engage Early : Enter the market as reversal momentum builds up.
 Optimize Entries and Exits : Enter under favorable conditions and exit before momentum wanes.
 
By capturing these reversal points, traders can enhance their trading performance.
---
 Conclusion 
The  Swiss Knife   indicator serves as a versatile tool that combines multiple technical analysis methods into a single, comprehensive indicator. By assessing various aspects of the market—including trend direction, momentum, volume, and price action—it provides traders with valuable insights to make informed trading decisions.
---
 Citations 
-  Divergence Detection Library :  Divergence Indicator by DevLucem
-  Trendline Drawing Library :  Simple Trendlines by HoanGhetti
---
 Note : This indicator is intended for informational purposes and should be used in conjunction with other analysis techniques. Always perform due diligence before making trading decisions.
---
MACD Volume S2 By Gammaprod>> How to use this indicator :
1. Set your teadingview theme to dark theme.
2. My indicator is valid for forex, stock and but more valid for crypto.
3. Use three timeframe for more validation (choose between those, that fit to your trading style) :
 - Timeframe 1m, 5m, and 15m for Scalping
 - Timeframe 30m, 1h and 4h for Intraday
 - Timeframe 4h, 1D and 1W for Swing Trading
4 . Always use THREE INDICATORS FROM GAMMAPROD, those three indicators is back to back each other, by the way, I only made those three indicators only (for now) :
 - Trendlines Boll Ichi Crypto by Gammaprod
 - Stoch RSI Divs Zone Crypto by Gammaprod
 - MACD Volume Crypto by Gammaprod
>> How to setting :
1. Trendlines Boll Ichi Crypto by Gammaprod
A. Support and Resistence
 - Well if you familiar with this indicator you can add it, but recommended for Timeframe 30m  or more
B. Trendlines Primary or Trendlines Secondary
 - Timeframe 1m you DON'T NEED Trendlines Primary or Trendlines Secondary
 - Timeframe 5m you DON'T NEED Trendlines Secondary, but you CAN ADD Trendlines Primary if you fell it helpful (for me, it is helpful to find where the candles start or the end trend or a consolidation or where the candles will surpass a resistance or a support).
 - Timeframe 15m you DON'T NEED Trendlines Secondary, DEFENITELY add Trendlines Primary it will help to find where the candles stop or a consolidation or where the candles will surpass a resistance or a support). 
 - Timeframe 30m or more, DEFENITELY NEED BOTH Trendlines Primary and Secondary Trendlines, it will help to find where the candle stop or consolidation or where the candle will surpass a resistance or support).
C. Bolinger, Ichimoku Cloud and Lagging Span
 - Please DON'T CHANGE IT at all, it's really helpful to know when and where to make an entry decesion or a trend or a consolidation, if you don't understand how to read it, you better to learn it first (on "how to read" section and "How to OPEN position" the section below)
2. Stoch RSI Divs Zone Crypto by Gammaprod (DON'T CHANGE IT)
3. MACD Volume Crypto by Gammaprod (DON'T CHANGE IT)
>> How to read :
1. Sell or Buy Priority :
A. Buy Priority 
 - Color background on macd and stoch rsi is pink or purple sell is the priority, (if you're not sure to buy, just wait until the best moment to sell) 
B. Buy Priority 
 - Color background on macd and stoch rsi Teal or light green buy is the priority, (if you're not sure to sell, just wait until the best moment to buy) 
C. Indecision / Golden Moment 
 - Color background on stoch rsi yellow is indecision / golden moment of reversal pattern (wait until it formed background only on Stoch RSI), please becareful at this moment.
2. Trend / Consolidation :
A. BULLISH trend
 - When Stoch RSI and MACD have teal or light green background that's means BULLISH trend, better to confirm by the candle is above green cloud and lagging span (red line) is also above the candle.
B. BEARISH trend
 - When Stoch RSI and MACD have the Pink or purple background that's means BEARISH trend, better to confirm by the candle is above purple cloud and lagging span (red line) is also below the candle.
C. CONSOLIDATION
 - When Stoch RSI have the mix background that's means CONSOLIDATION, better to confirm by the candle is in or near to green / purple cloud and lagging span (red line) is also on the candle.
3. Special Mark
A. Ideal Bullish :
 - Near line 20 and green / teal background = When Stoch RSI have the char R / H on lime color label, that's means divergence or hidden divergence for buy position, if you not see this label that's means just a standard confirmation for buy
B. Not an Ideal Bullish :
 - Near line 80 and green / teal background = if this happens make sure you know what happen, it could be a false signal or bullish continual pattern 
C. Ideal Bearish :
 - Near line 80 and pink / purple background = When Stoch RSI have the char R / H on lime color label, that's means divergence or hidden divergence for buy position, if you not see this label that's means just a standard confirmation for sell position.
D. Not an Ideal Bearish:
 - Near line 20 and pink / purple background = if this happens make sure you know what happen, it could be a false signal or bearish continual pattern 
E. The Beginning of Reversal (from BEARISH to BULLISH) :
 - When Stoch RSI line shaping GREEN position is near 20.
 - MACD lines still PINK, position lines is UNDER the HISTOGRAM, but the HISTOGRAM start to SHAPE FALL PINK (light pink) and the BACKGROUND still PINK / PURPLE.
 - Position CANDLES NEAR BLUE line, NEAR PURPLE CLOUD, and lagging span (red line) STILL ON the area candle. (it used to be confirmed with the golden moment).
F. The Beginning of Reversal (from BULLISH to BEARISH) :
 - When Stoch RSI line shaping PINK position is near 80.
 - MACD lines still GREEN, position lines is ABOVE the HISTOGRAM, but the HISTOGRAM start to SHAPE FALL GREEN (light green) and the BACKGROUND still TEAL / GREEN.
 - Position CANDLES NEAR WHITE line, NEAR TEAL CLOUD, and lagging span (red line) STILL ON the area candle. (it used to be confirmed with the golden moment).
G. False Signals, or It could be a Golden Moment (better to see it on TF 15 or bigger):
 - Near line 20 or 80 and yellow background = When Stoch RSI have the char R / H on color label, that's means divergence or hidden divergence for buy / sell position, if you not see this label that's means just a standard confirmation for buy / sell depends on where the Stoch RSI line if near 20 that's means buy, near 80 means sell
>> How to OPEN position:
A. Bullish
1. Trendlines Boll Ichi Crypto by Gammaprod
 - The candles above the green cloud.
 - Lagging span (red line) above the candles.
 - then open buy near yellow line (the first option) / blue line (the second option) (always confirm the position with two other indicators below).
2. Stoch RSI Divs Zone Crypto by Gammaprod
 - Teal or Green background.
 - The lines is shaping green.
 - Better if on the bottom (at a range 20).
3. MACD Volume Crypto by Gammaprod 
 - Teal or Green background.
 - The lines is shaped or shaping green.
 - Better if at the green histogram.
B. Bearish
1. Trendlines Boll Ichi Crypto by Gammaprod
 - The candles below the purple cloud. 
 - Lagging span (red line) below the candles.
 - then open buy near yellow line (the first option) / white line (the second option) (always confirm the position with two other indicators below).
2. Stoch RSI Divs Zone Crypto by Gammaprod
 - Pink or purple background.
 - The lines are shaping pink.
 - Better if the line on the top (at a range 80).
3. MACD Volume Crypto by Gammaprod 
 - Pink or purple background.
 - The lines are shaped or shaping green. 
 - Better if at the pink histogram.
C. Consolidation
1. Trendlines Boll Ichi Crypto by Gammaprod
 - The candles on the cloud (green or purple). 
 - Lagging span (red line) on the candles.
 - then open buy near the white or blue line (always confirm the position with two other indicators below).
2. Stoch RSI Divs Zone Crypto by Gammaprod
 - Mix background specially on a timeframe 15m or more.
 - The line move fast up and down.
 - Better if on the bottom or the top of the lines (at a range 20 or 80).
3. MACD Volume Crypto by Gammaprod 
 - Changing the background.
 - The line is near the middle line.
 - Have small Histogram.
>> The secret ingridient is comparing the timeframe :
The example scalping (Timeframe 1m, 5m and 15m) 
 - TF 1m is for making an open position.
 - TF 5m is for making a judgement of the trend market.
 - TF 15m is to confirm that judgement from TF 5m, be careful if it not similar then it used to be a consolidation or the beginning of the reversal.
There's a lot a way to open the position than above information that i gave it to you, but consider there are a limit char on this column, I hope it will help your trading and make a more profit on it.
Stoch RSI, Div, Zone S3 by Gammaprod>> How to use this indicator :
1. Set your teadingview theme to dark theme.
2. My indicator is valid for forex, stock and but more valid for crypto.
3. Use three timeframe for more validation (choose between those, that fit to your trading style) :
 - Timeframe 1m, 5m, and 15m for Scalping
 - Timeframe 30m, 1h and 4h for Intraday
 - Timeframe 4h, 1D and 1W for Swing Trading
4 . Always use THREE INDICATORS FROM GAMMAPROD, those three indicators is back to back each other, by the way, I only made those three indicators only (for now) :
 - Trendlines Boll Ichi Crypto by Gammaprod
 - Stoch RSI Divs Zone Crypto by Gammaprod
 - MACD Volume Crypto by Gammaprod
>> How to setting :
1. Trendlines Boll Ichi Crypto by Gammaprod
A. Support and Resistence
 - Well if you familiar with this indicator you can add it, but recommended for Timeframe 30m  or more
B. Trendlines Primary or Trendlines Secondary
 - Timeframe 1m you DON'T NEED Trendlines Primary or Trendlines Secondary
 - Timeframe 5m you DON'T NEED Trendlines Secondary, but you CAN ADD Trendlines Primary if you fell it helpful (for me, it is helpful to find where the candles start or the end trend or a consolidation or where the candles will surpass a resistance or a support).
 - Timeframe 15m you DON'T NEED Trendlines Secondary, DEFENITELY add Trendlines Primary it will help to find where the candles stop or a consolidation or where the candles will surpass a resistance or a support). 
 - Timeframe 30m or more, DEFENITELY NEED BOTH Trendlines Primary and Secondary Trendlines, it will help to find where the candle stop or consolidation or where the candle will surpass a resistance or support).
C. Bolinger, Ichimoku Cloud and Lagging Span
 - Please DON'T CHANGE IT at all, it's really helpful to know when and where to make an entry decesion or a trend or a consolidation, if you don't understand how to read it, you better to learn it first (on "how to read" section and "How to OPEN position" the section below)
2. Stoch RSI Divs Zone Crypto by Gammaprod (DON'T CHANGE IT)
3. MACD Volume Crypto by Gammaprod (DON'T CHANGE IT)
>> How to read :
1. Sell or Buy Priority :
A. Buy Priority 
 - Color background on macd and stoch rsi is pink or purple sell is the priority, (if you're not sure to buy, just wait until the best moment to sell) 
B. Buy Priority 
 - Color background on macd and stoch rsi Teal or light green buy is the priority, (if you're not sure to sell, just wait until the best moment to buy) 
C. Indecision / Golden Moment 
 - Color background on stoch rsi yellow is indecision / golden moment of reversal pattern (wait until it formed background only on Stoch RSI), please becareful at this moment.
2. Trend / Consolidation :
A. BULLISH trend
 - When Stoch RSI and MACD have teal or light green background that's means BULLISH trend, better to confirm by the candle is above green cloud and lagging span (red line) is also above the candle.
B. BEARISH trend
 - When Stoch RSI and MACD have the Pink or purple background that's means BEARISH trend, better to confirm by the candle is above purple cloud and lagging span (red line) is also below the candle.
C. CONSOLIDATION
 - When Stoch RSI have the mix background that's means CONSOLIDATION, better to confirm by the candle is in or near to green / purple cloud and lagging span (red line) is also on the candle.
3. Special Mark
A. Ideal Bullish :
 - Near line 20 and green / teal background = When Stoch RSI have the char R / H on lime color label, that's means divergence or hidden divergence for buy position, if you not see this label that's means just a standard confirmation for buy
B. Not an Ideal Bullish :
 - Near line 80 and green / teal background = if this happens make sure you know what happen, it could be a false signal or bullish continual pattern 
C. Ideal Bearish :
 - Near line 80 and pink / purple background = When Stoch RSI have the char R / H on lime color label, that's means divergence or hidden divergence for buy position, if you not see this label that's means just a standard confirmation for sell position.
D. Not an Ideal Bearish:
 - Near line 20 and pink / purple background = if this happens make sure you know what happen, it could be a false signal or bearish continual pattern 
E. The Beginning of Reversal (from BEARISH to BULLISH) :
 - When Stoch RSI line shaping GREEN position is near 20.
 - MACD lines still PINK, position lines is UNDER the HISTOGRAM, but the HISTOGRAM start to SHAPE FALL PINK (light pink) and the BACKGROUND still PINK / PURPLE.
 - Position CANDLES NEAR BLUE line, NEAR PURPLE CLOUD, and lagging span (red line) STILL ON the area candle. (it used to be confirmed with the golden moment).
F. The Beginning of Reversal (from BULLISH to BEARISH) :
 - When Stoch RSI line shaping PINK position is near 80.
 - MACD lines still GREEN, position lines is ABOVE the HISTOGRAM, but the HISTOGRAM start to SHAPE FALL GREEN (light green) and the BACKGROUND still TEAL / GREEN.
 - Position CANDLES NEAR WHITE line, NEAR TEAL CLOUD, and lagging span (red line) STILL ON the area candle. (it used to be confirmed with the golden moment).
G. False Signals, or It could be a Golden Moment (better to see it on TF 15 or bigger):
 - Near line 20 or 80 and yellow background = When Stoch RSI have the char R / H on color label, that's means divergence or hidden divergence for buy / sell position, if you not see this label that's means just a standard confirmation for buy / sell depends on where the Stoch RSI line if near 20 that's means buy, near 80 means sell
>> How to OPEN position:
A. Bullish
1. Trendlines Boll Ichi Crypto by Gammaprod
 - The candles above the green cloud.
 - Lagging span (red line) above the candles.
 - then open buy near yellow line (the first option) / blue line (the second option) (always confirm the position with two other indicators below).
2. Stoch RSI Divs Zone Crypto by Gammaprod
 - Teal or Green background.
 - The lines is shaping green.
 - Better if on the bottom (at a range 20).
3. MACD Volume Crypto by Gammaprod 
 - Teal or Green background.
 - The lines is shaped or shaping green.
 - Better if at the green histogram.
B. Bearish
1. Trendlines Boll Ichi Crypto by Gammaprod
 - The candles below the purple cloud. 
 - Lagging span (red line) below the candles.
 - then open buy near yellow line (the first option) / white line (the second option) (always confirm the position with two other indicators below).
2. Stoch RSI Divs Zone Crypto by Gammaprod
 - Pink or purple background.
 - The lines are shaping pink.
 - Better if the line on the top (at a range 80).
3. MACD Volume Crypto by Gammaprod 
 - Pink or purple background.
 - The lines are shaped or shaping green. 
 - Better if at the pink histogram.
C. Consolidation
1. Trendlines Boll Ichi Crypto by Gammaprod
 - The candles on the cloud (green or purple). 
 - Lagging span (red line) on the candles.
 - then open buy near the white or blue line (always confirm the position with two other indicators below).
2. Stoch RSI Divs Zone Crypto by Gammaprod
 - Mix background specially on a timeframe 15m or more.
 - The line move fast up and down.
 - Better if on the bottom or the top of the lines (at a range 20 or 80).
3. MACD Volume Crypto by Gammaprod 
 - Changing the background.
 - The line is near the middle line.
 - Have small Histogram.
>> The secret ingridient is comparing the timeframe :
The example scalping (Timeframe 1m, 5m and 15m) 
 - TF 1m is for making an open position.
 - TF 5m is for making a judgement of the trend market.
 - TF 15m is to confirm that judgement from TF 5m, be careful if it not similar then it used to be a consolidation or the beginning of the reversal.
There's a lot a way to open the position than above information that i gave it to you, but consider there are a limit char on this column, I hope it will help your trading and make a more profit on it.
Strongest TrendlineUnleashing the Power of Trendlines with the "Strongest Trendline" Indicator.
Trendlines are an invaluable tool in technical analysis, providing traders with insights into price movements and market trends. The "Strongest Trendline" indicator offers a powerful approach to identifying robust trendlines based on various parameters and technical analysis metrics.
When using the "Strongest Trendline" indicator, it is recommended to utilize a  logarithmic scale . This scale accurately represents percentage changes in price, allowing for a more comprehensive visualization of trends. Logarithmic scales highlight the proportional relationship between prices, ensuring that both large and small price movements are given due consideration.
One of the notable advantages of logarithmic scales is their ability to balance price movements on a chart. This prevents larger price changes from dominating the visual representation, providing a more balanced perspective on the overall trend. Logarithmic scales are particularly useful when analyzing assets with significant price fluctuations.
In some cases, traders may need to scroll back on the chart to view the trendlines generated by the "Strongest Trendline" indicator. By scrolling back, traders ensure they have a sufficient historical context to accurately assess the strength and reliability of the trendline. This comprehensive analysis allows for the identification of trendline patterns and correlations between historical price movements and current market conditions.
The "Strongest Trendline" indicator calculates trendlines based on historical data, requiring an adequate number of data points to identify the strongest trend. By scrolling back and considering historical patterns, traders can make more informed trading decisions and identify potential entry or exit points.
When using the "Strongest Trendline" indicator, a higher Pearson's R value signifies a stronger trendline.  The closer the Pearson's R value is to 1, the more reliable and robust the trendline is considered to be. 
In conclusion, the "Strongest Trendline" indicator offers traders a robust method for identifying trendlines with significant predictive power. By utilizing a logarithmic scale and considering historical data, traders can unleash the full potential of this indicator and gain valuable insights into price trends. Trendlines, when used in conjunction with other technical analysis tools, can help traders make more informed decisions in the dynamic world of financial markets.
hayatguzel trendycurveENG
If we are wondering how the trendlines drawn on the hayatguzel indicator look like on the graph, we should use this indicator. Trendlines that are linear in Hg (hayatguzel) are actually curved in the graph.
"hayatguzel curve" indicator has capable of plotting horizontal levels but not trendlines in hg indicator. But "hayatguzel trendycurve" indicator has capable of plotting (on the chart) trendlines in hg.
First of all, we start by determining the coordinates from the trendlines drawn in hg. The coordinate of trendline beginings is x1,y1. In the continuation of the trendline, the coordinate of the second point taken from anywhere on the trendline is defined as x2,y2. In order to find the x1 and x2 values, the gray bar index chart must be open. After reading the values, the bar index chart can be turned off in the settings. The x coordinates of the trendlines will be the values in this gray bar index graph. You can read these coordinates from the gray numbers in the hg-trendycurve setting at the top left of the graph. The y values are the y axis values in the hg indicator.
It should be noted that the ema value in the hayatguzel trendycurve indicator must be the same as the ema value in the hg indicator.
Hayatguzel trendycurve indicator is not an indicator that can be used on its own, it should be used together with hayatguzel indicator.
TR
Hayatguzel indikatöründe çizilen trendline'ların grafik üzerine nasıl göründüğünü merak ediyorsak bu indikatörü kullanmalıyız. Hg'de doğrusal olan trendline'lar doğal olarak grafikte eğriseller.
Hayatguzel curve indikatöründe hg'deki sadece yatay seviyeler grafiğe dökülürken bu hayatguzel trendycurve indikatörü ile hg'deki trendline'lar da grafiğe dökülebiliyor.
Öncelikle hg'de çizilen trendline'lardan koordinatları belirlemek ile işe başlıyoruz. Trendline'ların başladığı yerin koordinatı x1,y1'dir. Trendline'ın devamında trendline üzerinde herhangi bir yerden alınan ikinci noktanın koordinatı da x2,y2 olarak tanımlandı. x1 ve x2 değerlerini bulabilmek için gri bar index grafiğinin açık olması gerekmektedir. Değerleri okuduktan sonra bar index grafiği ayarlardan kapatılabilir. Trendline'ların x koordinatları bu gri renkli bar index grafiğindeki değerler olacaktır. Bu koordinatları grafikte sol üstte bulunan hg-trendycurve ayalarındaki gri sayılardan okuyabilirsiniz. y değerleri ise hg indikatöründeki y ekseni değerleridir.
Unutulmamalı ki hayatguzel trendycurve indikatöründeki ema değeri hg indikatöründeki ema değeri ile aynı olmalıdır.
Hayatguzel trendycurve indikatörü kendi başına kullanılabilecek bir indikatör olmayıp hayatguzel indikatörü ile beraber kullanılması gerekmektedir.
CoffeeShopCrypto Supply Demand PPO AdvancedCoffeeShopCrypto PPO Advanced is a structure-aware momentum oscillator and price-trend overlay designed to help traders interpret momentum strength, exhaustion, and continuation across evolving market conditions. It’s not a “buy/sell” signal tool — it's a momentum context tool that helps confirm trend intent.
Original Code derived from the Price Oscillator Indicators (PPO) found in the TradingView Technical Indicators categories. You can view the info and calculation for the original PPO here
www.tradingview.com
Much like the MACD, the PPO uses a couple lagging indicators to present Momentum as a percentage. But it lacks context to market structure.
 What It’s Based On 
This tool is based on a dual-moving-average PPO oscillator structure (Percentage Price Oscillator) enhanced by:
 
 Oscillator pivot structure: detection of Lower Highs (LH) and Higher Lows (HL) inside the oscillator.
 Detection of Supply and Demand Trends via Market Absorption
 Ability to transfer its average plots to price action
 Detection of Trend Exhaustion
 Real-time price-based exhaustion levels: projecting potential future supply and demand using trendlines from weakening momentum.
 Integrated fast and slow Moving Averages on price using the same inputs as the oscillator, to visualize alignment between short- and long-term trends.
 
These elements combine momentum context with price action in a visual, intuitive system.
How It Works
1. Oscillator Structure
LHs (above zero): momentum weakening in uptrends.
HLs (below zero): momentum strengthening in downtrends.
Only valid pivots are shown (e.g., an LH must be preceded by a valid LL).
2. Exhaustion Levels
Green demand lines: price is making new lows, but oscillator prints HL → potential exhaustion.
Red supply lines: price is making new highs, but oscillator prints LH → potential exhaustion.
These lines are future-facing, projecting likely reaction zones based on momentum weakening.
3. Moving Averages on Price
Two MAs are drawn on the price chart:
Fast MA (same length as PPO short input)
Slow MA (same length as PPO long input)
These are not signal lines — they're visual guides for trend alignment.
MA crossover = PO crosses zero. This indicates short- and long-term momentum are syncing — a powerful signal of trend conviction.
When price is above both MAs, and the PO is rising above zero, bullish momentum is dominant.
 When price is below both MAs, and the PO is falling below zero, bearish momentum dominates.
How Traders Can Use It
✅ Spot Trend Initiation
Wait for clear trend confirmation in price.
Use PPO Momentum+ to confirm momentum structure is aligned (e.g., HH/HL in oscillator + price above both MAs).
🔁 Track Continuations
In uptrends, look for oscillator HH and HL sequences with price holding above both MAs.
In downtrends, seek LL and LH sequences with price below both MAs.
⚠️ Watch for Exhaustion
Price breaking below red (supply) lines after oscillator LH = bearish exhaustion signal.
Price breaking above green (demand) lines after oscillator HL = bullish exhaustion signal.
These levels act like pre-mapped S/R zones, showing where momentum previously failed and price may react.
Why This Is Different
Momentum tools often lag or mislead when used blindly. This tool visualizes structural failure in momentum and maps potential outcomes. The integration of oscillator and price-based tools ensures traders are always reading context, not just raw signals.
  
 Demand Trendlines 
Demand trendlines show us Wykoff's law of "Absorbed Supply Reversal" In real time.
When aggressive selling pressure is persistently absorbed by passive buying interest without significant downward price continuation, and supply becomes exhausted, the market structure shifts as demand regains control—resulting in a directional reversal to the upside.
This commonly happens in a 3 phase interaction of price.
1. Selling pressure is absorbed quickly by buyers.
This PPO tool will calculate the trend of this absorption process
2. After there is a notable Bearish Exhaustion of price action, the PPO tool will draw a trendline of this absorption showing us the potential future prices where aggressive buyers will want to step in at lower prices.
3. After higher lows are defined in the oscillator, you'll see prices react in a strong bullish pattern at this trendline where aggressive buyers stepped in to reverse price action to the upside.
  
 Supply Trendlines 
Supply  trendlines show us Wykoff's law of "Absorbed Demand Reversal" In real time.
When aggressive buying pressure is persistently absorbed by passive selling interest without significant downward price continuation, and demand becomes exhausted, the market structure shifts as supply regains control—resulting in a directional reversal to the downside.
This commonly happens in a 3 phase interaction of price.
1. Buying pressure is absorbed quickly by sellers.
This PPO tool will calculate the trend of this absorption process.
2. After there is a notable Bullish Exhaustion of price action, the PPO tool will draw a trendline of this absorption showing us the potential future prices where aggressive sellers will want to step in at higher prices.
3. After lower highs are defined in the oscillator, you'll see prices react in a strong bearish pattern at this trendline where aggressive sellers stepped in to reverse price action to the downside.
  
 Lower High and Higher Low Signals 
When the oscillator signals Lower Highs or High Lows its only noting that momentum in that trend direction is slowing. THis indicates a coming pause in the market and the  proceeding longs of an uptrend or shorts of a downtrend should be taken with caution.
 **These LH and HL markers are not reading as divergences in price vs momentum.**
They are simply registering against the highs and lows of itself.. 
  
 Moving Averages on Price Action 
The Oscillator will cross over its ZERO level the same time your Short and Long MAs cross each other. This will indicate that the short term average trend is moving ahead of the long term.
Crossovers are not an entry signal. It's a method in determining you current timeframe trend strength. Always observe price action as it passes through each of your moving averages and compare it to the positioning and direction of the oscillator.
If price dips in between the moving averages while the oscillator still shows a strong trend strength, you can wait for price to move ahead of your fast moving average.
  
 Bar Colors and Signal Line for Trend Strength 
 Good Bullish Trend = Oscillator above zero + Signal rising below Oscillator
Weak Bullish Trend = Oscillator above zero + Signal above Oscillator
Good Bearish Trend = Oscillator below zero + Signal falling above Oscillator
Weak Bearish Trend = Oscillator below zero + Signal below Oscillator 
 Bar Colors 
Bars are colored to match Oscillator Momentum Strength. Colors are set by user.
 Why alter the known PPO (Percentage Price Oscillator) in this manner? 
The PPO tool is great for measuring the strength as percentage of price action over and average amount of candles however, with these changes,
you know have the ability to correlate:
Wycoff theory of supply and demand,
Measure the depth of reversals and pullback by price positioning against moving averages,
Project potential reversal and exhaustion pricing,
Visibly note the structure of momentum much like you would note market structure,
Its not enough to know there is momentum. Its better to know
A) Is it enough
B) Is there something in the way which will cause price to push back
C) Does this momentum correlate to the prevailing trend
TrendLine ChannelsAbstract
This script provides a set of Trendline Channels which can be tighter than Donchian Channels.
This script computes the most suitable active upper and lower trendlines and updates them as soon as possible.
We can use it for breakout signals earlier than Donchian Channels.
Introduction
Channels are tools which can mark area of values of ranging markets.
Once the price leaves the original region, range traders may start admitting they are wrong and trigger trend.
Donchian Channels (misheard as Dungeon Channels) use the highest and the lowest price to define area of values.
When the price breakouts, it just like it got released from a dungeon.
However, waiting for the price making even higher or lower may be too late and risk reward ratio may be lower.
Trendlines can make the channels tighter and we can find earlier breakout signals.
Computing Trendline Channels
(1) Find the most active trendlines
In this script, a valid trendline connects two high values or two low values.
A high value means the highest value in a trading day.
A low value means the lowest value in a trading day.
In this script, every trendline does not crossover any bar but can exactly touch them.
The most flat trendline is taken. (one for upper and one for lower)
(2) Continue to use or Change a trendline
If there is a tighter trendline available, this script changes to use it.
If the previous active trendline is broken, this script re-computes the trendline available.
When this case happens, this script display with an another color.
Otherwise, this script continues using the previous trendline.
(3) Middle line
The middle line indicates the middle value between the upper and the lower.
Parameters
Length : how many days are used for computation. The default value is 16 just because 16=4*4, using binary characteristic.
x_go_on : If the previous trendline is not breakout and there are no tighter trendlines available, we continue use it.
Color Options
(1) Upper trendline (no update or tighter)
(2) Upper trendline (changed due to breakout)
(3) Middle line
(4) Lower trendline (no update or tighter)
(5) Lower trendline (changed due to breakout)
Conclusion
Trendline Channels can be tighter than Donchian Channels and evaluate earlier breakout signals.
Comparing to known auto trendline scripts, Trendline Channels is continuous.
Once a trendline is broken, Trendline Channels can instantly point out the next available one.
If you think the price movement is boring or you cannot have good risk reward ratio, you can go to an another timeframe.
Reference
How to trade with Donchian Channels
How to trade with Trendlines
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.
cphelperLibrary   "cphelper" 
ACPU helper library - for private use. Not so meaningful for others.
 calculate_rr(targetArray, rrArray, breakevenOnTarget1) 
  calculates risk reward for given targets
  Parameters:
     targetArray (float ) : array of targets
     rrArray (float ) : array of risk reward
     breakevenOnTarget1 (simple bool) : option to breakeven
  Returns: array rrArray
 trendPairs(l1StartX, l1StartY, l1EndX, l1EndY, l2StartX, l2StartY, l2EndX, l2EndY, zgColor) 
  creates trendline pairs
  Parameters:
     l1StartX (int) : startX of first line
     l1StartY (float) : startY of first line
     l1EndX (int) : endX of first line
     l1EndY (float) : endY of first line
     l2StartX (int) : startX of second line
     l2StartY (float) : startY of second line
     l2EndX (int) : endX of second line
     l2EndY (float) : endY of second line
     zgColor (color) : line color
  Returns:  
 find_type(l1t, l2t, channelThreshold) 
  Finds type based on trendline pairs
  Parameters:
     l1t (line) : line1
     l2t (line) : line2
     channelThreshold (simple float) : theshold for channel identification
  Returns:   pattern type and flags
 getFlags(flags) 
  Flatten flags
  Parameters:
     flags (bool ) : array of flags
  Returns:   - flattened flags isChannel, isTriangle, isWedge, isExpanding, isContracting, isFlat, isRising, isFalling
 getType(typeNum) 
  Get type based on type number
  Parameters:
     typeNum (int) : number representing type
  Returns: String value of type
 getStatus(status, maxStatus) 
  Get status based on integer value representations
  Parameters:
     status (int) : integer representing current status
     maxStatus (int) : integer representing max status
  Returns: String status value
 calculate_simple_targets(trendLines, settingsMatrix, patternTypeMapping, patternType) 
  Calculate targets based on trend lines
  Parameters:
     trendLines (line ) : trendline pair array
     settingsMatrix (matrix) : matrix containing settings
     patternTypeMapping (string ) : array containing pattern type mapping
     patternType (int) : pattern type
  Returns:   arrays containing long and short calculated targets
 recalculate_position(patternTypeAndStatusMatrix, targetMatrix, index, pIndex, status, maxStatus, targetValue, stopValue, dir, breakevenOnTarget1) 
  Recalculate position values
  Parameters:
     patternTypeAndStatusMatrix (matrix) : matrix containing pattern type and status
     targetMatrix (matrix) : matrix containing targets
     index (int) : current index
     pIndex (int) : pattern index
     status (int) : current status
     maxStatus (int) : max status reached
     targetValue (float) : current target value
     stopValue (float) : current stop value
     dir (int) : direction
     breakevenOnTarget1 (simple bool) : flag to breakeven upon target1
  Returns:   new status and maxStatus values
 draw_targets(longTargets, shortTargets, index, labelColor, patternName, positionIndex, longMaxStatus, longStatus, shortMaxStatus, shortStatus, tempBoxes, tempLines, tempLabels) 
  Draw targets on chart
  Parameters:
     longTargets (matrix) : matrix containing long targets
     shortTargets (matrix) : matrix containing short targets
     index (int) : current index
     labelColor (color) : color of lines and labels
     patternName (string) : Pattern name
     positionIndex (int) : position on the chart
     longMaxStatus (int) : max status for long
     longStatus (int) : long status value
     shortMaxStatus (int) : max status for short
     shortStatus (int) : short status value
     tempBoxes (box ) : temporary box array
     tempLines (line ) : temporary lines array
     tempLabels (label ) : temporary labels array
  Returns: void
 populate_open_stats(patternIdArray, barMatrix, patternTypeAndStatusMatrix, patternColorArray, longTargets, shortTargets, patternRRMatrix, OpenStatPosition, lblSizeOpenTrades) 
  Populate open stats table
  Parameters:
     patternIdArray (int ) : pattern Ids
     barMatrix (matrix) : matrix containing bars
     patternTypeAndStatusMatrix (matrix) : matrix containing pattern type and status
     patternColorArray (color ) : array containing current patter colors
     longTargets (matrix) : matrix of long targets
     shortTargets (matrix) : matrix of short targets
     patternRRMatrix (matrix) : pattern risk reward matrix
     OpenStatPosition (simple string) : table position
     lblSizeOpenTrades (simple string) : text size
  Returns: void
 draw_pattern_label(trendLines, patternFlagMatrix, patternTypeAndStatusMatrix, patternColorArray, patternFlags, patternLabelArray, zgColor, patternType, drawLabel, clearOldPatterns, safeRepaint, maxPatternsReference) 
  Parameters:
     trendLines (line ) 
     patternFlagMatrix (matrix) 
     patternTypeAndStatusMatrix (matrix) 
     patternColorArray (color ) 
     patternFlags (bool ) 
     patternLabelArray (label ) 
     zgColor (color) 
     patternType (int) 
     drawLabel (simple bool) 
     clearOldPatterns (simple bool) 
     safeRepaint (simple bool) 
     maxPatternsReference (simple int) 
 populate_closed_stats(patternTypeAndStatusMatrix, bullishCounts, bearishCounts, bullishRetouchCounts, bearishRetouchCounts, bullishSizeMatrix, bearishSizeMatrix, bullishRR, bearishRR, ClosedStatsPosition, lblSizeClosedTrades, showSelectivePatternStats, showPatternStats, showStatsInPercentage) 
  Parameters:
     patternTypeAndStatusMatrix (matrix) 
     bullishCounts (matrix) 
     bearishCounts (matrix) 
     bullishRetouchCounts (matrix) 
     bearishRetouchCounts (matrix) 
     bullishSizeMatrix (matrix) 
     bearishSizeMatrix (matrix) 
     bullishRR (matrix) 
     bearishRR (matrix) 
     ClosedStatsPosition (simple string) 
     lblSizeClosedTrades (simple string) 
     showSelectivePatternStats (simple bool) 
     showPatternStats (simple bool) 
     showStatsInPercentage (simple bool)
Descending Broadening Patterns [theEccentricTrader]█   OVERVIEW 
This indicator automatically draws descending broadening patterns and price projections derived from the ranges that constitute the patterns. 
█   CONCEPTS 
 Green and Red Candles 
• A green candle is one that closes with a close price equal to or above the price it opened.
• A red candle is one that closes with a close price that is lower than the price it opened.
 Swing Highs and Swing Lows 
• A swing high is a green candle or series of consecutive green candles followed by a single red candle to complete the swing and form the peak.
• A swing low is a red candle or series of consecutive red candles followed by a single green candle to complete the swing and form the trough.
 Peak and Trough Prices (Basic) 
• The peak price of a complete swing high is the high price of either the red candle that completes the swing high or the high price of the preceding green candle, depending on which is higher.
• The trough price of a complete swing low is the low price of either the green candle that completes the swing low or the low price of the preceding red candle, depending on which is lower.
 Historic Peaks and Troughs 
The current, or most recent, peak and trough occurrences are referred to as occurrence zero. Previous peak and trough occurrences are referred to as historic and ordered numerically from right to left, with the most recent historic peak and trough occurrences being occurrence one. 
 Upper Trends 
• A return line uptrend is formed when the current peak price is higher than the preceding peak price.
• A downtrend is formed when the current peak price is lower than the preceding peak price.
• A double-top is formed when the current peak price is equal to the preceding peak price.
 Lower Trends 
• An uptrend is formed when the current trough price is higher than the preceding trough price.
• A return line downtrend is formed when the current trough price is lower than the preceding trough price.
• A double-bottom is formed when the current trough price is equal to the preceding trough price. 
 Double Trends 
• A double uptrend is formed when the current trough price is higher than the preceding trough price and the current peak price is higher than the preceding peak price.
• A double downtrend is formed when the current peak price is lower than the preceding peak price and the current trough price is lower than the preceding trough price. 
 Range 
The range is simply the difference between the current peak and current trough prices, generally expressed in terms of points or pips. 
 Support and Resistance 
• Support refers to a price level where the demand for an asset is strong enough to prevent the price from falling further.
• Resistance refers to a price level where the supply of an asset is strong enough to prevent the price from rising further.
Support and resistance levels are important because they can help traders identify where the price of an asset might pause or reverse its direction, offering potential entry and exit points. For example, a trader might look to buy an asset when it approaches a support level , with the expectation that the price will bounce back up. Alternatively, a trader might look to sell an asset when it approaches a resistance level , with the expectation that the price will drop back down.
It's important to note that support and resistance levels are not always relevant, and the price of an asset can also break through these levels and continue moving in the same direction. 
 Breakouts and Breakdowns 
• A breakout occurs when the price of an asset breaks above a resistance level.
• A breakdown occurs when the price of an asset breaks below a support level.
• A confirmed breakout occurs when the price of an asset breaks and closes above a resistance level.
• A confirmed breakdown occurs when the price of an asset breaks and closes below a support level.
It's important to note that breakouts and breakdowns of resistance and support levels are not always relevant, and the price of an asset can also reverse once it has broken through a level to carry on in the opposite direction. 
 Trendlines 
Trendlines are straight lines that are drawn between two or more points on a price chart. These lines are used as dynamic support and resistance levels for making strategic decisions and predictions about future price movements. For example traders will look for price movements along, and reactions to, trendlines in the form of rejections or breakouts/downs. 
 Descending Broadening Patterns 
Descending broadening patterns are generally characterised by descending diverging trendlines drawn from four points that form a broadening shape, or megaphone. Traders typically look for breakouts or breakdowns of descending broadening patterns to identify potential trading opportunities, with targets and stop losses set as multiples of the pattern's range. 
█   FEATURES 
 Inputs 
• Show Historic
• Show Projections
• Pattern Color
• Extend Current Pattern Lines
• Extend Current Projection Lines
█   LIMITATIONS 
All green and red candle calculations are based on differences between open and close prices, as such I have made no attempt to account for green candles that gap lower and close below the close price of the preceding candle, or red candles that gap higher and close above the close price of the preceding candle. This may cause some unexpected behaviour on some markets and timeframes. I can only recommend using 24-hour markets, if and where possible, as there are far fewer gaps and, generally, more data to work with. 
Descending Wedge Patterns [theEccentricTrader]█   OVERVIEW 
This indicator automatically draws descending wedge patterns and price projections derived from the ranges that constitute the patterns. 
█   CONCEPTS 
 Green and Red Candles 
• A green candle is one that closes with a close price equal to or above the price it opened.
• A red candle is one that closes with a close price that is lower than the price it opened.
 Swing Highs and Swing Lows 
• A swing high is a green candle or series of consecutive green candles followed by a single red candle to complete the swing and form the peak.
• A swing low is a red candle or series of consecutive red candles followed by a single green candle to complete the swing and form the trough.
 Peak and Trough Prices (Basic) 
• The peak price of a complete swing high is the high price of either the red candle that completes the swing high or the high price of the preceding green candle, depending on which is higher.
• The trough price of a complete swing low is the low price of either the green candle that completes the swing low or the low price of the preceding red candle, depending on which is lower.
 Historic Peaks and Troughs 
The current, or most recent, peak and trough occurrences are referred to as occurrence zero. Previous peak and trough occurrences are referred to as historic and ordered numerically from right to left, with the most recent historic peak and trough occurrences being occurrence one. 
 Upper Trends 
• A return line uptrend is formed when the current peak price is higher than the preceding peak price.
• A downtrend is formed when the current peak price is lower than the preceding peak price.
• A double-top is formed when the current peak price is equal to the preceding peak price.
 Lower Trends 
• An uptrend is formed when the current trough price is higher than the preceding trough price.
• A return line downtrend is formed when the current trough price is lower than the preceding trough price.
• A double-bottom is formed when the current trough price is equal to the preceding trough price. 
 Double Trends 
• A double uptrend is formed when the current trough price is higher than the preceding trough price and the current peak price is higher than the preceding peak price.
• A double downtrend is formed when the current peak price is lower than the preceding peak price and the current trough price is lower than the preceding trough price. 
 Range 
The range is simply the difference between the current peak and current trough prices, generally expressed in terms of points or pips. 
 Support and Resistance 
• Support refers to a price level where the demand for an asset is strong enough to prevent the price from falling further.
• Resistance refers to a price level where the supply of an asset is strong enough to prevent the price from rising further.
Support and resistance levels are important because they can help traders identify where the price of an asset might pause or reverse its direction, offering potential entry and exit points. For example, a trader might look to buy an asset when it approaches a support level , with the expectation that the price will bounce back up. Alternatively, a trader might look to sell an asset when it approaches a resistance level , with the expectation that the price will drop back down.
It's important to note that support and resistance levels are not always relevant, and the price of an asset can also break through these levels and continue moving in the same direction. 
 Breakouts and Breakdowns 
• A breakout occurs when the price of an asset breaks above a resistance level.
• A breakdown occurs when the price of an asset breaks below a support level.
• A confirmed breakout occurs when the price of an asset breaks and closes above a resistance level.
• A confirmed breakdown occurs when the price of an asset breaks and closes below a support level.
It's important to note that breakouts and breakdowns of resistance and support levels are not always relevant, and the price of an asset can also reverse once it has broken through a level to carry on in the opposite direction. 
 Trendlines 
Trendlines are straight lines that are drawn between two or more points on a price chart. These lines are used as dynamic support and resistance levels for making strategic decisions and predictions about future price movements. For example traders will look for price movements along, and reactions to, trendlines in the form of rejections or breakouts/downs. 
 Descending Wedge Patterns 
Descending wedge patterns are generally characterised by descending converging trendlines drawn from four points that form a triangle, or wedge shape. Traders typically look for breakouts or breakdowns of descending wedge patterns to identify potential trading opportunities, with targets and stop losses set as multiples of the pattern's range. 
█   FEATURES 
 Inputs 
• Show Historic
• Show Projections
• Pattern Color
• Extend Current Pattern Lines
• Extend Current Projection Lines
█   LIMITATIONS 
All green and red candle calculations are based on differences between open and close prices, as such I have made no attempt to account for green candles that gap lower and close below the close price of the preceding candle, or red candles that gap higher and close above the close price of the preceding candle. This may cause some unexpected behaviour on some markets and timeframes. I can only recommend using 24-hour markets, if and where possible, as there are far fewer gaps and, generally, more data to work with. 
Ascending Broadening Patterns [theEccentricTrader]█   OVERVIEW 
This indicator automatically draws ascending broadening patterns and price projections derived from the ranges that constitute the patterns. 
█   CONCEPTS 
 Green and Red Candles 
• A green candle is one that closes with a close price equal to or above the price it opened.
• A red candle is one that closes with a close price that is lower than the price it opened.
 Swing Highs and Swing Lows 
• A swing high is a green candle or series of consecutive green candles followed by a single red candle to complete the swing and form the peak.
• A swing low is a red candle or series of consecutive red candles followed by a single green candle to complete the swing and form the trough.
 Peak and Trough Prices (Basic) 
• The peak price of a complete swing high is the high price of either the red candle that completes the swing high or the high price of the preceding green candle, depending on which is higher.
• The trough price of a complete swing low is the low price of either the green candle that completes the swing low or the low price of the preceding red candle, depending on which is lower.
 Historic Peaks and Troughs 
The current, or most recent, peak and trough occurrences are referred to as occurrence zero. Previous peak and trough occurrences are referred to as historic and ordered numerically from right to left, with the most recent historic peak and trough occurrences being occurrence one. 
 Upper Trends 
• A return line uptrend is formed when the current peak price is higher than the preceding peak price.
• A downtrend is formed when the current peak price is lower than the preceding peak price.
• A double-top is formed when the current peak price is equal to the preceding peak price.
 Lower Trends 
• An uptrend is formed when the current trough price is higher than the preceding trough price.
• A return line downtrend is formed when the current trough price is lower than the preceding trough price.
• A double-bottom is formed when the current trough price is equal to the preceding trough price. 
 Double Trends 
• A double uptrend is formed when the current trough price is higher than the preceding trough price and the current peak price is higher than the preceding peak price.
• A double downtrend is formed when the current peak price is lower than the preceding peak price and the current trough price is lower than the preceding trough price. 
 Range 
The range is simply the difference between the current peak and current trough prices, generally expressed in terms of points or pips. 
 Support and Resistance 
• Support refers to a price level where the demand for an asset is strong enough to prevent the price from falling further.
• Resistance refers to a price level where the supply of an asset is strong enough to prevent the price from rising further.
Support and resistance levels are important because they can help traders identify where the price of an asset might pause or reverse its direction, offering potential entry and exit points. For example, a trader might look to buy an asset when it approaches a support level , with the expectation that the price will bounce back up. Alternatively, a trader might look to sell an asset when it approaches a resistance level , with the expectation that the price will drop back down.
It's important to note that support and resistance levels are not always relevant, and the price of an asset can also break through these levels and continue moving in the same direction. 
 Breakouts and Breakdowns 
• A breakout occurs when the price of an asset breaks above a resistance level.
• A breakdown occurs when the price of an asset breaks below a support level.
• A confirmed breakout occurs when the price of an asset breaks and closes above a resistance level.
• A confirmed breakdown occurs when the price of an asset breaks and closes below a support level.
It's important to note that breakouts and breakdowns of resistance and support levels are not always relevant, and the price of an asset can also reverse once it has broken through a level to carry on in the opposite direction. 
 Trendlines 
Trendlines are straight lines that are drawn between two or more points on a price chart. These lines are used as dynamic support and resistance levels for making strategic decisions and predictions about future price movements. For example traders will look for price movements along, and reactions to, trendlines in the form of rejections or breakouts/downs. 
 Ascending Broadening Patterns 
Ascending broadening patterns are generally characterised by ascending diverging trendlines drawn from four points that form a broadening shape, or megaphone. Traders typically look for breakouts or breakdowns of ascending broadening patterns to identify potential trading opportunities, with targets and stop losses set as multiples of the pattern's range. 
█   FEATURES 
 Inputs 
• Show Historic
• Show Projections
• Pattern Color
• Extend Current Pattern Lines
• Extend Current Projection Lines
█   LIMITATIONS 
All green and red candle calculations are based on differences between open and close prices, as such I have made no attempt to account for green candles that gap lower and close below the close price of the preceding candle, or red candles that gap higher and close above the close price of the preceding candle. This may cause some unexpected behaviour on some markets and timeframes. I can only recommend using 24-hour markets, if and where possible, as there are far fewer gaps and, generally, more data to work with. 
Ascending Wedge Patterns [theEccentricTrader]█   OVERVIEW 
This indicator automatically draws ascending wedge patterns and price projections derived from the ranges that constitute the patterns. 
█   CONCEPTS 
 Green and Red Candles 
• A green candle is one that closes with a close price equal to or above the price it opened.
• A red candle is one that closes with a close price that is lower than the price it opened.
 Swing Highs and Swing Lows 
• A swing high is a green candle or series of consecutive green candles followed by a single red candle to complete the swing and form the peak.
• A swing low is a red candle or series of consecutive red candles followed by a single green candle to complete the swing and form the trough.
 Peak and Trough Prices (Basic) 
• The peak price of a complete swing high is the high price of either the red candle that completes the swing high or the high price of the preceding green candle, depending on which is higher.
• The trough price of a complete swing low is the low price of either the green candle that completes the swing low or the low price of the preceding red candle, depending on which is lower.
 Historic Peaks and Troughs 
The current, or most recent, peak and trough occurrences are referred to as occurrence zero. Previous peak and trough occurrences are referred to as historic and ordered numerically from right to left, with the most recent historic peak and trough occurrences being occurrence one. 
 Upper Trends 
• A return line uptrend is formed when the current peak price is higher than the preceding peak price.
• A downtrend is formed when the current peak price is lower than the preceding peak price.
• A double-top is formed when the current peak price is equal to the preceding peak price.
 Lower Trends 
• An uptrend is formed when the current trough price is higher than the preceding trough price.
• A return line downtrend is formed when the current trough price is lower than the preceding trough price.
• A double-bottom is formed when the current trough price is equal to the preceding trough price. 
 Double Trends 
• A double uptrend is formed when the current trough price is higher than the preceding trough price and the current peak price is higher than the preceding peak price.
• A double downtrend is formed when the current peak price is lower than the preceding peak price and the current trough price is lower than the preceding trough price. 
 Range 
The range is simply the difference between the current peak and current trough prices, generally expressed in terms of points or pips. 
 Support and Resistance 
• Support refers to a price level where the demand for an asset is strong enough to prevent the price from falling further.
• Resistance refers to a price level where the supply of an asset is strong enough to prevent the price from rising further.
Support and resistance levels are important because they can help traders identify where the price of an asset might pause or reverse its direction, offering potential entry and exit points. For example, a trader might look to buy an asset when it approaches a support level , with the expectation that the price will bounce back up. Alternatively, a trader might look to sell an asset when it approaches a resistance level , with the expectation that the price will drop back down.
It's important to note that support and resistance levels are not always relevant, and the price of an asset can also break through these levels and continue moving in the same direction. 
 Breakouts and Breakdowns 
• A breakout occurs when the price of an asset breaks above a resistance level.
• A breakdown occurs when the price of an asset breaks below a support level.
• A confirmed breakout occurs when the price of an asset breaks and closes above a resistance level.
• A confirmed breakdown occurs when the price of an asset breaks and closes below a support level.
It's important to note that breakouts and breakdowns of resistance and support levels are not always relevant, and the price of an asset can also reverse once it has broken through a level to carry on in the opposite direction. 
 Trendlines 
Trendlines are straight lines that are drawn between two or more points on a price chart. These lines are used as dynamic support and resistance levels for making strategic decisions and predictions about future price movements. For example traders will look for price movements along, and reactions to, trendlines in the form of rejections or breakouts/downs. 
 Ascending Wedge Patterns 
Ascending wedge patterns are generally characterised by ascending converging trendlines drawn from four points that form a triangle, or wedge shape. Traders typically look for breakouts or breakdowns of ascending wedge patterns to identify potential trading opportunities, with targets and stop losses set as multiples of the pattern's range. 
█   FEATURES 
 Inputs 
• Show Historic
• Show Projections
• Pattern Color
• Extend Current Pattern Lines
• Extend Current Projection Lines
█   LIMITATIONS 
All green and red candle calculations are based on differences between open and close prices, as such I have made no attempt to account for green candles that gap lower and close below the close price of the preceding candle, or red candles that gap higher and close above the close price of the preceding candle. This may cause some unexpected behaviour on some markets and timeframes. I can only recommend using 24-hour markets, if and where possible, as there are far fewer gaps and, generally, more data to work with. 
Broadening Patterns [theEccentricTrader]█   OVERVIEW 
This indicator automatically draws broadening patterns and price projections derived from the ranges that constitute the patterns. 
█   CONCEPTS 
 Green and Red Candles 
• A green candle is one that closes with a close price equal to or above the price it opened.
• A red candle is one that closes with a close price that is lower than the price it opened.
 Swing Highs and Swing Lows 
• A swing high is a green candle or series of consecutive green candles followed by a single red candle to complete the swing and form the peak.
• A swing low is a red candle or series of consecutive red candles followed by a single green candle to complete the swing and form the trough.
 Peak and Trough Prices (Basic) 
• The peak price of a complete swing high is the high price of either the red candle that completes the swing high or the high price of the preceding green candle, depending on which is higher.
• The trough price of a complete swing low is the low price of either the green candle that completes the swing low or the low price of the preceding red candle, depending on which is lower.
 Historic Peaks and Troughs 
The current, or most recent, peak and trough occurrences are referred to as occurrence zero. Previous peak and trough occurrences are referred to as historic and ordered numerically from right to left, with the most recent historic peak and trough occurrences being occurrence one. 
 Upper Trends 
• A return line uptrend is formed when the current peak price is higher than the preceding peak price.
• A downtrend is formed when the current peak price is lower than the preceding peak price.
• A double-top is formed when the current peak price is equal to the preceding peak price.
 Lower Trends 
• An uptrend is formed when the current trough price is higher than the preceding trough price.
• A return line downtrend is formed when the current trough price is lower than the preceding trough price.
• A double-bottom is formed when the current trough price is equal to the preceding trough price. 
 Range 
The range is simply the difference between the current peak and current trough prices, generally expressed in terms of points or pips. 
 Support and Resistance 
• Support refers to a price level where the demand for an asset is strong enough to prevent the price from falling further.
• Resistance refers to a price level where the supply of an asset is strong enough to prevent the price from rising further.
Support and resistance levels are important because they can help traders identify where the price of an asset might pause or reverse its direction, offering potential entry and exit points. For example, a trader might look to buy an asset when it approaches a support level , with the expectation that the price will bounce back up. Alternatively, a trader might look to sell an asset when it approaches a resistance level , with the expectation that the price will drop back down.
It's important to note that support and resistance levels are not always relevant, and the price of an asset can also break through these levels and continue moving in the same direction. 
 Breakouts and Breakdowns 
• A breakout occurs when the price of an asset breaks above a resistance level.
• A breakdown occurs when the price of an asset breaks below a support level.
• A confirmed breakout occurs when the price of an asset breaks and closes above a resistance level.
• A confirmed breakdown occurs when the price of an asset breaks and closes below a support level.
It's important to note that breakouts and breakdowns of resistance and support levels are not always relevant, and the price of an asset can also reverse once it has broken through a level to carry on in the opposite direction. 
 Trendlines 
Trendlines are straight lines that are drawn between two or more points on a price chart. These lines are used as dynamic support and resistance levels for making strategic decisions and predictions about future price movements. For example traders will look for price movements along, and reactions to, trendlines in the form of rejections or breakouts/downs. 
 Broadening Patterns 
Broadening patterns are generally characterised by diverging trendlines drawn from four points that form a broadening shape, or megaphone. Traders typically look for breakouts or breakdowns of broadening patterns to identify potential trading opportunities, with targets and stop losses set as multiples of the pattern's range. 
█   FEATURES 
 Inputs 
• Show Historic
• Show Projections
• Pattern Color
• Extend Current Pattern Lines
• Extend Current Projection Lines
█   LIMITATIONS 
All green and red candle calculations are based on differences between open and close prices, as such I have made no attempt to account for green candles that gap lower and close below the close price of the preceding candle, or red candles that gap higher and close above the close price of the preceding candle. This may cause some unexpected behaviour on some markets and timeframes. I can only recommend using 24-hour markets, if and where possible, as there are far fewer gaps and, generally, more data to work with. 
Another New Adaptive Moving Average [CC]The New Adaptive Moving Average was created by Scott Cong (Stocks and Commodities Mar 2023) and this is a companion indicator to my previous script   . This indicator still works off of the same concept as before with effort vs results but this indicator takes a slightly different approach and instead defines results as the absolute difference between the closing price and a closing price x bars ago. As you can see in my chart example, this indicator works great to stay with the current trend and provides either a stop loss or take profit target depending on which direction you are going in. As always, I use darker colors to show stronger signals and lighter colors to show normal signals. Buy when the line turns green and sell when it turns red.
Let me know if there are any other indicator scripts you would like to see me publish!
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.
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.
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.
A New Adaptive Moving Average [CC]The New Adaptive Moving Average was created by Scott Cong (Stocks and Commodities Mar 2023) and his idea was to focus on the Adaptive Moving Average created by Perry Kaufman and to try to improve it by introducing a concept of effort vs results. In this case the effort would be the total range of the underlying price action since each bar is essentially a war of the bulls vs the bears. The result would be the total range of the close so we are looking for the highest close and lowest close in that same time period. This gives us an alpha that we can use to plug into the Kaufman Adaptive Moving Average algorithm which gives us a brand new indicator that can hug the price just enough to allow us to ride the stock up or down. I have color coded it to be darker colors when it is a strong signal and lighter colors when it is a normal signal. Buy when the line turns green and sell when it turns red.
Let me know if there are any other indicators you would like to see me publish!
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.






















