just update the Target drift attribute to so we dont have to inject the drift_percent every single time
This commit is contained in:
@ -30,6 +30,12 @@ class ObjectiveFunction(BaseModel):
|
||||
print(self.tcc_targets)
|
||||
return amount
|
||||
|
||||
def update_targets_drift(self, amount: float = 0.0):
|
||||
for target in self.tif_targets:
|
||||
target.drift = round(amount, 2)
|
||||
for target in self.tcc_targets:
|
||||
target.drift = round(amount, 2)
|
||||
|
||||
def minimum_drift(self) -> float:
|
||||
minimum_drift = 0.0
|
||||
|
||||
|
Reference in New Issue
Block a user