Can anyone please convert this indicator for mt5, it gives insanly good signals
Inserted Code
// ZScore Indicator // Assembled by @chewie76 on UseThinkScript // Modified for TradingView by egshih // @version=4 study("Z-Score Indicator",overlay=true) //Inputs price = close length = input(20) ZavgLength = input(20) //Initialize values oneSD = stdev(price,length) avgClose = sma(price,length) ofoneSD = oneSD*price[1] Zscorevalue = ((price-avgClose)/oneSD) avgZv = sma(Zscorevalue,20) //Compute and plot Z-Score avgZscore = sma(Zscorevalue,ZavgLength) Zscore = ((price-avgClose)/oneSD) //Plot zero line and extreme bands zero = 0 two = 2 one = 1 negone = -1 negtwo = -2 three = 3 negthree = -3 //Buy Conditions, currently set at 0.75 conditionbuy = crossover(Zscore,avgZscore) and avgZscore < -1 conditionsell = crossunder(Zscore,avgZscore)and avgZscore > 1 //Plot Buy and Sell Arrows plotshape(conditionbuy, style=shape.triangleup, color=color.rgb(0, 167, 75),location=location.belowbar, size=size.small) plotshape(conditionsell, style=shape.triangledown, color=color.rgb(172, 34, 0),location=location.abovebar, size=size.small) //Alert alertcondition(conditionbuy, title='Buy Alert', message='Buy Alert') alertcondition(conditionsell, title='Sell Alert', message='Sell Alert')