The advantages with these additions and changes are that it shows a more traditional moving average like the original author Wellers Wilder suggested and you can see the crossings and changes easier from seeing the colors on the histogram easier than you would by looking at the DI lines alone. The disadvantages are you won't be able to tell when the line is above both DI lines and when the then makes a decrease from there(which can sometimes show a reversal), but personally it doesn't matter too much to me and perhaps to those who care more about seeing the direction than having to focus on all those 3 lines crossing all over the place.
added options to turn on the ADX and ADXR lines
In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.