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

仕事が完了した

実行時間5 分
依頼者からのフィードバック
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.
開発者からのフィードバック
Great customer, very diligent and energetic, with fast testing period and payment, thanks.

指定

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

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


応答済み

1
開発者 1
評価
(177)
プロジェクト
188
72%
仲裁
0
期限切れ
0
2
開発者 2
評価
(54)
プロジェクト
102
23%
仲裁
12
25% / 17%
期限切れ
13
13%
3
開発者 3
評価
(571)
プロジェクト
941
47%
仲裁
304
59% / 25%
期限切れ
124
13%
仕事中
4
開発者 4
評価
(284)
プロジェクト
458
39%
仲裁
94
44% / 18%
期限切れ
72
16%
取り込み中
パブリッシュした人: 2 codes
5
開発者 5
評価
プロジェクト
0
0%
仲裁
0
期限切れ
0
6
開発者 6
評価
(257)
プロジェクト
581
36%
仲裁
64
20% / 58%
期限切れ
147
25%
パブリッシュした人: 1 article, 22 codes
7
開発者 7
評価
(170)
プロジェクト
193
42%
仲裁
9
11% / 44%
期限切れ
9
5%
パブリッシュした人: 3 codes
類似した注文
I'd like an EA that places trades depending on the bars of a Renko indicator. This indicator isn't a custom chart, it just visually represents the pair's price in the form of a Renko chart The open/close, high/low numbers on the data window can be used for this project. Inputs and rules • Lot size • Risk (the lot size will be a percentage of the account's balance) • Choose between only buying, only selling or buying
Hola, estoy buscando a alguien que pueda programarme en MQL5 una estrategia que ya tengo validada manualmente. Es una estrategia basada en velas y desequilibrios de precio (doble desequilibrio). Ópera en GBPJPY y en temporalidad de 4H. ¿Qué necesito exactamente? El bot debe detectar dos desequilibrios consecutivos entre velas bajistas o alcistas (sin velas de otro color entre medio). Entrada : sobre la primera vela
Dear devs I would like to build a new strategy development process in python which creates several onnx-files. Those files will be used in a mql5 EA. The EA is almost already finished. The core of this project will be the python files. I would like to build real quick a strategy, let it train with ML, test it in-sample, forward-test and do monte carlo simulations before deploying in MT5. I‘m searching for a dev with
Нужно добавить в готовый советник стохастик что бы позиции по сильному тренду открывались по нему. И добавить выход из позиции по ослабление тренда Macd ( когда сигнальная линия выше гистограммы макди ) Т.е когда только начинается ослабление тренда
I’m looking for an experienced French MQL5 developer to build a custom bridge that receives alerts from TradingView (via webhook) and executes trades on MetaTrader 5 , based on specific trading logic. The system should capture alerts that include Entry Price, TP1/TP2/TP3, and SL , and execute or cancel orders depending on market behavior and alert flow. The trade logic includes: Execute Buy/Sell orders only if the
Hello experts, I’m looking for a professional MQL5 developer who can assist with exporting a file to MetaTrader 5 on a MacBook . The task involves resolving compatibility or export issues specific to macOS, based on a video demonstration I will provide in the comment section. Requirements: Strong experience with MetaTrader 5 and macOS Ability to troubleshoot MT5 file handling/export problems on Mac Familiarity with
*Recommendation Summary:* I specialize in developing powerful, reliable, and highly optimized *Forex Expert Advisors and Scripts using MQL5*. With a strong foundation in *statistics, trading logic, and risk management*, I ensure every trading bot is tailored for *maximum profitability and minimum risk*. My expertise includes: ✅ Strategy Optimization for consistent performance ✅ Advanced Risk and Money Management
An expert advisor that trades reverse martingale based on relative strength index (RSI) and Average true range (ATR) on multiple time frames e.g M1/M5/M15 etc. The E.A must be able to set reverse martingale multiplier, Max wins to reset martingale,Stop loss, Take profit, Trailing stop loss based on ATR(average true range). E.A must be able to place SL and TP automatically based on ATR and also have fixed SL andTP in
High Prize - SMC EA 100 - 300 USD
Requesting which brings powerful enhancements designed to make the EA behave more intelligent to adapt to real-time market conditions, just like a human trader would. The EA actively monitors the market in real time instead of simply placing pending orders on every setup. It observes whether the Fibonacci retracement zone is actually being respected before executing a trade to approach mimics how a professional
I have a new EA that needs to be backtested across eight separate set files. I will provide you with the EA and each of the set files - you will provide me with a full report for each backtest. The EA will be tested on EURUSD and USDJPY (four set files for each). I would like it tested on tick data from June 2023 to June 2025. No optimization is necessary. Please include your flat rate for the job. Thanks

プロジェクト情報

予算
30+ USD
開発者用
27 USD
締め切り
最低 1 最高 5 日