OPEN-SOURCE SCRIPT
SHAMAZZ = Smoothed Heikin Ashi + MA + ZigZag

SHAMAZZ combines a Smoothed Heikin Ashi structure, two moving averages, and a smart ZigZag with labeled swings to help you read trend, momentum and market structure in one glance.
What it does
1. Smoothed Heikin Ashi
• Rebuilds candles using double-smoothed EMAs to filter noise
• Bull SHA candles show trend strength and clean pushes up
• Bear SHA candles highlight clean pushes down and pullbacks
2. Moving Averages
• MA 1 is the fast trend line, default 50 period
• MA 2 is the higher time frame trend line, default 200 period
• Price above both MAs and green SHA candles suggests bullish environment
• Price below both MAs and red SHA candles suggests bearish environment
3. ZigZag with labels
• Detects major and minor swing highs and lows
• Draws ZigZag lines with separate bull and bear colors
• Labels key swings as HH, HL, LH, LL so you see market structure clearly
• Label color and opacity are fully adjustable in settings
How to use it
1. Identify the main trend
• Check MA 2 slope and where SHA candles are relative to MA 1 and MA 2
• Long bias when SHA is mostly green and price holds above MA 1 and MA 2
• Short bias when SHA is mostly red and price holds below MA 1 and MA 2
2. Read structure with the ZigZag
• Uptrend pattern: HL then HH labels stepping upward
• Downtrend pattern: LH then LL labels stepping downward
• Structure shifts when the sequence breaks
Example: series of HH HL that suddenly prints a LL
3. Time entries
• In an uptrend
• Look for HL labels forming near or slightly under MA 1
• Wait for SHA candles to flip back to bullish and then look for entries in the direction of the trend
• In a downtrend
• Look for LH labels forming near or slightly above MA 1
• Wait for SHA candles to turn bearish again and then look for short setups
4. Filter chop and ranges
• When HH HL and LL LH labels mix and alternate in a tight zone, market is ranging
• You can avoid entries when SHA candles are small, mixed colors, and price is stuck around MA 1 and MA 2
5. Multi time frame use
• Set the indicator timeframe to a higher time frame to project higher time frame SHA and MAs on a lower chart
• Trade in the direction of the projected higher time frame trend and structure for cleaner setups
This indicator is designed as a trend and structure map: SHA shows the quality of the move, MAs show the larger direction, and the ZigZag labels show the story of highs and lows so you can enter with the trend and avoid random chop.
What it does
1. Smoothed Heikin Ashi
• Rebuilds candles using double-smoothed EMAs to filter noise
• Bull SHA candles show trend strength and clean pushes up
• Bear SHA candles highlight clean pushes down and pullbacks
2. Moving Averages
• MA 1 is the fast trend line, default 50 period
• MA 2 is the higher time frame trend line, default 200 period
• Price above both MAs and green SHA candles suggests bullish environment
• Price below both MAs and red SHA candles suggests bearish environment
3. ZigZag with labels
• Detects major and minor swing highs and lows
• Draws ZigZag lines with separate bull and bear colors
• Labels key swings as HH, HL, LH, LL so you see market structure clearly
• Label color and opacity are fully adjustable in settings
How to use it
1. Identify the main trend
• Check MA 2 slope and where SHA candles are relative to MA 1 and MA 2
• Long bias when SHA is mostly green and price holds above MA 1 and MA 2
• Short bias when SHA is mostly red and price holds below MA 1 and MA 2
2. Read structure with the ZigZag
• Uptrend pattern: HL then HH labels stepping upward
• Downtrend pattern: LH then LL labels stepping downward
• Structure shifts when the sequence breaks
Example: series of HH HL that suddenly prints a LL
3. Time entries
• In an uptrend
• Look for HL labels forming near or slightly under MA 1
• Wait for SHA candles to flip back to bullish and then look for entries in the direction of the trend
• In a downtrend
• Look for LH labels forming near or slightly above MA 1
• Wait for SHA candles to turn bearish again and then look for short setups
4. Filter chop and ranges
• When HH HL and LL LH labels mix and alternate in a tight zone, market is ranging
• You can avoid entries when SHA candles are small, mixed colors, and price is stuck around MA 1 and MA 2
5. Multi time frame use
• Set the indicator timeframe to a higher time frame to project higher time frame SHA and MAs on a lower chart
• Trade in the direction of the projected higher time frame trend and structure for cleaner setups
This indicator is designed as a trend and structure map: SHA shows the quality of the move, MAs show the larger direction, and the ZigZag labels show the story of highs and lows so you can enter with the trend and avoid random chop.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。