Since I had a look at this and happen to update it to v5 and solved couple of issues like transp argument; here is the code for anyone still using it. Enjoy!
indicator(title='obv-adx', shorttitle='ob-ad', format=format.price, precision=4) len = input.int(22, minval=1, title='DI Length') lensig = input.int(22, title='ADX Smoothing', minval=1, maxval=50) showADX1 = input(title='ADX Line or Histogram', defval=false) showADX2 = input(title='Background Highlighting', defval=false)
//================ADX========================= up = ta.change(ta.obv) down = -ta.change(ta.obv) plusDM = na(up) ? na : up > down and up > 0 ? up : 0 minusDM = na(down) ? na : down > up and down > 0 ? down : 0 trur = ta.rma(ta.stdev(ta.obv, len), len) plus = fixnan(100 * ta.ema(plusDM, len) / trur) minus = fixnan(100 * ta.ema(minusDM, len) / trur) sum = plus + minus adx = 100 * ta.ema(math.abs(plus - minus) / (sum == 0 ? 1 : sum), lensig)
@kocurekc hola, como puedo descargar y utilizar tu indicador OBV - ADX y DI +/- ? gracias
Gann-Mode
⋅
Excellent Contribution!! Thank you!!
zschonn
⋅
@kocurekc thanks mate for your invention. How OBV works here ? should I assume, it shows bullish when it reaches above the certain SMA level ?
kocurekc
⋅
@zschonn, I've always used it for volume confirmation. I've turn on the background highlighting, you can see the points in time which a better to make a move counter to the market. Volume (change in direction) will typically precede price for sustainable moves
Davechart
⋅
Really nice indicator ! Thanks you so much ! Is there a way to set an alert when the green/red arrows stop. I tried many combinations without success. Thanks again.