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

MQL5 指标 外汇 期货

工作已完成

执行时间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
等级
(63)
项目
75
55%
仲裁
0
逾期
0
空闲
2
开发者 2
等级
(52)
项目
96
24%
仲裁
9
22% / 22%
逾期
12
13%
工作中
3
开发者 3
等级
(557)
项目
924
48%
仲裁
301
59% / 25%
逾期
123
13%
已载入
4
开发者 4
等级
(250)
项目
400
38%
仲裁
82
41% / 20%
逾期
69
17%
已载入
5
开发者 5
等级
项目
0
0%
仲裁
0
逾期
0
空闲
6
开发者 6
等级
(252)
项目
570
36%
仲裁
64
20% / 58%
逾期
147
26%
空闲
7
开发者 7
等级
(145)
项目
162
41%
仲裁
5
0% / 80%
逾期
8
5%
工作中
相似订单
Hello, I hope you are well. I require a custom indicator that will send an alert when the close price is within the range of 19 pips above or 19 pips below the 200 SMA. I'm not sure how easy it is. I would really like to receive this as soon as possible
Trend indicator 30 - 50 USD
Hi i have 3 indicators that are mq4 file what i would like to do is to let these indicators become one and get arrow signals for them let me know if that can be done , the first indicator is super smoother line with period 14 with color line, the next indicator is a another smoother indicator that breaks out when a trend begins and the last is 2 moving average line that crosses each other to give arrow signals. I
G.X.L indicator 50 - 100 USD
I want an indicator that will generate signal based on technical analysis/market analysis, order blocks (demand and supply), and should be able to show arrows for buy and sell after analyzing the direction of the market. It should also be able to show if a signal is strong or weak. In case the signal is rejected, it should show an X sign
The task is as follows: Create and EA, preferably in python, that can connect to MT5 (via API), with the following criteria: -Scans a multitude of triangular currency pairs (EUR/USD, USD/JPY, EUR/JPY as an example), and finds differences between the implied rate via the use of two currencies, ie in the example case EUR/USD*USD/JPY, and the actual rate. -Takes positions in a market neutral nature (short/long postions)
I'm looking to make some edits to an existing pinescript indicator. I created a quick 5 minute video that showcases what I need. Please let me know when you have taken a look at it and how quickly you can complete this. Looking for a quick turnaround, today would be great
I need you to convert my tradingview pinescript to mt4, I have just $10 for it now, But i am going to give you more work later on cause i still have more work i am going to need you to work on for me, and i will be paying with crypto, Thank You
Hi, I need a programmer that could build an EA for me, based on Fib and indicators, The entry and exit will be determine by the Fibs and confirm by the indicators
I need a small number of testers to help me refine how I track and log referrals with IC Markets. This will involve you linking an existing profile to my IB code (or signing up for a new account and linking it to my IB) and then trading a minimum of 0.1 lots of forex over a 30 day period. During that time I will test how this data is captured by my EA and logged into a spreadsheet. That's all there is to it. It's a
I'm looking for an experienced MQL5 developer to create a script or Expert Advisor (EA) that can identify the requested price/order price, executed price, and slippage for any closed order in MT5. The script or EA should be able to: - Identify the requested price/order price for each order - Identify the executed price for each order - Calculate the slippage for each order (the difference between the requested price
Hello developer, I just wanted to know if you have made a profitable Supply and Demand indicator Contact me let discuss and start fully immediately .i will be looking for great developer soon Best regards

项目信息

预算
30+ USD
开发人员
27 USD
截止日期
 1  5 天