Trading View Indicator to MT4

MQL4 Indicateurs Convertir Forex

Tâche terminée

Temps d'exécution 10 jours
Commentaires de l'employé
Спасибо!

Spécifications

Hi, i would like a straight forward conversion of this indicator to MT4. the exact same functionality doesnt exist in MT4 despite many simular. 


thanks,

Mark



//----

Length = input(9,title="Period of Evaluation", type=input.integer)

Smooth = input(3,title="Period of Smoothing", type=input.integer)

show_histo = input(true, title="Show Histogam", type=input.bool)

//----

src =  input(close,title="Source")

Mode = input(title="Indicator Method", type=input.string, defval="RSI", options=["RSI", "STOCHASTIC","ADX"])

ma_type = input(title="MA", type=input.string, defval="WMA", options=["ALMA", "EMA", "WMA", "SMA", "SMMA", "HMA"])

alma_offset  = input(defval=0.85, title="* Arnaud Legoux (ALMA) Only - Offset Value", minval=0, step=0.01)

alma_sigma   = input(defval=6, title="* Arnaud Legoux (ALMA) Only - Sigma Value", minval=0)


ma(type, src, len) =>

    float result = 0

    if type=="SMA" // Simple

        result := sma(src, len)

    if type=="EMA" // Exponential

        result := ema(src, len)

    if type=="WMA" // Weighted

        result := wma(src, len)

    if type=="SMMA" // Smoothed

        w = wma(src, len)

        result := na(w[1]) ? sma(src, len) : (w[1] * (len - 1) + src) / len

    if type=="HMA" // Hull

        result := wma(2 * wma(src, len / 2) - wma(src, len), round(sqrt(len)))

    if type=="ALMA" // Arnaud Legoux

        result := alma(src, len, alma_offset, alma_sigma)

    result


//----

Price = src


//----

Price1 = ma("SMA",Price,1)

Price2 = ma("SMA",Price[1],1)


//RSI

Bulls0 = 0.5*(abs(Price1-Price2)+(Price1-Price2))

Bears0 = 0.5*(abs(Price1-Price2)-(Price1-Price2))


//STOCHASTIC

Bulls1 = Price1 - lowest(Price1,Length)

Bears1 = highest(Price1,Length) - Price1


//ADX

Bulls2 = 0.5*(abs(high-high[1])+(high-high[1]))

Bears2 = 0.5*(abs(low[1]-low)+(low[1]-low))


//

Bulls = Mode == "RSI" ? Bulls0 : Mode == "STOCHASTIC" ? Bulls1 : Bulls2

Bears = Mode == "RSI" ? Bears0 : Mode == "STOCHASTIC" ? Bears1 : Bears2

AvgBulls=ma(ma_type,Bulls,Length)     

AvgBears=ma(ma_type,Bears,Length)


//----

SmthBulls=ma(ma_type,AvgBulls,Smooth)  

SmthBears=ma(ma_type,AvgBears,Smooth)


difference = abs(SmthBulls - SmthBears)


bull_trend_color = (SmthBulls<SmthBulls[1])?color.lime:color.green

bear_trend_color = (SmthBears<SmthBears[1])?color.orange:color.red


difference_color = difference > SmthBulls ? ((SmthBears<SmthBears[1])?color.orange:color.red) : difference > SmthBears ? ((SmthBulls<SmthBulls[1])?color.lime:color.green) : color.gray

plot(difference, style=plot.style_histogram, linewidth=3, color=show_histo ? difference_color : na, transp=45, title="Strength")


//----

A = plot(SmthBulls,color=bull_trend_color,linewidth=4,transp=0)

B = plot(SmthBears,color=bear_trend_color,linewidth=4,transp=0)

//fill(A,B,color=trend==1?color.aqua:color.fuchsia,transp=80)

Répondu

1
Développeur 1
Évaluation
(851)
Projets
1461
72%
Arbitrage
122
29% / 48%
En retard
356
24%
Travail
Publié : 3 articles
2
Développeur 2
Évaluation
(171)
Projets
195
42%
Arbitrage
13
8% / 54%
En retard
9
5%
Gratuit
Publié : 3 codes
3
Développeur 3
Évaluation
(221)
Projets
369
66%
Arbitrage
10
50% / 0%
En retard
46
12%
Gratuit
4
Développeur 4
Évaluation
(28)
Projets
30
63%
Arbitrage
0
En retard
4
13%
Gratuit
Publié : 1 code
5
Développeur 5
Évaluation
(574)
Projets
945
47%
Arbitrage
309
58% / 27%
En retard
125
13%
Gratuit
6
Développeur 6
Évaluation
(195)
Projets
395
28%
Arbitrage
155
20% / 52%
En retard
112
28%
Gratuit
7
Développeur 7
Évaluation
(41)
Projets
46
28%
Arbitrage
9
0% / 100%
En retard
7
15%
Gratuit
Commandes similaires
Hello Traders and Investors, I am a professional algorithmic trading developer specialized in building high-quality Expert Advisors (EAs), Indicators, Scripts, and Trade Management Tools for MetaTrader 4 and MetaTrader 5. With extensive experience in financial markets and trading automation, I can transform your trading ideas into reliable and efficient solutions with clean, optimized, and well-structured code. My
Hello, I’m a profitable MT4/MT5 trader specializing in Prop Firm accounts. What makes me different: I actually trade with 3% Daily DD / 5% Overall DD rules, so I know what blows accounts and what passes. Services I offer: 1. EA Backtesting + Detailed Reports - Winrate, Profit Factor, Max DD, Best Pairs/Timeframes 2. Strategy Documentation - I’ll write clear rules for your EA so any coder can build it 3. Prop Firm
Hello, I’m a profitable MT4/MT5 trader specializing in Prop Firm accounts. What makes me different: I actually trade with 3% Daily DD / 5% Overall DD rules, so I know what blows accounts and what passes. Services I offer: 1. EA Backtesting + Detailed Reports - Winrate, Profit Factor, Max DD, Best Pairs/Timeframes 2. Strategy Documentation - I’ll write clear rules for your EA so any coder can build it 3. Prop Firm
We can transform your ideas, trading methods, and strategies into a fully automated trading bot (Expert Advisor). If you want an EA for automated trading, we're here to build the perfect solution for you
Supply and Demand EA 50 - 250 USD
I need a SnD EA. Prefer coder who has previous experience coding SnD EA. PO are based on (CHoCH or BoS) and 3EMA, order block (from my TradingView indicator), premium-discount area. SL options are based on fix pips or zone size; CL is based on candle closing. TP1 and TP2 options are based on fix pips or fix ratio. Canceling PO is based on market structure. Money management are based on fix volume or fix amount or fix
Hi MQL5 Community, With over 10 years of live market experience as a Quantitative & Trading System Developer, I specialize in building robust, highly scalable Expert Advisors (EAs), custom indicators, and automated architectures. I’ve recently put together a comprehensive showcase demonstrating my flagship Modular Multi-Engine Architecture , designed to bring institutional-grade logic and real-time telemetry into
I need a developer that can make my trading strategies into a working perfect EA Robot working on Mt5. Candlestick pattern confirmation through PDH, PDL, PWH, PWL, Liquidities, HTF OB
I need a trading bot specially for XAU, high profit gain. Requirements bot analyzes the market places trades closes with 2 to 3 profit per trades daily profit should be 50 to 100 dollars
Привіт. Шукаю когось, хто б застосував мій код як бота . Я торгую індексом Aus_200 SFE (не XJO). Бот базується на MACD входу/виходу, RSI, стохастиці та vwap. Як тільки роботу приймуть, мені потрібно внести кілька коректив; однак, нічого суттєвого. Дякую
Custom MT5 EA for buy stop and sell stop breakout strategy.’ ‘Requirements, develop a custom Expert Advisor for MetaTrader 5 that places buy-stop and sell-stop pending orders based on defined breakout rules.’ ‘All important values adjustable via inputs.’ ‘Includes stop loss, take profit, trailing stop, and configurable risk management.’ ‘One trade at a time, works on demo before live.’ Provide source code and

Informations sur le projet

Budget
30 - 60 USD
Délais
à 3 jour(s)