Update strategy defaults

This commit is contained in:
Mark Veidemanis 2022-11-06 07:20:24 +00:00
parent 6dd2997a74
commit e8a2f9b0fa
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 2 additions and 2 deletions

View File

@ -204,10 +204,10 @@ class Strategy(models.Model):
account = models.ForeignKey(Account, on_delete=models.CASCADE)
hooks = models.ManyToManyField(Hook)
enabled = models.BooleanField(default=False)
take_profit_percent = models.FloatField(default=3.0)
take_profit_percent = models.FloatField(default=1.5)
stop_loss_percent = models.FloatField(default=1.0)
price_slippage_percent = models.FloatField(default=2.5)
trade_size_percent = models.FloatField(default=2.5)
trade_size_percent = models.FloatField(default=0.5)
def __str__(self):
return self.name