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.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.