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
評価
(254)
プロジェクト
573
36%
仲裁
64
20% / 58%
期限切れ
147
26%
2
開発者 2
評価
(300)
プロジェクト
450
65%
仲裁
5
40% / 0%
期限切れ
4
1%
3
開発者 3
評価
(201)
プロジェクト
261
63%
仲裁
9
22% / 33%
期限切れ
10
4%
仕事中
類似した注文
I'd like mt4 indicators to be converted into trading bot, these indicators produces buy and sell signal I want them to be automatic bot that also have circles of which I know what they and I'll explain what must the bot analyze
Nt8 30+ USD
i'm searching a way to define which IP address is using by NT8 cause i'm using a multiple IPs machine (for my daily job) and I'd need to have a further confirmation that I'm using the correct IP address with NT8 could anyone explain explain me how to do it for a fee
If you can deliver, you can bid your price. 1. Decompile the MT4/MT5 EA: - Decompile the provided .ex4 (for MT4) or .ex5 (for MT5) file into the original .mq4/.mq5 source code. - Ensure that the entire logic and functionality are preserved during decompilation. 2. Remove Expiration Limitations: - Locate and remove or bypass any code that imposes an expiration date or limits the usage of the bot. - Test to
Hello, I am looking to develop an alert system that measures a ratio of Open to Close Range (ideally I can choose between OHLC) of a candle (number of pips) versus Volume traded in same time period. I need to have alerts sent to me for multiple pairs, based on figures of that ratio that I define. this needs to be possible on multiple timeframes. alerts to be sent to telegram. The alerts are to be sent after candle
I have created a Timeframe Panel indicator in mql5. The indicator scans for all open charts on the platform and it creates a panel that contains all the open symbols and next to it it contains all the timeframes for each symbol. When i attach the indicator to 4-5 charts then it makes many times the chart to freeze and the price feed of the chart stops. I want an experienced mql5 to make the indicator not to freeze
Here’s a rephrased version with more than 30 words: "Hello, I'm new here and looking for assistance in coding my trading strategies on TradingView. I need someone experienced with Pine Script to help me create scripts for my strategies. Please let me know if you're able to assist with this project. Thank you!" 4o
Please I am new here I need someone to help me code my strategies on tradingviews. I need pine script for my tradingview. Please let know if you can help me on this project. thanks
My strategy I’m looking to turn into code. Trading Instrument - Crude Oil Futures (CL) Chart and Timeframe - 30-second chart Entry Setup 1. Time Focus on the first 30-second candle after 11:00: 00 AM New York time. (11:00: 00 candle) 2. Candle Size Limit : Skip the trade if the first candle is greater than 10 points. 3. Entry Orders - Place stop orders at the high and low of the first 30-second candle after
I need to create an EA based on my own strategy that actually is a little bit different from most of the usual EA. This because it use an indicator but the power of the system is just because it can shows target price by designing trendline on the price chart in a unusual way. A friend of mine tried to create it on MT4 platform but, in the end, he realized that this platform has big limits when the program lines
I've a EA with follow logic. strategy is simple using ema, supertrend and "head and shoulder" indicators. simply put when price closes below ema and the supertrend is red then we enter short .strategy must recognize that there was a previous cycle of long trend with a head and shoulder pattern of long before we enter the short. the opposite is for long entries. max long trades: ex: 3-If long trades are made 3 times

プロジェクト情報

予算
30+ USD
開発者用
27 USD
締め切り
最高 2 日