OPEN-SOURCE SCRIPT

SHAMAZZ = Smoothed Heikin Ashi + MA + ZigZag

72
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.

Penafian

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.