NO LINKS, SOURCE CODE REQUESTS OR MODIFICATION OF DECOMPILED INDICATORS. To avoid post deletion please follow the rules.


Re: Already Converted TradingView Indicators to MT4 Indicators

#22
Banzai wrote:
Sun Jul 19, 2020 1:21 am
josi wrote:
Sat Jul 18, 2020 7:17 pm
This is all I get - even after fiddling with it for some time.
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:
Absolute Momentum.png

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
screenshot.28.jpg
Morphed Sine Wave 01.mq4
(4.09 KiB) Downloaded 178 times
Enhanced Instantaneous Cycle Period - Dr. John Ehlers 01.mq4
(12.81 KiB) Downloaded 171 times

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/
screenshot.28.jpg
Zero-Lag smoothed cycle 02.ex4
(12.73 KiB) Downloaded 67 times
Zero-Lag smoothed cycle 02.mq4
(7.95 KiB) Downloaded 93 times


Attachments 45
  1. Similar Topics

    1. Martin indicators on Tradingview?

      0 Replies 2057 Views

      by TECHHDATE07, Mon Jun 22, 2020 8:05 pm in MT4 Indicators

      0 Replies
      2057 Views
    2. Tradingview plotter to mt4 issue

      0 Replies 810 Views

      by meemee, Fri Jul 03, 2020 4:37 am in Coding Help

      0 Replies
      810 Views
    3. How Do You Like FS Indicators?

      13 Replies 6097 Views

      by ionone, Sun Jul 05, 2020 7:25 pm in MT4 Indicators

      13 Replies
      6097 Views

Return to “MT4 Indicators”