Fix issue 3 tijd voor 60 seconde parameters
This commit is contained in:
@@ -562,8 +562,8 @@ Opens the connection and logs in.
|
|||||||
# Also note that we use GMT. So we should add one hour
|
# Also note that we use GMT. So we should add one hour
|
||||||
# because we use GMT +1 (MET, UTC-1)
|
# because we use GMT +1 (MET, UTC-1)
|
||||||
#
|
#
|
||||||
|
now=time.time()
|
||||||
if (parameter.find("10") != -1):
|
if (parameter.find("10") != -1):
|
||||||
now=time.time()
|
|
||||||
dt = now%600
|
dt = now%600
|
||||||
if (dt < 330):
|
if (dt < 330):
|
||||||
now = 3000 + now - dt
|
now = 3000 + now - dt
|
||||||
@@ -573,7 +573,7 @@ Opens the connection and logs in.
|
|||||||
#
|
#
|
||||||
# e.g. H1 use 30 seconds to calculate the time.
|
# e.g. H1 use 30 seconds to calculate the time.
|
||||||
#
|
#
|
||||||
dt = now%600
|
dt = now%60
|
||||||
if (dt < 30):
|
if (dt < 30):
|
||||||
now = 3540 + now - dt
|
now = 3540 + now - dt
|
||||||
else:
|
else:
|
||||||
|
Reference in New Issue
Block a user