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

MQL5 Indicateurs Forex Futures

Tâche terminée

Temps d'exécution 5 minutes
Commentaires du client
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.
Commentaires de l'employé
Great customer, very diligent and energetic, with fast testing period and payment, thanks.

Spécifications

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')

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


Répondu

1
Développeur 1
Évaluation
(79)
Projets
90
58%
Arbitrage
0
En retard
0
Gratuit
2
Développeur 2
Évaluation
(52)
Projets
97
24%
Arbitrage
10
20% / 20%
En retard
12
12%
Travail
3
Développeur 3
Évaluation
(563)
Projets
932
47%
Arbitrage
302
59% / 25%
En retard
124
13%
Travail
4
Développeur 4
Évaluation
(256)
Projets
414
38%
Arbitrage
86
44% / 19%
En retard
70
17%
Chargé
5
Développeur 5
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
6
Développeur 6
Évaluation
(254)
Projets
573
36%
Arbitrage
64
20% / 58%
En retard
147
26%
Gratuit
7
Développeur 7
Évaluation
(157)
Projets
174
43%
Arbitrage
6
0% / 67%
En retard
8
5%
Gratuit
Commandes similaires
I need a way of viewing Renko Charts in MT5. Only apply if you have experience with Renko Charts. And how you would tackle this project. Timeline is less than 5 days
Hey greetings. Am in need of a tradingview developer that can add a simple alert to my existing tradingview indicator with a simple conditions. Kindly bid for the project if it is what you can do for me and let proceed
Hi im looking for programmer who can rewrite or convert 1 mq4 indicator file to the working mq5 indicator. The indicator is Renko box indicator. I will share the mq4 file after we agree to start the order
Trading EA 500 - 1000 USD
I need a trading EA developer that is profitable. The developer must have fxbook records for at least 2 years. If there is no fxbook. Don't mess around. Thank you
This Bot will work on strategy which works using moving averages,RSI and candle stick pattern and what I want is that trade will execute when setup will form on both 30 min and 1 hr time frame trade will execute strategy needs all 4 parameters to be on right calculations to execute trade and I want some options where I can select risk to reward ratio to back test this strategy and some other parameters
see trade open on every tick seconde ok forex pair us us30 if is current running at 40170.00 so open 2 trade buy stop and sell stop both in every tick pending order of buy stop will 40171.00 and sell stop pending order will be 40169.00 buy stop will open at 40171.00 and tp will be 40173.00 and SL will be 40169.50 ok if buy stop hit sell stop order automatically will be close now if sell stop order open at 40169.00 so
Hi Teams Looking for trading strategy or an EA, which can trigger trade, in XAUUSD, With fixed SL of 2 USD AND TP OF 3 TO 5 USD. Any strategy any time frames. Can work on lowest size
Looking for a programmer to code EA for Buy Stop/Sell Stop HFT Trading designed for Ger40 EA must be able to trade on live account and Dll must be used for EA speed slippage control and spread filter
I need an mt5 ea based on martingale strategy. Here I need a toggle function on the charts as well to activate and deactivate the ea manually. Developers who have previous experience on martingale and above function are preferred.Apply for more details
Sniper EA 70+ USD
I need some help to develop Sniper EA ZAR some one will know to create it please help Robot must trade all currency and any broker 1 to 5 trades daily

Informations sur le projet

Budget
30+ USD
Pour le développeur
27 USD
Délais
de 1 à 5 jour(s)