An overlay that marks long and short signals by combining a Money Flow Index with k-means derived overbought and oversold levels, and an Andean oscillator crossing its signal line, both within a confirmation window.
1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.
Source Code
The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.
Overview
Optional trend and ATR percentage filters can block signals. For each signal it can draw ATR-based stop loss and take profit lines, with an optional trailing stop, and show a statistics table. The title points to Ethereum on a 15 minute chart. Settings cover MFI, Andean and ATR parameters.
MFI with k-means adaptive levels
Andean oscillator crossover confirmation
Trend and ATR percentage filters
ATR stop loss, take profit and trailing stop lines
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
MFI Length
int
6
mfi_len
AI Training Size
int
200
mfi_training
Andean Oscillator Length
int
20
and_len
Andean Signal Smoothing
int
7
and_sig_len
Confirmation Window
int
5
lookback
EMA Length
int
200
ema_len
Show EMA
bool
false
show_ema
Fixed Take Profit (xATR)
float
3.0
tp_mult
Initial Stop Loss (xATR)
float
1.5
sl_mult
Show SL/TP Lines
bool
true
show_sl_tp
Enable Trailing Stop
bool
true
use_trailing
Trailing Stop ATR Multiplier
float
1.5
trail_atr_mult
Show all 19 settings
Setting
Type
Default
Variable
Trend Filter
bool
true
use_trend
ATR Filter
bool
true
use_atr
ATR Period
int
14
atr_period
Min ATR %
float
0.25
atr_min
Max ATR %
float
3.0
atr_max
Show Table
bool
true
show_table
Table Position
string
Top Right
table_pos
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.
Farid Makram Custom Levels is a multi-signal indicator for TradingView that combines RSI momentum analysis with MOBO oscillator signals based on the DPO. It generates buy and sell signals when RSI crosses its moving average or when DPO crosses zero, with confi
This indicator uses a two-dimensional k-nearest-neighbours model on scaled oscillator values to classify the current bar as buy, sell, or hold from similar historical states. Users select RSI, ROC, CCI, momentum, or all of them, and set the neighbour count, fa
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
The Expectation Maximization Gaussian Mixture Regime indicator clusters market states into two to five components using an online Expectation-Maximization Gaussian Mixture Model. It processes three input features: volatility-normalized momentum, relative volat
The ANN MACD Future Forecast is an experimental indicator serving as a true deep learning sample on TradingView. It calculates Bollinger Bands and Squeeze Momentum using custom functions for SMA, EMA, standard deviation, highest and lowest values. The script p
This indicator plots an optimal RSI in a separate pane and uses a k-nearest neighbour machine learning routine to adjust lookback and RSI count. It can mark RSI crossings, draw adaptive Bollinger bands around the RSI, and show tables of current settings. Users