Convert a Tradingview Gaussian Channel indicator to MT5

MQL5 Indicatori

Lavoro terminato

Tempo di esecuzione 1 ora
Feedback del cliente
Quick accurate work, a real pro
Feedback del dipendente
Super client

Specifiche

Below is a simplified Tradingview Gaussian Channel indicator, with an extra band
Note: Source is (H + L + C)/3

Please Convert this indicator to MT5 indicator

Maintain the same styling and input fields, feel free to test in Tradingview to see indicator in action
Final indicator should perform the same as in Tradingview.


THANKS!


//@version=6
indicator("GC [ + RANGE]", shorttitle="GC [+ RANGE]", overlay=true)

// === INPUTS ===
src     = input.source(hlc3, "Source")
N       = input.int(4, "Poles", minval=1, maxval=9)
per     = input.int(144, "Sampling Period", minval=2)
mult    = input.float(1.414, "Filtered True Range Multiplier", minval=0)
modeLag = input.bool(true, "Reduced Lag Mode")
modeFast= input.bool(false, "Fast Response Mode")

// === EXTRA BAND INPUT ===
extraMult = input.float(2.0, "Extra Band Multiplier", minval=0)

// === BETA/ALPHA CALC ===
beta  = (1 - math.cos(4 * math.asin(1) / per)) / (math.pow(1.414, 2 / N) - 1)
alpha = -beta + math.sqrt(beta * beta + 2 * beta)
lag   = (per - 1) / (2 * N)

// === LAG-COMPENSATED SERIES ===
srcdata = modeLag ? src + (src - src[lag]) : src
trdata  = modeLag ? ta.tr(true) + (ta.tr(true) - ta.tr(true)[lag]) : ta.tr(true)

// === RECURSIVE GAUSSIAN FILTER ===
var float filtSrc = na
var float filtTr  = na
filtSrc := N == 1 ? alpha * srcdata + (1 - alpha) * nz(filtSrc[1]) : N == 2 ? math.pow(alpha, 2) * srcdata + 2 * (1 - alpha) * nz(filtSrc[1]) - math.pow(1 - alpha, 2) * nz(filtSrc[2]) : N == 3 ? math.pow(alpha, 3) * srcdata + 3 * (1 - alpha) * nz(filtSrc[1]) - 3 * math.pow(1 - alpha, 2) * nz(filtSrc[2]) + math.pow(1 - alpha, 3) * nz(filtSrc[3]) : N == 4 ? math.pow(alpha, 4) * srcdata + 4 * (1 - alpha) * nz(filtSrc[1]) - 6 * math.pow(1 - alpha, 2) * nz(filtSrc[2]) + 4 * math.pow(1 - alpha, 3) * nz(filtSrc[3]) - math.pow(1 - alpha, 4) * nz(filtSrc[4]) : N == 5 ? math.pow(alpha, 5) * srcdata + 5 * (1 - alpha) * nz(filtSrc[1]) - 10 * math.pow(1 - alpha, 2) * nz(filtSrc[2]) + 10 * math.pow(1 - alpha, 3) * nz(filtSrc[3]) - 5 * math.pow(1 - alpha, 4) * nz(filtSrc[4]) + math.pow(1 - alpha, 5) * nz(filtSrc[5]) : srcdata

filtTr := N == 1 ? alpha * trdata + (1 - alpha) * nz(filtTr[1]) : N == 2 ? math.pow(alpha, 2) * trdata + 2 * (1 - alpha) * nz(filtTr[1]) - math.pow(1 - alpha, 2) * nz(filtTr[2]) : N == 3 ? math.pow(alpha, 3) * trdata + 3 * (1 - alpha) * nz(filtTr[1]) - 3 * math.pow(1 - alpha, 2) * nz(filtTr[2]) + math.pow(1 - alpha, 3) * nz(filtTr[3]) : N == 4 ? math.pow(alpha, 4) * trdata + 4 * (1 - alpha) * nz(filtTr[1]) - 6 * math.pow(1 - alpha, 2) * nz(filtTr[2]) + 4 * math.pow(1 - alpha, 3) * nz(filtTr[3]) - math.pow(1 - alpha, 4) * nz(filtTr[4]) : N == 5 ? math.pow(alpha, 5) * trdata + 5 * (1 - alpha) * nz(filtTr[1]) - 10 * math.pow(1 - alpha, 2) * nz(filtTr[2]) + 10 * math.pow(1 - alpha, 3) * nz(filtTr[3]) - 5 * math.pow(1 - alpha, 4) * nz(filtTr[4]) + math.pow(1 - alpha, 5) * nz(filtTr[5]) : trdata

// === FAST MODE ===
filtSrc1 = nz(filtSrc[1])
filtTr1  = nz(filtTr[1])
filt     = modeFast ? (filtSrc + filtSrc1) / 2 : filtSrc
filttr   = modeFast ? (filtTr + filtTr1) / 2 : filtTr

// === BANDS ===
hband = filt + filttr * mult
lband = filt - filttr * mult

// === EXTRA OUTER BANDS ===
hbandExtra = filt + filttr * mult * extraMult
lbandExtra = filt - filttr * mult * extraMult

// === PLOTS ===
plot(filt, title="Filter", color=filt > filt[1] ? color.rgb(10, 255, 104, 75) : filt < filt[1] ? color.rgb(255, 10, 92, 75) : #cccccc, linewidth=1)
uph = plot(hband, title="High Band", color=filt > filt[1] ? color.rgb(10, 255, 104, 50) : filt < filt[1] ? color.rgb(255, 10, 92, 50) : #cccccc)
upl = plot(lband, title="Low Band", color=filt > filt[1] ? color.rgb(10, 255, 104, 50) : filt < filt[1] ? color.rgb(255, 10, 92, 50) : #cccccc)

// === PLOT EXTRA BANDS ===
plot(hbandExtra, title="Extra High Band", color=color.new(color.gray, 70), linewidth=1, style=plot.style_line)
plot(lbandExtra, title="Extra Low Band", color=color.new(color.gray, 70), linewidth=1, style=plot.style_line)


Con risposta

1
Sviluppatore 1
Valutazioni
(279)
Progetti
378
72%
Arbitraggio
19
32% / 47%
In ritardo
16
4%
Gratuito
Pubblicati: 15 codici
2
Sviluppatore 2
Valutazioni
(268)
Progetti
603
34%
Arbitraggio
65
22% / 57%
In ritardo
146
24%
In elaborazione
Pubblicati: 1 articolo, 22 codici
3
Sviluppatore 3
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
4
Sviluppatore 4
Valutazioni
(13)
Progetti
20
40%
Arbitraggio
3
0% / 67%
In ritardo
3
15%
Gratuito
5
Sviluppatore 5
Valutazioni
(68)
Progetti
127
41%
Arbitraggio
19
47% / 53%
In ritardo
33
26%
Gratuito
6
Sviluppatore 6
Valutazioni
(2)
Progetti
2
0%
Arbitraggio
1
0% / 100%
In ritardo
0
Gratuito
7
Sviluppatore 7
Valutazioni
(39)
Progetti
52
19%
Arbitraggio
15
27% / 67%
In ritardo
8
15%
Gratuito
Pubblicati: 1 codice
8
Sviluppatore 8
Valutazioni
(20)
Progetti
23
39%
Arbitraggio
4
25% / 50%
In ritardo
1
4%
Gratuito
Pubblicati: 6 codici
9
Sviluppatore 9
Valutazioni
(72)
Progetti
147
67%
Arbitraggio
21
10% / 71%
In ritardo
44
30%
Gratuito
Ordini simili
Custom MT5 Expert Advisor (EA) Development | MQL5 Automation Turn Your Trading Strategy into a Powerful Automated Trading System! Are you looking for a professional MT5 Expert Advisor developer to automate your trading strategy? I specialize in developing custom MetaTrader 5 (MT5) Expert Advisors and indicators using MQL5 , tailored to your trading rules, risk management preferences, and trading goals. Whether you
I am looking for an experienced MQL5 developer or development team to build a scalable Telegram-to-MT5 copy trading system. The main purpose of the system is to monitor trading signals from my Telegram channel and automatically execute those signals on connected client MT5 accounts. Core Requirements Receive and parse trading signals from Telegram Automatically execute trades on connected MT5 accounts Support more
Thana ram 30 - 200 USD
Hello, I want to develop a custom MT5 Expert Advisor (EA) for XAUUSD Gold. IMPORTANT: I want a proper rule-based automated trading EA, NOT a martingale, grid or guaranteed-profit bot. 1. MARKET & TIMEFRAME - Platform: MT5 - Symbol: XAUUSD only - Main trend timeframe: M15 - Entry timeframe: M5 - Must support broker suffixes such as XAUUSDm, XAUUSD., etc. 2. TREND RULE BUY trend: - M15 price above EMA 50 - EMA 50 above
I need a TradingView Pine Script (v6) indicator that gives BUY and SELL signals in real time on the live chart. MAIN REQUIREMENT – NO REPAINTING: 1. Signals must appear only when the candle closes (barstate.isconfirmed). Example: on 1-min chart, signal for the 10:35 candle must appear at 10:36 and never disappear or move. 2. Signals on historical bars must look exactly the same as they looked live. 3. No lookahead
Description I am looking for a highly skilled MQL5 Developer & Trader with strong experience in EA optimization, stress testing, and forward validation. The EA is already coded and running. What I need now is: 1.Simple code editing, code adjustment/upgrading and code tamplates inserting, 2.Parameter Optimization & Re-Validation – Find the best stable settings for XAUUSD (not overfitted). 3.Robustness / Stress Testing
المطلوب موشر لتداول الذهب مجرب وقوية يعطي اشاره قوية فقط مع وقف خساره ومختبر ومجرب في حال الموافقه علي لموشر بعد التجربه لمدة ٣ ايام يتم الشراء دايم مبلغ ٢٠٠ دولار
Strategy 40 - 60 USD
yo i have a strategy i would really like to turn into a signal bot basically please this is very technical and serious to me the strategy needs more time 1 time frame and the bot most be 100% accurate
can you help me use a Tickblaze Algo NRBO on the NT platform? I have it somewhat set up, but I have other questions about running it & knowing how to operate it in NT. Thank you if anyone have experience in this kindly bib and let do it asap
I need a trading system similar to the attached files. Check attachment for details on the indicator. i guess the indicator contains some of (Rainbow MA , MTF Dashboard , Symbol Switcher , and Trend Histogram), though may not be exactly as listed
I have a EA/Bot I’ve designed and want it to be put onto me MetaTrader5 this month. I’m new here and also need to figure out how to get a live account and add a UK broker

Informazioni sul progetto

Budget
50 - 80 USD
Scadenze
da 1 a 5 giorno(i)