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
(254)
Projects
572
36%
Arbitration
64
20% / 58%
Overdue
147
26%
Free
2
Developer 2
Rating
(294)
Projects
436
64%
Arbitration
5
40% / 0%
Overdue
4
1%
Working
3
Developer 3
Rating
(185)
Projects
239
60%
Arbitration
8
25% / 38%
Overdue
8
3%
Working
Similar orders
Dear Developer's I hope this message finds you well. I am seeking your expertise to update an MT4 EA server to the latest MT4 build 1420 or higher. Additionally, I would like to convert the EA to be compatible with MT5. Please let me know your availability and the estimated cost for this project. I look forward to your prompt response. Thank you
Greetings great developer, I am in search of a highly skilled developer to assist with an exciting project. I need to convert two open-source TradingView indicators to NinjaTrader 8 and implement a usage restriction based on computer IDs. If you have experience with NinjaTrader 8 coding please let me know. I’d be happy to discuss the details further
Greetings great developer, I am in search of a highly skilled MQL5 developer to assist with an exciting project. I need to convert two open-source TradingView indicators to NinjaTrader 8 and implement a usage restriction based on computer IDs. If you have experience with NinjaTrader 8 coding please let me know. I’d be happy to discuss the details further
Hi, I am looking for someone who can code a auto lot size calculator for cTrader - where I can drag stop loss line and the algo automatically calculates the lot size I need to place a trade with a fixed % risk of account. It also needs to show the lot size and est. margin on screen before entering and needs to execute market and limit orders. It must work on FX, Commodities, Indices, Stocks and Crypto. With options
Hello everyone, I am looking for a programmer experienced in converting Pine Script to MQL5. This project involves converting a trading strategy written in Pine Script on TradingView to MQL5 for MetaTrader 5. You can find the code in the link below: https://drive.google.com/file/d/16DvtlQlJYxZfaHRL6AHZV8Z0D7M9bg_j/view?usp=drivesdk Budget: 30USD
Specification for Translating Pine Script Indicators to MQL5 Objective Translate multiple indicators written in Pine Script into MQL5. The translation should be implemented using an object-oriented and class-based approach. Additionally, the indicators should include some specific adjustments as detailed below. Requirements Object-Oriented Design Implement the indicators using an object-oriented paradigm in MQL5
I'm looking to take my Tradingview Indicator and convert it to be used on Ninja Trader 8. I will be the only one using it and will not be made public, but I want to use it so I can trade using it live and also in replaying past data on NT8. Its just an indicator that places certain Goldbach lines on the chart based on a selection in the menu. So, its not a Bot, but an indicator. I have attached the script below so
I have a MetaTrader 4 indicator that I programmed to give arrow signals at entry and exit. What is required, is it possible to program the indicator to be better developed so that it gives a written purchase or sale, not just shares, and also gives the phrase (adjustment zone 1 and amendment 2) when the transaction is reversed, and finally, is it possible for the indicator to change the candles so that when the
Hello, I am looking for someone to convert my well defined MQL4 code project to MQL5 (EAs) A brief description of my current strategy: MT4 'Spreadsheet' EA collects data from 28 FX currency pairs -> sends it to Excel, then Excel calculates and makes a decision -> Excel sends a signal to MT4 'Trading' EA and manages trades I want the MT4 EA to be converted into MT5. For Back testing purposes, I want to withdraw from
hi. I hv a strategy on tradingview need to convert to MT4/MT5 expert advisor for algo trading. would like to add some tradingview strategy setting to the EA(not included in my tradingview code): recalculate after order is filled, order size: xx% of equity

Project information

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