Conversion of TradingView Pine Script to MQL5 Indicator

MQL5 Indicators Converting

Job finished

Execution time 22 hours
Feedback from customer
I hired this developer to create a complex custom indicator. The code was flawless, with zero bugs, and they implemented all my requested features precisely.
Feedback from employee
Thanks for your fair order. Wish you safe trades,

Specification

Please convert the 2 Pine Scripts below into MQL5 Indicator, it has to be done in 2 days:

1. RMD

//@version=5
indicator('Ranging Market Detector', shorttitle='RMD')

// input paraneters
treshold_level = input.float(title='treshold', defval=4, minval=0, step=1)

//Kalman filter calculation
p = ohlc4

value1 = 0.0
value2 = 0.0
klmf = 0.0

value1 := 0.2 * (p - p[1]) + 0.8 * nz(value1[1])
value2 := 0.1 * (high - low) + 0.8 * nz(value2[1])
lambda = math.abs(value1 / value2)

alpha = (-lambda * lambda + math.sqrt(lambda * lambda * lambda * lambda + 16 * lambda * lambda)) / 8
klmf := alpha * p + (1 - alpha) * nz(klmf[1])


// Calculateing the absolute value of the Kalman filter curve slope
klmf_diff = math.abs(klmf - klmf[1])

// Long term average of the Kalman filter slope
av_klmf_diff = 1.0 * ta.ema(klmf_diff, 200)

// The Kalman filter slope minus the average slope (Decline from the average slope)
// This slope decline is divided by the average slope value to normalize it
normalized_slope_decline = (klmf_diff - av_klmf_diff) / av_klmf_diff

// Condition that defines the trend regime
// Slope declined from the average by not less than the given treshold value
trend_condition = (normalized_slope_decline >= treshold_level) or (normalized_slope_decline[1] >= treshold_level)

bgcol = trend_condition ? color.new(color.yellow, 30) : color.new(color.gray, 30)
// Plot normalized slope decline as histogram plot
plot(normalized_slope_decline, style=plot.style_columns, color=bgcol, linewidth=3)
//plot(lambda, style=plot.style_histogram, color=color.new(color.blue, 0), linewidth=3)
// Plot treshold level line
plot(treshold_level, color=color.new(color.yellow, 0))


2. HalfTrend

//@version=5
indicator('HalfTrend', overlay=true)

amplitude = input(title='Amplitude', defval=1)

channelDeviation = 2
atr_input = 100
showArrows = true
showChannels = true

var int trend = 0
var int nextTrend = 0
var float maxLowPrice = nz(low[1], low)
var float minHighPrice = nz(high[1], high)

var float up = 0.0
var float down = 0.0
float atrHigh = 0.0
float atrLow = 0.0
float arrowUp = na
float arrowDown = na

atr2 = ta.atr(atr_input) / 2
dev = channelDeviation * atr2

highPrice = high[math.abs(ta.highestbars(amplitude))]
lowPrice = low[math.abs(ta.lowestbars(amplitude))]
highma = ta.ema(high, amplitude)
lowma = ta.ema(low, amplitude)

if nextTrend == 1
    maxLowPrice := math.max(lowPrice, maxLowPrice)

    if highma < maxLowPrice and close < nz(low[1], low)
        trend := 1
        nextTrend := 0
        minHighPrice := highPrice
        minHighPrice
else
    minHighPrice := math.min(highPrice, minHighPrice)

    if lowma > minHighPrice and close > nz(high[1], high)
        trend := 0
        nextTrend := 1
        maxLowPrice := lowPrice
        maxLowPrice

if trend == 0
    if not na(trend[1]) and trend[1] != 0
        up := na(down[1]) ? down : down[1]
        arrowUp := up - atr2
        arrowUp
    else
        up := na(up[1]) ? maxLowPrice : math.max(maxLowPrice, up[1])
        up
    atrHigh := up + dev
    atrLow := up - dev
    atrLow
else
    if not na(trend[1]) and trend[1] != 1
        down := na(up[1]) ? up : up[1]
        arrowDown := down + atr2
        arrowDown
    else
        down := na(down[1]) ? minHighPrice : math.min(minHighPrice, down[1])
        down
    atrHigh := down + dev
    atrLow := down - dev
    atrLow

ht = trend == 0 ? up : down

var color buyColor = color.blue
var color sellColor = color.red

htColor = trend == 0 ? buyColor : sellColor
htPlot = plot(ht, title='HalfTrend', linewidth=2, color=htColor)


Responded

1
Developer 1
Rating
(252)
Projects
570
36%
Arbitration
64
20% / 58%
Overdue
147
26%
Free
2
Developer 2
Rating
(281)
Projects
421
63%
Arbitration
5
40% / 0%
Overdue
4
1%
Free
3
Developer 3
Rating
(177)
Projects
227
58%
Arbitration
7
29% / 29%
Overdue
7
3%
Free
Similar orders
Hello I'm in need of a developer who can modify only few items from my MT5 EA. Please take a look on the requirements below:  EA must force to close single trades at 0.1 dollars : True/False [value to change]  Sell break-even point has a bug  Sell trail stop has a bug N.B. Source code is available
Hello, I have an already working indicator on metatrader 4 but I want to convert it into tradingview pinescript and I need a developer that can help me to get this done and make it to work perfectly
I need to modify an existing deriv.com bot. Need to modify the money management and accuracy of taking trades, need to upgrade detecting of price when it's auto trading. need good results
I want an indicator based on two candles , once first candle is printed. Second candle must open and not trade above/below 50% of first candle(fully candle including highs and lows) , but it must trade below/above wick and close back inside first candle then give signal to buy or sell. Signal can be printed anywhere on chart but I don't want arrows on candles. Must be able to give alert via mobile phone
Hello, I have an already working indicator on metatrader 4 but I want to convert it into tradingview pinescript and I need a developer that can help me to get this done and make it to work perfectly
Conf. Prazo ZIGZAG: Exemplo “M5” ----------------------------------------------- % de Sensibilidade em Ziguezague: Exemplo 50% Sensibilidade de fuga do Ziguezague %: Exemplo' 75% Ziguezague normal preço fecha abaixo dos 50% ele fixa. Fuga do ziguezague quando 50% passa pelo último fundo ou topo. nesse exemplo o zigzague aberto passou o 50% do ultimo fundo então quando ele retorna e fecha acinma do 75% ele fixa. ele
I am looking for a unique indicator that incorporates the principles of specific indicators found on TradingView. I will provide a list of these indicators so that you can explore them on TradingView and understand their functionality. 1. Ppsignal Super Hull MA Cross V3 with alert Ppsignal01 2. Volume-based Support & Resistance Zones tommyf001 3. Breakout finder LonesomeThe 4. Hama Candles
Hello developer Am looking for scanner of mt5 when the orange dot come I want scanner to give buy signal on that script and just beside it should show the number of candle the signal have came vise versa for sell . Here is image for understanding https://prnt.sc/sSIHDwGUWw9L&nbsp ; And it should have option to disable this option of counting candle . And i can make a list of symbol which all symbol I want to scan
In an existing EA (MT4) I need to insert a new feature and delete a couple of un-utilised features. Please let me know if anyone can do the job. Thanks
Hello I have this MT4 indicator is is possible to convert to trading view indicator. I have pdf for strategy as well if needed, You must make sure you are an expert in this

Project information

Budget
30+ USD
For the developer
27 USD
Deadline
to 2 day(s)