Convert Pine Script indicator to MT5 indicator

MQL5 Эксперты

Работа завершена

Время выполнения 1 день
Отзыв от заказчика
Great work and fast
Отзыв от исполнителя
Very nice working experience

Техническое задание

Hey guys I need someone to convert this indicator to a MT5 one.
//@version=5
indicator('TESTJAN', overlay=true)

amplitude = input(title='Amplitude', defval=2)
channelDeviation = input(title='Channel Deviation', defval=2)

showArrows = input(title='Show Arrows', defval=true)
showChannels = input(title='Show Channels', defval=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
var float atrHigh = 0.0
var float atrLow = 0.0
var float arrowUp = na
var float arrowDown = na

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

highPrice = high[math.abs(ta.highestbars(amplitude))]
lowPrice = low[math.abs(ta.lowestbars(amplitude))]
highma = ta.sma(high, amplitude)
lowma = ta.sma(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.rgb(0, 68, 255)
var color sellColor = color.rgb(255, 115, 0)

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

atrHighPlot = plot(showChannels ? atrHigh : na, title='ATR High', style=plot.style_circles, color=sellColor)
atrLowPlot = plot(showChannels ? atrLow : na, title='ATR Low', style=plot.style_circles, color=buyColor)

fill(htPlot, atrHighPlot, title='ATR High Ribbon', color=sellColor)
fill(htPlot, atrLowPlot, title='ATR Low Ribbon', color=buyColor)

buySignal = not na(arrowUp) and trend == 0 and trend[1] == 1
sellSignal = not na(arrowDown) and trend == 1 and trend[1] == 0

plotshape(showArrows and buySignal ? atrLow : na, title='Arrow Up', style=shape.triangleup, location =location.absolute, size=size.tiny, color=buyColor)
plotshape(showArrows and sellSignal ? atrHigh : na, title='Arrow Down', style=shape.triangledown, location=location.absolute, size=size.tiny, color=sellColor)

alertcondition(buySignal, title='Alert: Signal Buy', message=' Signal Buy')
alertcondition(sellSignal, title='Alert: Signal Sell', message=' Signal Sell')


Откликнулись

1
Разработчик 1
Оценка
(83)
Проекты
143
52%
Арбитраж
8
13% / 75%
Просрочено
22
15%
Свободен
2
Разработчик 2
Оценка
(6)
Проекты
9
11%
Арбитраж
5
40% / 20%
Просрочено
2
22%
Свободен
3
Разработчик 3
Оценка
(52)
Проекты
68
59%
Арбитраж
5
0% / 80%
Просрочено
5
7%
Свободен
Опубликовал: 1 статью
4
Разработчик 4
Оценка
Проекты
1
0%
Арбитраж
0
Просрочено
0
Свободен
5
Разработчик 5
Оценка
(268)
Проекты
603
34%
Арбитраж
65
22% / 57%
Просрочено
146
24%
Работает
Опубликовал: 1 статью, 22 примера
6
Разработчик 6
Оценка
(132)
Проекты
178
39%
Арбитраж
4
25% / 50%
Просрочено
14
8%
Свободен
7
Разработчик 7
Оценка
(104)
Проекты
134
43%
Арбитраж
0
Просрочено
3
2%
Работает
8
Разработчик 8
Оценка
(322)
Проекты
499
67%
Арбитраж
5
40% / 0%
Просрочено
4
1%
Свободен
Опубликовал: 8 примеров
9
Разработчик 9
Оценка
(39)
Проекты
65
34%
Арбитраж
4
25% / 50%
Просрочено
9
14%
Работает
10
Разработчик 10
Оценка
(279)
Проекты
378
72%
Арбитраж
19
32% / 47%
Просрочено
16
4%
Свободен
Опубликовал: 15 примеров
11
Разработчик 11
Оценка
(72)
Проекты
80
10%
Арбитраж
38
8% / 58%
Просрочено
6
8%
Свободен
12
Разработчик 12
Оценка
(171)
Проекты
195
42%
Арбитраж
13
8% / 54%
Просрочено
9
5%
Свободен
Опубликовал: 3 примера
13
Разработчик 13
Оценка
(298)
Проекты
478
40%
Арбитраж
105
40% / 24%
Просрочено
82
17%
Загружен
Опубликовал: 2 примера
14
Разработчик 14
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
15
Разработчик 15
Оценка
(574)
Проекты
945
47%
Арбитраж
309
58% / 27%
Просрочено
125
13%
Свободен
Похожие заказы
Je cherche un développeur MQL4 / MQL5 expérimenté pour créer un robot de trading automatique (Expert Advisor) performant et sécurisé. Validation de comptes Prop Firm capable de trader sur le forex et les matière première
XAUUSD Digger 50 - 300 USD
I want you to create a strategy that fits for my funded account conditions like winrate of 60%+ with good risk reward ratio min 1:2 and max drawdown per day is 2% or 3% and overall should be less then 10% with less consecutive losses should be able to finish the funded stage in of phase 1 8% target and phase 2 of 10% target in a month with good number of trades in a month need journal of all the back tested data and
THE PIP CRUSHER 61+ USD
**PROJECT TITLE:** MQL5 Expert Advisor — Debug, Fix & Finalize (THE PIP CRUSHER) --- **PROJECT TYPE:** Fix and finalize existing MQL5 Expert Advisor code. This is NOT a strategy development job. The strategy is fully designed and the code is already written. I need a skilled MQL5 developer to compile the code, fix all errors and warnings, verify the logic works correctly, and deliver a clean working EA. --- **ABOUT
I need a simple Expert Advisor for MT5 that trades based on RSI overbought/oversold levels. - Entry: Buy when RSI(14) < 30, Sell when RSI(14) > 70 - Exit: Take Profit and Stop Loss as adjustable input parameters (default 50/25 pips) - Position sizing: Risk 1% of account balance per trade, auto-calculated from stop-loss distance - Timeframe and currency pair: adjustable inputs, not hardcoded - Should include basic
1. Trading Instruments: - The robot should trade exclusively on the following currency pairs: - NZD/CHF - NZD/USD - GBP/USD 2. Trading Style: - The robot should implement a day trading strategy, focusing on short-term trades. 3. Risk Management: - Maximum drawdown percentage: 10%. - Stop loss settings: Adjustable based on volatility (suggested default: 30 pips). - Take profit settings: Adjustable
I have an existing working MQL5 Expert Advisor and require an experienced MQL5 programmer/trading-system analyst to independently analyse its historical performance. This is NOT initially a request to rewrite the EA or simply optimize parameters. Current strategy: - MetaTrader 5 - M15 timeframe - EMA / ADX / ATR based - Approximately 1,337 historical trades - Gross Profit approximately USD 271,000 - Gross Loss
Gold robot 30 - 1000 USD
Hello everyone, I’m looking for a developer who has an algorithm in their arsenal that generates quick profits over the long term. I’m interested in a scalping expert advisor—it can be a one-shot, averaging, or grid strategy, with or without TP/SL. Please share your ideas and results; I’ll consider all options. The most important thing is the result. Good luck
Zwivhuya 100+ USD
I would like to be part of this trade because i want to help my family out of the hopeless life we are living now . i thoughts going to school will help me get better job but no i am still sitting for us to eat at home i have to sell my body to someone and get pay with that small money i can buy bread and cooldrink for my family that we can not sleep with emyter stomach
I need an Expert Advisor that trades by signal of ADX and Moving Average indicators. It must check and correctly process possible errors in trading operations. The main criteria of opening and closing positions , direction of Moving Average, Price of last bar . Set the number of lots to trade as an input parameter
I need a new custom MT5 Expert Advisor for XAUUSD.sc on my Vantage cent account. I do not have a ready trading strategy. Please propose simple, specific entry, exit and risk rules first. I will approve the rules before development starts. The EA must open and close trades automatically, place a stop loss on every trade, and have adjustable lot size and maximum loss settings. I do not want martingale or increasing lot

Информация о проекте

Бюджет
50+ USD