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

MQL5 Indicators Forex Futures

Job finished

Execution time 5 minutes
Feedback from customer
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.
Feedback from employee
Great customer, very diligent and energetic, with fast testing period and payment, thanks.

Specification

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

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


Responded

1
Developer 1
Rating
(63)
Projects
75
55%
Arbitration
0
Overdue
0
Free
2
Developer 2
Rating
(52)
Projects
96
24%
Arbitration
9
22% / 22%
Overdue
12
13%
Free
3
Developer 3
Rating
(555)
Projects
922
48%
Arbitration
300
59% / 25%
Overdue
123
13%
Loaded
4
Developer 4
Rating
(250)
Projects
399
38%
Arbitration
82
41% / 20%
Overdue
69
17%
Busy
5
Developer 5
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
6
Developer 6
Rating
(252)
Projects
570
36%
Arbitration
64
20% / 58%
Overdue
147
26%
Free
7
Developer 7
Rating
(145)
Projects
161
40%
Arbitration
5
0% / 80%
Overdue
8
5%
Working
Similar orders
Could you please review this code and provide feedback on whether you're able to assist with it? I'm seeking confirmation on whether you're comfortable working on this particular task. Your expertise would be greatly appreciated in ensuring its functionality and efficiency."
Copy Trading 75+ USD
I need an app which will copy trade from a MT4 terminal to other Mt4 terminals on the same desktop PC as well as terminals on a different desktop PC. Latency, slippage will be important
i have mql4 file that allow two indicators to combine to give one signal i would like to add an alert options on it amd combine to indicators, the two indicators àre two ex4 file but only one you will need to build from scratch to give the signal i need this indicator is simple for its a graph that will represent the trend direction and the other give the arrow direction. in the first image you will see when the
I am in search of a skilled MQL5 developer with a proven ability to optimize trading robots across various assets, including synthetic indices like V75, Boom and Crash, gold, US30, US100, and more. I'm looking for an experienced developer to enhance my multi-asset trading EA, which was originally developed exclusively for V75 and is based on the smart money concept. The developer must be free in taking up the job
Hey greetings to you all. I need an expert Metatrader 5 developer that have successfully developed a profitable Mt5 EA I can buy with high win rate . Kindly bid if you have one with backtesting results prove and let discuss about the price . Thanks
Hello, Thank you for reviewing the job description. We're in need of an experienced developer to finalize an EA that's currently in progress. We'll provide the source code of the EA for implementing necessary changes to resolve the existing bugs. The EA is primarily based on price action patterns and includes risk management features and an indicator. All required features have been added to the EA; we simply need to
Hello there, I am planning to have a trade copier which can help me copy signals from signal provider and copy the trades to my mt4 account. Bid to this now if this is what you can help on. Thanks
p.p1 {margin: 0.0px 0.0px 12.0px 0.0px; font: 16.0px Times; color: #353535; background-color: #ffffff} p.p2 {margin: 0.0px 0.0px 12.0px 0.0px; font: 16.0px Times; color: #353535; background-color: #ffffff; min-height: 19.0px} I want to be clear before we start, so you are going to build me an expert advisor that works on MT5, that will also require an authorisation to work (like a license key, like the expert advisor
I HAVE A FUNCTIONAL MT5 EA (MQL5) THAT IS BASED ON CANDLE OPEN BUT I WOULD LIKE TO AUTOMATE IT WITH OTHER PROFITABLE STRATEGIES REQUIREMENT SPECIFICATION 1. I want an experienced developer to integrate a strategy to analyse the market and open buy only trade or sell only trade according to the direction of the analysis. 2. The modification and strategy should combine many confirmations that ensure high win rates of
I am in search of a skilled MQL5 developer with a proven ability to optimize trading robots across various assets, including synthetic indices like V75, Boom and Crash, gold, US30, US100, and more. I'm looking for an experienced developer to enhance my multi-asset trading EA, which was originally developed exclusively for V75 and is based on the smart money concept. The developer must be free in taking up the job

Project information

Budget
30+ USD
For the developer
27 USD
Deadline
from 1 to 5 day(s)