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
(839)
Projects
1433
72%
Arbitration
117
29% / 47%
Overdue
356
25%
Working
Published: 3 articles
2
Developer 2
Rating
(170)
Projects
193
42%
Arbitration
9
11% / 44%
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
(572)
Projects
943
47%
Arbitration
303
59% / 25%
Overdue
125
13%
Working
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
I have two bots that I have created that trade forex. I would like someone to create two separate set files for my two bots that I have created. The two bots have been created in mql4
Hi friends, I need EA , it should be given consistent profit....with low Drawdown , i will pay what you ask.We are forex broker and i need skiled mql5 developer for further project, thanks
Dear developers, i want you to create me a non repaint trading indicator for Deriv to detect spikes. It should have alert function and i will test it to see if i can hire you. Note that i am well versed with indicators so do not deceive me. I will need clean and precise code for the indicator. Send me your screenshots to first have a look
I would like you to create an expert advisor or robot based on a closed source Trading View indicator ‘Stop Hunt by _Nephew_Sam’. You have to first check this indicator out and be sure you can replicate the source code’s logic before you apply for this gig. If you read to this point, include closed source in your reply to this post
Open NY sesion robot 50 - 90 USD
is typical Open NY sesion bot: I need a robot for MT5 that opens positions based on a minute or 10-minute candlestick at the opening of the London and/or New York session. If the market breaks through the upper edge of the candlestick, it opens a buy position; if it breaks through the lower edge, it opens a sell position. TP and SL = candlestick height. After the first SL, it opens the opposite position, but only
I have a simple strategy I’d like someone to convert into a mt4 and mt5 ea for me please , just using vwap(volume weighted average profile) and price action with a few simple rules
Project Description: I am looking for an experienced developer to create an Expert Advisor (EA) compatible with both MT4 and MT5 with the following functionalities: 1. Capital and Position Sizing Management: Automatically calculate and determine the appropriate trade size based on account balance and predefined risk parameters. Enforce strict capital management rules to prevent excessive exposure and control overall
I need to convert an MT5 Expert Advisor into a fully functional TradingView strategy. Could you handle this task, and if so, please let me know your estimated cost and expected completion timeframe
I’m seeking an experienced and reliable MQL5 developer to build a custom MT5 Hedge Trade Copier with the following core features: Two Modes in One EA : Sender (prop/challenge) & Receiver (live hedge) Custom Hedge Lot Formula (based on account size, max loss %, or fixed amount) Secure Authentication System (HTTP license server check) CSV-based Trade Bridge (no sockets/DLLs) Duplicate Trade Protection and error
Required Indi: BB Band: Period 21, Deviations 2.000 SMA: 21 in H1 timeframe RSI: Period 7 Timeframe: M5 Pair: XAUUSD, USDJPY, GBPJPY, EURJPY, AUDJPY, CHFJPY, GBPUSD Trading rules: #A In H1 timeframe, when price goes above the 21 SMA then looking for buy opportunity and when price goes below to 21 SMA, then look fora sell opportunity Buy triggered when candle got rejection from the lower Bollinger bands, and sell

Project information

Budget
30 - 60 USD
For the developer
27 - 54 USD
Deadline
to 3 day(s)