The problem is,my code does not match up with the default heken ashi chart provided by QS.YFrom visual inspection,its clear we are defining things a bit differently.
There are many versions of code for heiken ashi depending on
how one uses modifiedclose and opens in the formula.could you tell me how you define HaOpen and Haclose?
also,when i plot,is there an option to plot "candles" as in stylecandle?
If I reference the formula in the link vs the Heiken Ashi Chart in QuantShare,there appears to be a one day mismatch in the HaOpen between the formula below and the Open on the default Heiken AQshi chart.Specifically,the HaOpen on the default chart does not equal the HaOpen from the formula below.The OPEN of the default Chart i= the HaOpen of the formula below for the next day.It is off by one day.That affects all the other values.If one plots the formula below on a candlestick chart(not Heiken ashi),and compares that with the default Heiken Ashi,you should notice the one day discrepency
Trading financial instruments, including foreign exchange on margin, carries a high level of risk and is not suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to invest in financial instruments or foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with trading and seek advice from an independent financial advisor if you have any doubts.