This commit is contained in:
tim
2024-09-24 18:07:09 -04:00
parent 1014cb2bda
commit caaeff24e8

View File

@@ -326,6 +326,7 @@ class PriceLineTrigger (Trigger):
if is_barrier: if is_barrier:
log.warning('Barriers not supported') log.warning('Barriers not supported')
value_now = line.intercept + line.slope * current_clock.get().timestamp value_now = line.intercept + line.slope * current_clock.get().timestamp
price_now = float(price_now)
if inverted: if inverted:
price_now = 1/price_now price_now = 1/price_now
price_now *= scale price_now *= scale