Conversion of TradingView Pine Script to MQL5 Indicator

MQL5 지표 전환

작업 종료됨

실행 시간 22 시간
고객의 피드백
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.
피고용인의 피드백
Thanks for your fair order. Wish you safe trades,

명시

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)


응답함

1
개발자 1
등급
(253)
프로젝트
571
36%
중재
64
20% / 58%
기한 초과
147
26%
무료
2
개발자 2
등급
(281)
프로젝트
421
63%
중재
5
40% / 0%
기한 초과
4
1%
작업중
3
개발자 3
등급
(178)
프로젝트
228
58%
중재
7
29% / 29%
기한 초과
7
3%
작업중
비슷한 주문
Hello to everyone. My EA tool is a robot which execute non-stop buy or sell orders. Means, when prepare form the set drop down menu the level of Execution and Stop Loss ( Buy or Sell) and push the "OK" button, I expect the EA to execute order when the price ( Bid and Ask, both) cross and is above the Entry level ( for Buy order) or cross and is below the Entry level ( Bid and Ask, both for Sell order). So far , so
i need to some modification of my previous swing mt4 indicator its based on swing hh hl ll lh . now i need to based on close condition HH HL and aswll as LL LH
#### **Indicators** 1. **Daily % Movers**: - Symbol Identification**: Identify the symbol with the highest absolute percentage change for the day. This symbol will be the active trading symbol until another symbol achieves a higher absolute percentage change. - Calculation**: Calculate the daily percentage change using the formula provided in the attached file. 2. **Range Bars**: - Construction**: Construct Range
hello, entry buy: -current bar breakout previews n days high after bar close (defaut 3 days), means current bar high > previews n days high -stoch(14,3,3) first time cross above 80 after bar close ( compared to last below 20) -sginal up arrow displayed after bar close. exit buy : stoch cross below 20 after bar close entry sell: -current bar breakout previews n days low after bar close (defaut 3 days), means current
Hello freelancers here, I need an expert to help me with coding my script which is already working in pinescript, Moreover, i want a system whereby i can sell my trading bot and can give access with a license, I need an expert that can help me with this
Hello great developers, I need help with my mql5 ea that I'm making. There's an error I need cleared that I'm struggling to do so myself. I need this done immediately
hello great developer Can you make a high/low ticker tape on a table for 100 stock symbols? As a symbol makes a high or low throughout the day, it will appear on the table. i will be expecting great developer to bid for this project
Необходимо конвертировать индикатор в Mql5. Индикатор должен индентично работать иметь тот же функционал. Ссылка на индикатор . Я планирую конвертировать 5 индикаторов в общей сложности. Надеюсь на долгосрочное сотрудничество
PLEASE PROGRAMMER WITH ARBITRAGE EA KNOWLEDGE REUIRED; I want a programmer to make the EA ,MAIN EA to work with the arbitrage master. i will provide all eas, 1. make setting PULLBACK in MAIN EA to be considered before an order is opened.if in use. *please i need a trial first before we proceed ,other programmers couldnt do this and it led to Arbitration.please i dont want this
Hello freelancers here, I need an expert to help me with coding my script which is already working in pinescript, Moreover, i want a system whereby i can sell my trading bot and can give access with a license, I need an expert that can help me with this, and my budget is $20, Thank you

프로젝트 정보

예산
30+ USD
개발자에게
27 USD
기한
 2 일