Hi ND/Igor,
I found one indicator on TradingView which shows very good results. Is it possible to have this in MT4 ?
Please.
https://www.tradingview.com/script/l...y-Math-Levels/
//@version=3
// LAX Murrey Math Levels
// Copyright by RJ 4/2018
// Specify a starting price, then an interval and Lookback window.
// The indicator will then plot a moving window of murrey math levels.
study(title="LAX Murray Math Levels", shorttitle="LAX_MML", precision=5, overlay=true)
//Inputs
stPrice = input(1.2300, minval=1, title="StartingPrice")
pipInterval = input(125, minval=1, title="Interval in Pips")
lookbackWin = input(64, minval=28, title="Lookback window")
//Calculate precision
mult = .00001
incr = pipInterval * mult
mid1 = 0.0000
top1 = 0.0000
bot1 = 0.0000
mid2 = 0.0000
top2 = 0.0000
bot2 = 0.0000
decimals = abs(log(syminfo.mintick) / log(10))
if decimals == 3
mult = .001
//plot(series=decimals, color=blue)
if barstate.isfirst
mid1:=stPrice
else
if highest(high, lookbackWin) >= (mid1 + incr)
mid1:= highest(high, lookbackWin)
//Plot
m1 = plot(mid1, color= mid1 != mid1[1] ? na : red, title="m1", style=line, linewidth=2)
t1 = plot(mid1 + incr, color = mid1 != mid1[1] ? na : red, title="t1", style=line, linewidth=2)
b1 = plot(mid1 - incr, color = mid1 != mid1[1] ? na : red, title="b1", style=line, linewidth=2)
mid2:=mid1
if lowest(low, lookbackWin) <= (mid2 - incr)
mid2:= lowest(low, lookbackWin)
m2 = plot(mid2, color = mid2 != mid2[1] ? na : red, title="m2", style=line, linewidth=2)
t2 = plot(mid2 + incr, color = mid2 != mid2[1] ? na : red, title="t2", style=line, linewidth=2)
b2 = plot(mid2 - incr, color = mid2 != mid2[1] ? na : red, title="b2", style=line, linewidth=2)
Regards,
Jag
Bookmarks