DreamsDefined

Real Price for Heikin Ashi Charts

The indicator is in the top left of the screen! That's all there is, by design.

This is a super simple indicator that allows you to see what the real price of a candle was when using Heikin Ashi charts, while not cluttering up your screen.

HA charts are a great way to help those who can be spooked by the chaos of the markets (I'm one!), but they have a big drawback in that the price you see on a HA candle is often significantly different from the real price that you would trade on. This brings issues of unrealistic expectations of profits/losses, and also makes back testing a strategy very difficult. I still wouldn't recommend ever using TradingView's "strategy" tool when using HA charts, but using this indicator you can do accurate manual back tests.

There's nothing plotted on the screen given that there's no real point in it, but you can make the lines appear if you wish - just go into settings and change the transparency.

The order of the numbers on the indicator match the OHLC (Open, High, Low, Close) format.

There's also settings to turn off one or more of the OHLC values, simply open the settings and go to Inputs. This could be useful for some people, as the High and Low values of HA candles are the same as regular candles. Only the Open and Close are different.

Any queries let me know.

DreamsDefined
オープンソーススクリプト

TradingViewの精神に則り、このスクリプトの作者は、トレーダーが理解し検証できるようにオープンソースで公開しています。作者に敬意を表します!無料で使用することができますが、このコードの公開物での再利用には、ハウスルールに準拠する必要があります。お気に入りに登録してチャート上でご利用頂けます。

チャートでこのスクリプトを利用したいですか?

コメント

thanks man, helped a lot.

for //@version=4, just replace "ticker" with "syminfo.ticker" and "period" with "timeframe.period"
+8 返信
Very useful and practical indicator. You made my life way easier ;)
+2 返信
@cosimo86, Great to hear! Glad it's helped :)
返信
Genius!
+2 返信
mikehenschke mikehenschke
.... and Thank you. Can't wait to check this out.
+1 返信
DreamsDefined mikehenschke
@mikehenschke, Thanks! Hope it's useful for you :)
返信
Very useful to check the real prices on HA charts. I have a simple MA strategy on HA charts, but instead of using HA open and close prices, I wanted to use the real prices in back testing for entry and exit orders. Can you help me understand how i can do it ? I see the strategy.entry and exit orders doesnot have an option of close and open prices for long and short positions ? Really appreciate your time and help.
+1 返信
sam_packer Bojjesem
@Bojjesem, hi there, I too have a similar problem when using HA for a Weis Wave indicator. Have you found a solution for this issue? Thanks for your time
返信
Thanks mate, this really helps with backtesting HA strategies. I changed your script to plot just the close price of each candle over the HA candle.
+1 返信
DreamsDefined MattBritain
@MattBritain, Great! Glad it was useful for you :)
+2 返信