gleefulChile7a3bb

{Gunzo} Trend Sniper (Multiple MAs with coefficient)

Updated GUNZO's Trend Sniper script by adding in different MA types to choose from. This can help reduce false signals and sharpen the trend reversal points.

Here's a summary of the key changes:

1. Multiple Moving Average Types: The original script was focused solely on the Weighted Moving Average (WMA) with a coefficient. The updated script introduces flexibility by allowing users to choose from a variety of Moving Average types, including WMA, VWMA (Volume Weighted Moving Average), EMA (Exponential Moving Average), SMA (Simple Moving Average), HullMA (Hull Moving Average), TEMA (Triple Exponential Moving Average), DEMA (Double Exponential Moving Average), T3, and RMA (Running Moving Average).

2. Coefficient Integration: In the original script, the coefficient was specifically designed for the WMA calculation. The updated script extends this concept to all the selected Moving Average types. This coefficient is applied differently depending on the type of MA, often affecting the length of the MA calculation.

3. Dynamic Length Calculation: For MAs that traditionally use an integer length (like SMA, EMA, etc.), the updated script calculates this length dynamically by multiplying the user-defined length by the coefficient and then rounding it to the nearest integer. This ensures compatibility with Pine Script's requirements for these functions.

All credits to GUNZO
original script:
Skrip sumber terbuka

Dalam semangat TradingView yang sebenar, penulis skrip ini telah menerbitkannya dengan menggunakan sumber terbuka supaya pedagang-pedagang dapat memahami dan mengesahkannya. Sorakan kepada penulis! Anda dapat menggunakannya secara percuma tetapi penggunaan semula kod ini dalam penerbitan adalah dikawalselia oleh Peraturan Dalaman. Anda boleh menyukainya untuk menggunakannya pada carta.

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.

Ingin menggunakan skrip ini pada carta?