Page 42 of 66

Re: Already Converted TradingView Indicators to MT4 Indicators

Posted: Sun Apr 14, 2024 8:35 pm
by A_5
jeffx33 wrote: Sun Mar 31, 2024 1:38 am Hello dear coders, I hope everyone is having a good week end.
Could anyone please convert this awesome indicator from TV to mt4 that displays other time frame candle on the same chart?
Many thanks

https://www.tradingview.com/script/ZEzP ... e-Display/
There are mt4 variations of this indicator. Just search the forum. Talking from experience. I I have on my pc mt4. I'll post it, but I'm not with my pc at the moment

Re: Already Converted TradingView Indicators to MT4 Indicators

Posted: Mon Apr 15, 2024 12:57 am
by A_5
jeffx33 wrote: Sun Mar 31, 2024 1:38 am Hello dear coders, I hope everyone is having a good week end.
Could anyone please convert this awesome indicator from TV to mt4 that displays other time frame candle on the same chart?
Many thanks

https://www.tradingview.com/script/ZEzP ... e-Display/
Go through them and hopefully you get what you needed

Re: Already Converted TradingView Indicators to MT4 Indicators

Posted: Sun Apr 28, 2024 10:04 pm
by dmnik
;)

Re: Already Converted TradingView Indicators to MT4 Indicators

Posted: Thu May 09, 2024 2:17 am
by ionone
dmnik wrote: Sun Apr 28, 2024 10:04 pm;)
some of these scripts are awesome!
thanks for sharing

there are some major paid scripts that I wanted to test for a while (like EzAlgo)

Re: Already Converted TradingView Indicators to MT4 Indicators

Posted: Thu May 16, 2024 10:44 am
by menber100
Dear coders, please convert this tradingview mt4 indicator, eternally grateful.

Re: Already Converted TradingView Indicators to MT4 Indicators

Posted: Sat May 18, 2024 8:59 am
by YeungKwan
Mr tools! This is a good indicator. please convert this indicator to mt4. thank you very much!!

Re: Already Converted TradingView Indicators to MT4 Indicators

Posted: Mon May 20, 2024 3:41 am
by kvak
YeungKwan wrote: Sat May 18, 2024 8:59 am Mr tools! This is a good indicator. please convert this indicator to mt4. thank you very much!!
Maybe try THIS is close.

Re: Already Converted TradingView Indicators to MT4 Indicators

Posted: Mon May 20, 2024 2:45 pm
by YeungKwan
kvak wrote: Mon May 20, 2024 3:41 am Maybe try THIS is close.
Thanks kvak for this amazing tool you have given us. I love it.

Is it possible added Arrows. On/off button . Candles.
Thank you in advance.

Re: Already Converted TradingView Indicators to MT4 Indicators

Posted: Sun May 26, 2024 10:36 pm
by oskison
https://pl.tradingview.com/v/r6dAP7yi/

hello


Does anyone know and be able to convert this supertrend indicator from pinescript code to mql4 code?
This indicator is slightly different from the supertrend indicators on this website, mainly when it comes to ATR calculations on which the supertrend is based.

Code: Select all

//@version=4
study("Supertrend", overlay = true, format=format.price, precision=2, resolution="")

Periods = input(title="ATR Period", type=input.integer, defval=10)
src = input(hl2, title="Source")
Multiplier = input(title="ATR Multiplier", type=input.float, step=0.1, defval=3.0)
changeATR= input(title="Change ATR Calculation Method ?", type=input.bool, defval=true)
showsignals = input(title="Show Buy/Sell Signals ?", type=input.bool, defval=true)
highlighting = input(title="Highlighter On/Off ?", type=input.bool, defval=true)
atr2 = sma(tr, Periods)
atr= changeATR ? atr(Periods) : atr2
up=src-(Multiplier*atr)
up1 = nz(up[1],up)
up := close[1] > up1 ? max(up,up1) : up
dn=src+(Multiplier*atr)
dn1 = nz(dn[1], dn)
dn := close[1] < dn1 ? min(dn, dn1) : dn
trend = 1
trend := nz(trend[1], trend)
trend := trend == -1 and close > dn1 ? 1 : trend == 1 and close < up1 ? -1 : trend
upPlot = plot(trend == 1 ? up : na, title="Up Trend", style=plot.style_linebr, linewidth=2, color=color.green)
buySignal = trend == 1 and trend[1] == -1
plotshape(buySignal ? up : na, title="UpTrend Begins", location=location.absolute, style=shape.circle, size=size.tiny, color=color.green, transp=0)
plotshape(buySignal and showsignals ? up : na, title="Buy", text="Buy", location=location.absolute, style=shape.labelup, size=size.tiny, color=color.green, textcolor=color.white, transp=0)
dnPlot = plot(trend == 1 ? na : dn, title="Down Trend", style=plot.style_linebr, linewidth=2, color=color.red)
sellSignal = trend == -1 and trend[1] == 1
plotshape(sellSignal ? dn : na, title="DownTrend Begins", location=location.absolute, style=shape.circle, size=size.tiny, color=color.red, transp=0)
plotshape(sellSignal and showsignals ? dn : na, title="Sell", text="Sell", location=location.absolute, style=shape.labeldown, size=size.tiny, color=color.red, textcolor=color.white, transp=0)
mPlot = plot(ohlc4, title="", style=plot.style_circles, linewidth=0)
longFillColor = highlighting ? (trend == 1 ? color.green : color.white) : color.white
shortFillColor = highlighting ? (trend == -1 ? color.red : color.white) : color.white
fill(mPlot, upPlot, title="UpTrend Highligter", color=longFillColor)
fill(mPlot, dnPlot, title="DownTrend Highligter", color=shortFillColor)
alertcondition(buySignal, title="SuperTrend Buy", message="SuperTrend Buy!")
alertcondition(sellSignal, title="SuperTrend Sell", message="SuperTrend Sell!")
changeCond = trend != trend[1]
alertcondition(changeCond, title="SuperTrend Direction Change", message="SuperTrend has changed direction!")
Image

Re: Already Converted TradingView Indicators to MT4 Indicators

Posted: Mon May 27, 2024 5:27 am
by mrtools
oskison wrote: Sun May 26, 2024 10:36 pm https://pl.tradingview.com/v/r6dAP7yi/

hello


Does anyone know and be able to convert this supertrend indicator from pinescript code to mql4 code?
This indicator is slightly different from the supertrend indicators on this website, mainly when it comes to ATR calculations on which the supertrend is based.

Code: Select all

//@version=4
study("Supertrend", overlay = true, format=format.price, precision=2, resolution="")

Periods = input(title="ATR Period", type=input.integer, defval=10)
src = input(hl2, title="Source")
Multiplier = input(title="ATR Multiplier", type=input.float, step=0.1, defval=3.0)
changeATR= input(title="Change ATR Calculation Method ?", type=input.bool, defval=true)
showsignals = input(title="Show Buy/Sell Signals ?", type=input.bool, defval=true)
highlighting = input(title="Highlighter On/Off ?", type=input.bool, defval=true)
atr2 = sma(tr, Periods)
atr= changeATR ? atr(Periods) : atr2
up=src-(Multiplier*atr)
up1 = nz(up[1],up)
up := close[1] > up1 ? max(up,up1) : up
dn=src+(Multiplier*atr)
dn1 = nz(dn[1], dn)
dn := close[1] < dn1 ? min(dn, dn1) : dn
trend = 1
trend := nz(trend[1], trend)
trend := trend == -1 and close > dn1 ? 1 : trend == 1 and close < up1 ? -1 : trend
upPlot = plot(trend == 1 ? up : na, title="Up Trend", style=plot.style_linebr, linewidth=2, color=color.green)
buySignal = trend == 1 and trend[1] == -1
plotshape(buySignal ? up : na, title="UpTrend Begins", location=location.absolute, style=shape.circle, size=size.tiny, color=color.green, transp=0)
plotshape(buySignal and showsignals ? up : na, title="Buy", text="Buy", location=location.absolute, style=shape.labelup, size=size.tiny, color=color.green, textcolor=color.white, transp=0)
dnPlot = plot(trend == 1 ? na : dn, title="Down Trend", style=plot.style_linebr, linewidth=2, color=color.red)
sellSignal = trend == -1 and trend[1] == 1
plotshape(sellSignal ? dn : na, title="DownTrend Begins", location=location.absolute, style=shape.circle, size=size.tiny, color=color.red, transp=0)
plotshape(sellSignal and showsignals ? dn : na, title="Sell", text="Sell", location=location.absolute, style=shape.labeldown, size=size.tiny, color=color.red, textcolor=color.white, transp=0)
mPlot = plot(ohlc4, title="", style=plot.style_circles, linewidth=0)
longFillColor = highlighting ? (trend == 1 ? color.green : color.white) : color.white
shortFillColor = highlighting ? (trend == -1 ? color.red : color.white) : color.white
fill(mPlot, upPlot, title="UpTrend Highligter", color=longFillColor)
fill(mPlot, dnPlot, title="DownTrend Highligter", color=shortFillColor)
alertcondition(buySignal, title="SuperTrend Buy", message="SuperTrend Buy!")
alertcondition(sellSignal, title="SuperTrend Sell", message="SuperTrend Sell!")
changeCond = trend != trend[1]
alertcondition(changeCond, title="SuperTrend Direction Change", message="SuperTrend has changed direction!")
Image
Try here