OPEN-SOURCE SCRIPT
[Sapphire] JetStream (SWMA + Laguerre Filter)

A Dynamic Fusion of Sine Weighted Moving Average and Laguerre Filter
The [Sapphire] JetStream Indicator is a versatile tool that combines the Sine Weighted Moving Average (SWMA) and the Laguerre Filter. This can be used to dynamically visualize price movements overtime.
Core Components:
Sine Weighted Moving Average (SWMA):
Laguerre Filter:
Bar Repainting:
The [Sapphire] JetStream Indicator is a versatile tool that combines the Sine Weighted Moving Average (SWMA) and the Laguerre Filter. This can be used to dynamically visualize price movements overtime.
Core Components:
Sine Weighted Moving Average (SWMA):
- The SWMA applies sine-weighted coefficients to recent price values, producing a responsive moving average that adapts to market conditions.
- The plotted SWMA line changes its color based on directional movement:
- Cyan: Upward trend.
- Gray: Downward trend.
- The sensitivity of the SWMA is controlled via the SWMA Length input, allowing users to fine-tune its responsiveness to price changes.
Laguerre Filter:
- The Laguerre Filter uses recursive smoothing techniques to extract meaningful trends while minimizing lag.
- The filter line dynamically changes color:
- Blue: Upward momentum.
- White: Downward momentum.
- The Laguerre Alpha parameter adjusts the filter's smoothing intensity, giving users control over its reaction to price fluctuations.
Bar Repainting:
- The bar coloring feature adds another layer of visualization by dynamically altering bar colors based on the interaction between the SWMA and Laguerre Filter:
- White: Both SWMA and Laguerre Filter are trending upward.
- Teal: Both SWMA and Laguerre Filter are trending downward.
- Cyan: Divergence between the two (one trending upward, the other downward).
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.