PROTECTED SOURCE SCRIPT

YZH super wma model

26
YZH Super WMA Model

Overview
The "YZH Super WMA Model" is a customizable technical analysis indicator built in Pine Script v5 for TradingView. It generates trading signals using three configurable moving averages (MA1, MA2, MA3) and a wick-based filter to enhance signal accuracy. The indicator is overlaid on the price chart and supports multiple MA types: SMA, EMA, WMA, HMA, RMA, and VWMA.
Features

Flexible Moving Averages:

Three MAs (MA1, MA2, MA3) with customizable types and periods.
Default settings: MA1 (50-period SMA), MA2 (200-period HMA), MA3 (100-period EMA).
Adjustable visibility, colors, and line widths.


Wick-Based Filter:

Uses a wick ratio threshold (default: 0.5) to filter signals based on candle wick size.
Enhances signal reliability by focusing on significant wick patterns.


Signal and Trend Logic:

Signal MA (default: MA1) generates entry signals; trend MA (default: MA2) filters trend direction.
Long signals: Price crosses above signal MA, closes above trend MA, with sufficient lower wick.
Short signals: Price crosses below signal MA, closes below trend MA, with sufficient upper wick.
Signals confirmed within a user-defined bar range (default: 5).


Visualization:

Long signals: Green upward triangles below bars, labeled "L".
Short signals: Red downward triangles above bars, labeled "S".
Optional setup points and information table for enhanced analysis.


Alerts:

Triggers alerts on confirmed signals with detailed messages including signal type, MA settings, and price.



Recommended Settings

SMA20-SMA200: For swing trading, capturing short-term vs. long-term trends.
SMA50-HMA200: For trend-following, balancing medium-term signals with smooth long-term trends.
WMA48-WMA200: For volatile markets, emphasizing recent price action.
WMA174-SMA200: For higher time frame (HTF) trend following, ideal for long-term analysis.

Use Cases

Trend following, reversal trading, and customizable strategies.
Suitable for various markets (stocks, forex, crypto) and timeframes.

How to Use

Add to TradingView chart.
Configure MA types, periods, and colors.
Adjust wick threshold and trigger bars.
Enable visualizations and alerts as needed.

Conclusion
The "YZH Super WMA Model" is a robust tool for traders seeking reliable, customizable signals. Backtest the recommended settings to optimize for your market and timeframe.

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.