Converting a typical tradingview indicator into MQL5

MQL5 Indicators Converting

Specification

This is the code: (I don't need the bar color and buy/sell signal)

// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/

// © ceyhun


//@version=5

indicator('ATR Trailing Stoploss', overlay=true)

Atr = input.int(defval=5, title='Atr Period', minval=1, maxval=500)

Hhv = input.int(defval=10, title='HHV Period', minval=1, maxval=500)

Mult = input.float(defval=2.5, title='Multiplier', minval=0.1)

Barcolor = input(true, title='Barcolor')


Prev = ta.highest(high - Mult * ta.atr(Atr), Hhv)

ta.barssince(close > ta.highest(high - Mult * ta.atr(Atr), Hhv) and close > close[1])

cum_1 = ta.cum(1)

highest_1 = ta.highest(high - Mult * ta.atr(Atr), Hhv)

highest_2 = ta.highest(high - Mult * ta.atr(Atr), Hhv)

iff_1 = close > highest_1 and close > close[1] ? highest_2 : Prev

TS = cum_1 < 16 ? close : iff_1


iff_2 = close < TS ? color.red : color.black

Color = close > TS ? color.green : iff_2

barcolor(Barcolor ? Color : na)

plot(TS, color=Color, linewidth=3, title='ATR Trailing Stoploss')


Buy = ta.crossover(close, TS)

Sell = ta.crossunder(close, TS)


plotshape(Buy, 'BUY', shape.labelup, location.belowbar, color.new(color.green, 0), text='BUY', textcolor=color.new(color.black, 0), display=display.none)

plotshape(Sell, 'SELL', shape.labeldown, location.abovebar, color.new(color.red, 0), text='SELL', textcolor=color.new(color.black, 0), display=display.none)


alertcondition(Buy, 'Buy Signal', 'Buy ATR Trailing Stoploss')

alertcondition(Sell, 'Sell Signal', 'Sell ATR Trailing Stoploss')

Responded

1
Developer 1
Rating
(13)
Projects
29
28%
Arbitration
3
0% / 0%
Overdue
1
3%
Loaded
2
Developer 2
Rating
(61)
Projects
89
16%
Arbitration
4
25% / 25%
Overdue
7
8%
Working
3
Developer 3
Rating
(13)
Projects
19
16%
Arbitration
3
0% / 33%
Overdue
3
16%
Working
4
Developer 4
Rating
(1)
Projects
1
0%
Arbitration
0
Overdue
0
Free
5
Developer 5
Rating
(2459)
Projects
3096
66%
Arbitration
77
48% / 14%
Overdue
340
11%
Working
6
Developer 6
Rating
(513)
Projects
776
63%
Arbitration
33
27% / 45%
Overdue
23
3%
Working
7
Developer 7
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
8
Developer 8
Rating
(12)
Projects
16
19%
Arbitration
2
50% / 50%
Overdue
0
Free
9
Developer 9
Rating
(1)
Projects
1
0%
Arbitration
1
0% / 0%
Overdue
0
Working
10
Developer 10
Rating
(181)
Projects
256
21%
Arbitration
17
65% / 18%
Overdue
1
0%
Busy
11
Developer 11
Rating
(302)
Projects
452
65%
Arbitration
5
40% / 0%
Overdue
4
1%
Working
12
Developer 12
Rating
(93)
Projects
119
41%
Arbitration
0
Overdue
3
3%
Working
Similar orders
I need an indicator that can plot buy and sell signals on the chart. Along with the arrows i also need that indicator draws some lines as well like for entry and SL(30 pips), TP1 (30 pips) , Tp2 (60 pips). I am attaching the screenshots for reference with detail. Now these are the two indicators that will be appended as marked with (1 and 2) on the chart. There are two scenarios that needs to be tacked in here
Hello Great Developer i need expert developer to create telegram signal copier to mt4 mt5 for my channel I am providing fx signals. So i will give license to my clients i want to build like this one Thanks
Need an experienced programmer to amend the following on exiting Bot 1: Amend Moving Average 3 angle calculation 2: Add MA 5, to be used with MA 2 and MA 4 3: Adjust “Time Start Trading” and “Time Stop Trading” 4: Amend working of Bollinger Band Attached are the amendments required. Bot file will be sent to selected programmer
Create this dashboard which measures Performance Monitoring, Broker Manipulation Detection, Trade Execution Data, basically account health. The images are an illustration of what it could look like but you can be creative. Key Functionalities include: Real-Time Monitoring: The dashboard should update in real-time or at specified intervals to show the latest performance metrics and account status. Alerts: Create an
Hello Anyone Who Can Code A Robot For Me With Power Of 3 Candles Sticks Stategys? or Anyone with A Powerful A Bot Up To Be Purchased … we can Edit There and There..im ready Anytime it Has To Be MT5
I have a ex4 custom indicator,, this There is no protection in it . I need the sourcecode of this file.so I need a reverse engineering expart,, Please contact me if you can figure out the code. Contact Me in telegram @Gw_rakib1
Hello, I’m looking for a TradingView indicator that fits my forex trading needs. If you can create or customize one for me, please reach out. I'd appreciate your help! Best regards ridynaty
Hello I would like to build a market screener of the assets according to my inputs. That mean the indicator gets activated in a chart but overwatches all assets which were added in the inputs. The screener should tell me if an asset is in a trend or mean reverting or consolidation market according to the timeframe in the inputs. I have no idea which indicators we need to use and I‘m curious which suggestions you
Create a Backtesting stimulator similar to ------ https://www.mql5.com/en/market/product/101346?source=External but showing BALANCE AND EQUITY on screen including open trades.. Must have experience with Backtesting softwares or can offer a solution to what am looking to fix.. IF you can develop I can go a bit above my budget
I am searching for another experienced, humble, not looking for a big money professional programmer to continue working on EA that is using professional, proven strategy. Я ищу другого опытного, скромного, не ищущего больших денег профессионального программиста, который продолжит работу над EA, используя профессиональную, проверенную стратегию

Project information

Budget
30 - 50 USD

Customer

Placed orders1
Arbitrage count0