Convert Tradingview (Pinescript) to MT5 Indicator

MQL5 Indicators Converting

Job finished

Execution time 1 day
Feedback from customer
Very nice and speedy work
Feedback from employee
Thanks for your support.

Specification

I need to convert a Trading view indicator (Pine Script) to MQL5 File.

It is a trend indicator. It signals where to place a buy or a sell order.

In the end, both indicator (original and the mql5) should present the same results.


Here is the script from trading view


//@version=3

study(title="ATR Smoothed (By dysrupt)_BuySell version", shorttitle="ATR_SM_BuySell", overlay = true)


//Modifyed by @guikroth

////////////////////////////////////////////////////////////////////////////////INPUTS


nATRPeriod      = input(21, "Period")

nATRMultip      = input(6.3, "Multiplier",type=float, minval=0.5, maxval=1000, step=0.1)




/////////////////////////////////////////////////////////////////////////////////ATR


xATR = atr(nATRPeriod)

nLoss = nATRMultip * xATR

xATRTrailingStop = na

xATRTrailingStop := 

 iff(close > nz(xATRTrailingStop[1], 0) and close[1] > nz(xATRTrailingStop[1], 0), max(nz(xATRTrailingStop[1]), close - nLoss),

  iff(close < nz(xATRTrailingStop[1], 0) and close[1] < nz(xATRTrailingStop[1], 0), min(nz(xATRTrailingStop[1]), close + nLoss), 

   iff(close > nz(xATRTrailingStop[1], 0), close - nLoss, close + nLoss))) 

                       

pos = na 

pos := 

 iff(close[1] < nz(xATRTrailingStop[1], 0) and close > nz(xATRTrailingStop[1], 0), 1, 

  iff(close[1] > nz(xATRTrailingStop[1], 0) and close < nz(xATRTrailingStop[1], 0), -1, nz(pos[1], 0)))

 

color = pos == -1 ? red: pos == 1 ? lime : blue 

//patr=plot(xATRTrailingStop, color=color, linewidth=2, title="ATR Trailing Stop", transp=0)


// Deternine if we are currently LONG

isLong = false

isLong := nz(isLong[1], false)


// Determine if we are currently SHORT

isShort = false

isShort := nz(isShort[1], false)


//Trading

// Buy only if the buy signal is triggered and we are not already long

LONG = not isLong and pos == 1



// Sell only if the sell signal is triggered and we are not already short   

SHORT = not isShort and pos == -1



if (LONG)

    isLong := true

    isShort := false


if (SHORT)

    isLong := false

    isShort := true


barcolor(isLong ? lime : isShort ? red : na)



// Show Break Alerts

plotshape(SHORT, title="Sell", style=shape.labeldown, location=location.abovebar, size=size.normal, text="Sell", transp=0, textcolor = white, color=red, transp=0)

plotshape(LONG, title="Buy", style=shape.labelup, location=location.belowbar, size=size.normal, text="Buy", textcolor = white, color=green, transp=0)



// === /PLOTTING ===

// Send alert to TV alarm sub-system

alertcondition(LONG,title="Sell",message="Sell")

alertcondition(SHORT,title="BuY",message="Buy")

alertcondition(SHORT,title="BuY",message="Buy")

alertcondition(SHORT,title="BuY",message="Buy")


////////////////////////////////////////////////////////////////////////////////VWMA


len2 = input(100, minval=1, title="Smooth")

src = input(close, title="Source")

out = vwma(src, len2)


avg1=avg(out, xATRTrailingStop)

plot(avg1, color=aqua, transp=0, title="ATR")


Responded

1
Developer 1
Rating
(94)
Projects
190
66%
Arbitration
8
25% / 50%
Overdue
2
1%
Free
2
Developer 2
Rating
(61)
Projects
61
51%
Arbitration
1
0% / 100%
Overdue
1
2%
Free
Similar orders
Looking for an experienced Pine Script developer to create a custom ZigZag indicator for TradingView. Pivots must be confirmed using stochastic oscillator, 20-period SMA, and other criteria. Script should be adjustable, efficient, and include clear visuals and alerts. Prior ZigZag or custom indicator experience preferred
Description: Looking for a professional developer to build a smart trading bot for MT5 called AZIZ EA , based on my custom indicator logic (full logic provided), including: Pairs: XAUUSD, EURUSD, USDJPY 5 trading modes (Safe, Profit, Manual, Unlimited, Target) Free AI tools (news filter, momentum analysis, smart exit) Safe money management with dynamic lot sizing Alerts & push notifications 📄 Full specifications
Hello expert developer i need profitable ready made MT5 EA and i want to purchase it do let me know how much you want to sell the EA there must be backtesting with high win rate i need very profitable arbitrage EA I'll be looking forward to expert developer only please if you know you have zero idea about what am saying don't come and waste my time thank you very much
Posiada dostęp do oprogramowania Pine Script z platformą TradingView, która jest w pełni dostępna na MetaTrader 5 (MQL5) oraz MetaTrader 4 (MQL4). Dodanie dwa etapy: Tworzenie identycznego wskaźnika w MQL5 (z tymi samymi oznaczeniami, logiką i parametrami co w oryginalnym Pine Script). Na podstawie tego rozwiązania Expert Advisora (EA) w wersji MQL5 i MQL4, który będzie otwierał i zamykał znaczenie z sygnałami
Hello Great developer i have one existing work on trade station that i just need to correct two line and send me the correct code back i will be looking for a great developer that will build for it Thank Best regards
Custom Drag-and-Drop Alert System for MetaTrader 5 (MT5) MetaTrader experience is absolutely essential. Please don’t bid if you have not previously developed applications for MT5. 📌 Project Title: Custom Drag-and-Drop Alert System for MetaTrader 5 (MT5) 📝 Project Description I require a custom alert system to be developed for the MetaTrader 5 platform. The tool should allow me to place and manage alerts visually
I am looking for a qualified and experienced MQL4 developer who is already familiar with the Malaysian SNR (Support & Resistance) strategy and understands its rules and logic in detail. 📌 Objective: To develop a complete and visual indicator that automatically plots all elements of the Malaysian SNR strategy and provides clear entry and exit signals based on the strategy’s conditions. 🔍 Key Features Required in the
Hello developers, I'm looking to hire an experienced MQL5 developer with real trading knowledge to create (or provide) a reversal indicator that is: 🔹 Truly profitable 🔹 Non-repainting (signals must never change once candle is closed) 🔹 No signal offset (arrows placed only at candle close using past data only) 🔹 Low-lag and responsive (to avoid whipsaw in ranging markets) Core Requirements: ✅ Buy/Sell signals
This indicator detects ABCD structure-based trading setups using a custom pullback and breakout logic, as discussed below. It works for both bullish and bearish scenarios (mirror logic), with user control over direction selection on the chart. ─────────────── 🔹 1. Pullback Logic: - Pullback is confirmed only after at least 2 red candles (in bullish case) have formed. - The body of one of these red candles must close
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. Standard Support and

Project information

Budget
30 - 50 USD
For the developer
27 - 45 USD
Deadline
from 1 to 4 day(s)