Re: Already Converted TradingView Indicators to MT4 Indicators

22
Banzai wrote: Sun Jul 19, 2020 1:21 am

OK, I changed it to square histogram.

I tested on
IC Markets (SC) version: 4.00 build 1264 11 May 2020
Oanda version: 4.00 build 1260 24 Jan 2020


and they work fine.
Maybe use my .ex4 only. Don't put .mq4 in the folder and see what's happened.

This MT4 version doesn't come close to TradingView.
I'm not sure if the colors are right?

For his version, we will call it 1.00, 1.01, 1.02, etc....
For my version, I will call it a,b,c,d,... and attached the letter to his version.

------------------------------------------------------------------------------------
edit, July 24th, 2020, noon, PST
the coder concluded that this indicator doesn't work 100% on MT4.
Please go to TradingView:
https://www.tradingview.com/script/4DvA ... ator-v2-0/
------------------------------------------------------------------------------------

Hi, this doesn't work on my MT4 build 1320.
Is there a possibility to update this one? Would much appreciate it.

Convert Trading view to MT4

23
Hi all,

Im not sure how difficult this is or how time consuming, but if someone is willing would you convert this code for use in MT4 that would be most helpful.

Much appreciated if possible

Thank you.

Code: Select all

//@version=3
//@author=cI8DH

study(title="Accumulation/Distribution Money Flow (ADMF) [cI8DH]", shorttitle="ADMF [cI8DH]", precision=0)

len             = input(14, minval=1, title="length") // EMA27 = SMMA/RMA14 ~ lunar month
price_enable    = input(true, title="factor price (=money flow)")
AD_weight       = input(0.0, minval=0.0, maxval=1.0, step=0.5, title="A/D weight (at 1 all volume is included)")

AD_ratio        = nz(change(close)/tr(true)) // 'True Range' fixes issues caused by gaps in price
AD_ratio        := (1-AD_weight)*AD_ratio+sign(AD_ratio)*AD_weight

trl             = min(low,close[1]), trh = max(high,close[1])
vol             = if price_enable
    volume*hlc3
else
    volume

plot(rma(vol*AD_ratio,len), style=line, color=#4477ffff, title="A/D Money Flow")
hline(0, color=#88888888, linestyle=dotted, title="0 line")

Re: Convert Trading view to MT4

25
Deepfreeze wrote: Sun Feb 28, 2021 5:43 pm Hi all,

Im not sure how difficult this is or how time consuming, but if someone is willing would you convert this code for use in MT4 that would be most helpful.

Much appreciated if possible

Thank you.

Code: Select all

//@version=3
//@author=cI8DH

study(title="Accumulation/Distribution Money Flow (ADMF) [cI8DH]", shorttitle="ADMF [cI8DH]", precision=0)

len             = input(14, minval=1, title="length") // EMA27 = SMMA/RMA14 ~ lunar month
price_enable    = input(true, title="factor price (=money flow)")
AD_weight       = input(0.0, minval=0.0, maxval=1.0, step=0.5, title="A/D weight (at 1 all volume is included)")

AD_ratio        = nz(change(close)/tr(true)) // 'True Range' fixes issues caused by gaps in price
AD_ratio        := (1-AD_weight)*AD_ratio+sign(AD_ratio)*AD_weight

trl             = min(low,close[1]), trh = max(high,close[1])
vol             = if price_enable
    volume*hlc3
else
    volume

plot(rma(vol*AD_ratio,len), style=line, color=#4477ffff, title="A/D Money Flow")
hline(0, color=#88888888, linestyle=dotted, title="0 line")
+1 on this request
thanks!


Re: Absolute Momentum - TradingView to MT4 Indicators

26
Hi Banzai,

I know there are many momentum indicators on this forum but this one seems to be a bit different, even different to the Momentum Normalized v1.mq4 indicator that is available here so I hope that you can spare the time to convert this one from its tradingview code.

After reading the article Absolute Momentum: A Simple Rule-Based Strategy and Universal Trend-Following Overlay posted in this forum here app.php/attach/file/3309284 I searched for an MT4 Absolute Momentum indicator online and I was surprised that I only found one Absolute Momentum indicator and it was on tradingview so here is the code below. Please, could you convert this Absolute Momentum code to MT4 code so we can all test this in our trading strategies to see if it gives us an edge? Thanks.

Code: Select all

study("Absolute Momentum")

p = input(12,minval=1,title = "LookBack Period")
sym = input(title="Symbol", type=symbol, defval="SHY")
sm = input(1,minval=1,title = "Smooth Period")

rc = roc(close,p)

bil = security(sym,"M",close)
bilr = roc(bil,p)

rcdm = rc-bilr
srcdm = sma(rcdm,sm)

line = 0

plot(rcdm,color= red,title= "Absolute Momentum" )
plot(srcdm,color = blue,title="Smooth Abs Momentum")
plot(line , color = gray,title="Zero Line")

barcolor(rcdm > 0 ? lime:red)

And here is what the indicator looks like:

Re: Already Converted TradingView Indicators to MT4 Indicators

28
two indicators converted from TradingVIew :
Morphed Sine Wave
https://fr.tradingview.com/script/ZyfG9 ... Sine-Wave/

and

Enhanced Instantaneous Cycle Period - Dr. John Ehlers
https://fr.tradingview.com/script/G3js5 ... hn-Ehlers/

not sure how to use the latter and the first one is pretty nice
These users thanked the author ionone for the post (total 7):
wojtek, Thangarasu, Jimmy, ChuChu Rocket, A_5, FXchaos, pin12

Zero-Lag Smoothed Cycle

30
another converted code from TradingView

this one is interesting : it creates a pseudo zero lag filtering by filtering two times a differentiated signal (revolving around zero) by half the period and then inverting the phase. Nice trick to implement some kind of "zero lag" filtering
https://fr.tradingview.com/script/8CZDB ... hed-Cycle/
These users thanked the author ionone for the post (total 4):
ChuChu Rocket, kvak, A_5, pin12


Who is online

Users browsing this forum: alimpe2000, ChatGPT [Bot], friend4you, JohnnyRy, PaperLi [Bot], Ruby [Bot], Sogou [Bot], specialkey, vvFish and 72 guests