Indicator · Pine Script v5 · On the chart

MC-Predict HullMA v2

by ebarkinkaras-lang

A price-chart overlay that plots a Hull moving average with a set of EMAs, SuperTrend and Bollinger Bands, and scores the market by weighting trend, momentum, volatility, volume, support and resistance, and a k-nearest-neighbours estimate.

View on GitHub

GitHub stars1on the repository
Pine versionv5runs as is
Lines of code626
Settings40inputs
LicenceNone stated
Last update5 months ago12 May 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 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

The nearest-neighbour step compares z-scored RSI, MACD and Bollinger readings with past bars and votes on direction. It adds a higher-timeframe trend and an automatic zigzag Fibonacci extension, and shows signal text in a table. Labels are in Turkish.

Details

Published by

ebarkinkaras-lang on GitHub

Type

Indicator, Pine Script v5

Draws

On the price chart

Category

AI / machine learning, Trend, Moving averages

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
HullMA Periyoduint16hull_period
EMA Hızlıint9ema_fast
EMA Ortaint21ema_mid
EMA YavaÅŸint50ema_slow
EMA Trend (Ana)int200ema_trend
SuperTrend Faktörfloat3.0st_factor
SuperTrend Periyotint10st_period
RSI Periyoduint14rsi_len
RSI Aşırı Alımint70rsi_ob
RSI Aşırı Satımint30rsi_os
MACD Hızlıint12macd_fast
MACD YavaÅŸint26macd_slow
Show all 40 settings
SettingTypeDefaultVariable
MACD Sinyalint9macd_signal
Stochastic Kint14stoch_k
Stochastic Dint3stoch_d
Stochastic Smoothint3stoch_smooth
Bollinger Periyoduint20bb_len
Bollinger Çarpanıfloat2.0bb_mult
ATR Periyoduint14atr_len
Hacim MA Periyoduint20vol_ma_len
kNN k DeÄŸeriint5knn_k
kNN Geriye Bakışint100knn_lookback
kNN Gelecek Ufkuint5knn_horizon
Üst Zaman DilimitimeframeDhtf_tf
Trend Ağırlığı (%)float25w_trend
Momentum Ağırlığı (%)float20w_momentum
Volatilite Ağırlığı (%)float15w_volatility
Hacim Ağırlığı (%)float15w_volume
Destek/Dir. Ağırlığı (%)float10w_sr
ML Ağırlığı (%)float10w_ml
MTF Ağırlığı (%)float5w_mtf
DEMA Hızlıint12dema_fast_len
DEMA YavaÅŸint26dema_slow_len
Sinyal Periyoduint9dema_sig_len
Pivot Geriye Bakışint14div_lookback
Kısa Vade Regresyonint50lr_short_len
Uzun Vade Regresyonint200lr_long_len
Tahmin Çizgileribooltrueshow_pred_lines
Güçlü Sinyal Eşiğiint50strong_thresh
Zayıf Sinyal Eşiğiint20weak_thresh
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.

Similar Pine Scripts

AI Trend Navigator

by hasnocool
106 stars

This indicator calculates a trend direction and smoothed moving average using a k-nearest neighbours (k-NN) classification algorithm directly on the main price chart. Users can select input price types, target values, neighborhood size, and smoothing periods.

Indicator v5 AI / machine learningTrend
Updated 2 years ago · GPL-3.0 GitHub repository of AI Trend Navigator

This overlay classifies the chart into bull, bear, or neutral regimes from moving-average zone position and an adaptive engine driven by the efficiency ratio and ATR entry and exit bands. A volatility percentile rank adds quiet, normal, or volatile context, pl

Indicator v6 TrendMoving averages
Updated 2 days ago · MIT GitHub repository of Regime Detector (MA Zones Overlay) [WavesUnchained]
9 stars

Volume SuperTrend AI (Expo) combines SuperTrend trend filtering with a k-nearest neighbors machine learning classification algorithm. It computes a SuperTrend using customizable moving average types, including simple, exponential, weighted, smoothed, or volume

Indicator v5 TrendAI / machine learning
Updated 3 years ago · None stated GitHub repository of Volume SuperTrend AI (Expo)
948 stars

The Adaptive Laguerre Filter calculates a smoothed, dynamically adjusted trendline plotted directly on the main price chart. It dynamically adjusts its damping factor (alpha) based on recent price range variations and median percentile calculations over a spec

Indicator v4 TrendMoving averages
Updated 11 days ago · GPL-3.0 GitHub repository of Adaptive Laguerre Filter
330 stars

This script plots three moving averages on the price chart: a fast EMA or SMA with 10 periods, a slow EMA or SMA with 20 periods, and a trend EMA or SMA with 100 periods. It signals trend changes by drawing a white cross when the fast moving average crosses ab

Indicator v4 TrendMoving averages
Updated 2 months ago · None stated GitHub repository of 3 EMA/SMA + Cross [Alorse]

More indicators

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers