For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/
Number of digits after the comma
-
How to get 6 values after the comma:
output only 2 digits2019-07-15, Close, EUR.USD 1.13 2019-07-15, Close, EUR.GBP 0.9
-
Find
%.2f
in your script and replace it with%.6f
. -
In my case when I parse data from CSV, the real data is 1.12694, while in output is 1.13.
Maybe I should change smth in this codedef read_data(file_name): datapath = os.path.abspath(os.getcwd() + '/' + file_name) return bt.feeds.YahooFinanceCSVData( dataname=datapath, # Do not pass values before this date #fromdate=datetime.datetime(2018, 1, 1), # Do not pass values before this date #todate=datetime.datetime(2019, 1, 1), # Do not pass values after this date reverse=False)
-
I solved this problem, thanks