Convert TradingView pine script into MT4 indicator (MQL4 Source file and EX4 file) Without any errors.

MQL5 Indicadores Forex Futuros

Trabalho concluído

Tempo de execução 5 minutos
Comentário do cliente
All positive and no negatives. Highly skilled and understand all about mql4. It was fun working with him. Even though there were issues on my side, he helped figure them out.
Comentário do desenvolvedor
Great customer, very diligent and energetic, with fast testing period and payment, thanks.

Termos de Referência

Hi,

I would like tradingview indicator Trendlines with Breaks [Lux Algo] to be turned into a MT4 indicator with breakout alerts. Also needs to have a buffer for upper trendline breakout and lower trendline breakout, so that I can create a EA with it.

Please check before applying if you can do it within the budget. If not don't apply. If you have any questions please contact me first. Below is the source code. It needs to function exactly the same.

Good Luck

// This work is licensed under a Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0) https://creativecommons.org/licenses/by-nc-sa/4.0/
// © LuxAlgo

//@version=5
indicator("Trendlines with Breaks [LuxAlgo]", "LuxAlgo - Trendlines with Breaks", overlay = true)
//------------------------------------------------------------------------------
//Settings
//-----------------------------------------------------------------------------{
length = input.int(14, 'Swing Detection Lookback')
mult = input.float(1., 'Slope', minval = 0, step = .1)
calcMethod = input.string('Atr', 'Slope Calculation Method', options = ['Atr','Stdev','Linreg'])
backpaint = input(true, tooltip = 'Backpainting offset displayed elements in the past. Disable backpainting to see real time information returned by the indicator.')

//Style
upCss = input.color(color.teal, 'Up Trendline Color', group = 'Style')
dnCss = input.color(color.red, 'Down Trendline Color', group = 'Style')
showExt = input(true, 'Show Extended Lines')

//-----------------------------------------------------------------------------}
//Calculations
//-----------------------------------------------------------------------------{
var upper = 0.
var lower = 0.
var slope_ph = 0.
var slope_pl = 0.

var offset = backpaint ? length : 0

n = bar_index
src = close

ph = ta.pivothigh(length, length)
pl = ta.pivotlow(length, length)

//Slope Calculation Method
slope = switch calcMethod
    'Atr'    => ta.atr(length) / length * mult
    'Stdev'  => ta.stdev(src,length) / length * mult
    'Linreg' => math.abs(ta.sma(src * n, length) - ta.sma(src, length) * ta.sma(n, length)) / ta.variance(n, length) / 2 * mult

//Get slopes and calculate trendlines
slope_ph := ph ? slope : slope_ph
slope_pl := pl ? slope : slope_pl

upper := ph ? ph : upper - slope_ph
lower := pl ? pl : lower + slope_pl

var upos = 0
var dnos = 0
upos := ph ? 0 : close > upper - slope_ph * length ? 1 : upos
dnos := pl ? 0 : close < lower + slope_pl * length ? 1 : dnos

//-----------------------------------------------------------------------------}
//Extended Lines
//-----------------------------------------------------------------------------{
var uptl  = line.new(na,na,na,na, color = upCss, style = line.style_dashed, extend = extend.right)
var dntl  = line.new(na,na,na,na, color = dnCss, style = line.style_dashed, extend = extend.right)

if ph and showExt
    uptl.set_xy1(n-offset, backpaint ? ph : upper - slope_ph * length)
    uptl.set_xy2(n-offset+1, backpaint ? ph - slope : upper - slope_ph * (length+1))

if pl and showExt
    dntl.set_xy1(n-offset, backpaint ? pl : lower + slope_pl * length)
    dntl.set_xy2(n-offset+1, backpaint ? pl + slope : lower + slope_pl * (length+1))

//-----------------------------------------------------------------------------}
//Plots
//-----------------------------------------------------------------------------{
plot(backpaint ? upper : upper - slope_ph * length, 'Upper', color = ph ? na : upCss, offset = -offset)
plot(backpaint ? lower : lower + slope_pl * length, 'Lower', color = pl ? na : dnCss, offset = -offset)

//Breakouts
plotshape(upos > upos[1] ? low : na, "Upper Break"
  , shape.labelup
  , location.absolute
  , upCss
  , text = "B"
  , textcolor = color.white
  , size = size.tiny)

plotshape(dnos > dnos[1] ? high : na, "Lower Break"
  , shape.labeldown
  , location.absolute
  , dnCss
  , text = "B"
  , textcolor = color.white
  , size = size.tiny)

//-----------------------------------------------------------------------------}
//Alerts
//-----------------------------------------------------------------------------{
alertcondition(upos > upos[1], 'Upward Breakout', 'Price broke the down-trendline upward')
alertcondition(dnos > dnos[1], 'Downward Breakout', 'Price broke the up-trendline downward')

//-----------------------------------------------------------------------------}


Respondido

1
Desenvolvedor 1
Classificação
(63)
Projetos
75
55%
Arbitragem
0
Expirado
0
Livre
2
Desenvolvedor 2
Classificação
(52)
Projetos
96
24%
Arbitragem
9
22% / 22%
Expirado
12
13%
Trabalhando
3
Desenvolvedor 3
Classificação
(558)
Projetos
925
48%
Arbitragem
301
59% / 25%
Expirado
123
13%
Carregado
4
Desenvolvedor 4
Classificação
(251)
Projetos
402
38%
Arbitragem
82
41% / 20%
Expirado
70
17%
Trabalhando
5
Desenvolvedor 5
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
6
Desenvolvedor 6
Classificação
(252)
Projetos
570
36%
Arbitragem
64
20% / 58%
Expirado
147
26%
Livre
7
Desenvolvedor 7
Classificação
(145)
Projetos
162
41%
Arbitragem
5
0% / 80%
Expirado
8
5%
Trabalhando
Pedidos semelhantes
Requirements All features of indicators, plus enter into trades (buy, sell) TP and SL according to the indicator [TP1 and TP2] Can make MT5 from MT4 indicator? Add trailing stop loss trading hours trading days Max spread Possibility of Multiple charts through one window Daily profit Target [yes/no]
hello... saya menginginkan EA GRID?AVERAGING dengan kondisi : > bisa meletakan sell&buy Limit pada nilai tertentu > bisa meletakkan sell&buy stop pada nilai tertentu > bisa melakukan order sell/buy limit/stop (sesuai setting) berdasarkan Nilai RSI > bisa membatasi jumlah order > ada fungsi TP dan SL > rangkuman hasil kerja EA selama mingguan terimakasih, semoga bisa bekerjasama dengan baik
I already have the EA completed. I just need to add 2 params and fix the feature (GV) to make sure that no order is missed for any reason. Maybe GV is not enough and need to add another feature
I want the trade to trigger anytime it sees the opportunity on all time frames, sl tp should be automated and all trades should be trigger anytime on cpi news and etc
Добрый день. Мне нужно создать сигнального бота. У меня есть индикатор на Trading View, который выделяет точку интереса - спрос/предложение. (но я в нем не уверен, подойдет ли он для робота, возможно такой индикатор нужно будет написать). Нужно чтоб все зоны были экстримальные, то есть, если произойдет пробитие зоны то менялся тренд. Как я торгую? Индикатор выделяет зону. Мне нужно увидеть подтверждение в пределах
hello. I want 12 csvs file contains the trading view historial candles data from 2000 to now in 1M timeframe for this symbols: Xagusd - OANDA Wticousd - OANDA Nas100usd - OANDA Spx500usd - OANDA Us30usd - OANDA Xptusd - OANDA J225usd - OANDA Btcusd - OANDA Ethusd - OANDA Uk100gbp - OANDA De30eur - OANDA Eu50eur - OANDA Collected data should be the exact data that trading view candles reports. not from
I need a trading bot 30 - 40 USD
I'm in need of a trading bot, based on 3 mt4 indicators, which are semafor alert, reversals and bluever.I want the signals produced by the indicators to be automated and run on mt5 platform, trade anything including synthetic indices and works on any time frame
Hi Dear Expert Developer, I want to make a Indicator as Candle pattern as below; 1.Inverted Hammer (Must as per My Drawing) with notification ( only H1,H4,DAY,WEEK time frame) if match with my drawing pattern 2.Hanging Man ( Must as per Drawing) with notification ( Only H1,H4, Day, Week time frame ) if match with my drawing pattern Example, I will apply this indicator on EURUSD H1 time frame and I have open only H1
I need someone to help me convert my tradingview pinescript to mt4, I only got $20 for this and I am gonna be giving you more works ahead, Also I will be paying with cryptocurrency cause my PayPal os not working here, Don't know why
Hello guys, Iam an investor in an account that runs Arbitrage EA on one broker and it works just fantastic.. The guy who runs the EA obviously doesnt want to sell the EA because he profits from that. I would like to find someone that can develop me one Arbitrage (HFT) EA that works perfect on MT5 and trades XAUUSD (gold) specifically. If you would like and can help me i would appriciate it! Best regards

Informações sobre o projeto

Orçamento
30+ USD
Desenvolvedor
27 USD
Prazo
de 1 para 5 dias