I have added an option to turn on or off any Moving average by choice and if needed, Heikin-ashi used as source (instead of close) List of Moving Averages which you can use
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 publications is governed by House rules. 您可以收藏它以在圖表上使用。