OPEN-SOURCE SCRIPT

Cosine Kernel Regressions [QuantraSystems]

Updated
Cosine Kernel Regressions

Introduction

The Cosine Kernel Regressions indicator (CKR) uses mathematical concepts to offer a unique approach to market analysis. This indicator employs Kernel Regressions using bespoke tunable Cosine functions in order to smoothly interpret a variety of market data, providing traders with incredibly clean insights into market trends.

The CKR is particularly useful for traders looking to understand underlying trends without the 'noise' typical in raw price movements. It can serve as a standalone trend analysis tool or be combined with other indicators for more robust trading strategies.


snapshot
Legend

Fast Trend Signal Line - This is the foreground oscillator, it is colored upon the earliest confirmation of a change in trend direction.

Slow Trend Signal Line - This oscillator is calculated in a similar manner. However, it utilizes a lower frequency within the cosine tuning function, allowing it to capture longer and broader trends in one signal. This allows for tactical trading; the user can trade smaller moves without losing sight of the broader trend.



snapshot
Case Study

In this case study, the CKR was used alongside the Triple Confirmation Kernel Regression Oscillator (KRO)

  • Initially, the KRO indicated an oversold condition, which could be interpreted as a signal to enter a long position in anticipation of a price rebound. However, the CKR’s fast trend signal line had not yet confirmed a positive trend direction - suggesting that entering a trade too early and without confirmation could be a mistake.

  • Waiting for a confirmed positive trend from the CKR proved beneficial for this trade. A few candles after the oversold signal, the CKR's fast trend signal line shifted upwards, indicating a strong upward momentum. This was the optimal entry point suggested by the CKR, occurring after the confirmation of the trend change, which significantly reduced the likelihood of entering during a false recovery or continuation of the downtrend.

  • This is one of the many uses of the CKR - by timing entries using the fast signal line, traders could avoid unnecessary losses by preventing premature entries.


Methodology

The methodology behind CKR is a multi-layered approach and utilizes many ‘base’ indicators.
  • Relative Strength Index
  • Stochastic Oscillator
  • Bollinger Band Percent
  • Chande Momentum Oscillator
  • Commodity Channel Index
  • Fisher Transform
  • Volume Zone Oscillator


The calculated output from each indicator is standardized and scaled before being averaged. This prevents any single indicator from overpowering the resulting signal.



These outputs are then fed into a customized cosine kernel regression function, which smooths the data, and combines all inputs into a single coherent output.


The tuning of the regression is adjustable, allowing users to fine-tune the sensitivity and responsiveness of the indicator to match specific trading strategies or market conditions. This robust methodology ensures that CKR provides a reliable and adaptable tool for market analysis.
Release Notes
Added combined alerts
Release Notes
Added multi-timeframe functionality.
Release Notes
Updated License.
License formatting shout out to RUBIX_BINARY
cosinewavecryptomarketkernelregressionmultiindicatoroscillaltorOscillatorsregressionsreversalshorttermtradingtrendanalyisisTrend Analysis

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


No statements or claims aim to be financial advice,
neither are any signals from us or our indicators.


Want to learn Trading, Investing or system building?
Join the Community! 👇

discord.gg/FMZDM3bZ9T
Also on:

Disclaimer