bugfix
This commit is contained in:
@@ -326,6 +326,7 @@ class PriceLineTrigger (Trigger):
|
||||
if is_barrier:
|
||||
log.warning('Barriers not supported')
|
||||
value_now = line.intercept + line.slope * current_clock.get().timestamp
|
||||
price_now = float(price_now)
|
||||
if inverted:
|
||||
price_now = 1/price_now
|
||||
price_now *= scale
|
||||
|
||||
Reference in New Issue
Block a user