Page 47 of 66

Re: Already Converted TradingView Indicators to MT4 Indicators

Posted: Sat Sep 07, 2024 8:43 pm
by Glad27
Hi everyone, would it be possible to see a converted version of Cumulative Delta as seen here in this link please?

https://www.tradingview.com/script/GxBN ... iodic-EMA/

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

//@version=4
study("Cumulative Delta Volume", "CDV")
linestyle = input(defval = 'Candle', title = "Style", options = ['Candle', 'Line'])
hacandle = input(defval = true, title = "Heikin Ashi Candles?")
showma1 = input(defval = false, title = "SMA 1", inline = "ma1")
ma1len = input(defval = 50, title = "", minval = 1, inline = "ma1")
ma1col = input(defval = color.lime, title = "", inline = "ma1")
showma2 = input(defval = false, title = "SMA 2", inline = "ma2")
ma2len = input(defval = 200, title = "", minval = 1, inline = "ma2")
ma2col = input(defval = color.red, title = "", inline = "ma2")
showema1 = input(defval = false, title = "EMA 1", inline = "ema1")
ema1len = input(defval = 50, title = "", minval = 1, inline = "ema1")
ema1col = input(defval = color.lime, title = "", inline = "ema1")
showema2 = input(defval = false, title = "EMA 2", inline = "ema2")
ema2len = input(defval = 200, title = "", minval = 1, inline = "ema2")
ema2col = input(defval = color.red, title = "", inline = "ema2")
colorup = input(defval = color.lime, title = "Body", inline = "bcol")
colordown = input(defval = color.red, title = "", inline = "bcol")
bcolup = input(defval = #74e05e, title = "Border", inline = "bocol")
bcoldown = input(defval = #ffad7d, title = "", inline = "bocol")
wcolup = input(defval = #b5b5b8, title = "Wicks", inline = "wcol")
wcoldown = input(defval = #b5b5b8, title = "", inline = "wcol")

tw = high - max(open, close)
bw = min(open, close) - low
body = abs(close - open)

_rate(cond) =>
ret = 0.5 * (tw + bw + (cond ? 2 * body : 0)) / (tw + bw + body)
ret := nz(ret) == 0 ? 0.5 : ret
ret

deltaup = volume * _rate(open <= close)
deltadown = volume * _rate(open > close)
delta = close >= open ? deltaup : -deltadown
cumdelta = cum(delta)
float ctl = na
float o = na
float h = na
float l = na
float c = na
if linestyle == 'Candle'
o := cumdelta[1]
h := max(cumdelta, cumdelta[1])
l := min(cumdelta, cumdelta[1])
c := cumdelta
ctl
else
ctl := cumdelta

plot(ctl, title = "CDV Line", color = color.blue, linewidth = 2)

float haclose = na
float haopen = na
float hahigh = na
float halow = na
haclose := (o + h + l + c) / 4
haopen := na(haopen[1]) ? (o + c) / 2 : (haopen[1] + haclose[1]) / 2
hahigh := max(h, max(haopen, haclose))
halow := min(l, min(haopen, haclose))

c_ = hacandle ? haclose : c
o_ = hacandle ? haopen : o
h_ = hacandle ? hahigh : h
l_ = hacandle ? halow : l

plotcandle(o_, h_, l_, c_, title='CDV Candles', color = o_ <= c_ ? colorup : colordown, bordercolor = o_ <= c_ ? bcolup : bcoldown, wickcolor = o_ <= c_ ? bcolup : bcoldown)

plot(showma1 and linestyle == "Candle" ? sma(c_, ma1len) : na, title = "SMA 1", color = ma1col)
plot(showma2 and linestyle == "Candle" ? sma(c_, ma2len) : na, title = "SMA 2", color = ma2col)
plot(showema1 and linestyle == "Candle" ? ema(c_, ema1len) : na, title = "EMA 1", color = ema1col)
plot(showema2 and linestyle == "Candle" ? ema(c_, ema2len) : na, title = "EMA 2", color = ema2col)

Thanks in advance for any help :)

Re: Already Converted TradingView Indicators to MT4 Indicators

Posted: Sat Sep 14, 2024 2:14 am
by dasio86
mrtools wrote: Sat Sep 02, 2023 8:47 am Follow The Line indicator + Angle Of Attack for MT4

Not really sure how close to the TradingView versions these are, but made a Follow the line and an angle of follow the line, seems to work ok, just not sure how close to the originals these are.

Both of these codes are the same but one is situated in your indicator subwindow and the other on your main chart. The original author stated that both of these indicators were designed to work in tandem and encourages analysts to adjust the settings on one (or both) to create a system.

Angle Of Attack

The Angle of attack indicator is resides in the subwindow because it's used for evaluating trend angles and will signal analysts when it's time to possibly "add" or "reduce" their positions.

Follow The Line

The Follow The Line indicator is the main chart MA-style indicator. Essentially a trend trading tool which with a recommendation of being combined with other confirmation indicators (at the time). Follow The Line uses the Bollinger Bands' Deviation as one of it's core calculations and combines it with the ATR and several traditional indicators to create a Moving Average that's useful for gauging market sentiment.

Both of these codes have been optimized with a goal of being a bit better and more versatile for trend analysis.
Hi, thank you for your great works. THere is a MT5 version of theese indicator?
THank you

Re: Already Converted TradingView Indicators to MT4 Indicators

Posted: Sat Sep 14, 2024 5:41 am
by mrtools
dasio86 wrote: Sat Sep 14, 2024 2:14 am Hi, thank you for your great works. THere is a MT5 version of theese indicator?
THank you
Not that I know of will work on some versions.

Re: Already Converted TradingView Indicators to MT4 Indicators

Posted: Sat Sep 14, 2024 9:22 am
by RodrigoRT7
dasio86 wrote: Sat Sep 14, 2024 2:14 am Hi, thank you for your great works. THere is a MT5 version of theese indicator?
THank you
I really like Follow the line, if you use it in stock trades, use the correlation in the index which will help you give you direction.

Re: Already Converted TradingView Indicators to MT4 Indicators

Posted: Sun Sep 15, 2024 12:56 pm
by mrtools
dasio86 wrote: Sat Sep 14, 2024 2:14 am Hi, thank you for your great works. THere is a MT5 version of theese indicator?
THank you
Converted them to mt5.

Re: Already Converted TradingView Indicators to MT4 Indicators

Posted: Thu Sep 19, 2024 5:35 am
by dasio86
mrtools wrote: Sun Sep 15, 2024 12:56 pm Converted them to mt5.
Thank you very much.
I have a potential commercial request for you @mrtools. I'm unable to send private message. Can you please enter in contact with me?
Thank you

Re: Already Converted TradingView Indicators to MT4 Indicators

Posted: Wed Oct 23, 2024 11:51 am
by Cryptnhl
Hi everyone!
Please if you can make this indicator.
It is open source code from Trading View.
Hope that we can have this for MT4 ( or mt5)
https://www.tradingview.com/script/N1UG ... attern-RH/

Re: Already Converted TradingView Indicators to MT4 Indicators

Posted: Wed Oct 23, 2024 7:14 pm
by kvak
Cryptnhl wrote: Wed Oct 23, 2024 11:51 am Hi everyone!
Please if you can make this indicator.
It is open source code from Trading View.
Hope that we can have this for MT4 ( or mt5)
https://www.tradingview.com/script/N1UG ... attern-RH/
Hello,, it is out of my skills, sorry...

Re: Already Converted TradingView Indicators to MT4 Indicators

Posted: Thu Oct 24, 2024 2:13 am
by cryptnnh
kvak wrote: Wed Oct 23, 2024 7:14 pm Hello,, it is out of my skills, sorry...
Help me please! :cry:

Re: Already Converted TradingView Indicators to MT4 Indicators

Posted: Sat Nov 02, 2024 4:55 am
by siphoMaseti
mrtools wrote: Sun Sep 15, 2024 12:56 pm Converted them to mt5.
.