Hi Jelle, maybe you can help me, I need to draw a candle or bar chart on intraday stockprices and I would like to see the dates and times on the x-axis.
As you know the trading time is not continuous, Can you suggest me a method to have a nice candle chart with no gaps for the non trading hours? I tried also with the timeseries, but the problem is the same... Thanks
Please check the comments here:
http://www.mathworks.com/matlabcentral/fileexchange/14151-ta-lib-0-3-0-as-mex . For the given data the results for the EMA and SMA are equivalent; which I've just checked is evidently correct. Perhaps the apparent problems lies in the fact there are two different exponents have been used with the EMA in the past: one has exponent = 2/Period and the other has exponent = 2/(1+Period). I no longer think there's a problem. I'm sorry to have bothered you. Thanks again for your code.
I have checked the TA_EMA output using both TA-Lib and the MexFiles wrapper posted here. They appear to give same results. Richard if you could send your expected results in a working case I can go further to locate where the problem is.
Thank you for your comment. I will check as soon as possible if the error depends on the MEXFUNCTION wrapper I wrote or if there are some other issues in the TA-Lib library. I will post here the answer.