OPEN-SOURCE SCRIPT
Wavelet Transformation - BASIC Suite

********************************************************************************
* TECHNICAL DOCUMENTATION: ULTIMATE WAVELET SUITE
* Indicator Name: Ultimate Wavelet Suite (db4, Sym, Coif, Morlet, Mex)
* Author: wojlucz
*
* 1. PROJECT OVERVIEW
* The Ultimate Wavelet Suite is a high-fidelity Digital Signal Processing (DSP)
* tool designed to solve the "Lag vs. Noise" dilemma. By utilizing Discrete
* Wavelet Transform (DWT) principles, it filters market noise while maintaining
* a significantly lower phase shift (lag) compared to SMA or EMA.
*
* 2. MATHEMATICAL FRAMEWORK
* This suite implements a Stationary Wavelet Transform (SWT) approach using
* the "à trous" algorithm.
* - CONVOLUTION ENGINE: Filters price using specific wavelet kernels.
* - MULTI-RESOLUTION ANALYSIS (MRA): Increases filter "stride" across levels A1-A4.
* - CDV BOUNDARY METHOD: Folds weights of future coefficients back onto the current
* bar to ensure NO-REPAINTING at the live edge.
*
* 3. WAVELET FAMILIES
* - Daubechies 4 (db4): Industry standard for denoising and trend stability.
* - Symlet 4: Near-symmetric version of db4, reducing phase distortion.
* - Coiflet 1: Engineered for maximum approximation accuracy.
* - Mexican Hat: Best for detecting cycle peaks, troughs, and exhaustion.
* - Morlet: Harmonic-style wavelet, ideal for sideways/ranging markets.
*
* 4. CONFIGURATION GUIDE
* - Level A1/A2: Scalping, fast noise reduction.
* - Level A3/A4: Swing Trading, macro trend identification.
* TECHNICAL DOCUMENTATION: ULTIMATE WAVELET SUITE
* Indicator Name: Ultimate Wavelet Suite (db4, Sym, Coif, Morlet, Mex)
* Author: wojlucz
*
* 1. PROJECT OVERVIEW
* The Ultimate Wavelet Suite is a high-fidelity Digital Signal Processing (DSP)
* tool designed to solve the "Lag vs. Noise" dilemma. By utilizing Discrete
* Wavelet Transform (DWT) principles, it filters market noise while maintaining
* a significantly lower phase shift (lag) compared to SMA or EMA.
*
* 2. MATHEMATICAL FRAMEWORK
* This suite implements a Stationary Wavelet Transform (SWT) approach using
* the "à trous" algorithm.
* - CONVOLUTION ENGINE: Filters price using specific wavelet kernels.
* - MULTI-RESOLUTION ANALYSIS (MRA): Increases filter "stride" across levels A1-A4.
* - CDV BOUNDARY METHOD: Folds weights of future coefficients back onto the current
* bar to ensure NO-REPAINTING at the live edge.
*
* 3. WAVELET FAMILIES
* - Daubechies 4 (db4): Industry standard for denoising and trend stability.
* - Symlet 4: Near-symmetric version of db4, reducing phase distortion.
* - Coiflet 1: Engineered for maximum approximation accuracy.
* - Mexican Hat: Best for detecting cycle peaks, troughs, and exhaustion.
* - Morlet: Harmonic-style wavelet, ideal for sideways/ranging markets.
*
* 4. CONFIGURATION GUIDE
* - Level A1/A2: Scalping, fast noise reduction.
* - Level A3/A4: Swing Trading, macro trend identification.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.