Fixed float regex to include negative
This commit is contained in:
parent
42dc90ed1d
commit
f011ac19ab
@ -63,7 +63,7 @@ while True:
|
|||||||
adx = re.search(r'ADX Value(.*)XXX', string)
|
adx = re.search(r'ADX Value(.*)XXX', string)
|
||||||
rsi = re.search(r'RSI Value(.*)XXX', string)
|
rsi = re.search(r'RSI Value(.*)XXX', string)
|
||||||
tot = re.search(r'TOTAL (.*)', string).group(1)
|
tot = re.search(r'TOTAL (.*)', string).group(1)
|
||||||
total = re.search(r'[-+]?([0-9]*\.[0-9]+|[0-9]+)', tot).group(1)
|
total = float(tot)
|
||||||
if total and (float(total) > float(current)):
|
if total and (float(total) > float(current)):
|
||||||
current = total
|
current = total
|
||||||
print('total better profit paremeters: ')
|
print('total better profit paremeters: ')
|
||||||
|
Loading…
Reference in New Issue
Block a user