Converting a typical tradingview indicator into MQL5

MQL5 Indicadores Conversão

Termos de Referência

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

Respondido

1
Desenvolvedor 1
Classificação
(13)
Projetos
29
28%
Arbitragem
3
0% / 0%
Expirado
1
3%
Carregado
2
Desenvolvedor 2
Classificação
(61)
Projetos
89
16%
Arbitragem
4
25% / 25%
Expirado
7
8%
Trabalhando
3
Desenvolvedor 3
Classificação
(13)
Projetos
19
16%
Arbitragem
3
0% / 33%
Expirado
3
16%
Trabalhando
4
Desenvolvedor 4
Classificação
(1)
Projetos
1
0%
Arbitragem
0
Expirado
0
Livre
5
Desenvolvedor 5
Classificação
(2459)
Projetos
3096
66%
Arbitragem
77
48% / 14%
Expirado
340
11%
Trabalhando
6
Desenvolvedor 6
Classificação
(513)
Projetos
776
63%
Arbitragem
33
27% / 45%
Expirado
23
3%
Trabalhando
7
Desenvolvedor 7
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
8
Desenvolvedor 8
Classificação
(12)
Projetos
16
19%
Arbitragem
2
50% / 50%
Expirado
0
Livre
9
Desenvolvedor 9
Classificação
(1)
Projetos
1
0%
Arbitragem
1
0% / 0%
Expirado
0
Trabalhando
10
Desenvolvedor 10
Classificação
(181)
Projetos
256
21%
Arbitragem
17
65% / 18%
Expirado
1
0%
Ocupado
11
Desenvolvedor 11
Classificação
(302)
Projetos
452
65%
Arbitragem
5
40% / 0%
Expirado
4
1%
Trabalhando
12
Desenvolvedor 12
Classificação
(93)
Projetos
119
41%
Arbitragem
0
Expirado
3
3%
Trabalhando
Pedidos semelhantes
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, используя профессиональную, проверенную стратегию

Informações sobre o projeto

Orçamento
30 - 50 USD

Cliente

Pedidos postados1
Número de arbitragens0