Display data in a html table in Console
I am trying to implement the Working Example for "Rate of Change", documented here:
https://app.cloudquant.com/#/glossary/281
When I run the working example, the data in the console does not show up as a table, but rather is is the raw html.
Here is my excerpt from my console output:
search
MSFT: 2018-06-29 09:30:00.000000
<
table class="talib" style="width:100%">
ROC: MSFT
Input
Output
date
close
real
2018-02-06
90.51
nan
Comments
I'll be honest, I have never used this function.
If you run it for one symbol and save the text from the console window into a file and open the file in your browser you will have a table but I am sure that was not the intended process.
I have reported it to our devs to see why it is broken.
Are you just working through some of the demo code?
As a new user, I would be much more interested in seeing exactly what data the TALIB function returned to me in its own format so I would know how I needed to manipulate it.
In this case, I gave it 100 data points, what did it actually give me back?
So my code would be...
Run on 5/1/2018 I get...
And what does that mean, well the oldest 10 data points return NAN. So without even looking at what ROC is I can say that the ROC function must need at least 10 data points to render a result. The final result in the list is the most recent return from the ROC.
To print this out on its own we would use print real[-1].
If you are interested in playing with the TALIB functions I would point you to the demo code under the SCRIPTS TAB, click PUBLIC SCRIPTS and click TALIB. There are a few simple demos there that should get you going quite quickly.
Hope this helps.
Thanks. I can work without the html table function no problem. Just wasn't sure if it was supposed to be working or not? or if there was some other trick to get it to present properly.