Closed alexgiul closed 11 months ago
x
[ ]
pip install -U finplot
import finplot as fplt import pandas as pd fplt.autoviewrestore() ax = fplt.create_plot('beyond_horizon',init_zoom_periods=100, yscale='log') ax.showGrid(True, True) df = pd.read_csv(f'./eurusd.csv', parse_dates=['date'], delimiter=',') df.index = pd.DatetimeIndex(df['date']) # convert to datetimeindex price = df['open close high low'.split()] ax.reset() # remove previous plots fplt.candlestick_ochl(price)
My last point of data is 2023-11-01 13:17:00,1.0532,1.05324,1.05313,1.05318,130 but when I plot, the data is moved ahead of 1-hour.
EURUSD.csv
I should see my last bar at 13:17:00 and not at 14:17:00
OS: Windows finplot version: 1.9.2 pyqtgraph version: 0.13.3 pyqt version:6.4.2
See https://github.com/highfestiva/finplot/wiki/Snippets#time-zone.
Requirements (place an
x
in each of the[ ]
)**pip install -U finplot
).Code to reproduce
Describe the bug
My last point of data is 2023-11-01 13:17:00,1.0532,1.05324,1.05313,1.05318,130 but when I plot, the data is moved ahead of 1-hour.
EURUSD.csv
Expected behavior
I should see my last bar at 13:17:00 and not at 14:17:00
Screenshots
Reproducible in:
OS: Windows finplot version: 1.9.2 pyqtgraph version: 0.13.3 pyqt version:6.4.2