Could also be useful for using HA calcs in strategy scripts on normal candles chart for proper backtesting.
I adapted this to v4 from original v2 script by @samtsui. If you like please remember to give him a Thumbs Up for his original version! ->
LTC (preferred): LTDaAe7nPzbpBhZVT9o5f9f8M3aZSPa46Y
Good work man!