Heiken Ashi Moving Average Indicator


Category:
0
0

Hello Mr. Hanh

Is it possible to create a Heiken Ashi Moving Average indicator for TOS charts? I am currently using one with Tradingview (but the source code is hidden) and it is good on any time frame.

Is it also possible to assign colors when crossing over?

Please view the image below for the Tradingview one.

Thank you for your time!

Attachments:
Marked as spam
Posted by (Questions: 1, Answers: 4)
Asked on October 7, 2021 4:29 pm
315 views
0
Private answer

There a bit more going on there than just a moving average and without the source code we can't replicate it.

Almost all moving average chart studies are based on the close price of the ticker symbol being charted. For Heiken-Ashi candles, the close is always computed using (open + high + low + close) / 4.

Now that we know this, you can use any of the moving average chart studies included with Thinkorswim. Then change input parameter named "price" to "(O+H+L+C)/4". This is selected using the drop-down list attached to the price input. After you adjust this setting the moving average will be computed based on the Heiken-Ashi close of each candle on the chart.

If you want something that changes color based on the direction of the moving average you can apply this method to the HullMovingAvg study included with Thinkorswim.

I suspect the one from TradingView that you referenced is using two moving averages of different lengths. But it may be using two moving averages with one set to the average of the Heiken-Ashi high and the other being set to the average of the Heiken-Ashi low.

We do not try to replicate proprietary studies in this forum. Please review our Terms and Conditions for additional details about what is permitted in this forum:

https://www.hahn-tech.com/terms-and-conditions/

 

Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on October 7, 2021 4:45 pm