Skip to content

Commit 3695684

Browse files
author
michael xu
committed
2 parents a999202 + 1f97b6a commit 3695684

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

SkinokBacktraderUI.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,18 @@ def loadData(self, dataPath, datetimeFormat, separator):
112112

113113
# Python contains
114114
if not dataPath in self.dataframes:
115+
# self.dataframes[fileName] = pd.read_csv(dataPath,
116+
# sep=separator,
117+
# parse_dates=[0],
118+
# date_parser=lambda x: pd.to_datetime(x, format=datetimeFormat),
119+
# skiprows=0,
120+
# header=0,
121+
# names=["Time", "Open", "High", "Low", "Close", "Volume"],
122+
# index_col=0)
115123
self.dataframes[fileName] = pd.read_csv(dataPath,
116124
sep=separator,
117125
parse_dates=[0],
118-
date_parser=lambda x: pd.to_datetime(x, format=datetimeFormat),
126+
date_format=datetimeFormat,
119127
skiprows=0,
120128
header=0,
121129
names=["Time", "Open", "High", "Low", "Close", "Volume"],

finplotWindow.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,11 +388,11 @@ def zoomTo(self, dateStr1, dateStr2):
388388
x2 = fplt._dateStr2x(ax,dateStr2)
389389

390390
# Do not zoom exactly on the trade, so take a little bit before & after
391-
date1 = x1[0];
391+
date1 = x1[0]
392392
if date1 > 10:
393393
date1 = date1 - 10
394394

395-
date2 = x2[0] + 10;
395+
date2 = x2[0] + 10
396396

397397
ax.vb.update_y_zoom(date1,date2)
398398

userInterface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class UserInterface:
5555
#########
5656
def __init__(self,controller):
5757

58-
self.controller = controller
58+
self.controller = controller # SkinokBacktraderUI
5959

6060
# It does not finish by a "/"
6161
self.current_dir_path = os.path.dirname(os.path.realpath(__file__))

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy