can some one convert the following pine script code in to an mt4 indicator.. the indicator is a simple MTF ATR stop / volatilty stop indicator and it doesn't repaint, thanks in advance..
can some one convert the following pine script code in to an mt4 indicator.. the indicator is a simple MTF ATR stop / volatilty stop indicator and it doesn't repaint, thanks in advance..
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Hello. Please add MTF in the indicator
please mtf?
thankful
Multi time frame version posted here : https://www.mql5.com/en/forum/179723/page83
can some one convert the following pine script code in to an mt4 indicator.. the indicator is a simple MTF ATR stop / volatilty stop indicator and it doesn't repaint, thanks in advance..
//@version=2
study(title='MTF Volatility Stop V0', shorttitle='mtfVS', overlay=true)
multiplier = input(title='True Range Multiplier', type=float, defval=1.618)
tf = input(title='Timeframe to pool ATR:', type=string, defval='D', confirm=false)
length = input(title='ATR Length', type=integer, defval=20, minval=1)
range = security(tickerid, tf, atr(length))
trend = na(trend[1]) ? +1 : close > vstop[1] ? +1 : close < vstop[1] ? -1 : trend[1]
max_close = change(trend) != 0 ? close : close >= max_close[1] ? close : max_close[1]
min_close = change(trend) != 0 ? close : close <= min_close[1] ? close : min_close[1]
vstop = na(vstop[1]) ? hl2 :
change(trend) > 0 ? close - (multiplier * range) :
trend > 0 ? max(vstop[1], max_close - (multiplier * range)) :
change(trend) < 0 ? close + (multiplier * range) :
trend < 0 ? min(vstop[1], min_close + (multiplier * range)) :
vstop[1]
plot(title='mtfVS', series=vstop, style=circles, color=close>=vstop?lime:red, transp=0, linewidth=2)
plot(title='mtfVS', series=vstop, style=line, color=black, transp=0, linewidth=1)
Multi time frame version of dds of momentum posted here : https://www.mql5.com/en/forum/177564/page19
JosOrange:
I think you're asking for a lot with your coding request. You are probably better off learning to do it yourself
I'm no good in scripting MT4.. so i'm asking help from the veterans of mt4..
can some one convert the following pine script code in to an mt4 indicator.. the indicator is a simple MTF ATR stop / volatilty stop indicator and it doesn't repaint, thanks in advance..
//@version=2
study(title='MTF Volatility Stop V0', shorttitle='mtfVS', overlay=true)
multiplier = input(title='True Range Multiplier', type=float, defval=1.618)
tf = input(title='Timeframe to pool ATR:', type=string, defval='D', confirm=false)
length = input(title='ATR Length', type=integer, defval=20, minval=1)
range = security(tickerid, tf, atr(length))
trend = na(trend[1]) ? +1 : close > vstop[1] ? +1 : close < vstop[1] ? -1 : trend[1]
max_close = change(trend) != 0 ? close : close >= max_close[1] ? close : max_close[1]
min_close = change(trend) != 0 ? close : close <= min_close[1] ? close : min_close[1]
vstop = na(vstop[1]) ? hl2 :
change(trend) > 0 ? close - (multiplier * range) :
trend > 0 ? max(vstop[1], max_close - (multiplier * range)) :
change(trend) < 0 ? close + (multiplier * range) :
trend < 0 ? min(vstop[1], min_close + (multiplier * range)) :
vstop[1]
plot(title='mtfVS', series=vstop, style=circles, color=close>=vstop?lime:red, transp=0, linewidth=2)
plot(title='mtfVS', series=vstop, style=line, color=black, transp=0, linewidth=1)
Mladen Sir, I am aware of pine script but cannot code in mt4.. PLease can you help..
this is how the script looks like. it does'nt repaint..
Mladen Sir, I am aware of pine script but cannot code in mt4.. PLease can you help..
this is how the script looks like. it does'nt repaint..
Please help me add MTF and alert for this indicator
hi
this is very best indicator mr mladen add alert to this indicator . tnx
waiting