For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/
Get a list of close prices data
-
I've used the following code to get the last 100 close prices:
self.price_list = self.datas[-100:][0]
But the size of the list increment every next() called. There is any way to get the last close data on list format? -
See the comment in the thread: Community - Porting a pandas dataframe dependent indicator
In any case:
self.datas[-100:]
is not going to give you data points. It would give you the data feeds
100
and greater which are in the system.