Re: Already Converted TradingView Indicators to MT4 Indicators

351
mrtools wrote: Wed Dec 06, 2023 4:26 am Mtf added. How are you using this in your trading?
Image
Thank you very much, Mr tools! This graph was confusing because it is just a test graph. But as a rule of thumb I use the 2 X MA Psar (candles) with Follow the line or half trend as a secondary confirmation indicator. Also, I really like STC as a primary indicator. The FTL averaged by Jurik default settings is the 2xMa PSAR at 7 X 21 EMA (H1) PSAR Jurik. Thank you very much for this indicator!!
These users thanked the author RodrigoRT7 for the post (total 3):
mrtools, kenshin281180#, Jimmy


Re: Already Converted TradingView Indicators to MT4 Indicators

352
RodrigoRT7 wrote: Wed Dec 06, 2023 4:41 am Thank you very much, Mr tools! This graph was confusing because it is just a test graph. But as a rule of thumb I use the 2 X MA Psar (candles) with Follow the line or half trend as a secondary confirmation indicator. Also, I really like STC as a primary indicator. The FTL averaged by Jurik default settings is the 2xMa PSAR at 7 X 21 EMA (H1) PSAR Jurik. Thank you very much for this indicator!!
Good Sir would it be possible for you to screenshot your indicator list and the settings for the psar you mentioned? Thanks in advance
These users thanked the author kenshin281180# for the post:
RodrigoRT7

Re: Already Converted TradingView Indicators to MT4 Indicators

354
Request:
Engulfing Detector https://www.tradingview.com/script/ENKp ... nd-Demand/

This is a unique engulfing indicator, which I believe catches the essence of how to trade engulfing candles.
Creating this indicator can inspire additional indicators with similar strategies.

Code: Select all

//@version=4
study("Engulfing Detector", overlay=true, max_bars_back=500)

maxBarsBack = 500

previousRange = open[1] - close[1]

line bullEngulfOpen = na
line bullEngulfLow = na

line bearEngulfOpen = na
line bearEngulfHigh = na

isBullEngulf = previousRange > 0 and close > open[1]
isBearEngulf = previousRange < 0 and close < open[1]

if isBullEngulf
    bullEngulfOpen := line.new(bar_index - 1, open[1], bar_index, open[1], extend=extend.right, color=color.green)
    bullEngulfLow := line.new(bar_index - 1, low < low[1] ? low : low[1], bar_index, low < low[1] ? low : low[1], extend=extend.right, color=color.red)

if isBearEngulf
    bearEngulfOpen := line.new(bar_index - 1, open[1], bar_index, open[1], extend=extend.right, color=color.green)
    bearEngulfHigh := line.new(bar_index - 1, high > high[1] ? high : high[1], bar_index, high > high[1] ? high : high[1], extend=extend.right, color=color.red)


var maxNumberOfEngulfings = 10
bullEngulfingCount = 0
for i = 1 to maxBarsBack
    if not na(bullEngulfOpen[i])
        if low < line.get_y1(bullEngulfLow[i])
            line.delete(bullEngulfOpen[i])
            line.delete(bullEngulfLow[i])
            continue
        if low < line.get_y1(bullEngulfOpen[i])
            //line.set_x2(bullEngulfOpen[i], bar_index)
            line.set_color(bullEngulfOpen[i], color.gray)
            //line.set_extend(bullEngulfOpen[i], extend.none)
            //line.set_x2(bullEngulfLow[i], bar_index)
            line.set_color(bullEngulfLow[i], color.gray)
            //line.set_extend(bullEngulfLow[i], extend.none)
            
        bullEngulfingCount := bullEngulfingCount + 1
        if bullEngulfingCount > maxNumberOfEngulfings
            line.delete(bullEngulfOpen[i])
            line.delete(bullEngulfLow[i])
            
bearEngulfingCount = 0
for i = 1 to maxBarsBack   
    if not na(bearEngulfOpen[i])
        if high > line.get_y1(bearEngulfHigh[i])
            line.delete(bearEngulfOpen[i])
            line.delete(bearEngulfHigh[i])
            continue
        
        if high > line.get_y1(bearEngulfOpen[i])
            //line.set_x2(bearEngulfOpen[i], bar_index)
            line.set_color(bearEngulfOpen[i], color.gray)
            //line.set_extend(bearEngulfOpen[i], extend.none)
            //line.set_x2(bearEngulfHigh[i], bar_index)
            line.set_color(bearEngulfHigh[i], color.gray)
            //line.set_extend(bearEngulfHigh[i], extend.none)
            
        bearEngulfingCount := bearEngulfingCount + 1
        if bearEngulfingCount > maxNumberOfEngulfings
            line.delete(bearEngulfOpen[i])
            line.delete(bearEngulfHigh[i])
Cheers,

Opita

Re: Already Converted TradingView Indicators to MT4 Indicators

355
RodrigoRT7 wrote: Wed Dec 06, 2023 4:41 am Thank you very much, Mr tools! This graph was confusing because it is just a test graph. But as a rule of thumb I use the 2 X MA Psar (candles) with Follow the line or half trend as a secondary confirmation indicator. Also, I really like STC as a primary indicator. The FTL averaged by Jurik default settings is the 2xMa PSAR at 7 X 21 EMA (H1) PSAR Jurik. Thank you very much for this indicator!!
That is quite a unique setup you got, do you use M30 as your main chart?
These users thanked the author opita for the post:
RodrigoRT7
Cheers,

Opita


Re: Already Converted TradingView Indicators to MT4 Indicators

357
RTI (Relative Trend Index) from TradingView for MT4

An early Christmas gift for everyone: the TradingView RTI in MT4

@mrtools @kvak
I have faith in you both.. please let us have your magic..
mrtools wrote: Mon Jul 31, 2023 5:27 am Coded a version, came out terrible, we have an ArraySort function in meta trader but no Array.new or Array.Push and no idea how to code around them, sorry!
kvak wrote: Sun Jul 30, 2023 7:01 pm I was trying it yesterday, but it is look that some lines in code Iam not able to convert....
TransparentTrader wrote: Wed Nov 22, 2023 7:42 am So what now? Still no chance of having this ported to MT4?
xard777 wrote: Sat Jul 29, 2023 8:47 am Have a great weekend everyone...
Xard777
Image

Re: Already Converted TradingView Indicators to MT4 Indicators

358
chris006 wrote: Mon Dec 11, 2023 9:20 am An early Christmas gift for everyone: the TradingView RTI in MT4

@mrtools @kvak
I have faith in you both.. please let us have your magic..


Image

I'll definitely have to test this out on TradingView and MT4 to see if it's the real deal, but this is an amazing gift if everything checks out.

How did you manage to port it to MT4? Did you do this yourself, or did another coder help you translate the code over?
These users thanked the author TransparentTrader for the post (total 2):
chris006, RodrigoRT7

Re: Already Converted TradingView Indicators to MT4 Indicators

359
chris006 wrote: Mon Dec 11, 2023 9:20 am An early Christmas gift for everyone: the TradingView RTI in MT4

@mrtools @kvak
I have faith in you both.. please let us have your magic..

Thanks mr.chris..
m1 chart combination with slope line breakout
These users thanked the author sal for the post (total 5):
Ricstar_8, chris006, Akela, ParallelNative, Jackson Doh
"There is NO GOD higher than TRUTH" - Mahatma Gandhi

Re: Already Converted TradingView Indicators to MT4 Indicators

360
The conversion is the work of a developer that has knowledge in both pine and mql4.

If anyone wants to do similar conversion from TradingView script to mql4 (paid job), I can pass on his details by personal message.

TransparentTrader wrote: Mon Dec 11, 2023 10:03 am I'll definitely have to test this out on TradingView and MT4 to see if it's the real deal, but this is an amazing gift if everything checks out.

How did you manage to port it to MT4? Did you do this yourself, or did another coder help you translate the code over?
These users thanked the author chris006 for the post (total 4):
TransparentTrader, RodrigoRT7, commodus, k_khan_bt


Who is online

Users browsing this forum: Ahrefs [Bot], BeatlemaniaSA, Proximic [Bot], talaate, URS and 40 guests