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
(184)
Projets
195
72%
Arbitrage
0
En retard
0
Gratuit
2
Développeur 2
Évaluation
(54)
Projets
102
23%
Arbitrage
12
25% / 17%
En retard
13
13%
Gratuit
3
Développeur 3
Évaluation
(574)
Projets
945
47%
Arbitrage
303
59% / 25%
En retard
125
13%
Gratuit
4
Développeur 4
Évaluation
(284)
Projets
459
39%
Arbitrage
94
44% / 18%
En retard
73
16%
Chargé
Publié : 2 codes
5
Développeur 5
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
6
Développeur 6
Évaluation
(259)
Projets
586
35%
Arbitrage
64
20% / 58%
En retard
147
25%
Gratuit
Publié : 1 article, 22 codes
7
Développeur 7
Évaluation
(170)
Projets
194
42%
Arbitrage
10
10% / 40%
En retard
9
5%
Gratuit
Publié : 3 codes
Commandes similaires
Job description. I need a well experienced developer to do the following on my XAUUSD breakout strategy EA:- 1. Compile it.- Fix errors and warnings on the EA. 2. Make little modification And straighten the EA codes to enable the EA to be able to do backtesting and trade well in live or demo account
To eliminate this difficulty, use the expert's example: EA 24658754 MAKE THE MODIFICATION IN THE EXPERTS' FILES: EA_MT4, EA_MT5 Add this: input bool ShowInfo = false ; // Show Info to Chart input ENUM_BASE_CORNER Corner = 1 ; // Info Corner input color Color_Info = clrAqua ; // Info Color Add this: //+------------------------------------------------------------------+ //| Print
Job Description I am looking for a highly skilled MQL5 DEVELOPER and A TRADER to work on an MT5 Expert Advisor (EA) project. The main tasks will include: 1. Code Compilation & Optimization – Reviewing, compiling, and streamlining the existing EA code to ensure efficiency and stability. 2. Backtesting Setup & Execution – Running professional backtests to ensure the EA produces consistent, gradual profit growth curves
I have 2 EXPERT ADVISERS whom I have helped to build a business through online coding. They are also profitable in testing but I did not get the result which I wanted. I want to improve them. I also want to add some more strategies in them so that I get the result which I want. Anyone who can help me, please send me a message, I provide you the details
Project Description I need an MT5 Expert Advisor (EA) built in MQL5 . The strategy is a breakout system with adjustable filters and risk management. The EA must be fully parameterized (all settings adjustable from inputs). Please deliver both .ex5 (compiled) and .mq5 (source code)
Super scalper 1000+ USD
I have a special EA for trading at gold on mt4 accuracy is amazing you can check its history, if someone interested write me here or contact on whats app 00923455053213
I used AI to develop my EA, and I need a professional developer to review my Expert Advisor code for MT5 (Python experience preferred). I will provide details once contact is initiated. Thanks. Benga
Scalping bot 30 - 75 USD
I am looking for a bot that can trade XAUUSD mainly. For a bot that can manage risk, Can manage profit. A bot that can change the lots from 0.01 to 0.02 and increase it depending on the account balance. The bot needs to be reliable and needs to work under any timeframe or in M5 o M15, Moreover that works and it can use any startegy, no matter the strategy, it just needs to work. I will provide a Demo account and I
Expert Advisor (trading automatique) pour MT4 stratégie OPR marché : FOREX et INDICES indicateurs : SUPERTREND ET 2 EMA ,une ema 20 périodes et la seconde 50 périodes STRATÉGIE : exemple pour un achat le SUPERTREND est haussier sur l'unité de temp H1 la EMA rapide est au-dessus de la EMA lente sur l'unité de temp M5 le graphique de prise de position est sur du M15 on prend position à la cassure du plus haut de la
Updated EA Description (with Max. Open Trades & MTF MA Filter) Core Features (already existing): Candlestick formation entry logic. Daily minimum drawdown & maximum profit target. ATR-based stop loss and take profit. Trailing stop. Breakeven. New Additions: Relative Strength Index (RSI): Flexible parameters (user can edit period & levels). Used for both entry confirmation and exit options. Stochastic Oscillator

Informations sur le projet

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