alexgrover

Robust Weighting Oscillator

alexgrover Wizard מעודכן   
Introduction

A simple oscillator using a modified lowess architecture, good in term of smoothness and reactivity.

Lowess Regression

Lowess or local regression is a non-parametric (can be used with data not fitting a normal distribution) smoothing method. This method fit a curve to the data using least squares.

In order to have a lowess regression one must use tricube kernel for the weightings w, the weightings are determined using a k-nearest-neighbor model.

lowess is then calculated like so :

Σ(wG(y-a-bx)^2)

Our indicator use G, a ,b and remove the square as well as replacing x by y

Conclusion

The oscillator is simple and nothing revolutionary but its still interesting to have new indicators.

Lowess would be a great method to be made on pinescript, i have an estimate but its not that good. Some codes use a simple line equation in order to estimate a lowess smoother, i can describe it as ax + b where a is a smooth oscillator, b some kind of filter defined by lp + bp with lp a smooth low pass filter and bp a bandpass filter, x is a variable dependent of the smoothing span.

הערות שחרור:
Added G in a separate calculation mode, thanks to @ aaahopper for pointing it out. Changed color for downside movements.

Check out the indicators we are making at luxalgo: www.tradingview.com/u/LuxAlgo/
סקריפט קוד פתוח

ברוח TradingView אמיתית, מחבר הסקריפט הזה פרסם אותו בקוד פתוח, כך שסוחרים יכולים להבין ולאמת אותו. כל הכבוד למחבר! אתה יכול להשתמש בו בחינם, אך שימוש חוזר בקוד זה בפרסום כפוף לכללי הבית. אתה יכול להכניס אותו למועדפים כדי להשתמש בו בגרף.

כתב ויתור

המידע והפרסומים אינם אמורים להיות, ואינם מהווים, עצות פיננסיות, השקעות, מסחר או סוגים אחרים של עצות או המלצות שסופקו או מאושרים על ידי TradingView. קרא עוד בתנאים וההגבלות.

רוצה להשתמש בסקריפ זה בגרף?