This indicator applies a k-nearest neighbours (kNN) classification algorithm using Aroon indicator lags and momentum as feature inputs to forecast market direction.
Machine Learning: kNN-based Strategy (aroon) compares current values against historical feature sets to classify bars into buy, hold, or sell signals, plotting directional markers directly on the price chart. Users can configure the kNN neighbor count, Aroon lag parameters, overbought and oversold thresholds, holding period, and optional volume or volatility signal filters. Although labeled as a strategy in its title, it functions as a study without automated order execution.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
K Value for kNN Model |2..n|
int
63
K
Short Aroon Lag |1..n|
int
5
shortlag
Long Aroon Lag |1..n|
int
10
longlag
Overbought Level |1..n|
int
90
HighLevel
Oversold Level |1..n|
int
10
LowLevel
Filter Signals by
string
Both
ftype
Holding Period |1..n|
int
1
holding_p
===Information===
bool
true
show_info
Lot Size
float
0.01
lot_size
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.
This indicator uses a Lorentzian distance k-nearest neighbors classification algorithm to predict market direction based on up to five technical features, such as RSI, WaveTrend, CCI, and ADX. It compares current feature values against historical bar patterns
An overlay indicator that applies a k-nearest-neighbors machine learning classifier using Lorentzian distance to predict price movement. It evaluates historical market features, such as RSI, WaveTrend, CCI, and ADX, to identify similar price-time patterns and
The Machine Learning Momentum Index uses a k-Nearest Neighbors classification algorithm to evaluate momentum and trend direction directly on the price chart. It records historical parameter pairs derived from weighted moving averages and smoothed RSI values, t
This indicator plots an oscillator in a separate pane. It builds several SuperTrend series across a user-defined factor range and step, using ATR as the band width. On each bar it measures the distance between the close and each SuperTrend output, then groups
Lorentzian Classification is a machine learning indicator that applies a k-nearest neighbors algorithm using Lorentzian distance to analyze market patterns. It processes configurable technical indicators, including RSI, WaveTrend, CCI, and ADX, as feature vect
The Adaptive RSI Moving Average (ARSIMA) is an overlay indicator that dynamically adjusts its smoothing factor based on the Relative Strength Index (RSI). When the RSI moves toward extreme overbought or oversold conditions, the smoothing factor increases to ma