Trading View Indicator to MT4

MQL4 Indicators Converting Forex

Job finished

Execution time 10 days
Feedback from employee
Спасибо!

Specification

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)

Responded

1
Developer 1
Rating
(851)
Projects
1461
72%
Arbitration
122
29% / 48%
Overdue
356
24%
Working
Published: 3 articles
2
Developer 2
Rating
(171)
Projects
195
42%
Arbitration
13
8% / 54%
Overdue
9
5%
Free
Published: 3 codes
3
Developer 3
Rating
(221)
Projects
369
66%
Arbitration
10
50% / 0%
Overdue
46
12%
Free
4
Developer 4
Rating
(28)
Projects
30
63%
Arbitration
0
Overdue
4
13%
Free
Published: 1 code
5
Developer 5
Rating
(574)
Projects
945
47%
Arbitration
309
58% / 27%
Overdue
125
13%
Free
6
Developer 6
Rating
(195)
Projects
395
28%
Arbitration
155
20% / 52%
Overdue
112
28%
Free
7
Developer 7
Rating
(41)
Projects
46
28%
Arbitration
9
0% / 100%
Overdue
7
15%
Free
Similar orders
Deriv ea 30 - 3000 USD
Looking for an Experienced Deriv EA Developer I'm looking for an experienced developer who has successfully built profitable Expert Advisors (EAs) for Deriv , including Boom , Crash , and Volatility Indices . I need an EA with a proven, profitable strategy and strong risk management. If you have real experience developing bots for Deriv and can provide evidence of live or verified results, I'd like to hear from you
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

Project information

Budget
30 - 60 USD
Deadline
to 3 day(s)