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
(173)
Projects
184
71%
Arbitration
0
Overdue
0
Free
2
Developer 2
Rating
(54)
Projects
102
23%
Arbitration
12
25% / 17%
Overdue
13
13%
Free
3
Developer 3
Rating
(571)
Projects
941
47%
Arbitration
303
59% / 25%
Overdue
124
13%
Working
4
Developer 4
Rating
(284)
Projects
458
39%
Arbitration
94
44% / 18%
Overdue
72
16%
Loaded
Published: 2 codes
5
Developer 5
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
6
Developer 6
Rating
(255)
Projects
577
36%
Arbitration
64
20% / 58%
Overdue
147
25%
Free
Published: 1 article, 22 codes
7
Developer 7
Rating
(170)
Projects
193
42%
Arbitration
9
11% / 44%
Overdue
9
5%
Free
Published: 3 codes
Similar orders
to compile all the suitable markets for buy and place a buy for the shortest timeframe and place a sell for also a shortest timeframe it should work with all brokers and can automatically place a trade as long as its connected to the internet it should inform where the contracts are placed and for how long
I am looking to hire somebody to take my written description along with the code I have put together and fix it / optimize it and make it a profitable scalping EA that enters and exits positions quickly with profit
Mql5 indicator 30+ USD
I'm looking for an indicator that gives buy sell signals by placing arrows on the chart Signals must not repaint or be placed with an offset I want it to be accurate enough so j can trade from signal to signal amd actually make profit Do anyone have a strategy and skill to create such an indicatore First priority is to mql5
Hello, I am looking for a professional or experienced trader/consultant who can share or build a working, rule-based strategy for BTCUSD on MetaTrader 5. 📌 This project is not for EA development at this stage. Instead, I want to: Evaluate the core logic, edge, and win profile of a strategy Confirm that the strategy is statistically sound and rule-based Ensure it can be automated later if it performs well in
I am looking for a consistently profitable EA that is: Reliable , low-risk , and suitable for long-term use Can meet prop firm rules (e.g., FTMO, MyForexFunds) Must include Stop Loss, Take Profit, and Trailing Stop Capable of making 1% to 2% daily under controlled risk Works on BTCUSD (initial focus) with potential to scale to other assets Should be able to run on MetaTrader 5 🔍 Requirements : The EA must already be
Ola1704 30+ USD
Opracuj Expert Advisor handlujący odwróceniami trendów. Sygnały odwrócenia będą generowane na podstawie wzorców Price Action. Trend będzie określany na podstawie ADX, Alligator i MACD, podczas gdy wybór wskaźnika powinien być dostępny w parametrach wejściowych EA
I’m looking for a highly experienced EA developer who can do more than just code — someone who can help design, build, and test a profitable Expert Advisor for MetaTrader 4 or 5 (your choice). I don’t have a finalized strategy yet, so I’m looking for someone who can: Propose proven EA logic based on live market performance Help me choose from styles like scalping, trend-following, breakout, or swing Build in smart
Project goal: To develop a trading bot that interprets highs and lows for strategic long and short positions. Scope of work: - Develop a bot to long on Higher Low, Lower Low, or Double bottom signals. - Create bot to short on Higher High, Lower High, or Double top signals. - Incorporate support and resistance levels into the strategy. - Suggest improvements considering volume and market trends. Additional
hello Sir I trust you good your and family. I am a novice forex trader,and I have catch eyed your work with robots. Please help me with one robot especially one on an average price or at average cost. One that will show indicators on reversals,breakouts and when a zone has reached for TP or STOP Losses. Sandile Sengwayo
hello great developer I need a TradingView strategy that provides accurate success rate results without repainting or manipulation. I’m looking for a TradingView strategy (in Pine Script) that shows realistic and reliable backtest results with the exact same accuracy as seen on the chart. The strategy must: Be 100% non-repainting Give a true success/win rate based on actual entries and exits Avoid any kind of fraud

Project information

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