Conversion of TradingView Pine Script to MQL5 Indicator

MQL5 Indicadores Conversão

Trabalho concluído

Tempo de execução 22 horas
Comentário do cliente
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.
Comentário do desenvolvedor
Thanks for your fair order. Wish you safe trades,

Termos de Referência

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)


Respondido

1
Desenvolvedor 1
Classificação
(253)
Projetos
571
36%
Arbitragem
64
20% / 58%
Expirado
147
26%
Livre
2
Desenvolvedor 2
Classificação
(281)
Projetos
421
63%
Arbitragem
5
40% / 0%
Expirado
4
1%
Trabalhando
3
Desenvolvedor 3
Classificação
(178)
Projetos
228
58%
Arbitragem
7
29% / 29%
Expirado
7
3%
Trabalhando
Pedidos semelhantes
Hey I need a pinescript coder to convert Tradingview PINESCRIPT to Metatrader 5, I have the script on tradingview and I will be eligible to share this with you via comment section I need a proficient individual who is able to make a good conversion to tradingview indicator without any errors code/bugs, make the code run perfectly as expected, please reach out if you can do this thanks
We have and expert EA running trades in MT5 and wish to duplicate those in Tradovate. The Tradovate platform does have an API facility so we require someone who can configure/write MT5 trades to Tradovate via the API
I need two bots converted from MQL4 to MQL5. They have indicators and order types inside, I will provide the source code etc when agreed. Please message me for more details
Hello. I have 2 indicators from pinescript that I am looking for a conversion to ninjascript. The first indicator is about 60 lines of code. The second indicator is about 100 lines of code. My code is very neat and organized easy to follow. The math and logic in the code *must* be converted exactly or the indicators will be useless
Hello Everyone, In Trading view there is a Script named 'Fibonacci Trend Reversals', I want's the same convert it into MT5 Indicator. The script giving Buy & Sell Signals with 2 Targets as TP1 & TP2, want the same into MT5. Also requires the same Input that the Indicator having, for ref. Screenshots attached
I have a strategy that is based on an indicator that I have in trading view, and I want to automate this strategy for mt4 or mt5. Pls reach out to me of you have the right profession for converting tradingview strategy to metatrader thanks
I have the source file for a FOREX EA that I would like to modify to allow it to trade crypto currencies. It currently gives the error that the currency is not recognized when trying to back test and optimize the EA. Will need the EA to recognize BTC/ETH/SOL pairs and be able to trade crypto currencies
I have a strategy that is based on an indicator that I have in trading view, and I want to automate this strategy for mt4 or mt5. Pls reach out to me of you have the right profession for converting tradingview strategy to metatrader thanks
I want to clarify some points, such as: When entering into a buy deal, he opens three deals, each deal has a different take profit and one stop loss. When you look at the code, you will know that there are three take-profit. It opens one deal, taking one profit and adding risk management as well An information screen on the chart shows all the information, I only have $10 for this now, and also I still have more
Witam Szanownych Freelancerów, Mam problem z konwersją strategii EA z MQL4 do MQL5. W zasadzie konwertuje za pomocą skryptu: mq4to5rewrite_sample_v4_2 kończy się sukcesem, ale daje wynik w pliku mq5, który nie daje się skompilować. System występowania o błędach, których ja z braku dostępu do języka MQL nie jest możliwy do zastosowania. W związku z tym mam prośbę o: a) konwersję i przygotowanie pliku żródłowego MQL5

Informações sobre o projeto

Orçamento
30+ USD
Desenvolvedor
27 USD
Prazo
para 2 dias