Pretty much the same as https://www.tradingview.com/script/oCbEFfpg-Indicator-Elder-Impulse-System/, but written from scratch to be simpler to use and the source code easier to read (no offense, LazyBear)
For more info, see http://stockcharts.com/school/doku.php?id=chart_school:chart_analysis:elder_impulse_system
thank you very much
I am using the code for the Elder Impulse system you created and found a minor mistake. When the histogram is below the zero line is taking the numbers higher than the previous one when in reality is lower because it is a negative number, so this is affecting the bar colors when the histogram bar keeps dropping below the zero line.