Convert my tradingview indicator to xm mt4 (mq4)

MQL4 Конвертация

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

Время выполнения 5 дней

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

I would like to convert my tradingview indicator to the xm metatrader 4 (remembering that there is this mt4 from xm that has some details).

I tried the conversion via AI but it was not possible, since the indicator is not similar and useful as it was in tradingview.


//@version=5

indicator(title="JR INDEX", shorttitle="JR INDEX", overlay=false)


// Input

fastLength = input.int(12, title="Fast Length", minval=1)

slowLength = input.int(26, title="Slow Length", minval=1)

src = input(close, title="Source")

cciLength = input.int(14, title="CCI Length", minval=1)

overSold = input.int(-100, title="Over Sold")

overBought = input.int(100, title="Over Bought")


// Calculation

fastMA = ta.ema(src, fastLength)

slowMA = ta.ema(src, slowLength)

macdLine = fastMA - slowMA

signalLine = ta.ema(macdLine, 9)

macdHistogram = macdLine - signalLine

cci = ta.cci(src, cciLength)


// Plotting

plot(macdHistogram, title="MACD", color=macdHistogram > 0 ? color.green : color.red, style=plot.style_columns, transp=0)

plot(cci, title="CCI", color=color.purple)

plot(overSold, title="Over Sold", color=color.green, transp=0)

plot(overBought, title="Over Bought", color=color.red, transp=0)


// Entry and Exit conditions

longCondition = ta.cross(macdHistogram, 0) and cci > overSold

shortCondition = ta.cross(0, macdHistogram) and cci < overBought

bgcolor(longCondition ? color.green : shortCondition ? color.red : na, transp=70)


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

1
Разработчик 1
Оценка
(337)
Проекты
624
38%
Арбитраж
40
23% / 65%
Просрочено
93
15%
Свободен
Опубликовал: 4 статьи, 19 примеров
2
Разработчик 2
Оценка
(268)
Проекты
603
34%
Арбитраж
65
22% / 57%
Просрочено
147
24%
Работает
Опубликовал: 1 статью, 22 примера
3
Разработчик 3
Оценка
(132)
Проекты
178
39%
Арбитраж
4
25% / 50%
Просрочено
14
8%
Свободен
4
Разработчик 4
Оценка
(574)
Проекты
945
47%
Арбитраж
309
58% / 27%
Просрочено
125
13%
Свободен
5
Разработчик 5
Оценка
(171)
Проекты
195
42%
Арбитраж
13
8% / 54%
Просрочено
9
5%
Свободен
Опубликовал: 3 примера
6
Разработчик 6
Оценка
(2)
Проекты
2
0%
Арбитраж
1
0% / 0%
Просрочено
2
100%
Свободен

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

Бюджет
50+ USD
Сроки выполнения
до 2 дн.